• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 - 2020 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
22xc_configure_preamble_ver_major='1'
23xc_configure_preamble_ver_minor='0'
24
25#
26# Set IFS to space, tab and newline.
27#
28
29xc_space=' '
30xc_tab='	'
31xc_newline='
32'
33IFS="$xc_space$xc_tab$xc_newline"
34
35#
36# Set internationalization behavior variables.
37#
38
39LANG='C'
40LC_ALL='C'
41LANGUAGE='C'
42export LANG
43export LC_ALL
44export LANGUAGE
45
46#
47# Some useful variables.
48#
49
50xc_msg_warn='configure: WARNING:'
51xc_msg_abrt='Can not continue.'
52xc_msg_err='configure: error:'
53
54#
55# Verify that 'echo' command is available, otherwise abort.
56#
57
58xc_tst_str='unknown'
59(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60case "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    ;;
69esac
70
71#
72# Verify that 'test' command is available, otherwise abort.
73#
74
75xc_tst_str='unknown'
76(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77case "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    ;;
85esac
86
87#
88# Verify that 'PATH' variable is set, otherwise abort.
89#
90
91xc_tst_str='unknown'
92(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93case "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    ;;
101esac
102
103#
104# Verify that 'expr' command is available, otherwise abort.
105#
106
107xc_tst_str='unknown'
108xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109case "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    ;;
117esac
118
119#
120# Verify that 'sed' utility is found within 'PATH', otherwise abort.
121#
122
123xc_tst_str='unknown'
124xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125  | sed -e 's:unknown:success:' 2>/dev/null`
126case "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    ;;
134esac
135
136#
137# Verify that 'grep' utility is found within 'PATH', otherwise abort.
138#
139
140xc_tst_str='unknown'
141(`echo "$xc_tst_str" 2>/dev/null \
142  | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143case "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    ;;
151esac
152
153#
154# Verify that 'tr' utility is found within 'PATH', otherwise abort.
155#
156
157xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159  | tr -d "0123456789$xc_tab" 2>/dev/null`
160case "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    ;;
168esac
169
170#
171# Verify that 'wc' utility is found within 'PATH', otherwise abort.
172#
173
174xc_tst_str='unknown unknown unknown unknown'
175xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176  | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177case "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    ;;
185esac
186
187#
188# Verify that 'cat' utility is found within 'PATH', otherwise abort.
189#
190
191xc_tst_str='unknown'
192xc_tst_str=`cat <<_EOT 2>/dev/null \
193  | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194unknown
195unknown
196unknown
197_EOT`
198case "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    ;;
206esac
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.
213xc_tst_dirs_col='x'
214xc_tst_prev_IFS=$IFS; IFS=':'
215for xc_tst_dir in $PATH; do
216  IFS=$xc_tst_prev_IFS
217  xc_tst_dirs_col="x$xc_tst_dirs_col"
218done
219IFS=$xc_tst_prev_IFS
220xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222# Directory count in 'PATH' when using a semicolon separator.
223xc_tst_dirs_sem='x'
224xc_tst_prev_IFS=$IFS; IFS=';'
225for xc_tst_dir in $PATH; do
226  IFS=$xc_tst_prev_IFS
227  xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228done
229IFS=$xc_tst_prev_IFS
230xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232if 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    # User should provide the correct 'PATH_SEPARATOR' definition.
237    # Until then, guess that it is colon!
238    echo "$xc_msg_warn path separator not determined, guessing colon" >&2
239    PATH_SEPARATOR=':'
240  fi
241else
242  # Separator with the greater directory count is the auto-detected one.
243  if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244    xc_tst_auto_separator=';'
245  else
246    xc_tst_auto_separator=':'
247  fi
248  if test -z "$PATH_SEPARATOR"; then
249    # Simply use the auto-detected one when not already set.
250    PATH_SEPARATOR=$xc_tst_auto_separator
251  elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252    echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
253  fi
254fi
255xc_PATH_SEPARATOR=$PATH_SEPARATOR
256
257xc_configure_preamble_result='yes'
258
259
260## -------------------- ##
261## M4sh Initialization. ##
262## -------------------- ##
263
264# Be more Bourne compatible
265DUALCASE=1; export DUALCASE # for MKS sh
266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
267  emulate sh
268  NULLCMD=:
269  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270  # is contrary to our usage.  Disable this feature.
271  alias -g '${1+"$@"}'='"$@"'
272  setopt NO_GLOB_SUBST
273else
274  case `(set -o) 2>/dev/null` in #(
275  *posix*) :
276    set -o posix ;; #(
277  *) :
278     ;;
279esac
280fi
281
282
283as_nl='
284'
285export as_nl
286# Printing a long string crashes Solaris 7 /usr/bin/printf.
287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290# Prefer a ksh shell builtin over an external printf program on Solaris,
291# but without wasting forks for bash or zsh.
292if test -z "$BASH_VERSION$ZSH_VERSION" \
293    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294  as_echo='print -r --'
295  as_echo_n='print -rn --'
296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297  as_echo='printf %s\n'
298  as_echo_n='printf %s'
299else
300  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302    as_echo_n='/usr/ucb/echo -n'
303  else
304    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
305    as_echo_n_body='eval
306      arg=$1;
307      case $arg in #(
308      *"$as_nl"*)
309	expr "X$arg" : "X\\(.*\\)$as_nl";
310	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311      esac;
312      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313    '
314    export as_echo_n_body
315    as_echo_n='sh -c $as_echo_n_body as_echo'
316  fi
317  export as_echo_body
318  as_echo='sh -c $as_echo_body as_echo'
319fi
320
321
322
323# IFS
324# We need space, tab and new line, in precisely that order.  Quoting is
325# there to prevent editors from complaining about space-tab.
326# (If _AS_PATH_WALK were called with IFS unset, it would disable word
327# splitting by setting IFS to empty value.)
328IFS=" ""	$as_nl"
329
330# Find who we are.  Look in the path if we contain no directory separator.
331as_myself=
332case $0 in #((
333  *[\\/]* ) as_myself=$0 ;;
334  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335for as_dir in $PATH
336do
337  IFS=$as_save_IFS
338  test -z "$as_dir" && as_dir=.
339    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340  done
341IFS=$as_save_IFS
342
343     ;;
344esac
345# We did not find ourselves, most probably we were run as `sh COMMAND'
346# in which case we are not to be found in the path.
347if test "x$as_myself" = x; then
348  as_myself=$0
349fi
350if test ! -f "$as_myself"; then
351  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352  exit 1
353fi
354
355# Unset variables that we do not need and which cause bugs (e.g. in
356# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
357# suppresses any "Segmentation fault" message there.  '((' could
358# trigger a bug in pdksh 5.2.14.
359for as_var in BASH_ENV ENV MAIL MAILPATH
360do eval test x\${$as_var+set} = xset \
361  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
362done
363PS1='$ '
364PS2='> '
365PS4='+ '
366
367# NLS nuisances.
368LC_ALL=C
369export LC_ALL
370LANGUAGE=C
371export LANGUAGE
372
373# CDPATH.
374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375
376# Use a proper internal environment variable to ensure we don't fall
377  # into an infinite loop, continuously re-executing ourselves.
378  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379    _as_can_reexec=no; export _as_can_reexec;
380    # We cannot yet assume a decent shell, so we have to provide a
381# neutralization value for shells without unset; and this also
382# works around shells that cannot unset nonexistent variables.
383# Preserve -v and -x to the replacement shell.
384BASH_ENV=/dev/null
385ENV=/dev/null
386(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387case $- in # ((((
388  *v*x* | *x*v* ) as_opts=-vx ;;
389  *v* ) as_opts=-v ;;
390  *x* ) as_opts=-x ;;
391  * ) as_opts= ;;
392esac
393exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394# Admittedly, this is quite paranoid, since all the known shells bail
395# out after a failed `exec'.
396$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
397as_fn_exit 255
398  fi
399  # We don't want this to propagate to other subprocesses.
400          { _as_can_reexec=; unset _as_can_reexec;}
401if test "x$CONFIG_SHELL" = x; then
402  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
403  emulate sh
404  NULLCMD=:
405  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406  # is contrary to our usage.  Disable this feature.
407  alias -g '\${1+\"\$@\"}'='\"\$@\"'
408  setopt NO_GLOB_SUBST
409else
410  case \`(set -o) 2>/dev/null\` in #(
411  *posix*) :
412    set -o posix ;; #(
413  *) :
414     ;;
415esac
416fi
417"
418  as_required="as_fn_return () { (exit \$1); }
419as_fn_success () { as_fn_return 0; }
420as_fn_failure () { as_fn_return 1; }
421as_fn_ret_success () { return 0; }
422as_fn_ret_failure () { return 1; }
423
424exitcode=0
425as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
430
431else
432  exitcode=1; echo positional parameters were not saved.
433fi
434test x\$exitcode = x0 || exit 1
435test -x / || exit 1"
436  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440test \$(( 1 + 1 )) = 2 || exit 1
441
442  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446    PATH=/empty FPATH=/empty; export PATH FPATH
447    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449  if (eval "$as_required") 2>/dev/null; then :
450  as_have_required=yes
451else
452  as_have_required=no
453fi
454  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
455
456else
457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458as_found=false
459for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
460do
461  IFS=$as_save_IFS
462  test -z "$as_dir" && as_dir=.
463  as_found=:
464  case $as_dir in #(
465	 /*)
466	   for as_base in sh bash ksh sh5; do
467	     # Try only shells that exist, to save several forks.
468	     as_shell=$as_dir/$as_base
469	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471  CONFIG_SHELL=$as_shell as_have_required=yes
472		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
473  break 2
474fi
475fi
476	   done;;
477       esac
478  as_found=false
479done
480$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482  CONFIG_SHELL=$SHELL as_have_required=yes
483fi; }
484IFS=$as_save_IFS
485
486
487      if test "x$CONFIG_SHELL" != x; then :
488  export CONFIG_SHELL
489             # We cannot yet assume a decent shell, so we have to provide a
490# neutralization value for shells without unset; and this also
491# works around shells that cannot unset nonexistent variables.
492# Preserve -v and -x to the replacement shell.
493BASH_ENV=/dev/null
494ENV=/dev/null
495(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496case $- in # ((((
497  *v*x* | *x*v* ) as_opts=-vx ;;
498  *v* ) as_opts=-v ;;
499  *x* ) as_opts=-x ;;
500  * ) as_opts= ;;
501esac
502exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503# Admittedly, this is quite paranoid, since all the known shells bail
504# out after a failed `exec'.
505$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
506exit 255
507fi
508
509    if test x$as_have_required = xno; then :
510  $as_echo "$0: This script requires a shell more modern than all"
511  $as_echo "$0: the shells that I found on your system."
512  if test x${ZSH_VERSION+set} = xset ; then
513    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515  else
516    $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517$0: mailing list: https://curl.haxx.se/mail/ about your
518$0: system, including any error possibly output before this
519$0: message. Then install a modern shell, or manually run
520$0: the script under such a shell if you do have one."
521  fi
522  exit 1
523fi
524fi
525fi
526SHELL=${CONFIG_SHELL-/bin/sh}
527export SHELL
528# Unset more variables known to interfere with behavior of common tools.
529CLICOLOR_FORCE= GREP_OPTIONS=
530unset CLICOLOR_FORCE GREP_OPTIONS
531
532## --------------------- ##
533## M4sh Shell Functions. ##
534## --------------------- ##
535# as_fn_unset VAR
536# ---------------
537# Portably unset VAR.
538as_fn_unset ()
539{
540  { eval $1=; unset $1;}
541}
542as_unset=as_fn_unset
543
544# as_fn_set_status STATUS
545# -----------------------
546# Set $? to STATUS, without forking.
547as_fn_set_status ()
548{
549  return $1
550} # as_fn_set_status
551
552# as_fn_exit STATUS
553# -----------------
554# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555as_fn_exit ()
556{
557  set +e
558  as_fn_set_status $1
559  exit $1
560} # as_fn_exit
561
562# as_fn_mkdir_p
563# -------------
564# Create "$as_dir" as a directory, including parents if necessary.
565as_fn_mkdir_p ()
566{
567
568  case $as_dir in #(
569  -*) as_dir=./$as_dir;;
570  esac
571  test -d "$as_dir" || eval $as_mkdir_p || {
572    as_dirs=
573    while :; do
574      case $as_dir in #(
575      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
576      *) as_qdir=$as_dir;;
577      esac
578      as_dirs="'$as_qdir' $as_dirs"
579      as_dir=`$as_dirname -- "$as_dir" ||
580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581	 X"$as_dir" : 'X\(//\)[^/]' \| \
582	 X"$as_dir" : 'X\(//\)$' \| \
583	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584$as_echo X"$as_dir" |
585    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
586	    s//\1/
587	    q
588	  }
589	  /^X\(\/\/\)[^/].*/{
590	    s//\1/
591	    q
592	  }
593	  /^X\(\/\/\)$/{
594	    s//\1/
595	    q
596	  }
597	  /^X\(\/\).*/{
598	    s//\1/
599	    q
600	  }
601	  s/.*/./; q'`
602      test -d "$as_dir" && break
603    done
604    test -z "$as_dirs" || eval "mkdir $as_dirs"
605  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
606
607
608} # as_fn_mkdir_p
609
610# as_fn_executable_p FILE
611# -----------------------
612# Test if FILE is an executable regular file.
613as_fn_executable_p ()
614{
615  test -f "$1" && test -x "$1"
616} # as_fn_executable_p
617# as_fn_append VAR VALUE
618# ----------------------
619# Append the text in VALUE to the end of the definition contained in VAR. Take
620# advantage of any shell optimizations that allow amortized linear growth over
621# repeated appends, instead of the typical quadratic growth present in naive
622# implementations.
623if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624  eval 'as_fn_append ()
625  {
626    eval $1+=\$2
627  }'
628else
629  as_fn_append ()
630  {
631    eval $1=\$$1\$2
632  }
633fi # as_fn_append
634
635# as_fn_arith ARG...
636# ------------------
637# Perform arithmetic evaluation on the ARGs, and store the result in the
638# global $as_val. Take advantage of shells that can avoid forks. The arguments
639# must be portable across $(()) and expr.
640if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
641  eval 'as_fn_arith ()
642  {
643    as_val=$(( $* ))
644  }'
645else
646  as_fn_arith ()
647  {
648    as_val=`expr "$@" || test $? -eq 1`
649  }
650fi # as_fn_arith
651
652
653# as_fn_error STATUS ERROR [LINENO LOG_FD]
654# ----------------------------------------
655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657# script with STATUS, using 1 if that was 0.
658as_fn_error ()
659{
660  as_status=$1; test $as_status -eq 0 && as_status=1
661  if test "$4"; then
662    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664  fi
665  $as_echo "$as_me: error: $2" >&2
666  as_fn_exit $as_status
667} # as_fn_error
668
669if expr a : '\(a\)' >/dev/null 2>&1 &&
670   test "X`expr 00001 : '.*\(...\)'`" = X001; then
671  as_expr=expr
672else
673  as_expr=false
674fi
675
676if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677  as_basename=basename
678else
679  as_basename=false
680fi
681
682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683  as_dirname=dirname
684else
685  as_dirname=false
686fi
687
688as_me=`$as_basename -- "$0" ||
689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690	 X"$0" : 'X\(//\)$' \| \
691	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692$as_echo X/"$0" |
693    sed '/^.*\/\([^/][^/]*\)\/*$/{
694	    s//\1/
695	    q
696	  }
697	  /^X\/\(\/\/\)$/{
698	    s//\1/
699	    q
700	  }
701	  /^X\/\(\/\).*/{
702	    s//\1/
703	    q
704	  }
705	  s/.*/./; q'`
706
707# Avoid depending upon Character Ranges.
708as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711as_cr_digits='0123456789'
712as_cr_alnum=$as_cr_Letters$as_cr_digits
713
714
715  as_lineno_1=$LINENO as_lineno_1a=$LINENO
716  as_lineno_2=$LINENO as_lineno_2a=$LINENO
717  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
720  sed -n '
721    p
722    /[$]LINENO/=
723  ' <$as_myself |
724    sed '
725      s/[$]LINENO.*/&-/
726      t lineno
727      b
728      :lineno
729      N
730      :loop
731      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
732      t loop
733      s/-\n.*//
734    ' >$as_me.lineno &&
735  chmod +x "$as_me.lineno" ||
736    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737
738  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739  # already done that, so ensure we don't try to do so again and fall
740  # in an infinite loop.  This has already happened in practice.
741  _as_can_reexec=no; export _as_can_reexec
742  # Don't try to exec as it changes $[0], causing all sort of problems
743  # (the dirname of $[0] is not the place where we might find the
744  # original and so on.  Autoconf is especially sensitive to this).
745  . "./$as_me.lineno"
746  # Exit status is that of the last command.
747  exit
748}
749
750ECHO_C= ECHO_N= ECHO_T=
751case `echo -n x` in #(((((
752-n*)
753  case `echo 'xy\c'` in
754  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
755  xy)  ECHO_C='\c';;
756  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
757       ECHO_T='	';;
758  esac;;
759*)
760  ECHO_N='-n';;
761esac
762
763rm -f conf$$ conf$$.exe conf$$.file
764if test -d conf$$.dir; then
765  rm -f conf$$.dir/conf$$.file
766else
767  rm -f conf$$.dir
768  mkdir conf$$.dir 2>/dev/null
769fi
770if (echo >conf$$.file) 2>/dev/null; then
771  if ln -s conf$$.file conf$$ 2>/dev/null; then
772    as_ln_s='ln -s'
773    # ... but there are two gotchas:
774    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776    # In both cases, we have to default to `cp -pR'.
777    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778      as_ln_s='cp -pR'
779  elif ln conf$$.file conf$$ 2>/dev/null; then
780    as_ln_s=ln
781  else
782    as_ln_s='cp -pR'
783  fi
784else
785  as_ln_s='cp -pR'
786fi
787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788rmdir conf$$.dir 2>/dev/null
789
790if mkdir -p . 2>/dev/null; then
791  as_mkdir_p='mkdir -p "$as_dir"'
792else
793  test -d ./-p && rmdir ./-p
794  as_mkdir_p=false
795fi
796
797as_test_x='test -x'
798as_executable_p=as_fn_executable_p
799
800# Sed expression to map a string onto a valid CPP name.
801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802
803# Sed expression to map a string onto a valid variable name.
804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805
806SHELL=${CONFIG_SHELL-/bin/sh}
807
808
809test -n "$DJDIR" || exec 7<&0 </dev/null
810exec 6>&1
811
812# Name of the host.
813# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814# so uname gets run too.
815ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
816
817#
818# Initializations.
819#
820ac_default_prefix=/usr/local
821ac_clean_files=
822ac_config_libobj_dir=.
823LIBOBJS=
824cross_compiling=no
825subdirs=
826MFLAGS=
827MAKEFLAGS=
828
829# Identity of this package.
830PACKAGE_NAME='curl'
831PACKAGE_TARNAME='curl'
832PACKAGE_VERSION='-'
833PACKAGE_STRING='curl -'
834PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
835PACKAGE_URL=''
836
837ac_unique_file="lib/urldata.h"
838# Factoring default headers for most tests.
839ac_includes_default="\
840#include <stdio.h>
841#ifdef HAVE_SYS_TYPES_H
842# include <sys/types.h>
843#endif
844#ifdef HAVE_SYS_STAT_H
845# include <sys/stat.h>
846#endif
847#ifdef STDC_HEADERS
848# include <stdlib.h>
849# include <stddef.h>
850#else
851# ifdef HAVE_STDLIB_H
852#  include <stdlib.h>
853# endif
854#endif
855#ifdef HAVE_STRING_H
856# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
857#  include <memory.h>
858# endif
859# include <string.h>
860#endif
861#ifdef HAVE_STRINGS_H
862# include <strings.h>
863#endif
864#ifdef HAVE_INTTYPES_H
865# include <inttypes.h>
866#endif
867#ifdef HAVE_STDINT_H
868# include <stdint.h>
869#endif
870#ifdef HAVE_UNISTD_H
871# include <unistd.h>
872#endif"
873
874enable_option_checking=no
875ac_subst_vars='am__EXEEXT_FALSE
876am__EXEEXT_TRUE
877LTLIBOBJS
878LIBOBJS
879SSL_BACKENDS
880SUPPORT_PROTOCOLS
881SUPPORT_FEATURES
882LIBCURL_NO_SHARED
883ENABLE_STATIC
884ENABLE_SHARED
885CROSSCOMPILING_FALSE
886CROSSCOMPILING_TRUE
887BLANK_AT_MAKETIME
888CURL_NETWORK_AND_TIME_LIBS
889CURL_NETWORK_LIBS
890LIBCURL_LIBS
891CFLAG_CURL_SYMBOL_HIDING
892DOING_CURL_SYMBOL_HIDING_FALSE
893DOING_CURL_SYMBOL_HIDING_TRUE
894USE_UNIX_SOCKETS
895BUILD_LIBHOSTNAME_FALSE
896BUILD_LIBHOSTNAME_TRUE
897USE_EMBEDDED_ARES_FALSE
898USE_EMBEDDED_ARES_TRUE
899USE_ARES
900subdirs
901USE_MANUAL_FALSE
902USE_MANUAL_TRUE
903MANOPT
904NROFF
905PERL
906FISH_FUNCTIONS_DIR
907ZSH_FUNCTIONS_DIR
908USE_QUICHE
909USE_NGHTTP3
910USE_NGTCP2_CRYPTO_GNUTLS
911USE_NGTCP2_CRYPTO_OPENSSL
912USE_NGTCP2
913USE_NGHTTP2
914IDN_ENABLED
915CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
916CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
917CURL_LT_SHLIB_VERSIONED_FLAVOUR
918USE_LIBRTMP
919USE_WOLFSSH
920USE_LIBSSH
921USE_LIBSSH2
922LIBMETALINK_CPPFLAGS
923LIBMETALINK_LDFLAGS
924LIBMETALINK_LIBS
925USE_LIBPSL_FALSE
926USE_LIBPSL_TRUE
927CURL_CA_BUNDLE
928CURL_WITH_MULTI_SSL
929SSL_ENABLED
930NSS_LIBS
931USE_NSS
932USE_BEARSSL
933USE_MESALINK
934USE_WOLFSSL
935USE_MBEDTLS
936HAVE_GNUTLS_SRP
937USE_GNUTLS_NETTLE
938USE_GNUTLS
939HAVE_OPENSSL_SRP
940RANDOM_FILE
941SSL_LIBS
942USE_SECTRANSP
943USE_WINDOWS_SSPI
944USE_SCHANNEL
945DEFAULT_SSL_BACKEND
946BUILD_STUB_GSS_FALSE
947BUILD_STUB_GSS_TRUE
948IPV6_ENABLED
949USE_OPENLDAP
950HAVE_ZSTD
951HAVE_BROTLI
952ZLIB_LIBS
953HAVE_LIBZ_FALSE
954HAVE_LIBZ_TRUE
955HAVE_LIBZ
956PKGCONFIG
957HAVE_PROTO_BSDSOCKET_H
958CURL_DISABLE_MQTT
959CURL_DISABLE_GOPHER
960CURL_DISABLE_SMTP
961CURL_DISABLE_SMB
962CURL_DISABLE_IMAP
963CURL_DISABLE_POP3
964CURL_DISABLE_TFTP
965CURL_DISABLE_TELNET
966CURL_DISABLE_DICT
967CURL_DISABLE_PROXY
968HAVE_LDAP_SSL
969CURL_DISABLE_LDAPS
970CURL_DISABLE_LDAP
971CURL_DISABLE_FILE
972CURL_DISABLE_FTP
973CURL_DISABLE_RTSP
974CURL_DISABLE_HTTP
975DOING_NATIVE_WINDOWS_FALSE
976DOING_NATIVE_WINDOWS_TRUE
977BUILD_UNITTESTS_FALSE
978BUILD_UNITTESTS_TRUE
979CURLDEBUG_FALSE
980CURLDEBUG_TRUE
981CURL_CFLAG_EXTRAS
982USE_EXPLICIT_LIB_DEPS_FALSE
983USE_EXPLICIT_LIB_DEPS_TRUE
984REQUIRE_LIB_DEPS
985CPPFLAG_CURL_STATICLIB
986USE_CPPFLAG_CURL_STATICLIB_FALSE
987USE_CPPFLAG_CURL_STATICLIB_TRUE
988CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
989CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
990CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
991CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
992CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
993CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
994LT_SYS_LIBRARY_PATH
995OTOOL64
996OTOOL
997LIPO
998NMEDIT
999DSYMUTIL
1000MANIFEST_TOOL
1001RANLIB
1002ac_ct_AR
1003LN_S
1004NM
1005ac_ct_DUMPBIN
1006DUMPBIN
1007LD
1008FGREP
1009LIBTOOL
1010OBJDUMP
1011DLLTOOL
1012AS
1013AR_FLAGS
1014host_os
1015host_vendor
1016host_cpu
1017host
1018build_os
1019build_vendor
1020build_cpu
1021build
1022PKGADD_VENDOR
1023PKGADD_NAME
1024PKGADD_PKG
1025VERSIONNUM
1026CURLVERSION
1027am__fastdepCC_FALSE
1028am__fastdepCC_TRUE
1029CCDEPMODE
1030am__nodep
1031AMDEPBACKSLASH
1032AMDEP_FALSE
1033AMDEP_TRUE
1034am__include
1035DEPDIR
1036am__untar
1037am__tar
1038AMTAR
1039am__leading_dot
1040SET_MAKE
1041AWK
1042mkdir_p
1043MKDIR_P
1044INSTALL_STRIP_PROGRAM
1045STRIP
1046install_sh
1047MAKEINFO
1048AUTOHEADER
1049AUTOMAKE
1050AUTOCONF
1051ACLOCAL
1052VERSION
1053PACKAGE
1054CYGPATH_W
1055am__isrc
1056LCOV
1057GCOV
1058CPP
1059OBJEXT
1060EXEEXT
1061ac_ct_CC
1062CPPFLAGS
1063LDFLAGS
1064CFLAGS
1065CC
1066INSTALL_DATA
1067INSTALL_SCRIPT
1068INSTALL_PROGRAM
1069libext
1070AR
1071EGREP
1072GREP
1073SED
1074CONFIGURE_OPTIONS
1075AM_BACKSLASH
1076AM_DEFAULT_VERBOSITY
1077AM_DEFAULT_V
1078AM_V
1079MAINT
1080MAINTAINER_MODE_FALSE
1081MAINTAINER_MODE_TRUE
1082target_alias
1083host_alias
1084build_alias
1085LIBS
1086ECHO_T
1087ECHO_N
1088ECHO_C
1089DEFS
1090mandir
1091localedir
1092libdir
1093psdir
1094pdfdir
1095dvidir
1096htmldir
1097infodir
1098docdir
1099oldincludedir
1100includedir
1101runstatedir
1102localstatedir
1103sharedstatedir
1104sysconfdir
1105datadir
1106datarootdir
1107libexecdir
1108sbindir
1109bindir
1110program_transform_name
1111prefix
1112exec_prefix
1113PACKAGE_URL
1114PACKAGE_BUGREPORT
1115PACKAGE_STRING
1116PACKAGE_VERSION
1117PACKAGE_TARNAME
1118PACKAGE_NAME
1119SHELL
1120PATH_SEPARATOR
1121am__quote'
1122ac_subst_files=''
1123ac_user_opts='
1124enable_option_checking
1125enable_maintainer_mode
1126enable_silent_rules
1127enable_debug
1128enable_optimize
1129enable_warnings
1130enable_werror
1131enable_curldebug
1132enable_symbol_hiding
1133enable_hidden_symbols
1134enable_ares
1135enable_rt
1136enable_ech
1137enable_code_coverage
1138enable_dependency_tracking
1139enable_largefile
1140enable_shared
1141enable_static
1142with_pic
1143enable_fast_install
1144with_aix_soname
1145with_gnu_ld
1146with_sysroot
1147enable_libtool_lock
1148enable_http
1149enable_ftp
1150enable_file
1151enable_ldap
1152enable_ldaps
1153enable_rtsp
1154enable_proxy
1155enable_dict
1156enable_telnet
1157enable_tftp
1158enable_pop3
1159enable_imap
1160enable_smb
1161enable_smtp
1162enable_gopher
1163enable_mqtt
1164enable_manual
1165enable_libcurl_option
1166enable_libgcc
1167with_zlib
1168with_brotli
1169with_zstd
1170with_ldap_lib
1171with_lber_lib
1172enable_ipv6
1173with_gssapi_includes
1174with_gssapi_libs
1175with_gssapi
1176with_default_ssl_backend
1177with_winssl
1178with_schannel
1179with_darwinssl
1180with_secure_transport
1181with_amissl
1182with_ssl
1183with_egd_socket
1184with_random
1185enable_openssl_auto_load_config
1186with_gnutls
1187with_mbedtls
1188with_wolfssl
1189with_mesalink
1190with_bearssl
1191with_nss
1192with_ca_bundle
1193with_ca_path
1194with_ca_fallback
1195with_libpsl
1196with_libmetalink
1197with_libssh2
1198with_libssh
1199with_wolfssh
1200with_librtmp
1201enable_versioned_symbols
1202with_winidn
1203with_libidn2
1204with_nghttp2
1205with_ngtcp2
1206with_nghttp3
1207with_quiche
1208with_zsh_functions_dir
1209with_fish_functions_dir
1210enable_threaded_resolver
1211enable_pthreads
1212enable_verbose
1213enable_sspi
1214enable_crypto_auth
1215enable_ntlm_wb
1216enable_tls_srp
1217enable_unix_sockets
1218enable_cookies
1219enable_socketpair
1220enable_http_auth
1221enable_doh
1222enable_mime
1223enable_dateparse
1224enable_netrc
1225enable_progress_meter
1226enable_dnsshuffle
1227enable_get_easy_option
1228enable_alt_svc
1229'
1230      ac_precious_vars='build_alias
1231host_alias
1232target_alias
1233CC
1234CFLAGS
1235LDFLAGS
1236LIBS
1237CPPFLAGS
1238CPP
1239LT_SYS_LIBRARY_PATH'
1240ac_subdirs_all='ares'
1241
1242# Initialize some variables set by options.
1243ac_init_help=
1244ac_init_version=false
1245ac_unrecognized_opts=
1246ac_unrecognized_sep=
1247# The variables have the same names as the options, with
1248# dashes changed to underlines.
1249cache_file=/dev/null
1250exec_prefix=NONE
1251no_create=
1252no_recursion=
1253prefix=NONE
1254program_prefix=NONE
1255program_suffix=NONE
1256program_transform_name=s,x,x,
1257silent=
1258site=
1259srcdir=
1260verbose=
1261x_includes=NONE
1262x_libraries=NONE
1263
1264# Installation directory options.
1265# These are left unexpanded so users can "make install exec_prefix=/foo"
1266# and all the variables that are supposed to be based on exec_prefix
1267# by default will actually change.
1268# Use braces instead of parens because sh, perl, etc. also accept them.
1269# (The list follows the same order as the GNU Coding Standards.)
1270bindir='${exec_prefix}/bin'
1271sbindir='${exec_prefix}/sbin'
1272libexecdir='${exec_prefix}/libexec'
1273datarootdir='${prefix}/share'
1274datadir='${datarootdir}'
1275sysconfdir='${prefix}/etc'
1276sharedstatedir='${prefix}/com'
1277localstatedir='${prefix}/var'
1278runstatedir='${localstatedir}/run'
1279includedir='${prefix}/include'
1280oldincludedir='/usr/include'
1281docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1282infodir='${datarootdir}/info'
1283htmldir='${docdir}'
1284dvidir='${docdir}'
1285pdfdir='${docdir}'
1286psdir='${docdir}'
1287libdir='${exec_prefix}/lib'
1288localedir='${datarootdir}/locale'
1289mandir='${datarootdir}/man'
1290
1291ac_prev=
1292ac_dashdash=
1293for ac_option
1294do
1295  # If the previous option needs an argument, assign it.
1296  if test -n "$ac_prev"; then
1297    eval $ac_prev=\$ac_option
1298    ac_prev=
1299    continue
1300  fi
1301
1302  case $ac_option in
1303  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1304  *=)   ac_optarg= ;;
1305  *)    ac_optarg=yes ;;
1306  esac
1307
1308  # Accept the important Cygnus configure options, so we can diagnose typos.
1309
1310  case $ac_dashdash$ac_option in
1311  --)
1312    ac_dashdash=yes ;;
1313
1314  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1315    ac_prev=bindir ;;
1316  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1317    bindir=$ac_optarg ;;
1318
1319  -build | --build | --buil | --bui | --bu)
1320    ac_prev=build_alias ;;
1321  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1322    build_alias=$ac_optarg ;;
1323
1324  -cache-file | --cache-file | --cache-fil | --cache-fi \
1325  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1326    ac_prev=cache_file ;;
1327  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1328  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1329    cache_file=$ac_optarg ;;
1330
1331  --config-cache | -C)
1332    cache_file=config.cache ;;
1333
1334  -datadir | --datadir | --datadi | --datad)
1335    ac_prev=datadir ;;
1336  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1337    datadir=$ac_optarg ;;
1338
1339  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1340  | --dataroo | --dataro | --datar)
1341    ac_prev=datarootdir ;;
1342  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1343  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1344    datarootdir=$ac_optarg ;;
1345
1346  -disable-* | --disable-*)
1347    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1348    # Reject names that are not valid shell variable names.
1349    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350      as_fn_error $? "invalid feature name: $ac_useropt"
1351    ac_useropt_orig=$ac_useropt
1352    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353    case $ac_user_opts in
1354      *"
1355"enable_$ac_useropt"
1356"*) ;;
1357      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1358	 ac_unrecognized_sep=', ';;
1359    esac
1360    eval enable_$ac_useropt=no ;;
1361
1362  -docdir | --docdir | --docdi | --doc | --do)
1363    ac_prev=docdir ;;
1364  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1365    docdir=$ac_optarg ;;
1366
1367  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1368    ac_prev=dvidir ;;
1369  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1370    dvidir=$ac_optarg ;;
1371
1372  -enable-* | --enable-*)
1373    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1374    # Reject names that are not valid shell variable names.
1375    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376      as_fn_error $? "invalid feature name: $ac_useropt"
1377    ac_useropt_orig=$ac_useropt
1378    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379    case $ac_user_opts in
1380      *"
1381"enable_$ac_useropt"
1382"*) ;;
1383      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1384	 ac_unrecognized_sep=', ';;
1385    esac
1386    eval enable_$ac_useropt=\$ac_optarg ;;
1387
1388  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1389  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1390  | --exec | --exe | --ex)
1391    ac_prev=exec_prefix ;;
1392  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1393  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1394  | --exec=* | --exe=* | --ex=*)
1395    exec_prefix=$ac_optarg ;;
1396
1397  -gas | --gas | --ga | --g)
1398    # Obsolete; use --with-gas.
1399    with_gas=yes ;;
1400
1401  -help | --help | --hel | --he | -h)
1402    ac_init_help=long ;;
1403  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1404    ac_init_help=recursive ;;
1405  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1406    ac_init_help=short ;;
1407
1408  -host | --host | --hos | --ho)
1409    ac_prev=host_alias ;;
1410  -host=* | --host=* | --hos=* | --ho=*)
1411    host_alias=$ac_optarg ;;
1412
1413  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1414    ac_prev=htmldir ;;
1415  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1416  | --ht=*)
1417    htmldir=$ac_optarg ;;
1418
1419  -includedir | --includedir | --includedi | --included | --include \
1420  | --includ | --inclu | --incl | --inc)
1421    ac_prev=includedir ;;
1422  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1423  | --includ=* | --inclu=* | --incl=* | --inc=*)
1424    includedir=$ac_optarg ;;
1425
1426  -infodir | --infodir | --infodi | --infod | --info | --inf)
1427    ac_prev=infodir ;;
1428  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1429    infodir=$ac_optarg ;;
1430
1431  -libdir | --libdir | --libdi | --libd)
1432    ac_prev=libdir ;;
1433  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1434    libdir=$ac_optarg ;;
1435
1436  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1437  | --libexe | --libex | --libe)
1438    ac_prev=libexecdir ;;
1439  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1440  | --libexe=* | --libex=* | --libe=*)
1441    libexecdir=$ac_optarg ;;
1442
1443  -localedir | --localedir | --localedi | --localed | --locale)
1444    ac_prev=localedir ;;
1445  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1446    localedir=$ac_optarg ;;
1447
1448  -localstatedir | --localstatedir | --localstatedi | --localstated \
1449  | --localstate | --localstat | --localsta | --localst | --locals)
1450    ac_prev=localstatedir ;;
1451  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1452  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1453    localstatedir=$ac_optarg ;;
1454
1455  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1456    ac_prev=mandir ;;
1457  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1458    mandir=$ac_optarg ;;
1459
1460  -nfp | --nfp | --nf)
1461    # Obsolete; use --without-fp.
1462    with_fp=no ;;
1463
1464  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1465  | --no-cr | --no-c | -n)
1466    no_create=yes ;;
1467
1468  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1469  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1470    no_recursion=yes ;;
1471
1472  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1473  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1474  | --oldin | --oldi | --old | --ol | --o)
1475    ac_prev=oldincludedir ;;
1476  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1477  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1478  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1479    oldincludedir=$ac_optarg ;;
1480
1481  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1482    ac_prev=prefix ;;
1483  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1484    prefix=$ac_optarg ;;
1485
1486  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1487  | --program-pre | --program-pr | --program-p)
1488    ac_prev=program_prefix ;;
1489  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1490  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1491    program_prefix=$ac_optarg ;;
1492
1493  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1494  | --program-suf | --program-su | --program-s)
1495    ac_prev=program_suffix ;;
1496  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1497  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1498    program_suffix=$ac_optarg ;;
1499
1500  -program-transform-name | --program-transform-name \
1501  | --program-transform-nam | --program-transform-na \
1502  | --program-transform-n | --program-transform- \
1503  | --program-transform | --program-transfor \
1504  | --program-transfo | --program-transf \
1505  | --program-trans | --program-tran \
1506  | --progr-tra | --program-tr | --program-t)
1507    ac_prev=program_transform_name ;;
1508  -program-transform-name=* | --program-transform-name=* \
1509  | --program-transform-nam=* | --program-transform-na=* \
1510  | --program-transform-n=* | --program-transform-=* \
1511  | --program-transform=* | --program-transfor=* \
1512  | --program-transfo=* | --program-transf=* \
1513  | --program-trans=* | --program-tran=* \
1514  | --progr-tra=* | --program-tr=* | --program-t=*)
1515    program_transform_name=$ac_optarg ;;
1516
1517  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1518    ac_prev=pdfdir ;;
1519  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1520    pdfdir=$ac_optarg ;;
1521
1522  -psdir | --psdir | --psdi | --psd | --ps)
1523    ac_prev=psdir ;;
1524  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1525    psdir=$ac_optarg ;;
1526
1527  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528  | -silent | --silent | --silen | --sile | --sil)
1529    silent=yes ;;
1530
1531  -runstatedir | --runstatedir | --runstatedi | --runstated \
1532  | --runstate | --runstat | --runsta | --runst | --runs \
1533  | --run | --ru | --r)
1534    ac_prev=runstatedir ;;
1535  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1536  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1537  | --run=* | --ru=* | --r=*)
1538    runstatedir=$ac_optarg ;;
1539
1540  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1541    ac_prev=sbindir ;;
1542  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1543  | --sbi=* | --sb=*)
1544    sbindir=$ac_optarg ;;
1545
1546  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1547  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1548  | --sharedst | --shareds | --shared | --share | --shar \
1549  | --sha | --sh)
1550    ac_prev=sharedstatedir ;;
1551  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1552  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1553  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1554  | --sha=* | --sh=*)
1555    sharedstatedir=$ac_optarg ;;
1556
1557  -site | --site | --sit)
1558    ac_prev=site ;;
1559  -site=* | --site=* | --sit=*)
1560    site=$ac_optarg ;;
1561
1562  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1563    ac_prev=srcdir ;;
1564  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1565    srcdir=$ac_optarg ;;
1566
1567  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1568  | --syscon | --sysco | --sysc | --sys | --sy)
1569    ac_prev=sysconfdir ;;
1570  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1571  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1572    sysconfdir=$ac_optarg ;;
1573
1574  -target | --target | --targe | --targ | --tar | --ta | --t)
1575    ac_prev=target_alias ;;
1576  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1577    target_alias=$ac_optarg ;;
1578
1579  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1580    verbose=yes ;;
1581
1582  -version | --version | --versio | --versi | --vers | -V)
1583    ac_init_version=: ;;
1584
1585  -with-* | --with-*)
1586    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1587    # Reject names that are not valid shell variable names.
1588    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1589      as_fn_error $? "invalid package name: $ac_useropt"
1590    ac_useropt_orig=$ac_useropt
1591    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1592    case $ac_user_opts in
1593      *"
1594"with_$ac_useropt"
1595"*) ;;
1596      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1597	 ac_unrecognized_sep=', ';;
1598    esac
1599    eval with_$ac_useropt=\$ac_optarg ;;
1600
1601  -without-* | --without-*)
1602    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1603    # Reject names that are not valid shell variable names.
1604    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1605      as_fn_error $? "invalid package name: $ac_useropt"
1606    ac_useropt_orig=$ac_useropt
1607    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1608    case $ac_user_opts in
1609      *"
1610"with_$ac_useropt"
1611"*) ;;
1612      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1613	 ac_unrecognized_sep=', ';;
1614    esac
1615    eval with_$ac_useropt=no ;;
1616
1617  --x)
1618    # Obsolete; use --with-x.
1619    with_x=yes ;;
1620
1621  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1622  | --x-incl | --x-inc | --x-in | --x-i)
1623    ac_prev=x_includes ;;
1624  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1625  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1626    x_includes=$ac_optarg ;;
1627
1628  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1629  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1630    ac_prev=x_libraries ;;
1631  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1632  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1633    x_libraries=$ac_optarg ;;
1634
1635  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1636Try \`$0 --help' for more information"
1637    ;;
1638
1639  *=*)
1640    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1641    # Reject names that are not valid shell variable names.
1642    case $ac_envvar in #(
1643      '' | [0-9]* | *[!_$as_cr_alnum]* )
1644      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1645    esac
1646    eval $ac_envvar=\$ac_optarg
1647    export $ac_envvar ;;
1648
1649  *)
1650    # FIXME: should be removed in autoconf 3.0.
1651    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1652    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1653      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1654    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1655    ;;
1656
1657  esac
1658done
1659
1660if test -n "$ac_prev"; then
1661  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1662  as_fn_error $? "missing argument to $ac_option"
1663fi
1664
1665if test -n "$ac_unrecognized_opts"; then
1666  case $enable_option_checking in
1667    no) ;;
1668    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1669    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1670  esac
1671fi
1672
1673# Check all directory arguments for consistency.
1674for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1675		datadir sysconfdir sharedstatedir localstatedir includedir \
1676		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1677		libdir localedir mandir runstatedir
1678do
1679  eval ac_val=\$$ac_var
1680  # Remove trailing slashes.
1681  case $ac_val in
1682    */ )
1683      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1684      eval $ac_var=\$ac_val;;
1685  esac
1686  # Be sure to have absolute directory names.
1687  case $ac_val in
1688    [\\/$]* | ?:[\\/]* )  continue;;
1689    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1690  esac
1691  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1692done
1693
1694# There might be people who depend on the old broken behavior: `$host'
1695# used to hold the argument of --host etc.
1696# FIXME: To remove some day.
1697build=$build_alias
1698host=$host_alias
1699target=$target_alias
1700
1701# FIXME: To remove some day.
1702if test "x$host_alias" != x; then
1703  if test "x$build_alias" = x; then
1704    cross_compiling=maybe
1705  elif test "x$build_alias" != "x$host_alias"; then
1706    cross_compiling=yes
1707  fi
1708fi
1709
1710ac_tool_prefix=
1711test -n "$host_alias" && ac_tool_prefix=$host_alias-
1712
1713test "$silent" = yes && exec 6>/dev/null
1714
1715
1716ac_pwd=`pwd` && test -n "$ac_pwd" &&
1717ac_ls_di=`ls -di .` &&
1718ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1719  as_fn_error $? "working directory cannot be determined"
1720test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1721  as_fn_error $? "pwd does not report name of working directory"
1722
1723
1724# Find the source files, if location was not specified.
1725if test -z "$srcdir"; then
1726  ac_srcdir_defaulted=yes
1727  # Try the directory containing this script, then the parent directory.
1728  ac_confdir=`$as_dirname -- "$as_myself" ||
1729$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1730	 X"$as_myself" : 'X\(//\)[^/]' \| \
1731	 X"$as_myself" : 'X\(//\)$' \| \
1732	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1733$as_echo X"$as_myself" |
1734    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1735	    s//\1/
1736	    q
1737	  }
1738	  /^X\(\/\/\)[^/].*/{
1739	    s//\1/
1740	    q
1741	  }
1742	  /^X\(\/\/\)$/{
1743	    s//\1/
1744	    q
1745	  }
1746	  /^X\(\/\).*/{
1747	    s//\1/
1748	    q
1749	  }
1750	  s/.*/./; q'`
1751  srcdir=$ac_confdir
1752  if test ! -r "$srcdir/$ac_unique_file"; then
1753    srcdir=..
1754  fi
1755else
1756  ac_srcdir_defaulted=no
1757fi
1758if test ! -r "$srcdir/$ac_unique_file"; then
1759  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1760  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1761fi
1762ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1763ac_abs_confdir=`(
1764	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1765	pwd)`
1766# When building in place, set srcdir=.
1767if test "$ac_abs_confdir" = "$ac_pwd"; then
1768  srcdir=.
1769fi
1770# Remove unnecessary trailing slashes from srcdir.
1771# Double slashes in file names in object file debugging info
1772# mess up M-x gdb in Emacs.
1773case $srcdir in
1774*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1775esac
1776for ac_var in $ac_precious_vars; do
1777  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1778  eval ac_env_${ac_var}_value=\$${ac_var}
1779  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1780  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1781done
1782
1783#
1784# Report the --help message.
1785#
1786if test "$ac_init_help" = "long"; then
1787  # Omit some internal or obsolete options to make the list less imposing.
1788  # This message is too long to be a string in the A/UX 3.1 sh.
1789  cat <<_ACEOF
1790\`configure' configures curl - to adapt to many kinds of systems.
1791
1792Usage: $0 [OPTION]... [VAR=VALUE]...
1793
1794To assign environment variables (e.g., CC, CFLAGS...), specify them as
1795VAR=VALUE.  See below for descriptions of some of the useful variables.
1796
1797Defaults for the options are specified in brackets.
1798
1799Configuration:
1800  -h, --help              display this help and exit
1801      --help=short        display options specific to this package
1802      --help=recursive    display the short help of all the included packages
1803  -V, --version           display version information and exit
1804  -q, --quiet, --silent   do not print \`checking ...' messages
1805      --cache-file=FILE   cache test results in FILE [disabled]
1806  -C, --config-cache      alias for \`--cache-file=config.cache'
1807  -n, --no-create         do not create output files
1808      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1809
1810Installation directories:
1811  --prefix=PREFIX         install architecture-independent files in PREFIX
1812                          [$ac_default_prefix]
1813  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1814                          [PREFIX]
1815
1816By default, \`make install' will install all the files in
1817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1819for instance \`--prefix=\$HOME'.
1820
1821For better control, use the options below.
1822
1823Fine tuning of the installation directories:
1824  --bindir=DIR            user executables [EPREFIX/bin]
1825  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1826  --libexecdir=DIR        program executables [EPREFIX/libexec]
1827  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1828  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1829  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1830  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1831  --libdir=DIR            object code libraries [EPREFIX/lib]
1832  --includedir=DIR        C header files [PREFIX/include]
1833  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1834  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1835  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1836  --infodir=DIR           info documentation [DATAROOTDIR/info]
1837  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1838  --mandir=DIR            man documentation [DATAROOTDIR/man]
1839  --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1840  --htmldir=DIR           html documentation [DOCDIR]
1841  --dvidir=DIR            dvi documentation [DOCDIR]
1842  --pdfdir=DIR            pdf documentation [DOCDIR]
1843  --psdir=DIR             ps documentation [DOCDIR]
1844_ACEOF
1845
1846  cat <<\_ACEOF
1847
1848Program names:
1849  --program-prefix=PREFIX            prepend PREFIX to installed program names
1850  --program-suffix=SUFFIX            append SUFFIX to installed program names
1851  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1852
1853System types:
1854  --build=BUILD     configure for building on BUILD [guessed]
1855  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1856_ACEOF
1857fi
1858
1859if test -n "$ac_init_help"; then
1860  case $ac_init_help in
1861     short | recursive ) echo "Configuration of curl -:";;
1862   esac
1863  cat <<\_ACEOF
1864
1865Optional Features:
1866  --disable-option-checking  ignore unrecognized --enable/--with options
1867  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1868  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1869  --enable-maintainer-mode
1870                          enable make rules and dependencies not useful (and
1871                          sometimes confusing) to the casual installer
1872  --enable-silent-rules   less verbose build output (undo: "make V=1")
1873  --disable-silent-rules  verbose build output (undo: "make V=0")
1874  --enable-debug          Enable debug build options
1875  --disable-debug         Disable debug build options
1876  --enable-optimize       Enable compiler optimizations
1877  --disable-optimize      Disable compiler optimizations
1878  --enable-warnings       Enable strict compiler warnings
1879  --disable-warnings      Disable strict compiler warnings
1880  --enable-werror         Enable compiler warnings as errors
1881  --disable-werror        Disable compiler warnings as errors
1882  --enable-curldebug      Enable curl debug memory tracking
1883  --disable-curldebug     Disable curl debug memory tracking
1884  --enable-symbol-hiding  Enable hiding of library internal symbols
1885  --disable-symbol-hiding Disable hiding of library internal symbols
1886  --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1887  --disable-hidden-symbols
1888                          To be deprecated, use --disable-symbol-hiding
1889  --enable-ares[=PATH]    Enable c-ares for DNS lookups
1890  --disable-ares          Disable c-ares for DNS lookups
1891  --disable-rt            disable dependency on -lrt
1892  --enable-ech            Enable ECH support
1893  --disable-ech           Disable ECH support
1894  --enable-code-coverage  Provide code coverage
1895  --enable-dependency-tracking
1896                          do not reject slow dependency extractors
1897  --disable-dependency-tracking
1898                          speeds up one-time build
1899  --disable-largefile     omit support for large files
1900  --enable-shared[=PKGS]  build shared libraries [default=yes]
1901  --enable-static[=PKGS]  build static libraries [default=yes]
1902  --enable-fast-install[=PKGS]
1903                          optimize for fast installation [default=yes]
1904  --disable-libtool-lock  avoid locking (might break parallel builds)
1905  --enable-http           Enable HTTP support
1906  --disable-http          Disable HTTP support
1907  --enable-ftp            Enable FTP support
1908  --disable-ftp           Disable FTP support
1909  --enable-file           Enable FILE support
1910  --disable-file          Disable FILE support
1911  --enable-ldap           Enable LDAP support
1912  --disable-ldap          Disable LDAP support
1913  --enable-ldaps          Enable LDAPS support
1914  --disable-ldaps         Disable LDAPS support
1915  --enable-rtsp           Enable RTSP support
1916  --disable-rtsp          Disable RTSP support
1917  --enable-proxy          Enable proxy support
1918  --disable-proxy         Disable proxy support
1919  --enable-dict           Enable DICT support
1920  --disable-dict          Disable DICT support
1921  --enable-telnet         Enable TELNET support
1922  --disable-telnet        Disable TELNET support
1923  --enable-tftp           Enable TFTP support
1924  --disable-tftp          Disable TFTP support
1925  --enable-pop3           Enable POP3 support
1926  --disable-pop3          Disable POP3 support
1927  --enable-imap           Enable IMAP support
1928  --disable-imap          Disable IMAP support
1929  --enable-smb            Enable SMB/CIFS support
1930  --disable-smb           Disable SMB/CIFS support
1931  --enable-smtp           Enable SMTP support
1932  --disable-smtp          Disable SMTP support
1933  --enable-gopher         Enable Gopher support
1934  --disable-gopher        Disable Gopher support
1935  --enable-mqtt           Enable MQTT support
1936  --disable-mqtt          Disable MQTT support
1937  --enable-manual         Enable built-in manual
1938  --disable-manual        Disable built-in manual
1939  --enable-libcurl-option Enable --libcurl C code generation support
1940  --disable-libcurl-option
1941                          Disable --libcurl C code generation support
1942  --enable-libgcc         use libgcc when linking
1943  --enable-ipv6           Enable IPv6 (with IPv4) support
1944  --disable-ipv6          Disable IPv6 support
1945  --enable-openssl-auto-load-config
1946                          Enable automatic loading of OpenSSL configuration
1947  --disable-openssl-auto-load-config
1948                          Disable automatic loading of OpenSSL configuration
1949  --enable-versioned-symbols
1950                          Enable versioned symbols in shared library
1951  --disable-versioned-symbols
1952                          Disable versioned symbols in shared library
1953  --enable-threaded-resolver
1954                          Enable threaded resolver
1955  --disable-threaded-resolver
1956                          Disable threaded resolver
1957  --enable-pthreads       Enable POSIX threads (default for threaded resolver)
1958  --disable-pthreads      Disable POSIX threads
1959  --enable-verbose        Enable verbose strings
1960  --disable-verbose       Disable verbose strings
1961  --enable-sspi           Enable SSPI
1962  --disable-sspi          Disable SSPI
1963  --enable-crypto-auth    Enable cryptographic authentication
1964  --disable-crypto-auth   Disable cryptographic authentication
1965  --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1966                          helper, where FILE is ntlm_auth's absolute filename
1967                          (default: /usr/bin/ntlm_auth)
1968  --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1969                          helper
1970  --enable-tls-srp        Enable TLS-SRP authentication
1971  --disable-tls-srp       Disable TLS-SRP authentication
1972  --enable-unix-sockets   Enable Unix domain sockets
1973  --disable-unix-sockets  Disable Unix domain sockets
1974  --enable-cookies        Enable cookies support
1975  --disable-cookies       Disable cookies support
1976  --enable-socketpair     Enable socketpair support
1977  --disable-socketpair    Disable socketpair support
1978  --enable-http-auth      Enable HTTP authentication support
1979  --disable-http-auth     Disable HTTP authentication support
1980  --enable-doh            Enable DoH support
1981  --disable-doh           Disable DoH support
1982  --enable-mime           Enable mime API support
1983  --disable-mime          Disable mime API support
1984  --enable-dateparse      Enable date parsing
1985  --disable-dateparse     Disable date parsing
1986  --enable-netrc          Enable netrc parsing
1987  --disable-netrc         Disable netrc parsing
1988  --enable-progress-meter Enable progress-meter
1989  --disable-progress-meter
1990                          Disable progress-meter
1991  --enable-dnsshuffle     Enable DNS shuffling
1992  --disable-dnsshuffle    Disable DNS shuffling
1993  --enable-get-easy-options
1994                          Enable curl_easy_options
1995  --disable-get-easy-options
1996                          Disable curl_easy_options
1997  --enable-alt-svc        Enable alt-svc support
1998  --disable-alt-svc       Disable alt-svc support
1999
2000Optional Packages:
2001  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2002  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2003  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2004                          both]
2005  --with-aix-soname=aix|svr4|both
2006                          shared library versioning (aka "SONAME") variant to
2007                          provide on AIX, [default=aix].
2008  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2009  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2010                          compiler's sysroot if not specified).
2011  --with-zlib=PATH        search for zlib in PATH
2012  --without-zlib          disable use of zlib
2013  --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
2014                          installation; when possible, set the PKG_CONFIG_PATH
2015                          environment variable instead of using this option
2016  --without-brotli        disable BROTLI
2017  --with-zstd=PATH        Where to look for libzstd, PATH points to the
2018                          libzstd installation; when possible, set the
2019                          PKG_CONFIG_PATH environment variable instead of
2020                          using this option
2021  --without-zstd          disable libzstd
2022  --with-ldap-lib=libname Specify name of ldap lib file
2023  --with-lber-lib=libname Specify name of lber lib file
2024  --with-gssapi-includes=DIR
2025                          Specify location of GSS-API headers
2026  --with-gssapi-libs=DIR  Specify location of GSS-API libs
2027  --with-gssapi=DIR       Where to look for GSS-API
2028  --with-default-ssl-backend=NAME
2029                          Use NAME as default SSL backend
2030  --without-default-ssl-backend
2031                          Use implicit default SSL backend
2032  --with-winssl           enable Windows native SSL/TLS
2033  --without-winssl        disable Windows native SSL/TLS
2034  --with-schannel         enable Windows native SSL/TLS
2035  --without-schannel      disable Windows native SSL/TLS
2036  --with-darwinssl        enable Apple OS native SSL/TLS
2037  --without-darwinssl     disable Apple OS native SSL/TLS
2038  --with-secure-transport enable Apple OS native SSL/TLS
2039  --without-secure-transport
2040                          disable Apple OS native SSL/TLS
2041  --with-amissl           enable Amiga native SSL/TLS (AmiSSL)
2042  --without-amissl        disable Amiga native SSL/TLS (AmiSSL)
2043  --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
2044                          installation (default: /usr/local/ssl); when
2045                          possible, set the PKG_CONFIG_PATH environment
2046                          variable instead of using this option
2047  --without-ssl           disable OpenSSL
2048  --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
2049  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
2050  --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
2051                          installation root
2052  --without-gnutls        disable GnuTLS detection
2053  --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2054                          installation root
2055  --without-mbedtls       disable mbedTLS detection
2056  --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2057                          installation root (default: system lib default)
2058  --without-wolfssl       disable WolfSSL detection
2059  --with-mesalink=PATH    where to look for MesaLink, PATH points to the
2060                          installation root
2061  --without-mesalink      disable MesaLink detection
2062  --with-bearssl=PATH     where to look for BearSSL, PATH points to the
2063                          installation root
2064  --without-bearssl       disable BearSSL detection
2065  --with-nss=PATH         where to look for NSS, PATH points to the
2066                          installation root
2067  --without-nss           disable NSS detection
2068  --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2069                          /etc/ca-bundle.crt)
2070  --without-ca-bundle     Don't use a default CA bundle
2071  --with-ca-path=DIRECTORY
2072                          Path to a directory containing CA certificates
2073                          stored individually, with their filenames in a hash
2074                          format. This option can be used with the OpenSSL,
2075                          GnuTLS and mbedTLS backends. Refer to OpenSSL
2076                          c_rehash for details. (example: /etc/certificates)
2077  --without-ca-path       Don't use a default CA path
2078  --with-ca-fallback      Use the built in CA store of the SSL library
2079  --without-ca-fallback   Don't use the built in CA store of the SSL library
2080  --without-libpsl        disable support for libpsl cookie checking
2081  --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2082                          installation root
2083  --without-libmetalink   disable libmetalink detection
2084  --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2085                          libssh2 installation; when possible, set the
2086                          PKG_CONFIG_PATH environment variable instead of
2087                          using this option
2088  --with-libssh2          enable libssh2
2089  --with-libssh=PATH      Where to look for libssh, PATH points to the libssh
2090                          installation; when possible, set the PKG_CONFIG_PATH
2091                          environment variable instead of using this option
2092  --with-libssh           enable libssh
2093  --with-wolfssh=PATH     Where to look for wolfssh, PATH points to the
2094                          wolfSSH installation; when possible, set the
2095                          PKG_CONFIG_PATH environment variable instead of
2096                          using this option
2097  --with-wolfssh          enable wolfssh
2098  --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2099                          LIBRTMP installation; when possible, set the
2100                          PKG_CONFIG_PATH environment variable instead of
2101                          using this option
2102  --without-librtmp       disable LIBRTMP
2103  --with-winidn=PATH      enable Windows native IDN
2104  --without-winidn        disable Windows native IDN
2105  --with-libidn2=PATH     Enable libidn2 usage
2106  --without-libidn2       Disable libidn2 usage
2107  --with-nghttp2=PATH     Enable nghttp2 usage
2108  --without-nghttp2       Disable nghttp2 usage
2109  --with-ngtcp2=PATH      Enable ngtcp2 usage
2110  --without-ngtcp2        Disable ngtcp2 usage
2111  --with-nghttp3=PATH     Enable nghttp3 usage
2112  --without-nghttp3       Disable nghttp3 usage
2113  --with-quiche=PATH      Enable quiche usage
2114  --without-quiche        Disable quiche usage
2115  --with-zsh-functions-dir=PATH
2116                          Install zsh completions to PATH
2117  --without-zsh-functions-dir
2118                          Do not install zsh completions
2119  --with-fish-functions-dir=PATH
2120                          Install fish completions to PATH
2121  --without-fish-functions-dir
2122                          Do not install fish completions
2123
2124Some influential environment variables:
2125  CC          C compiler command
2126  CFLAGS      C compiler flags
2127  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2128              nonstandard directory <lib dir>
2129  LIBS        libraries to pass to the linker, e.g. -l<library>
2130  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2131              you have headers in a nonstandard directory <include dir>
2132  CPP         C preprocessor
2133  LT_SYS_LIBRARY_PATH
2134              User-defined run-time library search path.
2135
2136Use these variables to override the choices made by `configure' or to help
2137it to find libraries and programs with nonstandard names/locations.
2138
2139Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2140_ACEOF
2141ac_status=$?
2142fi
2143
2144if test "$ac_init_help" = "recursive"; then
2145  # If there are subdirs, report their specific --help.
2146  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2147    test -d "$ac_dir" ||
2148      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2149      continue
2150    ac_builddir=.
2151
2152case "$ac_dir" in
2153.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2154*)
2155  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2156  # A ".." for each directory in $ac_dir_suffix.
2157  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2158  case $ac_top_builddir_sub in
2159  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2160  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2161  esac ;;
2162esac
2163ac_abs_top_builddir=$ac_pwd
2164ac_abs_builddir=$ac_pwd$ac_dir_suffix
2165# for backward compatibility:
2166ac_top_builddir=$ac_top_build_prefix
2167
2168case $srcdir in
2169  .)  # We are building in place.
2170    ac_srcdir=.
2171    ac_top_srcdir=$ac_top_builddir_sub
2172    ac_abs_top_srcdir=$ac_pwd ;;
2173  [\\/]* | ?:[\\/]* )  # Absolute name.
2174    ac_srcdir=$srcdir$ac_dir_suffix;
2175    ac_top_srcdir=$srcdir
2176    ac_abs_top_srcdir=$srcdir ;;
2177  *) # Relative name.
2178    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2179    ac_top_srcdir=$ac_top_build_prefix$srcdir
2180    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2181esac
2182ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2183
2184    cd "$ac_dir" || { ac_status=$?; continue; }
2185    # Check for guested configure.
2186    if test -f "$ac_srcdir/configure.gnu"; then
2187      echo &&
2188      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2189    elif test -f "$ac_srcdir/configure"; then
2190      echo &&
2191      $SHELL "$ac_srcdir/configure" --help=recursive
2192    else
2193      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2194    fi || ac_status=$?
2195    cd "$ac_pwd" || { ac_status=$?; break; }
2196  done
2197fi
2198
2199test -n "$ac_init_help" && exit $ac_status
2200if $ac_init_version; then
2201  cat <<\_ACEOF
2202curl configure -
2203generated by GNU Autoconf 2.69
2204
2205Copyright (C) 2012 Free Software Foundation, Inc.
2206This configure script is free software; the Free Software Foundation
2207gives unlimited permission to copy, distribute and modify it.
2208
2209Copyright (c) 1998 - 2020 Daniel Stenberg, <daniel@haxx.se>
2210This configure script may be copied, distributed and modified under the
2211terms of the curl license; see COPYING for more details
2212_ACEOF
2213  exit
2214fi
2215
2216## ------------------------ ##
2217## Autoconf initialization. ##
2218## ------------------------ ##
2219
2220# ac_fn_c_try_compile LINENO
2221# --------------------------
2222# Try to compile conftest.$ac_ext, and return whether this succeeded.
2223ac_fn_c_try_compile ()
2224{
2225  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226  rm -f conftest.$ac_objext
2227  if { { ac_try="$ac_compile"
2228case "(($ac_try" in
2229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230  *) ac_try_echo=$ac_try;;
2231esac
2232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233$as_echo "$ac_try_echo"; } >&5
2234  (eval "$ac_compile") 2>conftest.err
2235  ac_status=$?
2236  if test -s conftest.err; then
2237    grep -v '^ *+' conftest.err >conftest.er1
2238    cat conftest.er1 >&5
2239    mv -f conftest.er1 conftest.err
2240  fi
2241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242  test $ac_status = 0; } && {
2243	 test -z "$ac_c_werror_flag" ||
2244	 test ! -s conftest.err
2245       } && test -s conftest.$ac_objext; then :
2246  ac_retval=0
2247else
2248  $as_echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251	ac_retval=1
2252fi
2253  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254  as_fn_set_status $ac_retval
2255
2256} # ac_fn_c_try_compile
2257
2258# ac_fn_c_try_cpp LINENO
2259# ----------------------
2260# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2261ac_fn_c_try_cpp ()
2262{
2263  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264  if { { ac_try="$ac_cpp conftest.$ac_ext"
2265case "(($ac_try" in
2266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267  *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270$as_echo "$ac_try_echo"; } >&5
2271  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2272  ac_status=$?
2273  if test -s conftest.err; then
2274    grep -v '^ *+' conftest.err >conftest.er1
2275    cat conftest.er1 >&5
2276    mv -f conftest.er1 conftest.err
2277  fi
2278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279  test $ac_status = 0; } > conftest.i && {
2280	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2281	 test ! -s conftest.err
2282       }; then :
2283  ac_retval=0
2284else
2285  $as_echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288    ac_retval=1
2289fi
2290  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291  as_fn_set_status $ac_retval
2292
2293} # ac_fn_c_try_cpp
2294
2295# ac_fn_c_try_link LINENO
2296# -----------------------
2297# Try to link conftest.$ac_ext, and return whether this succeeded.
2298ac_fn_c_try_link ()
2299{
2300  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301  rm -f conftest.$ac_objext conftest$ac_exeext
2302  if { { ac_try="$ac_link"
2303case "(($ac_try" in
2304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305  *) ac_try_echo=$ac_try;;
2306esac
2307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308$as_echo "$ac_try_echo"; } >&5
2309  (eval "$ac_link") 2>conftest.err
2310  ac_status=$?
2311  if test -s conftest.err; then
2312    grep -v '^ *+' conftest.err >conftest.er1
2313    cat conftest.er1 >&5
2314    mv -f conftest.er1 conftest.err
2315  fi
2316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317  test $ac_status = 0; } && {
2318	 test -z "$ac_c_werror_flag" ||
2319	 test ! -s conftest.err
2320       } && test -s conftest$ac_exeext && {
2321	 test "$cross_compiling" = yes ||
2322	 test -x conftest$ac_exeext
2323       }; then :
2324  ac_retval=0
2325else
2326  $as_echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329	ac_retval=1
2330fi
2331  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2332  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2333  # interfere with the next link command; also delete a directory that is
2334  # left behind by Apple's compiler.  We do this before executing the actions.
2335  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2336  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337  as_fn_set_status $ac_retval
2338
2339} # ac_fn_c_try_link
2340
2341# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2342# -------------------------------------------------------
2343# Tests whether HEADER exists and can be compiled using the include files in
2344# INCLUDES, setting the cache variable VAR accordingly.
2345ac_fn_c_check_header_compile ()
2346{
2347  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2349$as_echo_n "checking for $2... " >&6; }
2350if eval \${$3+:} false; then :
2351  $as_echo_n "(cached) " >&6
2352else
2353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354/* end confdefs.h.  */
2355$4
2356#include <$2>
2357_ACEOF
2358if ac_fn_c_try_compile "$LINENO"; then :
2359  eval "$3=yes"
2360else
2361  eval "$3=no"
2362fi
2363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364fi
2365eval ac_res=\$$3
2366	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367$as_echo "$ac_res" >&6; }
2368  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369
2370} # ac_fn_c_check_header_compile
2371
2372# ac_fn_c_try_run LINENO
2373# ----------------------
2374# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2375# that executables *can* be run.
2376ac_fn_c_try_run ()
2377{
2378  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379  if { { ac_try="$ac_link"
2380case "(($ac_try" in
2381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382  *) ac_try_echo=$ac_try;;
2383esac
2384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385$as_echo "$ac_try_echo"; } >&5
2386  (eval "$ac_link") 2>&5
2387  ac_status=$?
2388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2390  { { case "(($ac_try" in
2391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392  *) ac_try_echo=$ac_try;;
2393esac
2394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395$as_echo "$ac_try_echo"; } >&5
2396  (eval "$ac_try") 2>&5
2397  ac_status=$?
2398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399  test $ac_status = 0; }; }; then :
2400  ac_retval=0
2401else
2402  $as_echo "$as_me: program exited with status $ac_status" >&5
2403       $as_echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406       ac_retval=$ac_status
2407fi
2408  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410  as_fn_set_status $ac_retval
2411
2412} # ac_fn_c_try_run
2413
2414# ac_fn_c_check_func LINENO FUNC VAR
2415# ----------------------------------
2416# Tests whether FUNC exists, setting the cache variable VAR accordingly
2417ac_fn_c_check_func ()
2418{
2419  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2421$as_echo_n "checking for $2... " >&6; }
2422if eval \${$3+:} false; then :
2423  $as_echo_n "(cached) " >&6
2424else
2425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426/* end confdefs.h.  */
2427
2428#define $2 innocuous_$2
2429#ifdef __STDC__
2430# include <limits.h>
2431#else
2432# include <assert.h>
2433#endif
2434#undef $2
2435#ifdef __cplusplus
2436extern "C"
2437#endif
2438char $2 ();
2439#if defined __stub_$2 || defined __stub___$2
2440choke me
2441#endif
2442
2443int main (void)
2444{
2445return $2 ();
2446 ;
2447 return 0;
2448}
2449_ACEOF
2450if ac_fn_c_try_link "$LINENO"; then :
2451  eval "$3=yes"
2452else
2453  eval "$3=no"
2454fi
2455rm -f core conftest.err conftest.$ac_objext \
2456    conftest$ac_exeext conftest.$ac_ext
2457fi
2458eval ac_res=\$$3
2459	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460$as_echo "$ac_res" >&6; }
2461  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2462
2463} # ac_fn_c_check_func
2464
2465# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2466# -------------------------------------------------------
2467# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2468# the include files in INCLUDES and setting the cache variable VAR
2469# accordingly.
2470ac_fn_c_check_header_mongrel ()
2471{
2472  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473  if eval \${$3+:} false; then :
2474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475$as_echo_n "checking for $2... " >&6; }
2476if eval \${$3+:} false; then :
2477  $as_echo_n "(cached) " >&6
2478fi
2479eval ac_res=\$$3
2480	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481$as_echo "$ac_res" >&6; }
2482else
2483  # Is the header compilable?
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2485$as_echo_n "checking $2 usability... " >&6; }
2486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487/* end confdefs.h.  */
2488$4
2489#include <$2>
2490_ACEOF
2491if ac_fn_c_try_compile "$LINENO"; then :
2492  ac_header_compiler=yes
2493else
2494  ac_header_compiler=no
2495fi
2496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2498$as_echo "$ac_header_compiler" >&6; }
2499
2500# Is the header present?
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2502$as_echo_n "checking $2 presence... " >&6; }
2503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504/* end confdefs.h.  */
2505#include <$2>
2506_ACEOF
2507if ac_fn_c_try_cpp "$LINENO"; then :
2508  ac_header_preproc=yes
2509else
2510  ac_header_preproc=no
2511fi
2512rm -f conftest.err conftest.i conftest.$ac_ext
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2514$as_echo "$ac_header_preproc" >&6; }
2515
2516# So?  What about this header?
2517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2518  yes:no: )
2519    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2520$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2521    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2522$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2523    ;;
2524  no:yes:* )
2525    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2526$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2527    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2528$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2529    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2530$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2531    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2532$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2533    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2534$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2535( $as_echo "## ----------------------------------------------------------------------- ##
2536## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2537## ----------------------------------------------------------------------- ##"
2538     ) | sed "s/^/$as_me: WARNING:     /" >&2
2539    ;;
2540esac
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542$as_echo_n "checking for $2... " >&6; }
2543if eval \${$3+:} false; then :
2544  $as_echo_n "(cached) " >&6
2545else
2546  eval "$3=\$ac_header_compiler"
2547fi
2548eval ac_res=\$$3
2549	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550$as_echo "$ac_res" >&6; }
2551fi
2552  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553
2554} # ac_fn_c_check_header_mongrel
2555
2556# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2557# -------------------------------------------
2558# Tests whether TYPE exists after having included INCLUDES, setting cache
2559# variable VAR accordingly.
2560ac_fn_c_check_type ()
2561{
2562  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564$as_echo_n "checking for $2... " >&6; }
2565if eval \${$3+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  eval "$3=no"
2569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570/* end confdefs.h.  */
2571$4
2572int main (void)
2573{
2574if (sizeof ($2))
2575	 return 0;
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580if ac_fn_c_try_compile "$LINENO"; then :
2581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582/* end confdefs.h.  */
2583$4
2584int main (void)
2585{
2586if (sizeof (($2)))
2587	    return 0;
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592if ac_fn_c_try_compile "$LINENO"; then :
2593
2594else
2595  eval "$3=yes"
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600fi
2601eval ac_res=\$$3
2602	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603$as_echo "$ac_res" >&6; }
2604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605
2606} # ac_fn_c_check_type
2607
2608# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2609# ---------------------------------------------
2610# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2611# accordingly.
2612ac_fn_c_check_decl ()
2613{
2614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615  as_decl_name=`echo $2|sed 's/ *(.*//'`
2616  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2618$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2619if eval \${$3+:} false; then :
2620  $as_echo_n "(cached) " >&6
2621else
2622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623/* end confdefs.h.  */
2624$4
2625int main (void)
2626{
2627#ifndef $as_decl_name
2628#ifdef __cplusplus
2629  (void) $as_decl_use;
2630#else
2631  (void) $as_decl_name;
2632#endif
2633#endif
2634
2635 ;
2636 return 0;
2637}
2638_ACEOF
2639if ac_fn_c_try_compile "$LINENO"; then :
2640  eval "$3=yes"
2641else
2642  eval "$3=no"
2643fi
2644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645fi
2646eval ac_res=\$$3
2647	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648$as_echo "$ac_res" >&6; }
2649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650
2651} # ac_fn_c_check_decl
2652
2653# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2654# ----------------------------------------------------
2655# Tries to find if the field MEMBER exists in type AGGR, after including
2656# INCLUDES, setting cache variable VAR accordingly.
2657ac_fn_c_check_member ()
2658{
2659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2661$as_echo_n "checking for $2.$3... " >&6; }
2662if eval \${$4+:} false; then :
2663  $as_echo_n "(cached) " >&6
2664else
2665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h.  */
2667$5
2668int main (void)
2669{
2670static $2 ac_aggr;
2671if (ac_aggr.$3)
2672return 0;
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"; then :
2678  eval "$4=yes"
2679else
2680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h.  */
2682$5
2683int main (void)
2684{
2685static $2 ac_aggr;
2686if (sizeof ac_aggr.$3)
2687return 0;
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692if ac_fn_c_try_compile "$LINENO"; then :
2693  eval "$4=yes"
2694else
2695  eval "$4=no"
2696fi
2697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698fi
2699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700fi
2701eval ac_res=\$$4
2702	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2703$as_echo "$ac_res" >&6; }
2704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2705
2706} # ac_fn_c_check_member
2707cat >config.log <<_ACEOF
2708This file contains any messages produced by compilers while
2709running configure, to aid debugging if configure makes a mistake.
2710
2711It was created by curl $as_me -, which was
2712generated by GNU Autoconf 2.69.  Invocation command line was
2713
2714  $ $0 $@
2715
2716_ACEOF
2717exec 5>>config.log
2718{
2719cat <<_ASUNAME
2720## --------- ##
2721## Platform. ##
2722## --------- ##
2723
2724hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2725uname -m = `(uname -m) 2>/dev/null || echo unknown`
2726uname -r = `(uname -r) 2>/dev/null || echo unknown`
2727uname -s = `(uname -s) 2>/dev/null || echo unknown`
2728uname -v = `(uname -v) 2>/dev/null || echo unknown`
2729
2730/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2731/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2732
2733/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2734/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2735/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2736/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2737/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2738/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2739/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2740
2741_ASUNAME
2742
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746  IFS=$as_save_IFS
2747  test -z "$as_dir" && as_dir=.
2748    $as_echo "PATH: $as_dir"
2749  done
2750IFS=$as_save_IFS
2751
2752} >&5
2753
2754cat >&5 <<_ACEOF
2755
2756
2757## ----------- ##
2758## Core tests. ##
2759## ----------- ##
2760
2761_ACEOF
2762
2763
2764# Keep a trace of the command line.
2765# Strip out --no-create and --no-recursion so they do not pile up.
2766# Strip out --silent because we don't want to record it for future runs.
2767# Also quote any args containing shell meta-characters.
2768# Make two passes to allow for proper duplicate-argument suppression.
2769ac_configure_args=
2770ac_configure_args0=
2771ac_configure_args1=
2772ac_must_keep_next=false
2773for ac_pass in 1 2
2774do
2775  for ac_arg
2776  do
2777    case $ac_arg in
2778    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2779    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2780    | -silent | --silent | --silen | --sile | --sil)
2781      continue ;;
2782    *\'*)
2783      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2784    esac
2785    case $ac_pass in
2786    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2787    2)
2788      as_fn_append ac_configure_args1 " '$ac_arg'"
2789      if test $ac_must_keep_next = true; then
2790	ac_must_keep_next=false # Got value, back to normal.
2791      else
2792	case $ac_arg in
2793	  *=* | --config-cache | -C | -disable-* | --disable-* \
2794	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2795	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2796	  | -with-* | --with-* | -without-* | --without-* | --x)
2797	    case "$ac_configure_args0 " in
2798	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2799	    esac
2800	    ;;
2801	  -* ) ac_must_keep_next=true ;;
2802	esac
2803      fi
2804      as_fn_append ac_configure_args " '$ac_arg'"
2805      ;;
2806    esac
2807  done
2808done
2809{ ac_configure_args0=; unset ac_configure_args0;}
2810{ ac_configure_args1=; unset ac_configure_args1;}
2811
2812# When interrupted or exit'd, cleanup temporary files, and complete
2813# config.log.  We remove comments because anyway the quotes in there
2814# would cause problems or look ugly.
2815# WARNING: Use '\'' to represent an apostrophe within the trap.
2816# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2817trap 'exit_status=$?
2818  # Save into config.log some information that might help in debugging.
2819  {
2820    echo
2821
2822    $as_echo "## ---------------- ##
2823## Cache variables. ##
2824## ---------------- ##"
2825    echo
2826    # The following way of writing the cache mishandles newlines in values,
2827(
2828  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2829    eval ac_val=\$$ac_var
2830    case $ac_val in #(
2831    *${as_nl}*)
2832      case $ac_var in #(
2833      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2834$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2835      esac
2836      case $ac_var in #(
2837      _ | IFS | as_nl) ;; #(
2838      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2839      *) { eval $ac_var=; unset $ac_var;} ;;
2840      esac ;;
2841    esac
2842  done
2843  (set) 2>&1 |
2844    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2845    *${as_nl}ac_space=\ *)
2846      sed -n \
2847	"s/'\''/'\''\\\\'\'''\''/g;
2848	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2849      ;; #(
2850    *)
2851      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2852      ;;
2853    esac |
2854    sort
2855)
2856    echo
2857
2858    $as_echo "## ----------------- ##
2859## Output variables. ##
2860## ----------------- ##"
2861    echo
2862    for ac_var in $ac_subst_vars
2863    do
2864      eval ac_val=\$$ac_var
2865      case $ac_val in
2866      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2867      esac
2868      $as_echo "$ac_var='\''$ac_val'\''"
2869    done | sort
2870    echo
2871
2872    if test -n "$ac_subst_files"; then
2873      $as_echo "## ------------------- ##
2874## File substitutions. ##
2875## ------------------- ##"
2876      echo
2877      for ac_var in $ac_subst_files
2878      do
2879	eval ac_val=\$$ac_var
2880	case $ac_val in
2881	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2882	esac
2883	$as_echo "$ac_var='\''$ac_val'\''"
2884      done | sort
2885      echo
2886    fi
2887
2888    if test -s confdefs.h; then
2889      $as_echo "## ----------- ##
2890## confdefs.h. ##
2891## ----------- ##"
2892      echo
2893      cat confdefs.h
2894      echo
2895    fi
2896    test "$ac_signal" != 0 &&
2897      $as_echo "$as_me: caught signal $ac_signal"
2898    $as_echo "$as_me: exit $exit_status"
2899  } >&5
2900  rm -f core *.core core.conftest.* &&
2901    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2902    exit $exit_status
2903' 0
2904for ac_signal in 1 2 13 15; do
2905  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2906done
2907ac_signal=0
2908
2909# confdefs.h avoids OS command line length limits that DEFS can exceed.
2910rm -f -r conftest* confdefs.h
2911
2912$as_echo "/* confdefs.h */" > confdefs.h
2913
2914# Predefined preprocessor variables.
2915
2916cat >>confdefs.h <<_ACEOF
2917#define PACKAGE_NAME "$PACKAGE_NAME"
2918_ACEOF
2919
2920cat >>confdefs.h <<_ACEOF
2921#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2922_ACEOF
2923
2924cat >>confdefs.h <<_ACEOF
2925#define PACKAGE_VERSION "$PACKAGE_VERSION"
2926_ACEOF
2927
2928cat >>confdefs.h <<_ACEOF
2929#define PACKAGE_STRING "$PACKAGE_STRING"
2930_ACEOF
2931
2932cat >>confdefs.h <<_ACEOF
2933#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2934_ACEOF
2935
2936cat >>confdefs.h <<_ACEOF
2937#define PACKAGE_URL "$PACKAGE_URL"
2938_ACEOF
2939
2940
2941# Let the site file select an alternate cache file if it wants to.
2942# Prefer an explicitly selected file to automatically selected ones.
2943ac_site_file1=NONE
2944ac_site_file2=NONE
2945if test -n "$CONFIG_SITE"; then
2946  # We do not want a PATH search for config.site.
2947  case $CONFIG_SITE in #((
2948    -*)  ac_site_file1=./$CONFIG_SITE;;
2949    */*) ac_site_file1=$CONFIG_SITE;;
2950    *)   ac_site_file1=./$CONFIG_SITE;;
2951  esac
2952elif test "x$prefix" != xNONE; then
2953  ac_site_file1=$prefix/share/config.site
2954  ac_site_file2=$prefix/etc/config.site
2955else
2956  ac_site_file1=$ac_default_prefix/share/config.site
2957  ac_site_file2=$ac_default_prefix/etc/config.site
2958fi
2959for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2960do
2961  test "x$ac_site_file" = xNONE && continue
2962  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2963    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2964$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2965    sed 's/^/| /' "$ac_site_file" >&5
2966    . "$ac_site_file" \
2967      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969as_fn_error $? "failed to load site script $ac_site_file
2970See \`config.log' for more details" "$LINENO" 5; }
2971  fi
2972done
2973
2974if test -r "$cache_file"; then
2975  # Some versions of bash will fail to source /dev/null (special files
2976  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2977  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2978    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2979$as_echo "$as_me: loading cache $cache_file" >&6;}
2980    case $cache_file in
2981      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2982      *)                      . "./$cache_file";;
2983    esac
2984  fi
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2987$as_echo "$as_me: creating cache $cache_file" >&6;}
2988  >$cache_file
2989fi
2990
2991# Check that the precious variables saved in the cache have kept the same
2992# value.
2993ac_cache_corrupted=false
2994for ac_var in $ac_precious_vars; do
2995  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2996  eval ac_new_set=\$ac_env_${ac_var}_set
2997  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2998  eval ac_new_val=\$ac_env_${ac_var}_value
2999  case $ac_old_set,$ac_new_set in
3000    set,)
3001      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3002$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3003      ac_cache_corrupted=: ;;
3004    ,set)
3005      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3006$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3007      ac_cache_corrupted=: ;;
3008    ,);;
3009    *)
3010      if test "x$ac_old_val" != "x$ac_new_val"; then
3011	# differences in whitespace do not lead to failure.
3012	ac_old_val_w=`echo x $ac_old_val`
3013	ac_new_val_w=`echo x $ac_new_val`
3014	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3015	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3016$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3017	  ac_cache_corrupted=:
3018	else
3019	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3020$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3021	  eval $ac_var=\$ac_old_val
3022	fi
3023	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3024$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3025	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3026$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3027      fi;;
3028  esac
3029  # Pass precious variables to config.status.
3030  if test "$ac_new_set" = set; then
3031    case $ac_new_val in
3032    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3033    *) ac_arg=$ac_var=$ac_new_val ;;
3034    esac
3035    case " $ac_configure_args " in
3036      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3037      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3038    esac
3039  fi
3040done
3041if $ac_cache_corrupted; then
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3045$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3046  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3047fi
3048## -------------------- ##
3049## Main body of script. ##
3050## -------------------- ##
3051
3052ac_ext=c
3053ac_cpp='$CPP $CPPFLAGS'
3054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057
3058
3059
3060
3061
3062
3063
3064# using curl-override.m4
3065
3066
3067
3068
3069
3070ac_config_headers="$ac_config_headers lib/curl_config.h"
3071
3072
3073
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3075$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3076    # Check whether --enable-maintainer-mode was given.
3077if test "${enable_maintainer_mode+set}" = set; then :
3078  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3079else
3080  USE_MAINTAINER_MODE=no
3081fi
3082
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3084$as_echo "$USE_MAINTAINER_MODE" >&6; }
3085   if test $USE_MAINTAINER_MODE = yes; then
3086  MAINTAINER_MODE_TRUE=
3087  MAINTAINER_MODE_FALSE='#'
3088else
3089  MAINTAINER_MODE_TRUE='#'
3090  MAINTAINER_MODE_FALSE=
3091fi
3092
3093  MAINT=$MAINTAINER_MODE_TRUE
3094
3095
3096# Check whether --enable-silent-rules was given.
3097if test "${enable_silent_rules+set}" = set; then :
3098  enableval=$enable_silent_rules;
3099fi
3100
3101case $enable_silent_rules in # (((
3102  yes) AM_DEFAULT_VERBOSITY=0;;
3103   no) AM_DEFAULT_VERBOSITY=1;;
3104    *) AM_DEFAULT_VERBOSITY=0;;
3105esac
3106am_make=${MAKE-make}
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3108$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3109if ${am_cv_make_support_nested_variables+:} false; then :
3110  $as_echo_n "(cached) " >&6
3111else
3112  if $as_echo 'TRUE=$(BAR$(V))
3113BAR0=false
3114BAR1=true
3115V=1
3116am__doit:
3117	@$(TRUE)
3118.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3119  am_cv_make_support_nested_variables=yes
3120else
3121  am_cv_make_support_nested_variables=no
3122fi
3123fi
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3125$as_echo "$am_cv_make_support_nested_variables" >&6; }
3126if test $am_cv_make_support_nested_variables = yes; then
3127    AM_V='$(V)'
3128  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3129else
3130  AM_V=$AM_DEFAULT_VERBOSITY
3131  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3132fi
3133AM_BACKSLASH='\'
3134
3135
3136
3137        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3138$as_echo_n "checking whether to enable debug build options... " >&6; }
3139  OPT_DEBUG_BUILD="default"
3140  # Check whether --enable-debug was given.
3141if test "${enable_debug+set}" = set; then :
3142  enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3143fi
3144
3145  case "$OPT_DEBUG_BUILD" in
3146    no)
3147            want_debug="no"
3148      ;;
3149    default)
3150            want_debug="no"
3151      ;;
3152    *)
3153            want_debug="yes"
3154
3155$as_echo "#define DEBUGBUILD 1" >>confdefs.h
3156
3157      ;;
3158  esac
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3160$as_echo "$want_debug" >&6; }
3161
3162
3163      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3164$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3165  OPT_COMPILER_OPTIMIZE="default"
3166  # Check whether --enable-optimize was given.
3167if test "${enable_optimize+set}" = set; then :
3168  enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3169fi
3170
3171  case "$OPT_COMPILER_OPTIMIZE" in
3172    no)
3173                              want_optimize="no"
3174      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175$as_echo "no" >&6; }
3176      ;;
3177    default)
3178                                                                        if test "$want_debug" = "yes"; then
3179        want_optimize="assume_no"
3180        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3181$as_echo "(assumed) no" >&6; }
3182      else
3183        want_optimize="assume_yes"
3184        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3185$as_echo "(assumed) yes" >&6; }
3186      fi
3187      ;;
3188    *)
3189                              want_optimize="yes"
3190      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191$as_echo "yes" >&6; }
3192      ;;
3193  esac
3194
3195
3196        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3197$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3198  OPT_COMPILER_WARNINGS="default"
3199  # Check whether --enable-warnings was given.
3200if test "${enable_warnings+set}" = set; then :
3201  enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3202fi
3203
3204  case "$OPT_COMPILER_WARNINGS" in
3205    no)
3206            want_warnings="no"
3207      ;;
3208    default)
3209                  want_warnings="$want_debug"
3210      ;;
3211    *)
3212            want_warnings="yes"
3213      ;;
3214  esac
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3216$as_echo "$want_warnings" >&6; }
3217
3218
3219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3220$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3221  OPT_COMPILER_WERROR="default"
3222  # Check whether --enable-werror was given.
3223if test "${enable_werror+set}" = set; then :
3224  enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3225fi
3226
3227  case "$OPT_COMPILER_WERROR" in
3228    no)
3229            want_werror="no"
3230      ;;
3231    default)
3232            want_werror="no"
3233      ;;
3234    *)
3235            want_werror="yes"
3236      ;;
3237  esac
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3239$as_echo "$want_werror" >&6; }
3240
3241
3242    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3243$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3244  OPT_CURLDEBUG_BUILD="default"
3245  # Check whether --enable-curldebug was given.
3246if test "${enable_curldebug+set}" = set; then :
3247  enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3248fi
3249
3250  case "$OPT_CURLDEBUG_BUILD" in
3251    no)
3252            want_curldebug="no"
3253      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255      ;;
3256    default)
3257                                          if test "$want_debug" = "yes"; then
3258        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3259$as_echo "(assumed) yes" >&6; }
3260
3261$as_echo "#define CURLDEBUG 1" >>confdefs.h
3262
3263      else
3264        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265$as_echo "no" >&6; }
3266      fi
3267      want_curldebug_assumed="yes"
3268      want_curldebug="$want_debug"
3269      ;;
3270    *)
3271                                                      want_curldebug="yes"
3272
3273$as_echo "#define CURLDEBUG 1" >>confdefs.h
3274
3275      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276$as_echo "yes" >&6; }
3277      ;;
3278  esac
3279
3280
3281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3282$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3283  OPT_SYMBOL_HIDING="default"
3284  # Check whether --enable-symbol-hiding was given.
3285if test "${enable_symbol_hiding+set}" = set; then :
3286  enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3287fi
3288
3289  # Check whether --enable-hidden-symbols was given.
3290if test "${enable_hidden_symbols+set}" = set; then :
3291  enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3292fi
3293
3294  case "$OPT_SYMBOL_HIDING" in
3295    no)
3296                              want_symbol_hiding="no"
3297      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299      ;;
3300    default)
3301                  want_symbol_hiding="yes"
3302      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303$as_echo "yes" >&6; }
3304      ;;
3305    *)
3306                        want_symbol_hiding="yes"
3307      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308$as_echo "yes" >&6; }
3309      ;;
3310  esac
3311
3312
3313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3314$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3315  OPT_ARES="default"
3316  # Check whether --enable-ares was given.
3317if test "${enable_ares+set}" = set; then :
3318  enableval=$enable_ares; OPT_ARES=$enableval
3319fi
3320
3321  case "$OPT_ARES" in
3322    no)
3323            want_ares="no"
3324      ;;
3325    default)
3326            want_ares="no"
3327      ;;
3328    *)
3329            want_ares="yes"
3330      if test -n "$enableval" && test "$enableval" != "yes"; then
3331        want_ares_path="$enableval"
3332      fi
3333      ;;
3334  esac
3335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3336$as_echo "$want_ares" >&6; }
3337
3338
3339    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3340$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3341  OPT_RT="default"
3342  # Check whether --enable-rt was given.
3343if test "${enable_rt+set}" = set; then :
3344  enableval=$enable_rt; OPT_RT=$enableval
3345fi
3346
3347  case "$OPT_RT" in
3348    no)
3349            dontwant_rt="yes"
3350      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351$as_echo "yes" >&6; }
3352      ;;
3353    default)
3354            dontwant_rt="no"
3355      { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3356$as_echo "(assumed no)" >&6; }
3357      ;;
3358    *)
3359            dontwant_rt="no"
3360      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
3362      ;;
3363  esac
3364
3365
3366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3367$as_echo_n "checking whether to enable ECH support... " >&6; }
3368  OPT_ECH="default"
3369  # Check whether --enable-ech was given.
3370if test "${enable_ech+set}" = set; then :
3371  enableval=$enable_ech; OPT_ECH=$enableval
3372fi
3373
3374  case "$OPT_ECH" in
3375    no)
3376            want_ech="no"
3377      curl_ech_msg="no      (--enable-ech)"
3378      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
3380      ;;
3381    default)
3382            want_ech="no"
3383      curl_ech_msg="no      (--enable-ech)"
3384      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386      ;;
3387    *)
3388            want_ech="yes"
3389      curl_ech_msg="enabled (--disable-ech)"
3390      experimental="ech"
3391      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392$as_echo "yes" >&6; }
3393      ;;
3394  esac
3395
3396
3397#
3398# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3399#
3400
3401if test -z "$xc_configure_preamble_result"; then
3402  as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3403fi
3404
3405#
3406# Check that 'PATH_SEPARATOR' has already been set.
3407#
3408
3409if test -z "$xc_PATH_SEPARATOR"; then
3410  as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3411fi
3412if test -z "$PATH_SEPARATOR"; then
3413  as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3416$as_echo_n "checking for path separator... " >&6; }
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3418$as_echo "$PATH_SEPARATOR" >&6; }
3419if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3421$as_echo_n "checking for initial path separator... " >&6; }
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3423$as_echo "$xc_PATH_SEPARATOR" >&6; }
3424  as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3425fi
3426
3427
3428#
3429# save the configure arguments
3430#
3431CONFIGURE_OPTIONS="\"$ac_configure_args\""
3432
3433
3434if test -z "$SED"; then
3435    # Extract the first word of "sed", so it can be a program name with args.
3436set dummy sed; ac_word=$2
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438$as_echo_n "checking for $ac_word... " >&6; }
3439if ${ac_cv_path_SED+:} false; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  case $SED in
3443  [\\/]* | ?:[\\/]*)
3444  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3445  ;;
3446  *)
3447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448as_dummy="$PATH:/usr/bin:/usr/local/bin"
3449for as_dir in $as_dummy
3450do
3451  IFS=$as_save_IFS
3452  test -z "$as_dir" && as_dir=.
3453    for ac_exec_ext in '' $ac_executable_extensions; do
3454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457    break 2
3458  fi
3459done
3460  done
3461IFS=$as_save_IFS
3462
3463  test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3464  ;;
3465esac
3466fi
3467SED=$ac_cv_path_SED
3468if test -n "$SED"; then
3469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3470$as_echo "$SED" >&6; }
3471else
3472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473$as_echo "no" >&6; }
3474fi
3475
3476
3477  if test -z "$SED" || test "$SED" = "not_found"; then
3478    as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3479  fi
3480fi
3481
3482
3483if test -z "$GREP"; then
3484    # Extract the first word of "grep", so it can be a program name with args.
3485set dummy grep; ac_word=$2
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487$as_echo_n "checking for $ac_word... " >&6; }
3488if ${ac_cv_path_GREP+:} false; then :
3489  $as_echo_n "(cached) " >&6
3490else
3491  case $GREP in
3492  [\\/]* | ?:[\\/]*)
3493  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3494  ;;
3495  *)
3496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497as_dummy="$PATH:/usr/bin:/usr/local/bin"
3498for as_dir in $as_dummy
3499do
3500  IFS=$as_save_IFS
3501  test -z "$as_dir" && as_dir=.
3502    for ac_exec_ext in '' $ac_executable_extensions; do
3503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506    break 2
3507  fi
3508done
3509  done
3510IFS=$as_save_IFS
3511
3512  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3513  ;;
3514esac
3515fi
3516GREP=$ac_cv_path_GREP
3517if test -n "$GREP"; then
3518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3519$as_echo "$GREP" >&6; }
3520else
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
3523fi
3524
3525
3526  if test -z "$GREP" || test "$GREP" = "not_found"; then
3527    as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3528  fi
3529fi
3530
3531
3532if test -z "$EGREP"; then
3533    if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3535$as_echo_n "checking for egrep... " >&6; }
3536    EGREP="$GREP -E"
3537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3538$as_echo "$EGREP" >&6; }
3539  else
3540    # Extract the first word of "egrep", so it can be a program name with args.
3541set dummy egrep; ac_word=$2
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543$as_echo_n "checking for $ac_word... " >&6; }
3544if ${ac_cv_path_EGREP+:} false; then :
3545  $as_echo_n "(cached) " >&6
3546else
3547  case $EGREP in
3548  [\\/]* | ?:[\\/]*)
3549  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3550  ;;
3551  *)
3552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553as_dummy="$PATH:/usr/bin:/usr/local/bin"
3554for as_dir in $as_dummy
3555do
3556  IFS=$as_save_IFS
3557  test -z "$as_dir" && as_dir=.
3558    for ac_exec_ext in '' $ac_executable_extensions; do
3559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560    ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562    break 2
3563  fi
3564done
3565  done
3566IFS=$as_save_IFS
3567
3568  test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3569  ;;
3570esac
3571fi
3572EGREP=$ac_cv_path_EGREP
3573if test -n "$EGREP"; then
3574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3575$as_echo "$EGREP" >&6; }
3576else
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578$as_echo "no" >&6; }
3579fi
3580
3581
3582  fi
3583fi
3584if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3585  as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3586fi
3587
3588
3589if test -z "$AR"; then
3590    if test -n "$ac_tool_prefix"; then
3591  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3592set dummy ${ac_tool_prefix}ar; ac_word=$2
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594$as_echo_n "checking for $ac_word... " >&6; }
3595if ${ac_cv_path_AR+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  case $AR in
3599  [\\/]* | ?:[\\/]*)
3600  ac_cv_path_AR="$AR" # Let the user override the test with a path.
3601  ;;
3602  *)
3603  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604as_dummy="$PATH:/usr/bin:/usr/local/bin"
3605for as_dir in $as_dummy
3606do
3607  IFS=$as_save_IFS
3608  test -z "$as_dir" && as_dir=.
3609    for ac_exec_ext in '' $ac_executable_extensions; do
3610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613    break 2
3614  fi
3615done
3616  done
3617IFS=$as_save_IFS
3618
3619  ;;
3620esac
3621fi
3622AR=$ac_cv_path_AR
3623if test -n "$AR"; then
3624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3625$as_echo "$AR" >&6; }
3626else
3627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628$as_echo "no" >&6; }
3629fi
3630
3631
3632fi
3633if test -z "$ac_cv_path_AR"; then
3634  ac_pt_AR=$AR
3635  # Extract the first word of "ar", so it can be a program name with args.
3636set dummy ar; ac_word=$2
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638$as_echo_n "checking for $ac_word... " >&6; }
3639if ${ac_cv_path_ac_pt_AR+:} false; then :
3640  $as_echo_n "(cached) " >&6
3641else
3642  case $ac_pt_AR in
3643  [\\/]* | ?:[\\/]*)
3644  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3645  ;;
3646  *)
3647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648as_dummy="$PATH:/usr/bin:/usr/local/bin"
3649for as_dir in $as_dummy
3650do
3651  IFS=$as_save_IFS
3652  test -z "$as_dir" && as_dir=.
3653    for ac_exec_ext in '' $ac_executable_extensions; do
3654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657    break 2
3658  fi
3659done
3660  done
3661IFS=$as_save_IFS
3662
3663  ;;
3664esac
3665fi
3666ac_pt_AR=$ac_cv_path_ac_pt_AR
3667if test -n "$ac_pt_AR"; then
3668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3669$as_echo "$ac_pt_AR" >&6; }
3670else
3671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672$as_echo "no" >&6; }
3673fi
3674
3675  if test "x$ac_pt_AR" = x; then
3676    AR="not_found"
3677  else
3678    case $cross_compiling:$ac_tool_warned in
3679yes:)
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3682ac_tool_warned=yes ;;
3683esac
3684    AR=$ac_pt_AR
3685  fi
3686else
3687  AR="$ac_cv_path_AR"
3688fi
3689
3690  if test -z "$AR" || test "$AR" = "not_found"; then
3691    as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3692  fi
3693fi
3694
3695
3696
3697
3698CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3699
3700  xc_prog_cc_prev_IFS=$IFS
3701  xc_prog_cc_prev_LIBS=$LIBS
3702  xc_prog_cc_prev_CFLAGS=$CFLAGS
3703  xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3704  xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3705
3706
3707
3708  xc_bad_var_libs=no
3709  for xc_word in $LIBS; do
3710    case "$xc_word" in
3711      -l* | --library=*)
3712        :
3713        ;;
3714      *)
3715        xc_bad_var_libs=yes
3716        ;;
3717    esac
3718  done
3719  if test $xc_bad_var_libs = yes; then
3720    { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3721$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3722    { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3723$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3724  fi
3725
3726
3727  xc_bad_var_ldflags=no
3728  for xc_word in $LDFLAGS; do
3729    case "$xc_word" in
3730      -D*)
3731        xc_bad_var_ldflags=yes
3732        ;;
3733      -U*)
3734        xc_bad_var_ldflags=yes
3735        ;;
3736      -I*)
3737        xc_bad_var_ldflags=yes
3738        ;;
3739      -l* | --library=*)
3740        xc_bad_var_ldflags=yes
3741        ;;
3742    esac
3743  done
3744  if test $xc_bad_var_ldflags = yes; then
3745    { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3746$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3747    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3748    for xc_word in $LDFLAGS; do
3749      case "$xc_word" in
3750        -D*)
3751          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3752$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3753          ;;
3754        -U*)
3755          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3756$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3757          ;;
3758        -I*)
3759          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3760$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3761          ;;
3762        -l* | --library=*)
3763          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3764$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3765          ;;
3766      esac
3767    done
3768  fi
3769
3770
3771  xc_bad_var_cppflags=no
3772  for xc_word in $CPPFLAGS; do
3773    case "$xc_word" in
3774      -rpath*)
3775        xc_bad_var_cppflags=yes
3776        ;;
3777      -L* | --library-path=*)
3778        xc_bad_var_cppflags=yes
3779        ;;
3780      -l* | --library=*)
3781        xc_bad_var_cppflags=yes
3782        ;;
3783    esac
3784  done
3785  if test $xc_bad_var_cppflags = yes; then
3786    { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3787$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3788    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3789    for xc_word in $CPPFLAGS; do
3790      case "$xc_word" in
3791        -rpath*)
3792          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3793$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3794          ;;
3795        -L* | --library-path=*)
3796          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3797$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3798          ;;
3799        -l* | --library=*)
3800          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3801$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3802          ;;
3803      esac
3804    done
3805  fi
3806
3807
3808  xc_bad_var_cflags=no
3809  for xc_word in $CFLAGS; do
3810    case "$xc_word" in
3811      -D*)
3812        xc_bad_var_cflags=yes
3813        ;;
3814      -U*)
3815        xc_bad_var_cflags=yes
3816        ;;
3817      -I*)
3818        xc_bad_var_cflags=yes
3819        ;;
3820      -rpath*)
3821        xc_bad_var_cflags=yes
3822        ;;
3823      -L* | --library-path=*)
3824        xc_bad_var_cflags=yes
3825        ;;
3826      -l* | --library=*)
3827        xc_bad_var_cflags=yes
3828        ;;
3829    esac
3830  done
3831  if test $xc_bad_var_cflags = yes; then
3832    { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3833$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3834    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3835    for xc_word in $CFLAGS; do
3836      case "$xc_word" in
3837        -D*)
3838          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3839$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3840          ;;
3841        -U*)
3842          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3843$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3844          ;;
3845        -I*)
3846          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3847$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3848          ;;
3849        -rpath*)
3850          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3851$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3852          ;;
3853        -L* | --library-path=*)
3854          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3855$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3856          ;;
3857        -l* | --library=*)
3858          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3859$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3860          ;;
3861      esac
3862    done
3863  fi
3864
3865  if test $xc_bad_var_libs = yes ||
3866     test $xc_bad_var_cflags = yes ||
3867     test $xc_bad_var_ldflags = yes ||
3868     test $xc_bad_var_cppflags = yes; then
3869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3870$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3871  fi
3872
3873ac_aux_dir=
3874for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3875  if test -f "$ac_dir/install-sh"; then
3876    ac_aux_dir=$ac_dir
3877    ac_install_sh="$ac_aux_dir/install-sh -c"
3878    break
3879  elif test -f "$ac_dir/install.sh"; then
3880    ac_aux_dir=$ac_dir
3881    ac_install_sh="$ac_aux_dir/install.sh -c"
3882    break
3883  elif test -f "$ac_dir/shtool"; then
3884    ac_aux_dir=$ac_dir
3885    ac_install_sh="$ac_aux_dir/shtool install -c"
3886    break
3887  fi
3888done
3889if test -z "$ac_aux_dir"; then
3890  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3891fi
3892
3893# These three variables are undocumented and unsupported,
3894# and are intended to be withdrawn in a future Autoconf release.
3895# They can cause serious problems if a builder's source tree is in a directory
3896# whose full name contains unusual characters.
3897ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3898ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3899ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3900
3901
3902# Find a good install program.  We prefer a C program (faster),
3903# so one script is as good as another.  But avoid the broken or
3904# incompatible versions:
3905# SysV /etc/install, /usr/sbin/install
3906# SunOS /usr/etc/install
3907# IRIX /sbin/install
3908# AIX /bin/install
3909# AmigaOS /C/install, which installs bootblocks on floppy discs
3910# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3911# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3912# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3913# OS/2's system install, which has a completely different semantic
3914# ./install, which can be erroneously created by make from ./install.sh.
3915# Reject install programs that cannot install multiple files.
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3917$as_echo_n "checking for a BSD-compatible install... " >&6; }
3918if test -z "$INSTALL"; then
3919if ${ac_cv_path_install+:} false; then :
3920  $as_echo_n "(cached) " >&6
3921else
3922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925  IFS=$as_save_IFS
3926  test -z "$as_dir" && as_dir=.
3927    # Account for people who put trailing slashes in PATH elements.
3928case $as_dir/ in #((
3929  ./ | .// | /[cC]/* | \
3930  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3931  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3932  /usr/ucb/* ) ;;
3933  *)
3934    # OSF1 and SCO ODT 3.0 have their own names for install.
3935    # Don't use installbsd from OSF since it installs stuff as root
3936    # by default.
3937    for ac_prog in ginstall scoinst install; do
3938      for ac_exec_ext in '' $ac_executable_extensions; do
3939	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3940	  if test $ac_prog = install &&
3941	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3942	    # AIX install.  It has an incompatible calling convention.
3943	    :
3944	  elif test $ac_prog = install &&
3945	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3946	    # program-specific install script used by HP pwplus--don't use.
3947	    :
3948	  else
3949	    rm -rf conftest.one conftest.two conftest.dir
3950	    echo one > conftest.one
3951	    echo two > conftest.two
3952	    mkdir conftest.dir
3953	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3954	      test -s conftest.one && test -s conftest.two &&
3955	      test -s conftest.dir/conftest.one &&
3956	      test -s conftest.dir/conftest.two
3957	    then
3958	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3959	      break 3
3960	    fi
3961	  fi
3962	fi
3963      done
3964    done
3965    ;;
3966esac
3967
3968  done
3969IFS=$as_save_IFS
3970
3971rm -rf conftest.one conftest.two conftest.dir
3972
3973fi
3974  if test "${ac_cv_path_install+set}" = set; then
3975    INSTALL=$ac_cv_path_install
3976  else
3977    # As a last resort, use the slow shell script.  Don't cache a
3978    # value for INSTALL within a source directory, because that will
3979    # break other packages using the cache if that directory is
3980    # removed, or if the value is a relative name.
3981    INSTALL=$ac_install_sh
3982  fi
3983fi
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3985$as_echo "$INSTALL" >&6; }
3986
3987# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3988# It thinks the first close brace ends the variable substitution.
3989test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3990
3991test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3992
3993test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3994
3995# Expand $ac_aux_dir to an absolute path.
3996am_aux_dir=`cd "$ac_aux_dir" && pwd`
3997
3998ac_ext=c
3999ac_cpp='$CPP $CPPFLAGS'
4000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003if test -n "$ac_tool_prefix"; then
4004  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4005set dummy ${ac_tool_prefix}gcc; ac_word=$2
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
4008if ${ac_cv_prog_CC+:} false; then :
4009  $as_echo_n "(cached) " >&6
4010else
4011  if test -n "$CC"; then
4012  ac_cv_prog_CC="$CC" # Let the user override the test.
4013else
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017  IFS=$as_save_IFS
4018  test -z "$as_dir" && as_dir=.
4019    for ac_exec_ext in '' $ac_executable_extensions; do
4020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023    break 2
4024  fi
4025done
4026  done
4027IFS=$as_save_IFS
4028
4029fi
4030fi
4031CC=$ac_cv_prog_CC
4032if test -n "$CC"; then
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034$as_echo "$CC" >&6; }
4035else
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
4038fi
4039
4040
4041fi
4042if test -z "$ac_cv_prog_CC"; then
4043  ac_ct_CC=$CC
4044  # Extract the first word of "gcc", so it can be a program name with args.
4045set dummy gcc; ac_word=$2
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047$as_echo_n "checking for $ac_word... " >&6; }
4048if ${ac_cv_prog_ac_ct_CC+:} false; then :
4049  $as_echo_n "(cached) " >&6
4050else
4051  if test -n "$ac_ct_CC"; then
4052  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4053else
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057  IFS=$as_save_IFS
4058  test -z "$as_dir" && as_dir=.
4059    for ac_exec_ext in '' $ac_executable_extensions; do
4060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061    ac_cv_prog_ac_ct_CC="gcc"
4062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063    break 2
4064  fi
4065done
4066  done
4067IFS=$as_save_IFS
4068
4069fi
4070fi
4071ac_ct_CC=$ac_cv_prog_ac_ct_CC
4072if test -n "$ac_ct_CC"; then
4073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4074$as_echo "$ac_ct_CC" >&6; }
4075else
4076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077$as_echo "no" >&6; }
4078fi
4079
4080  if test "x$ac_ct_CC" = x; then
4081    CC=""
4082  else
4083    case $cross_compiling:$ac_tool_warned in
4084yes:)
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4087ac_tool_warned=yes ;;
4088esac
4089    CC=$ac_ct_CC
4090  fi
4091else
4092  CC="$ac_cv_prog_CC"
4093fi
4094
4095if test -z "$CC"; then
4096          if test -n "$ac_tool_prefix"; then
4097    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4098set dummy ${ac_tool_prefix}cc; ac_word=$2
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100$as_echo_n "checking for $ac_word... " >&6; }
4101if ${ac_cv_prog_CC+:} false; then :
4102  $as_echo_n "(cached) " >&6
4103else
4104  if test -n "$CC"; then
4105  ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110  IFS=$as_save_IFS
4111  test -z "$as_dir" && as_dir=.
4112    for ac_exec_ext in '' $ac_executable_extensions; do
4113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114    ac_cv_prog_CC="${ac_tool_prefix}cc"
4115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116    break 2
4117  fi
4118done
4119  done
4120IFS=$as_save_IFS
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
4126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127$as_echo "$CC" >&6; }
4128else
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
4131fi
4132
4133
4134  fi
4135fi
4136if test -z "$CC"; then
4137  # Extract the first word of "cc", so it can be a program name with args.
4138set dummy cc; ac_word=$2
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140$as_echo_n "checking for $ac_word... " >&6; }
4141if ${ac_cv_prog_CC+:} false; then :
4142  $as_echo_n "(cached) " >&6
4143else
4144  if test -n "$CC"; then
4145  ac_cv_prog_CC="$CC" # Let the user override the test.
4146else
4147  ac_prog_rejected=no
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151  IFS=$as_save_IFS
4152  test -z "$as_dir" && as_dir=.
4153    for ac_exec_ext in '' $ac_executable_extensions; do
4154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4156       ac_prog_rejected=yes
4157       continue
4158     fi
4159    ac_cv_prog_CC="cc"
4160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161    break 2
4162  fi
4163done
4164  done
4165IFS=$as_save_IFS
4166
4167if test $ac_prog_rejected = yes; then
4168  # We found a bogon in the path, so make sure we never use it.
4169  set dummy $ac_cv_prog_CC
4170  shift
4171  if test $# != 0; then
4172    # We chose a different compiler from the bogus one.
4173    # However, it has the same basename, so the bogon will be chosen
4174    # first if we set CC to just the basename; use the full file name.
4175    shift
4176    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4177  fi
4178fi
4179fi
4180fi
4181CC=$ac_cv_prog_CC
4182if test -n "$CC"; then
4183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4184$as_echo "$CC" >&6; }
4185else
4186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187$as_echo "no" >&6; }
4188fi
4189
4190
4191fi
4192if test -z "$CC"; then
4193  if test -n "$ac_tool_prefix"; then
4194  for ac_prog in cl.exe
4195  do
4196    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199$as_echo_n "checking for $ac_word... " >&6; }
4200if ${ac_cv_prog_CC+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  if test -n "$CC"; then
4204  ac_cv_prog_CC="$CC" # Let the user override the test.
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211    for ac_exec_ext in '' $ac_executable_extensions; do
4212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215    break 2
4216  fi
4217done
4218  done
4219IFS=$as_save_IFS
4220
4221fi
4222fi
4223CC=$ac_cv_prog_CC
4224if test -n "$CC"; then
4225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226$as_echo "$CC" >&6; }
4227else
4228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
4230fi
4231
4232
4233    test -n "$CC" && break
4234  done
4235fi
4236if test -z "$CC"; then
4237  ac_ct_CC=$CC
4238  for ac_prog in cl.exe
4239do
4240  # Extract the first word of "$ac_prog", so it can be a program name with args.
4241set dummy $ac_prog; ac_word=$2
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243$as_echo_n "checking for $ac_word... " >&6; }
4244if ${ac_cv_prog_ac_ct_CC+:} false; then :
4245  $as_echo_n "(cached) " >&6
4246else
4247  if test -n "$ac_ct_CC"; then
4248  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253  IFS=$as_save_IFS
4254  test -z "$as_dir" && as_dir=.
4255    for ac_exec_ext in '' $ac_executable_extensions; do
4256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257    ac_cv_prog_ac_ct_CC="$ac_prog"
4258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259    break 2
4260  fi
4261done
4262  done
4263IFS=$as_save_IFS
4264
4265fi
4266fi
4267ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268if test -n "$ac_ct_CC"; then
4269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4270$as_echo "$ac_ct_CC" >&6; }
4271else
4272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273$as_echo "no" >&6; }
4274fi
4275
4276
4277  test -n "$ac_ct_CC" && break
4278done
4279
4280  if test "x$ac_ct_CC" = x; then
4281    CC=""
4282  else
4283    case $cross_compiling:$ac_tool_warned in
4284yes:)
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287ac_tool_warned=yes ;;
4288esac
4289    CC=$ac_ct_CC
4290  fi
4291fi
4292
4293fi
4294
4295
4296test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4298as_fn_error $? "no acceptable C compiler found in \$PATH
4299See \`config.log' for more details" "$LINENO" 5; }
4300
4301# Provide some information about the compiler.
4302$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4303set X $ac_compile
4304ac_compiler=$2
4305for ac_option in --version -v -V -qversion; do
4306  { { ac_try="$ac_compiler $ac_option >&5"
4307case "(($ac_try" in
4308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309  *) ac_try_echo=$ac_try;;
4310esac
4311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312$as_echo "$ac_try_echo"; } >&5
4313  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4314  ac_status=$?
4315  if test -s conftest.err; then
4316    sed '10a\
4317... rest of stderr output deleted ...
4318         10q' conftest.err >conftest.er1
4319    cat conftest.er1 >&5
4320  fi
4321  rm -f conftest.er1 conftest.err
4322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323  test $ac_status = 0; }
4324done
4325
4326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h.  */
4328
4329int main (void)
4330{
4331
4332 ;
4333 return 0;
4334}
4335_ACEOF
4336ac_clean_files_save=$ac_clean_files
4337ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4338# Try to create an executable without -o first, disregard a.out.
4339# It will help us diagnose broken compilers, and finding out an intuition
4340# of exeext.
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4342$as_echo_n "checking whether the C compiler works... " >&6; }
4343ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4344
4345# The possible output files:
4346ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4347
4348ac_rmfiles=
4349for ac_file in $ac_files
4350do
4351  case $ac_file in
4352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4353    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4354  esac
4355done
4356rm -f $ac_rmfiles
4357
4358if { { ac_try="$ac_link_default"
4359case "(($ac_try" in
4360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361  *) ac_try_echo=$ac_try;;
4362esac
4363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364$as_echo "$ac_try_echo"; } >&5
4365  (eval "$ac_link_default") 2>&5
4366  ac_status=$?
4367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368  test $ac_status = 0; }; then :
4369  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4370# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4371# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4372# so that the user can short-circuit this test for compilers unknown to
4373# Autoconf.
4374for ac_file in $ac_files ''
4375do
4376  test -f "$ac_file" || continue
4377  case $ac_file in
4378    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4379	;;
4380    [ab].out )
4381	# We found the default executable, but exeext='' is most
4382	# certainly right.
4383	break;;
4384    *.* )
4385	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4386	then :; else
4387	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388	fi
4389	# We set ac_cv_exeext here because the later test for it is not
4390	# safe: cross compilers may not add the suffix if given an `-o'
4391	# argument, so we may need to know it at that point already.
4392	# Even if this section looks crufty: it has the advantage of
4393	# actually working.
4394	break;;
4395    * )
4396	break;;
4397  esac
4398done
4399test "$ac_cv_exeext" = no && ac_cv_exeext=
4400
4401else
4402  ac_file=''
4403fi
4404if test -z "$ac_file"; then :
4405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406$as_echo "no" >&6; }
4407$as_echo "$as_me: failed program was:" >&5
4408sed 's/^/| /' conftest.$ac_ext >&5
4409
4410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412as_fn_error 77 "C compiler cannot create executables
4413See \`config.log' for more details" "$LINENO" 5; }
4414else
4415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4416$as_echo "yes" >&6; }
4417fi
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4419$as_echo_n "checking for C compiler default output file name... " >&6; }
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4421$as_echo "$ac_file" >&6; }
4422ac_exeext=$ac_cv_exeext
4423
4424rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4425ac_clean_files=$ac_clean_files_save
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4427$as_echo_n "checking for suffix of executables... " >&6; }
4428if { { ac_try="$ac_link"
4429case "(($ac_try" in
4430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431  *) ac_try_echo=$ac_try;;
4432esac
4433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434$as_echo "$ac_try_echo"; } >&5
4435  (eval "$ac_link") 2>&5
4436  ac_status=$?
4437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438  test $ac_status = 0; }; then :
4439  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4440# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4441# work properly (i.e., refer to `conftest.exe'), while it won't with
4442# `rm'.
4443for ac_file in conftest.exe conftest conftest.*; do
4444  test -f "$ac_file" || continue
4445  case $ac_file in
4446    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4448	  break;;
4449    * ) break;;
4450  esac
4451done
4452else
4453  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4456See \`config.log' for more details" "$LINENO" 5; }
4457fi
4458rm -f conftest conftest$ac_cv_exeext
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4460$as_echo "$ac_cv_exeext" >&6; }
4461
4462rm -f conftest.$ac_ext
4463EXEEXT=$ac_cv_exeext
4464ac_exeext=$EXEEXT
4465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466/* end confdefs.h.  */
4467#include <stdio.h>
4468int main (void)
4469{
4470FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
4477ac_clean_files="$ac_clean_files conftest.out"
4478# Check that the compiler produces executables we can run.  If not, either
4479# the compiler is broken, or we cross compile.
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481$as_echo_n "checking whether we are cross compiling... " >&6; }
4482if test "$cross_compiling" != yes; then
4483  { { ac_try="$ac_link"
4484case "(($ac_try" in
4485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486  *) ac_try_echo=$ac_try;;
4487esac
4488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489$as_echo "$ac_try_echo"; } >&5
4490  (eval "$ac_link") 2>&5
4491  ac_status=$?
4492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493  test $ac_status = 0; }
4494  if { ac_try='./conftest$ac_cv_exeext'
4495  { { case "(($ac_try" in
4496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497  *) ac_try_echo=$ac_try;;
4498esac
4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500$as_echo "$ac_try_echo"; } >&5
4501  (eval "$ac_try") 2>&5
4502  ac_status=$?
4503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504  test $ac_status = 0; }; }; then
4505    cross_compiling=no
4506  else
4507    if test "$cross_compiling" = maybe; then
4508	cross_compiling=yes
4509    else
4510	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512as_fn_error $? "cannot run C compiled programs.
4513If you meant to cross compile, use \`--host'.
4514See \`config.log' for more details" "$LINENO" 5; }
4515    fi
4516  fi
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519$as_echo "$cross_compiling" >&6; }
4520
4521rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4522ac_clean_files=$ac_clean_files_save
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524$as_echo_n "checking for suffix of object files... " >&6; }
4525if ${ac_cv_objext+:} false; then :
4526  $as_echo_n "(cached) " >&6
4527else
4528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529/* end confdefs.h.  */
4530
4531int main (void)
4532{
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538rm -f conftest.o conftest.obj
4539if { { ac_try="$ac_compile"
4540case "(($ac_try" in
4541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542  *) ac_try_echo=$ac_try;;
4543esac
4544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545$as_echo "$ac_try_echo"; } >&5
4546  (eval "$ac_compile") 2>&5
4547  ac_status=$?
4548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549  test $ac_status = 0; }; then :
4550  for ac_file in conftest.o conftest.obj conftest.*; do
4551  test -f "$ac_file" || continue;
4552  case $ac_file in
4553    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4554    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4555       break;;
4556  esac
4557done
4558else
4559  $as_echo "$as_me: failed program was:" >&5
4560sed 's/^/| /' conftest.$ac_ext >&5
4561
4562{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4564as_fn_error $? "cannot compute suffix of object files: cannot compile
4565See \`config.log' for more details" "$LINENO" 5; }
4566fi
4567rm -f conftest.$ac_cv_objext conftest.$ac_ext
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4570$as_echo "$ac_cv_objext" >&6; }
4571OBJEXT=$ac_cv_objext
4572ac_objext=$OBJEXT
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4574$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4575if ${ac_cv_c_compiler_gnu+:} false; then :
4576  $as_echo_n "(cached) " >&6
4577else
4578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h.  */
4580
4581int main (void)
4582{
4583#ifndef __GNUC__
4584       choke me
4585#endif
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591if ac_fn_c_try_compile "$LINENO"; then :
4592  ac_compiler_gnu=yes
4593else
4594  ac_compiler_gnu=no
4595fi
4596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597ac_cv_c_compiler_gnu=$ac_compiler_gnu
4598
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4601$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4602if test $ac_compiler_gnu = yes; then
4603  GCC=yes
4604else
4605  GCC=
4606fi
4607ac_test_CFLAGS=${CFLAGS+set}
4608ac_save_CFLAGS=$CFLAGS
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4610$as_echo_n "checking whether $CC accepts -g... " >&6; }
4611if ${ac_cv_prog_cc_g+:} false; then :
4612  $as_echo_n "(cached) " >&6
4613else
4614  ac_save_c_werror_flag=$ac_c_werror_flag
4615   ac_c_werror_flag=yes
4616   ac_cv_prog_cc_g=no
4617   CFLAGS="-g"
4618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h.  */
4620
4621int main (void)
4622{
4623
4624 ;
4625 return 0;
4626}
4627_ACEOF
4628if ac_fn_c_try_compile "$LINENO"; then :
4629  ac_cv_prog_cc_g=yes
4630else
4631  CFLAGS=""
4632      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h.  */
4634
4635int main (void)
4636{
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642if ac_fn_c_try_compile "$LINENO"; then :
4643
4644else
4645  ac_c_werror_flag=$ac_save_c_werror_flag
4646	 CFLAGS="-g"
4647	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h.  */
4649
4650int main (void)
4651{
4652
4653 ;
4654 return 0;
4655}
4656_ACEOF
4657if ac_fn_c_try_compile "$LINENO"; then :
4658  ac_cv_prog_cc_g=yes
4659fi
4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661fi
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665   ac_c_werror_flag=$ac_save_c_werror_flag
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4668$as_echo "$ac_cv_prog_cc_g" >&6; }
4669if test "$ac_test_CFLAGS" = set; then
4670  CFLAGS=$ac_save_CFLAGS
4671elif test $ac_cv_prog_cc_g = yes; then
4672  if test "$GCC" = yes; then
4673    CFLAGS="-g -O2"
4674  else
4675    CFLAGS="-g"
4676  fi
4677else
4678  if test "$GCC" = yes; then
4679    CFLAGS="-O2"
4680  else
4681    CFLAGS=
4682  fi
4683fi
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4685$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4686if ${ac_cv_prog_cc_c89+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  ac_cv_prog_cc_c89=no
4690ac_save_CC=$CC
4691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h.  */
4693#include <stdarg.h>
4694#include <stdio.h>
4695struct stat;
4696/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4697struct buf { int x; };
4698FILE * (*rcsopen) (struct buf *, struct stat *, int);
4699static char *e (p, i)
4700     char **p;
4701     int i;
4702{
4703  return p[i];
4704}
4705static char *f (char * (*g) (char **, int), char **p, ...)
4706{
4707  char *s;
4708  va_list v;
4709  va_start (v,p);
4710  s = g (p, va_arg (v,int));
4711  va_end (v);
4712  return s;
4713}
4714
4715/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4716   function prototypes and stuff, but not '\xHH' hex character constants.
4717   These don't provoke an error unfortunately, instead are silently treated
4718   as 'x'.  The following induces an error, until -std is added to get
4719   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4720   array size at least.  It's necessary to write '\x00'==0 to get something
4721   that's true only with -std.  */
4722int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4723
4724/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4725   inside strings and character constants.  */
4726#define FOO(x) 'x'
4727int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4728
4729int test (int i, double x);
4730struct s1 {int (*f) (int a);};
4731struct s2 {int (*f) (double a);};
4732int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4733int argc;
4734char **argv;
4735int main (void)
4736{
4737return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4743	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4744do
4745  CC="$ac_save_CC $ac_arg"
4746  if ac_fn_c_try_compile "$LINENO"; then :
4747  ac_cv_prog_cc_c89=$ac_arg
4748fi
4749rm -f core conftest.err conftest.$ac_objext
4750  test "x$ac_cv_prog_cc_c89" != "xno" && break
4751done
4752rm -f conftest.$ac_ext
4753CC=$ac_save_CC
4754
4755fi
4756# AC_CACHE_VAL
4757case "x$ac_cv_prog_cc_c89" in
4758  x)
4759    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4760$as_echo "none needed" >&6; } ;;
4761  xno)
4762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4763$as_echo "unsupported" >&6; } ;;
4764  *)
4765    CC="$CC $ac_cv_prog_cc_c89"
4766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4768esac
4769if test "x$ac_cv_prog_cc_c89" != xno; then :
4770
4771fi
4772
4773ac_ext=c
4774ac_cpp='$CPP $CPPFLAGS'
4775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778
4779ac_ext=c
4780ac_cpp='$CPP $CPPFLAGS'
4781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4785$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4786if ${am_cv_prog_cc_c_o+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h.  */
4791
4792int main (void)
4793{
4794
4795 ;
4796 return 0;
4797}
4798_ACEOF
4799  # Make sure it works both with $CC and with simple cc.
4800  # Following AC_PROG_CC_C_O, we do the test twice because some
4801  # compilers refuse to overwrite an existing .o file with -o,
4802  # though they will create one.
4803  am_cv_prog_cc_c_o=yes
4804  for am_i in 1 2; do
4805    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4806   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); } \
4810         && test -f conftest2.$ac_objext; then
4811      : OK
4812    else
4813      am_cv_prog_cc_c_o=no
4814      break
4815    fi
4816  done
4817  rm -f core conftest*
4818  unset am_i
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4821$as_echo "$am_cv_prog_cc_c_o" >&6; }
4822if test "$am_cv_prog_cc_c_o" != yes; then
4823   # Losing compiler, so override with the script.
4824   # FIXME: It is wrong to rewrite CC.
4825   # But if we don't then we get into trouble of one sort or another.
4826   # A longer-term fix would be to have automake use am__CC in this case,
4827   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4828   CC="$am_aux_dir/compile $CC"
4829fi
4830ac_ext=c
4831ac_cpp='$CPP $CPPFLAGS'
4832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835
4836
4837
4838ac_ext=c
4839ac_cpp='$CPP $CPPFLAGS'
4840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4844$as_echo_n "checking how to run the C preprocessor... " >&6; }
4845# On Suns, sometimes $CPP names a directory.
4846if test -n "$CPP" && test -d "$CPP"; then
4847  CPP=
4848fi
4849if test -z "$CPP"; then
4850  if ${ac_cv_prog_CPP+:} false; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853      # Double quotes because CPP needs to be expanded
4854    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4855    do
4856      ac_preproc_ok=false
4857for ac_c_preproc_warn_flag in '' yes
4858do
4859  # Use a header file that comes with gcc, so configuring glibc
4860  # with a fresh cross-compiler works.
4861  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862  # <limits.h> exists even on freestanding compilers.
4863  # On the NeXT, cc -E runs the code through the compiler's parser,
4864  # not just through cpp. "Syntax error" is here to catch this case.
4865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866/* end confdefs.h.  */
4867#ifdef __STDC__
4868# include <limits.h>
4869#else
4870# include <assert.h>
4871#endif
4872		     Syntax error
4873_ACEOF
4874if ac_fn_c_try_cpp "$LINENO"; then :
4875
4876else
4877  # Broken: fails on valid input.
4878continue
4879fi
4880rm -f conftest.err conftest.i conftest.$ac_ext
4881
4882  # OK, works on sane cases.  Now check whether nonexistent headers
4883  # can be detected and how.
4884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h.  */
4886#include <ac_nonexistent.h>
4887_ACEOF
4888if ac_fn_c_try_cpp "$LINENO"; then :
4889  # Broken: success on invalid input.
4890continue
4891else
4892  # Passes both tests.
4893ac_preproc_ok=:
4894break
4895fi
4896rm -f conftest.err conftest.i conftest.$ac_ext
4897
4898done
4899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900rm -f conftest.i conftest.err conftest.$ac_ext
4901if $ac_preproc_ok; then :
4902  break
4903fi
4904
4905    done
4906    ac_cv_prog_CPP=$CPP
4907
4908fi
4909  CPP=$ac_cv_prog_CPP
4910else
4911  ac_cv_prog_CPP=$CPP
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4914$as_echo "$CPP" >&6; }
4915ac_preproc_ok=false
4916for ac_c_preproc_warn_flag in '' yes
4917do
4918  # Use a header file that comes with gcc, so configuring glibc
4919  # with a fresh cross-compiler works.
4920  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921  # <limits.h> exists even on freestanding compilers.
4922  # On the NeXT, cc -E runs the code through the compiler's parser,
4923  # not just through cpp. "Syntax error" is here to catch this case.
4924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h.  */
4926#ifdef __STDC__
4927# include <limits.h>
4928#else
4929# include <assert.h>
4930#endif
4931		     Syntax error
4932_ACEOF
4933if ac_fn_c_try_cpp "$LINENO"; then :
4934
4935else
4936  # Broken: fails on valid input.
4937continue
4938fi
4939rm -f conftest.err conftest.i conftest.$ac_ext
4940
4941  # OK, works on sane cases.  Now check whether nonexistent headers
4942  # can be detected and how.
4943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h.  */
4945#include <ac_nonexistent.h>
4946_ACEOF
4947if ac_fn_c_try_cpp "$LINENO"; then :
4948  # Broken: success on invalid input.
4949continue
4950else
4951  # Passes both tests.
4952ac_preproc_ok=:
4953break
4954fi
4955rm -f conftest.err conftest.i conftest.$ac_ext
4956
4957done
4958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959rm -f conftest.i conftest.err conftest.$ac_ext
4960if $ac_preproc_ok; then :
4961
4962else
4963  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4966See \`config.log' for more details" "$LINENO" 5; }
4967fi
4968
4969ac_ext=c
4970ac_cpp='$CPP $CPPFLAGS'
4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974
4975
4976  IFS=$xc_prog_cc_prev_IFS
4977  LIBS=$xc_prog_cc_prev_LIBS
4978  CFLAGS=$xc_prog_cc_prev_CFLAGS
4979  LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4980  CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4981
4982
4983
4984
4985
4986
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4988$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4989if ${ac_cv_path_SED+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4993     for ac_i in 1 2 3 4 5 6 7; do
4994       ac_script="$ac_script$as_nl$ac_script"
4995     done
4996     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4997     { ac_script=; unset ac_script;}
4998     if test -z "$SED"; then
4999  ac_path_SED_found=false
5000  # Loop through the user's path and test for each of PROGNAME-LIST
5001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002for as_dir in $PATH
5003do
5004  IFS=$as_save_IFS
5005  test -z "$as_dir" && as_dir=.
5006    for ac_prog in sed gsed; do
5007    for ac_exec_ext in '' $ac_executable_extensions; do
5008      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5009      as_fn_executable_p "$ac_path_SED" || continue
5010# Check for GNU ac_path_SED and select it if it is found.
5011  # Check for GNU $ac_path_SED
5012case `"$ac_path_SED" --version 2>&1` in
5013*GNU*)
5014  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5015*)
5016  ac_count=0
5017  $as_echo_n 0123456789 >"conftest.in"
5018  while :
5019  do
5020    cat "conftest.in" "conftest.in" >"conftest.tmp"
5021    mv "conftest.tmp" "conftest.in"
5022    cp "conftest.in" "conftest.nl"
5023    $as_echo '' >> "conftest.nl"
5024    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5025    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5026    as_fn_arith $ac_count + 1 && ac_count=$as_val
5027    if test $ac_count -gt ${ac_path_SED_max-0}; then
5028      # Best one so far, save it but keep looking for a better one
5029      ac_cv_path_SED="$ac_path_SED"
5030      ac_path_SED_max=$ac_count
5031    fi
5032    # 10*(2^10) chars as input seems more than enough
5033    test $ac_count -gt 10 && break
5034  done
5035  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5036esac
5037
5038      $ac_path_SED_found && break 3
5039    done
5040  done
5041  done
5042IFS=$as_save_IFS
5043  if test -z "$ac_cv_path_SED"; then
5044    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5045  fi
5046else
5047  ac_cv_path_SED=$SED
5048fi
5049
5050fi
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5052$as_echo "$ac_cv_path_SED" >&6; }
5053 SED="$ac_cv_path_SED"
5054  rm -f conftest.sed
5055
5056
5057
5058
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5060$as_echo_n "checking for code coverage support... " >&6; }
5061  coverage="no"
5062  curl_coverage_msg="disabled"
5063
5064    # Check whether --enable-code-coverage was given.
5065if test "${enable_code_coverage+set}" = set; then :
5066  enableval=$enable_code_coverage; coverage="$enableval"
5067fi
5068
5069
5070    if  test "$GCC" != "yes" ; then :
5071  coverage="no"
5072fi
5073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5074$as_echo "$coverage" >&6; }
5075
5076  if test "x$coverage" = "xyes"; then
5077    curl_coverage_msg="enabled"
5078
5079    if test -n "$ac_tool_prefix"; then
5080  # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5081set dummy ${ac_tool_prefix}gcov; ac_word=$2
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if ${ac_cv_prog_GCOV+:} false; then :
5085  $as_echo_n "(cached) " >&6
5086else
5087  if test -n "$GCOV"; then
5088  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5089else
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093  IFS=$as_save_IFS
5094  test -z "$as_dir" && as_dir=.
5095    for ac_exec_ext in '' $ac_executable_extensions; do
5096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097    ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099    break 2
5100  fi
5101done
5102  done
5103IFS=$as_save_IFS
5104
5105fi
5106fi
5107GCOV=$ac_cv_prog_GCOV
5108if test -n "$GCOV"; then
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5110$as_echo "$GCOV" >&6; }
5111else
5112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
5114fi
5115
5116
5117fi
5118if test -z "$ac_cv_prog_GCOV"; then
5119  ac_ct_GCOV=$GCOV
5120  # Extract the first word of "gcov", so it can be a program name with args.
5121set dummy gcov; ac_word=$2
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123$as_echo_n "checking for $ac_word... " >&6; }
5124if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127  if test -n "$ac_ct_GCOV"; then
5128  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5129else
5130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133  IFS=$as_save_IFS
5134  test -z "$as_dir" && as_dir=.
5135    for ac_exec_ext in '' $ac_executable_extensions; do
5136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137    ac_cv_prog_ac_ct_GCOV="gcov"
5138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139    break 2
5140  fi
5141done
5142  done
5143IFS=$as_save_IFS
5144
5145fi
5146fi
5147ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5148if test -n "$ac_ct_GCOV"; then
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5150$as_echo "$ac_ct_GCOV" >&6; }
5151else
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153$as_echo "no" >&6; }
5154fi
5155
5156  if test "x$ac_ct_GCOV" = x; then
5157    GCOV="gcov"
5158  else
5159    case $cross_compiling:$ac_tool_warned in
5160yes:)
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163ac_tool_warned=yes ;;
5164esac
5165    GCOV=$ac_ct_GCOV
5166  fi
5167else
5168  GCOV="$ac_cv_prog_GCOV"
5169fi
5170
5171    if test -z "$GCOV"; then
5172      as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5173    fi
5174    # Extract the first word of "lcov", so it can be a program name with args.
5175set dummy lcov; ac_word=$2
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177$as_echo_n "checking for $ac_word... " >&6; }
5178if ${ac_cv_prog_LCOV+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  if test -n "$LCOV"; then
5182  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5183else
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187  IFS=$as_save_IFS
5188  test -z "$as_dir" && as_dir=.
5189    for ac_exec_ext in '' $ac_executable_extensions; do
5190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191    ac_cv_prog_LCOV="lcov"
5192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193    break 2
5194  fi
5195done
5196  done
5197IFS=$as_save_IFS
5198
5199fi
5200fi
5201LCOV=$ac_cv_prog_LCOV
5202if test -n "$LCOV"; then
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5204$as_echo "$LCOV" >&6; }
5205else
5206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }
5208fi
5209
5210
5211    if test -z "$LCOV"; then
5212      as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5213    fi
5214
5215    CPPFLAGS="$CPPFLAGS -DNDEBUG"
5216    CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5217    LIBS="$LIBS -lgcov"
5218  fi
5219
5220
5221am__api_version='1.16'
5222
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5224$as_echo_n "checking whether build environment is sane... " >&6; }
5225# Reject unsafe characters in $srcdir or the absolute working directory
5226# name.  Accept space and tab only in the latter.
5227am_lf='
5228'
5229case `pwd` in
5230  *[\\\"\#\$\&\'\`$am_lf]*)
5231    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5232esac
5233case $srcdir in
5234  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
5235    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5236esac
5237
5238# Do 'set' in a subshell so we don't clobber the current shell's
5239# arguments.  Must try -L first in case configure is actually a
5240# symlink; some systems play weird games with the mod time of symlinks
5241# (eg FreeBSD returns the mod time of the symlink's containing
5242# directory).
5243if (
5244   am_has_slept=no
5245   for am_try in 1 2; do
5246     echo "timestamp, slept: $am_has_slept" > conftest.file
5247     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5248     if test "$*" = "X"; then
5249	# -L didn't work.
5250	set X `ls -t "$srcdir/configure" conftest.file`
5251     fi
5252     if test "$*" != "X $srcdir/configure conftest.file" \
5253	&& test "$*" != "X conftest.file $srcdir/configure"; then
5254
5255	# If neither matched, then we have a broken ls.  This can happen
5256	# if, for instance, CONFIG_SHELL is bash and it inherits a
5257	# broken ls alias from the environment.  This has actually
5258	# happened.  Such a system could not be considered "sane".
5259	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5260  alias in your environment" "$LINENO" 5
5261     fi
5262     if test "$2" = conftest.file || test $am_try -eq 2; then
5263       break
5264     fi
5265     # Just in case.
5266     sleep 1
5267     am_has_slept=yes
5268   done
5269   test "$2" = conftest.file
5270   )
5271then
5272   # Ok.
5273   :
5274else
5275   as_fn_error $? "newly created file is older than distributed files!
5276Check your system clock" "$LINENO" 5
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279$as_echo "yes" >&6; }
5280# If we didn't sleep, we still need to ensure time stamps of config.status and
5281# generated files are strictly newer.
5282am_sleep_pid=
5283if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5284  ( sleep 1 ) &
5285  am_sleep_pid=$!
5286fi
5287
5288rm -f conftest.file
5289
5290test "$program_prefix" != NONE &&
5291  program_transform_name="s&^&$program_prefix&;$program_transform_name"
5292# Use a double $ so make ignores it.
5293test "$program_suffix" != NONE &&
5294  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5295# Double any \ or $.
5296# By default was `s,x,x', remove it if useless.
5297ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5298program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5299
5300if test x"${MISSING+set}" != xset; then
5301  case $am_aux_dir in
5302  *\ * | *\	*)
5303    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5304  *)
5305    MISSING="\${SHELL} $am_aux_dir/missing" ;;
5306  esac
5307fi
5308# Use eval to expand $SHELL
5309if eval "$MISSING --is-lightweight"; then
5310  am_missing_run="$MISSING "
5311else
5312  am_missing_run=
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5314$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5315fi
5316
5317if test x"${install_sh+set}" != xset; then
5318  case $am_aux_dir in
5319  *\ * | *\	*)
5320    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5321  *)
5322    install_sh="\${SHELL} $am_aux_dir/install-sh"
5323  esac
5324fi
5325
5326# Installed binaries are usually stripped using 'strip' when the user
5327# run "make install-strip".  However 'strip' might not be the right
5328# tool to use in cross-compilation environments, therefore Automake
5329# will honor the 'STRIP' environment variable to overrule this program.
5330if test "$cross_compiling" != no; then
5331  if test -n "$ac_tool_prefix"; then
5332  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5333set dummy ${ac_tool_prefix}strip; ac_word=$2
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335$as_echo_n "checking for $ac_word... " >&6; }
5336if ${ac_cv_prog_STRIP+:} false; then :
5337  $as_echo_n "(cached) " >&6
5338else
5339  if test -n "$STRIP"; then
5340  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5341else
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345  IFS=$as_save_IFS
5346  test -z "$as_dir" && as_dir=.
5347    for ac_exec_ext in '' $ac_executable_extensions; do
5348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351    break 2
5352  fi
5353done
5354  done
5355IFS=$as_save_IFS
5356
5357fi
5358fi
5359STRIP=$ac_cv_prog_STRIP
5360if test -n "$STRIP"; then
5361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5362$as_echo "$STRIP" >&6; }
5363else
5364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365$as_echo "no" >&6; }
5366fi
5367
5368
5369fi
5370if test -z "$ac_cv_prog_STRIP"; then
5371  ac_ct_STRIP=$STRIP
5372  # Extract the first word of "strip", so it can be a program name with args.
5373set dummy strip; ac_word=$2
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375$as_echo_n "checking for $ac_word... " >&6; }
5376if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5377  $as_echo_n "(cached) " >&6
5378else
5379  if test -n "$ac_ct_STRIP"; then
5380  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5381else
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385  IFS=$as_save_IFS
5386  test -z "$as_dir" && as_dir=.
5387    for ac_exec_ext in '' $ac_executable_extensions; do
5388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389    ac_cv_prog_ac_ct_STRIP="strip"
5390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391    break 2
5392  fi
5393done
5394  done
5395IFS=$as_save_IFS
5396
5397fi
5398fi
5399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5400if test -n "$ac_ct_STRIP"; then
5401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5402$as_echo "$ac_ct_STRIP" >&6; }
5403else
5404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405$as_echo "no" >&6; }
5406fi
5407
5408  if test "x$ac_ct_STRIP" = x; then
5409    STRIP=":"
5410  else
5411    case $cross_compiling:$ac_tool_warned in
5412yes:)
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415ac_tool_warned=yes ;;
5416esac
5417    STRIP=$ac_ct_STRIP
5418  fi
5419else
5420  STRIP="$ac_cv_prog_STRIP"
5421fi
5422
5423fi
5424INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5425
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5427$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5428if test -z "$MKDIR_P"; then
5429  if ${ac_cv_path_mkdir+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5434do
5435  IFS=$as_save_IFS
5436  test -z "$as_dir" && as_dir=.
5437    for ac_prog in mkdir gmkdir; do
5438	 for ac_exec_ext in '' $ac_executable_extensions; do
5439	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5440	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5441	     'mkdir (GNU coreutils) '* | \
5442	     'mkdir (coreutils) '* | \
5443	     'mkdir (fileutils) '4.1*)
5444	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5445	       break 3;;
5446	   esac
5447	 done
5448       done
5449  done
5450IFS=$as_save_IFS
5451
5452fi
5453
5454  test -d ./--version && rmdir ./--version
5455  if test "${ac_cv_path_mkdir+set}" = set; then
5456    MKDIR_P="$ac_cv_path_mkdir -p"
5457  else
5458    # As a last resort, use the slow shell script.  Don't cache a
5459    # value for MKDIR_P within a source directory, because that will
5460    # break other packages using the cache if that directory is
5461    # removed, or if the value is a relative name.
5462    MKDIR_P="$ac_install_sh -d"
5463  fi
5464fi
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5466$as_echo "$MKDIR_P" >&6; }
5467
5468for ac_prog in gawk mawk nawk awk
5469do
5470  # Extract the first word of "$ac_prog", so it can be a program name with args.
5471set dummy $ac_prog; ac_word=$2
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473$as_echo_n "checking for $ac_word... " >&6; }
5474if ${ac_cv_prog_AWK+:} false; then :
5475  $as_echo_n "(cached) " >&6
5476else
5477  if test -n "$AWK"; then
5478  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5479else
5480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481for as_dir in $PATH
5482do
5483  IFS=$as_save_IFS
5484  test -z "$as_dir" && as_dir=.
5485    for ac_exec_ext in '' $ac_executable_extensions; do
5486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487    ac_cv_prog_AWK="$ac_prog"
5488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489    break 2
5490  fi
5491done
5492  done
5493IFS=$as_save_IFS
5494
5495fi
5496fi
5497AWK=$ac_cv_prog_AWK
5498if test -n "$AWK"; then
5499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5500$as_echo "$AWK" >&6; }
5501else
5502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503$as_echo "no" >&6; }
5504fi
5505
5506
5507  test -n "$AWK" && break
5508done
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5511$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5512set x ${MAKE-make}
5513ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5514if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  cat >conftest.make <<\_ACEOF
5518SHELL = /bin/sh
5519all:
5520	@echo '@@@%%%=$(MAKE)=@@@%%%'
5521_ACEOF
5522# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5523case `${MAKE-make} -f conftest.make 2>/dev/null` in
5524  *@@@%%%=?*=@@@%%%*)
5525    eval ac_cv_prog_make_${ac_make}_set=yes;;
5526  *)
5527    eval ac_cv_prog_make_${ac_make}_set=no;;
5528esac
5529rm -f conftest.make
5530fi
5531if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5533$as_echo "yes" >&6; }
5534  SET_MAKE=
5535else
5536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }
5538  SET_MAKE="MAKE=${MAKE-make}"
5539fi
5540
5541rm -rf .tst 2>/dev/null
5542mkdir .tst 2>/dev/null
5543if test -d .tst; then
5544  am__leading_dot=.
5545else
5546  am__leading_dot=_
5547fi
5548rmdir .tst 2>/dev/null
5549
5550DEPDIR="${am__leading_dot}deps"
5551
5552ac_config_commands="$ac_config_commands depfiles"
5553
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5555$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5556cat > confinc.mk << 'END'
5557am__doit:
5558	@echo this is the am__doit target >confinc.out
5559.PHONY: am__doit
5560END
5561am__include="#"
5562am__quote=
5563# BSD make does it like this.
5564echo '.include "confinc.mk" # ignored' > confmf.BSD
5565# Other make implementations (GNU, Solaris 10, AIX) do it like this.
5566echo 'include confinc.mk # ignored' > confmf.GNU
5567_am_result=no
5568for s in GNU BSD; do
5569  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5570   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5571   ac_status=$?
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); }
5574  case $?:`cat confinc.out 2>/dev/null` in #(
5575  '0:this is the am__doit target') :
5576    case $s in #(
5577  BSD) :
5578    am__include='.include' am__quote='"' ;; #(
5579  *) :
5580    am__include='include' am__quote='' ;;
5581esac ;; #(
5582  *) :
5583     ;;
5584esac
5585  if test "$am__include" != "#"; then
5586    _am_result="yes ($s style)"
5587    break
5588  fi
5589done
5590rm -f confinc.* confmf.*
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5592$as_echo "${_am_result}" >&6; }
5593
5594# Check whether --enable-dependency-tracking was given.
5595if test "${enable_dependency_tracking+set}" = set; then :
5596  enableval=$enable_dependency_tracking;
5597fi
5598
5599if test "x$enable_dependency_tracking" != xno; then
5600  am_depcomp="$ac_aux_dir/depcomp"
5601  AMDEPBACKSLASH='\'
5602  am__nodep='_no'
5603fi
5604 if test "x$enable_dependency_tracking" != xno; then
5605  AMDEP_TRUE=
5606  AMDEP_FALSE='#'
5607else
5608  AMDEP_TRUE='#'
5609  AMDEP_FALSE=
5610fi
5611
5612
5613## --------------------------------------- ##
5614##  Start of automake initialization code  ##
5615## --------------------------------------- ##
5616
5617if test "`cd $srcdir && pwd`" != "`pwd`"; then
5618  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5619  # is not polluted with repeated "-I."
5620  am__isrc=' -I$(srcdir)'
5621  # test to see if srcdir already configured
5622  if test -f $srcdir/config.status; then
5623    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5624  fi
5625fi
5626
5627# test whether we have cygpath
5628if test -z "$CYGPATH_W"; then
5629  if (cygpath --version) >/dev/null 2>/dev/null; then
5630    CYGPATH_W='cygpath -w'
5631  else
5632    CYGPATH_W=echo
5633  fi
5634fi
5635
5636
5637# Define the identity of the package.
5638 PACKAGE='curl'
5639 VERSION='-'
5640
5641
5642cat >>confdefs.h <<_ACEOF
5643#define PACKAGE "$PACKAGE"
5644_ACEOF
5645
5646
5647cat >>confdefs.h <<_ACEOF
5648#define VERSION "$VERSION"
5649_ACEOF
5650
5651# Some tools Automake needs.
5652
5653ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5654
5655
5656AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5657
5658
5659AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5660
5661
5662AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5663
5664
5665MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5666
5667# For better backward compatibility.  To be removed once Automake 1.9.x
5668# dies out for good.  For more background, see:
5669# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5670# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5671mkdir_p='$(MKDIR_P)'
5672
5673# We need awk for the "check" target (and possibly the TAP driver).  The
5674# system "awk" is bad on some platforms.
5675# Always define AMTAR for backward compatibility.  Yes, it's still used
5676# in the wild :-(  We should find a proper way to deprecate it ...
5677AMTAR='$${TAR-tar}'
5678
5679
5680# We'll loop over all known methods to create a tar archive until one works.
5681_am_tools='gnutar  pax cpio none'
5682
5683am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5684
5685
5686
5687
5688
5689depcc="$CC"   am_compiler_list=
5690
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5692$as_echo_n "checking dependency style of $depcc... " >&6; }
5693if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5694  $as_echo_n "(cached) " >&6
5695else
5696  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5697  # We make a subdir and do the tests there.  Otherwise we can end up
5698  # making bogus files that we don't know about and never remove.  For
5699  # instance it was reported that on HP-UX the gcc test will end up
5700  # making a dummy file named 'D' -- because '-MD' means "put the output
5701  # in D".
5702  rm -rf conftest.dir
5703  mkdir conftest.dir
5704  # Copy depcomp to subdir because otherwise we won't find it if we're
5705  # using a relative directory.
5706  cp "$am_depcomp" conftest.dir
5707  cd conftest.dir
5708  # We will build objects and dependencies in a subdirectory because
5709  # it helps to detect inapplicable dependency modes.  For instance
5710  # both Tru64's cc and ICC support -MD to output dependencies as a
5711  # side effect of compilation, but ICC will put the dependencies in
5712  # the current directory while Tru64 will put them in the object
5713  # directory.
5714  mkdir sub
5715
5716  am_cv_CC_dependencies_compiler_type=none
5717  if test "$am_compiler_list" = ""; then
5718     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5719  fi
5720  am__universal=false
5721  case " $depcc " in #(
5722     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5723     esac
5724
5725  for depmode in $am_compiler_list; do
5726    # Setup a source with many dependencies, because some compilers
5727    # like to wrap large dependency lists on column 80 (with \), and
5728    # we should not choose a depcomp mode which is confused by this.
5729    #
5730    # We need to recreate these files for each test, as the compiler may
5731    # overwrite some of them when testing with obscure command lines.
5732    # This happens at least with the AIX C compiler.
5733    : > sub/conftest.c
5734    for i in 1 2 3 4 5 6; do
5735      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5736      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5737      # Solaris 10 /bin/sh.
5738      echo '/* dummy */' > sub/conftst$i.h
5739    done
5740    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5741
5742    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5743    # mode.  It turns out that the SunPro C++ compiler does not properly
5744    # handle '-M -o', and we need to detect this.  Also, some Intel
5745    # versions had trouble with output in subdirs.
5746    am__obj=sub/conftest.${OBJEXT-o}
5747    am__minus_obj="-o $am__obj"
5748    case $depmode in
5749    gcc)
5750      # This depmode causes a compiler race in universal mode.
5751      test "$am__universal" = false || continue
5752      ;;
5753    nosideeffect)
5754      # After this tag, mechanisms are not by side-effect, so they'll
5755      # only be used when explicitly requested.
5756      if test "x$enable_dependency_tracking" = xyes; then
5757	continue
5758      else
5759	break
5760      fi
5761      ;;
5762    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5763      # This compiler won't grok '-c -o', but also, the minuso test has
5764      # not run yet.  These depmodes are late enough in the game, and
5765      # so weak that their functioning should not be impacted.
5766      am__obj=conftest.${OBJEXT-o}
5767      am__minus_obj=
5768      ;;
5769    none) break ;;
5770    esac
5771    if depmode=$depmode \
5772       source=sub/conftest.c object=$am__obj \
5773       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5774       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5775         >/dev/null 2>conftest.err &&
5776       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5777       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5778       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5779       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5780      # icc doesn't choke on unknown options, it will just issue warnings
5781      # or remarks (even with -Werror).  So we grep stderr for any message
5782      # that says an option was ignored or not supported.
5783      # When given -MP, icc 7.0 and 7.1 complain thusly:
5784      #   icc: Command line warning: ignoring option '-M'; no argument required
5785      # The diagnosis changed in icc 8.0:
5786      #   icc: Command line remark: option '-MP' not supported
5787      if (grep 'ignoring option' conftest.err ||
5788          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5789        am_cv_CC_dependencies_compiler_type=$depmode
5790        break
5791      fi
5792    fi
5793  done
5794
5795  cd ..
5796  rm -rf conftest.dir
5797else
5798  am_cv_CC_dependencies_compiler_type=none
5799fi
5800
5801fi
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5803$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5804CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5805
5806 if
5807  test "x$enable_dependency_tracking" != xno \
5808  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5809  am__fastdepCC_TRUE=
5810  am__fastdepCC_FALSE='#'
5811else
5812  am__fastdepCC_TRUE='#'
5813  am__fastdepCC_FALSE=
5814fi
5815
5816
5817
5818# POSIX will say in a future version that running "rm -f" with no argument
5819# is OK; and we want to be able to make that assumption in our Makefile
5820# recipes.  So use an aggressive probe to check that the usage we want is
5821# actually supported "in the wild" to an acceptable degree.
5822# See automake bug#10828.
5823# To make any issue more visible, cause the running configure to be aborted
5824# by default if the 'rm' program in use doesn't match our expectations; the
5825# user can still override this though.
5826if rm -f && rm -fr && rm -rf; then : OK; else
5827  cat >&2 <<'END'
5828Oops!
5829
5830Your 'rm' program seems unable to run without file operands specified
5831on the command line, even when the '-f' option is present.  This is contrary
5832to the behaviour of most rm programs out there, and not conforming with
5833the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5834
5835Please tell bug-automake@gnu.org about your system, including the value
5836of your $PATH and any error possibly output before this message.  This
5837can help us improve future automake versions.
5838
5839END
5840  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5841    echo 'Configuration will proceed anyway, since you have set the' >&2
5842    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5843    echo >&2
5844  else
5845    cat >&2 <<'END'
5846Aborting the configuration process, to ensure you take notice of the issue.
5847
5848You can download and install GNU coreutils to get an 'rm' implementation
5849that behaves properly: <https://www.gnu.org/software/coreutils/>.
5850
5851If you want to complete the configuration process using your problematic
5852'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5853to "yes", and re-run configure.
5854
5855END
5856    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5857  fi
5858fi
5859
5860## ------------------------------------- ##
5861##  End of automake initialization code  ##
5862## ------------------------------------- ##
5863
5864
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5866$as_echo_n "checking curl version... " >&6; }
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5868$as_echo "$CURLVERSION" >&6; }
5869
5870
5871
5872VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5873
5874
5875PKGADD_PKG="HAXXcurl"
5876PKGADD_NAME="curl - a client that groks URLs"
5877PKGADD_VENDOR="curl.haxx.se"
5878
5879
5880
5881
5882    curl_ssl_msg="no      (--with-{ssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,mesalink,amissl,bearssl} )"
5883    curl_ssh_msg="no      (--with-{libssh,libssh2})"
5884   curl_zlib_msg="no      (--with-zlib)"
5885 curl_brotli_msg="no      (--with-brotli)"
5886   curl_zstd_msg="no      (--with-zstd)"
5887    curl_gss_msg="no      (--with-gssapi)"
5888curl_tls_srp_msg="no      (--enable-tls-srp)"
5889    curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5890   curl_ipv6_msg="no      (--enable-ipv6)"
5891curl_unix_sockets_msg="no      (--enable-unix-sockets)"
5892    curl_idn_msg="no      (--with-{libidn2,winidn})"
5893 curl_manual_msg="no      (--enable-manual)"
5894curl_libcurl_msg="enabled (--disable-libcurl-option)"
5895curl_verbose_msg="enabled (--disable-verbose)"
5896   curl_sspi_msg="no      (--enable-sspi)"
5897   curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5898  curl_ldaps_msg="no      (--enable-ldaps)"
5899   curl_rtsp_msg="no      (--enable-rtsp)"
5900   curl_rtmp_msg="no      (--with-librtmp)"
5901  curl_mtlnk_msg="no      (--with-libmetalink)"
5902    curl_psl_msg="no      (--with-libpsl)"
5903
5904    ssl_backends=
5905
5906INITIAL_LDFLAGS=$LDFLAGS
5907INITIAL_LIBS=$LIBS
5908
5909
5910# Make sure we can run config.sub.
5911$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5912  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5913
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5915$as_echo_n "checking build system type... " >&6; }
5916if ${ac_cv_build+:} false; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  ac_build_alias=$build_alias
5920test "x$ac_build_alias" = x &&
5921  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5922test "x$ac_build_alias" = x &&
5923  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5924ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5925  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5926
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5929$as_echo "$ac_cv_build" >&6; }
5930case $ac_cv_build in
5931*-*-*) ;;
5932*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5933esac
5934build=$ac_cv_build
5935ac_save_IFS=$IFS; IFS='-'
5936set x $ac_cv_build
5937shift
5938build_cpu=$1
5939build_vendor=$2
5940shift; shift
5941# Remember, the first character of IFS is used to create $*,
5942# except with old shells:
5943build_os=$*
5944IFS=$ac_save_IFS
5945case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5946
5947
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5949$as_echo_n "checking host system type... " >&6; }
5950if ${ac_cv_host+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  if test "x$host_alias" = x; then
5954  ac_cv_host=$ac_cv_build
5955else
5956  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5957    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5958fi
5959
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5962$as_echo "$ac_cv_host" >&6; }
5963case $ac_cv_host in
5964*-*-*) ;;
5965*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5966esac
5967host=$ac_cv_host
5968ac_save_IFS=$IFS; IFS='-'
5969set x $ac_cv_host
5970shift
5971host_cpu=$1
5972host_vendor=$2
5973shift; shift
5974# Remember, the first character of IFS is used to create $*,
5975# except with old shells:
5976host_os=$*
5977IFS=$ac_save_IFS
5978case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5979
5980
5981
5982cat >>confdefs.h <<_ACEOF
5983#define OS "${host}"
5984_ACEOF
5985
5986
5987# Silence warning: ar: 'u' modifier ignored since 'D' is the default
5988AR_FLAGS=cr
5989
5990
5991
5992
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5994$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5995if ${ac_cv_path_GREP+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998  if test -z "$GREP"; then
5999  ac_path_GREP_found=false
6000  # Loop through the user's path and test for each of PROGNAME-LIST
6001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6003do
6004  IFS=$as_save_IFS
6005  test -z "$as_dir" && as_dir=.
6006    for ac_prog in grep ggrep; do
6007    for ac_exec_ext in '' $ac_executable_extensions; do
6008      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6009      as_fn_executable_p "$ac_path_GREP" || continue
6010# Check for GNU ac_path_GREP and select it if it is found.
6011  # Check for GNU $ac_path_GREP
6012case `"$ac_path_GREP" --version 2>&1` in
6013*GNU*)
6014  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6015*)
6016  ac_count=0
6017  $as_echo_n 0123456789 >"conftest.in"
6018  while :
6019  do
6020    cat "conftest.in" "conftest.in" >"conftest.tmp"
6021    mv "conftest.tmp" "conftest.in"
6022    cp "conftest.in" "conftest.nl"
6023    $as_echo 'GREP' >> "conftest.nl"
6024    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6025    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6026    as_fn_arith $ac_count + 1 && ac_count=$as_val
6027    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6028      # Best one so far, save it but keep looking for a better one
6029      ac_cv_path_GREP="$ac_path_GREP"
6030      ac_path_GREP_max=$ac_count
6031    fi
6032    # 10*(2^10) chars as input seems more than enough
6033    test $ac_count -gt 10 && break
6034  done
6035  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6036esac
6037
6038      $ac_path_GREP_found && break 3
6039    done
6040  done
6041  done
6042IFS=$as_save_IFS
6043  if test -z "$ac_cv_path_GREP"; then
6044    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6045  fi
6046else
6047  ac_cv_path_GREP=$GREP
6048fi
6049
6050fi
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6052$as_echo "$ac_cv_path_GREP" >&6; }
6053 GREP="$ac_cv_path_GREP"
6054
6055
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6057$as_echo_n "checking for egrep... " >&6; }
6058if ${ac_cv_path_EGREP+:} false; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6062   then ac_cv_path_EGREP="$GREP -E"
6063   else
6064     if test -z "$EGREP"; then
6065  ac_path_EGREP_found=false
6066  # Loop through the user's path and test for each of PROGNAME-LIST
6067  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6069do
6070  IFS=$as_save_IFS
6071  test -z "$as_dir" && as_dir=.
6072    for ac_prog in egrep; do
6073    for ac_exec_ext in '' $ac_executable_extensions; do
6074      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6075      as_fn_executable_p "$ac_path_EGREP" || continue
6076# Check for GNU ac_path_EGREP and select it if it is found.
6077  # Check for GNU $ac_path_EGREP
6078case `"$ac_path_EGREP" --version 2>&1` in
6079*GNU*)
6080  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6081*)
6082  ac_count=0
6083  $as_echo_n 0123456789 >"conftest.in"
6084  while :
6085  do
6086    cat "conftest.in" "conftest.in" >"conftest.tmp"
6087    mv "conftest.tmp" "conftest.in"
6088    cp "conftest.in" "conftest.nl"
6089    $as_echo 'EGREP' >> "conftest.nl"
6090    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6091    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6092    as_fn_arith $ac_count + 1 && ac_count=$as_val
6093    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6094      # Best one so far, save it but keep looking for a better one
6095      ac_cv_path_EGREP="$ac_path_EGREP"
6096      ac_path_EGREP_max=$ac_count
6097    fi
6098    # 10*(2^10) chars as input seems more than enough
6099    test $ac_count -gt 10 && break
6100  done
6101  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6102esac
6103
6104      $ac_path_EGREP_found && break 3
6105    done
6106  done
6107  done
6108IFS=$as_save_IFS
6109  if test -z "$ac_cv_path_EGREP"; then
6110    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6111  fi
6112else
6113  ac_cv_path_EGREP=$EGREP
6114fi
6115
6116   fi
6117fi
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6119$as_echo "$ac_cv_path_EGREP" >&6; }
6120 EGREP="$ac_cv_path_EGREP"
6121
6122
6123
6124
6125        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6126$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h.  */
6129
6130#ifdef _AIX
6131   yes_this_is_aix
6132#endif
6133
6134_ACEOF
6135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6136  $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6137
6138    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6139$as_echo "yes" >&6; }
6140    $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6141
6142
6143else
6144
6145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146$as_echo "no" >&6; }
6147
6148fi
6149rm -f conftest*
6150
6151
6152
6153
6154    #
6155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6156$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158/* end confdefs.h.  */
6159
6160
6161
6162int main (void)
6163{
6164
6165#ifdef _THREAD_SAFE
6166      int dummy=1;
6167#else
6168      force compilation error
6169#endif
6170
6171 ;
6172 return 0;
6173}
6174
6175_ACEOF
6176if ac_fn_c_try_compile "$LINENO"; then :
6177
6178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6179$as_echo "yes" >&6; }
6180    tmp_thread_safe_initially_defined="yes"
6181
6182else
6183
6184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185$as_echo "no" >&6; }
6186    tmp_thread_safe_initially_defined="no"
6187
6188fi
6189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190  #
6191  if test "$tmp_thread_safe_initially_defined" = "no"; then
6192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6193$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6194
6195  case $host_os in
6196    aix[123].* | aix4.[012].*)
6197            tmp_need_thread_safe="no"
6198      ;;
6199    aix*)
6200            tmp_need_thread_safe="yes"
6201      ;;
6202    *)
6203      tmp_need_thread_safe="no"
6204      ;;
6205  esac
6206
6207    if test "$tmp_need_thread_safe" = "yes"; then
6208      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6209$as_echo "yes" >&6; }
6210    else
6211      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213    fi
6214  fi
6215  #
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6217$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6218  if test "$tmp_thread_safe_initially_defined" = "yes" ||
6219    test "$tmp_need_thread_safe" = "yes"; then
6220
6221
6222$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6223
6224cat >>confdefs.h <<_EOF
6225#ifndef _THREAD_SAFE
6226#  define _THREAD_SAFE
6227#endif
6228_EOF
6229
6230    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6231$as_echo "yes" >&6; }
6232  else
6233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234$as_echo "no" >&6; }
6235  fi
6236  #
6237
6238
6239    #
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6241$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244
6245
6246
6247int main (void)
6248{
6249
6250#ifdef _REENTRANT
6251      int dummy=1;
6252#else
6253      force compilation error
6254#endif
6255
6256 ;
6257 return 0;
6258}
6259
6260_ACEOF
6261if ac_fn_c_try_compile "$LINENO"; then :
6262
6263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6264$as_echo "yes" >&6; }
6265    tmp_reentrant_initially_defined="yes"
6266
6267else
6268
6269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271    tmp_reentrant_initially_defined="no"
6272
6273fi
6274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275  #
6276  if test "$tmp_reentrant_initially_defined" = "no"; then
6277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6278$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6279
6280  case $host_os in
6281    solaris*)
6282      tmp_need_reentrant="yes"
6283      ;;
6284    *)
6285      tmp_need_reentrant="no"
6286      ;;
6287  esac
6288
6289    if test "$tmp_need_reentrant" = "no"; then
6290
6291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293
6294
6295#include <errno.h>
6296
6297int main (void)
6298{
6299
6300      if(0 != errno)
6301        return 1;
6302
6303 ;
6304 return 0;
6305}
6306
6307_ACEOF
6308if ac_fn_c_try_compile "$LINENO"; then :
6309
6310    tmp_errno="yes"
6311
6312else
6313
6314    tmp_errno="no"
6315
6316fi
6317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318  if test "$tmp_errno" = "yes"; then
6319    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320/* end confdefs.h.  */
6321
6322
6323#include <errno.h>
6324
6325int main (void)
6326{
6327
6328#ifdef errno
6329        int dummy=1;
6330#else
6331        force compilation error
6332#endif
6333
6334 ;
6335 return 0;
6336}
6337
6338_ACEOF
6339if ac_fn_c_try_compile "$LINENO"; then :
6340
6341      tmp_errno="errno_macro_defined"
6342
6343else
6344
6345      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346/* end confdefs.h.  */
6347
6348
6349#define _REENTRANT
6350#include <errno.h>
6351
6352int main (void)
6353{
6354
6355#ifdef errno
6356          int dummy=1;
6357#else
6358          force compilation error
6359#endif
6360
6361 ;
6362 return 0;
6363}
6364
6365_ACEOF
6366if ac_fn_c_try_compile "$LINENO"; then :
6367
6368        tmp_errno="errno_macro_needs_reentrant"
6369        tmp_need_reentrant="yes"
6370
6371fi
6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373
6374fi
6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376  fi
6377
6378    fi
6379    if test "$tmp_need_reentrant" = "no"; then
6380
6381  if test "$tmp_need_reentrant" = "no"; then
6382
6383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h.  */
6385
6386
6387#define gmtime_r innocuous_gmtime_r
6388#ifdef __STDC__
6389# include <limits.h>
6390#else
6391# include <assert.h>
6392#endif
6393#undef gmtime_r
6394#ifdef __cplusplus
6395extern "C"
6396#endif
6397char gmtime_r ();
6398#if defined __stub_gmtime_r || defined __stub___gmtime_r
6399choke me
6400#endif
6401
6402int main (void)
6403{
6404return gmtime_r ();
6405 ;
6406 return 0;
6407}
6408
6409_ACEOF
6410if ac_fn_c_try_link "$LINENO"; then :
6411
6412    tmp_gmtime_r="yes"
6413
6414else
6415
6416    tmp_gmtime_r="no"
6417
6418fi
6419rm -f core conftest.err conftest.$ac_objext \
6420    conftest$ac_exeext conftest.$ac_ext
6421  if test "$tmp_gmtime_r" = "yes"; then
6422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h.  */
6424
6425#include <sys/types.h>
6426#include <time.h>
6427
6428_ACEOF
6429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430  $EGREP "gmtime_r" >/dev/null 2>&1; then :
6431
6432      tmp_gmtime_r="proto_declared"
6433
6434else
6435
6436      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437/* end confdefs.h.  */
6438
6439#define _REENTRANT
6440#include <sys/types.h>
6441#include <time.h>
6442
6443_ACEOF
6444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6445  $EGREP "gmtime_r" >/dev/null 2>&1; then :
6446
6447        tmp_gmtime_r="proto_needs_reentrant"
6448        tmp_need_reentrant="yes"
6449
6450fi
6451rm -f conftest*
6452
6453
6454fi
6455rm -f conftest*
6456
6457  fi
6458
6459  fi
6460  if test "$tmp_need_reentrant" = "no"; then
6461
6462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h.  */
6464
6465
6466#define localtime_r innocuous_localtime_r
6467#ifdef __STDC__
6468# include <limits.h>
6469#else
6470# include <assert.h>
6471#endif
6472#undef localtime_r
6473#ifdef __cplusplus
6474extern "C"
6475#endif
6476char localtime_r ();
6477#if defined __stub_localtime_r || defined __stub___localtime_r
6478choke me
6479#endif
6480
6481int main (void)
6482{
6483return localtime_r ();
6484 ;
6485 return 0;
6486}
6487
6488_ACEOF
6489if ac_fn_c_try_link "$LINENO"; then :
6490
6491    tmp_localtime_r="yes"
6492
6493else
6494
6495    tmp_localtime_r="no"
6496
6497fi
6498rm -f core conftest.err conftest.$ac_objext \
6499    conftest$ac_exeext conftest.$ac_ext
6500  if test "$tmp_localtime_r" = "yes"; then
6501    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h.  */
6503
6504#include <sys/types.h>
6505#include <time.h>
6506
6507_ACEOF
6508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6509  $EGREP "localtime_r" >/dev/null 2>&1; then :
6510
6511      tmp_localtime_r="proto_declared"
6512
6513else
6514
6515      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h.  */
6517
6518#define _REENTRANT
6519#include <sys/types.h>
6520#include <time.h>
6521
6522_ACEOF
6523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6524  $EGREP "localtime_r" >/dev/null 2>&1; then :
6525
6526        tmp_localtime_r="proto_needs_reentrant"
6527        tmp_need_reentrant="yes"
6528
6529fi
6530rm -f conftest*
6531
6532
6533fi
6534rm -f conftest*
6535
6536  fi
6537
6538  fi
6539  if test "$tmp_need_reentrant" = "no"; then
6540
6541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542/* end confdefs.h.  */
6543
6544
6545#define strerror_r innocuous_strerror_r
6546#ifdef __STDC__
6547# include <limits.h>
6548#else
6549# include <assert.h>
6550#endif
6551#undef strerror_r
6552#ifdef __cplusplus
6553extern "C"
6554#endif
6555char strerror_r ();
6556#if defined __stub_strerror_r || defined __stub___strerror_r
6557choke me
6558#endif
6559
6560int main (void)
6561{
6562return strerror_r ();
6563 ;
6564 return 0;
6565}
6566
6567_ACEOF
6568if ac_fn_c_try_link "$LINENO"; then :
6569
6570    tmp_strerror_r="yes"
6571
6572else
6573
6574    tmp_strerror_r="no"
6575
6576fi
6577rm -f core conftest.err conftest.$ac_objext \
6578    conftest$ac_exeext conftest.$ac_ext
6579  if test "$tmp_strerror_r" = "yes"; then
6580    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h.  */
6582
6583#include <sys/types.h>
6584#include <string.h>
6585
6586_ACEOF
6587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6588  $EGREP "strerror_r" >/dev/null 2>&1; then :
6589
6590      tmp_strerror_r="proto_declared"
6591
6592else
6593
6594      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h.  */
6596
6597#define _REENTRANT
6598#include <sys/types.h>
6599#include <string.h>
6600
6601_ACEOF
6602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6603  $EGREP "strerror_r" >/dev/null 2>&1; then :
6604
6605        tmp_strerror_r="proto_needs_reentrant"
6606        tmp_need_reentrant="yes"
6607
6608fi
6609rm -f conftest*
6610
6611
6612fi
6613rm -f conftest*
6614
6615  fi
6616
6617  fi
6618  if test "$tmp_need_reentrant" = "no"; then
6619
6620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621/* end confdefs.h.  */
6622
6623
6624#define strtok_r innocuous_strtok_r
6625#ifdef __STDC__
6626# include <limits.h>
6627#else
6628# include <assert.h>
6629#endif
6630#undef strtok_r
6631#ifdef __cplusplus
6632extern "C"
6633#endif
6634char strtok_r ();
6635#if defined __stub_strtok_r || defined __stub___strtok_r
6636choke me
6637#endif
6638
6639int main (void)
6640{
6641return strtok_r ();
6642 ;
6643 return 0;
6644}
6645
6646_ACEOF
6647if ac_fn_c_try_link "$LINENO"; then :
6648
6649    tmp_strtok_r="yes"
6650
6651else
6652
6653    tmp_strtok_r="no"
6654
6655fi
6656rm -f core conftest.err conftest.$ac_objext \
6657    conftest$ac_exeext conftest.$ac_ext
6658  if test "$tmp_strtok_r" = "yes"; then
6659    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660/* end confdefs.h.  */
6661
6662#include <sys/types.h>
6663#include <string.h>
6664
6665_ACEOF
6666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6667  $EGREP "strtok_r" >/dev/null 2>&1; then :
6668
6669      tmp_strtok_r="proto_declared"
6670
6671else
6672
6673      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675
6676#define _REENTRANT
6677#include <sys/types.h>
6678#include <string.h>
6679
6680_ACEOF
6681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6682  $EGREP "strtok_r" >/dev/null 2>&1; then :
6683
6684        tmp_strtok_r="proto_needs_reentrant"
6685        tmp_need_reentrant="yes"
6686
6687fi
6688rm -f conftest*
6689
6690
6691fi
6692rm -f conftest*
6693
6694  fi
6695
6696  fi
6697  if test "$tmp_need_reentrant" = "no"; then
6698
6699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h.  */
6701
6702
6703#define inet_ntoa_r innocuous_inet_ntoa_r
6704#ifdef __STDC__
6705# include <limits.h>
6706#else
6707# include <assert.h>
6708#endif
6709#undef inet_ntoa_r
6710#ifdef __cplusplus
6711extern "C"
6712#endif
6713char inet_ntoa_r ();
6714#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6715choke me
6716#endif
6717
6718int main (void)
6719{
6720return inet_ntoa_r ();
6721 ;
6722 return 0;
6723}
6724
6725_ACEOF
6726if ac_fn_c_try_link "$LINENO"; then :
6727
6728    tmp_inet_ntoa_r="yes"
6729
6730else
6731
6732    tmp_inet_ntoa_r="no"
6733
6734fi
6735rm -f core conftest.err conftest.$ac_objext \
6736    conftest$ac_exeext conftest.$ac_ext
6737  if test "$tmp_inet_ntoa_r" = "yes"; then
6738    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h.  */
6740
6741#include <sys/types.h>
6742#include <sys/socket.h>
6743#include <netinet/in.h>
6744#include <arpa/inet.h>
6745
6746_ACEOF
6747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6748  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6749
6750      tmp_inet_ntoa_r="proto_declared"
6751
6752else
6753
6754      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h.  */
6756
6757#define _REENTRANT
6758#include <sys/types.h>
6759#include <sys/socket.h>
6760#include <netinet/in.h>
6761#include <arpa/inet.h>
6762
6763_ACEOF
6764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6766
6767        tmp_inet_ntoa_r="proto_needs_reentrant"
6768        tmp_need_reentrant="yes"
6769
6770fi
6771rm -f conftest*
6772
6773
6774fi
6775rm -f conftest*
6776
6777  fi
6778
6779  fi
6780  if test "$tmp_need_reentrant" = "no"; then
6781
6782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783/* end confdefs.h.  */
6784
6785
6786#define gethostbyaddr_r innocuous_gethostbyaddr_r
6787#ifdef __STDC__
6788# include <limits.h>
6789#else
6790# include <assert.h>
6791#endif
6792#undef gethostbyaddr_r
6793#ifdef __cplusplus
6794extern "C"
6795#endif
6796char gethostbyaddr_r ();
6797#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6798choke me
6799#endif
6800
6801int main (void)
6802{
6803return gethostbyaddr_r ();
6804 ;
6805 return 0;
6806}
6807
6808_ACEOF
6809if ac_fn_c_try_link "$LINENO"; then :
6810
6811    tmp_gethostbyaddr_r="yes"
6812
6813else
6814
6815    tmp_gethostbyaddr_r="no"
6816
6817fi
6818rm -f core conftest.err conftest.$ac_objext \
6819    conftest$ac_exeext conftest.$ac_ext
6820  if test "$tmp_gethostbyaddr_r" = "yes"; then
6821    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h.  */
6823
6824#include <sys/types.h>
6825#include <netdb.h>
6826
6827_ACEOF
6828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6829  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6830
6831      tmp_gethostbyaddr_r="proto_declared"
6832
6833else
6834
6835      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h.  */
6837
6838#define _REENTRANT
6839#include <sys/types.h>
6840#include <netdb.h>
6841
6842_ACEOF
6843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6845
6846        tmp_gethostbyaddr_r="proto_needs_reentrant"
6847        tmp_need_reentrant="yes"
6848
6849fi
6850rm -f conftest*
6851
6852
6853fi
6854rm -f conftest*
6855
6856  fi
6857
6858  fi
6859  if test "$tmp_need_reentrant" = "no"; then
6860
6861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862/* end confdefs.h.  */
6863
6864
6865#define gethostbyname_r innocuous_gethostbyname_r
6866#ifdef __STDC__
6867# include <limits.h>
6868#else
6869# include <assert.h>
6870#endif
6871#undef gethostbyname_r
6872#ifdef __cplusplus
6873extern "C"
6874#endif
6875char gethostbyname_r ();
6876#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6877choke me
6878#endif
6879
6880int main (void)
6881{
6882return gethostbyname_r ();
6883 ;
6884 return 0;
6885}
6886
6887_ACEOF
6888if ac_fn_c_try_link "$LINENO"; then :
6889
6890    tmp_gethostbyname_r="yes"
6891
6892else
6893
6894    tmp_gethostbyname_r="no"
6895
6896fi
6897rm -f core conftest.err conftest.$ac_objext \
6898    conftest$ac_exeext conftest.$ac_ext
6899  if test "$tmp_gethostbyname_r" = "yes"; then
6900    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h.  */
6902
6903#include <sys/types.h>
6904#include <netdb.h>
6905
6906_ACEOF
6907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6909
6910      tmp_gethostbyname_r="proto_declared"
6911
6912else
6913
6914      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915/* end confdefs.h.  */
6916
6917#define _REENTRANT
6918#include <sys/types.h>
6919#include <netdb.h>
6920
6921_ACEOF
6922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6923  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6924
6925        tmp_gethostbyname_r="proto_needs_reentrant"
6926        tmp_need_reentrant="yes"
6927
6928fi
6929rm -f conftest*
6930
6931
6932fi
6933rm -f conftest*
6934
6935  fi
6936
6937  fi
6938  if test "$tmp_need_reentrant" = "no"; then
6939
6940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h.  */
6942
6943
6944#define getprotobyname_r innocuous_getprotobyname_r
6945#ifdef __STDC__
6946# include <limits.h>
6947#else
6948# include <assert.h>
6949#endif
6950#undef getprotobyname_r
6951#ifdef __cplusplus
6952extern "C"
6953#endif
6954char getprotobyname_r ();
6955#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6956choke me
6957#endif
6958
6959int main (void)
6960{
6961return getprotobyname_r ();
6962 ;
6963 return 0;
6964}
6965
6966_ACEOF
6967if ac_fn_c_try_link "$LINENO"; then :
6968
6969    tmp_getprotobyname_r="yes"
6970
6971else
6972
6973    tmp_getprotobyname_r="no"
6974
6975fi
6976rm -f core conftest.err conftest.$ac_objext \
6977    conftest$ac_exeext conftest.$ac_ext
6978  if test "$tmp_getprotobyname_r" = "yes"; then
6979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980/* end confdefs.h.  */
6981
6982#include <sys/types.h>
6983#include <netdb.h>
6984
6985_ACEOF
6986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6987  $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6988
6989      tmp_getprotobyname_r="proto_declared"
6990
6991else
6992
6993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995
6996#define _REENTRANT
6997#include <sys/types.h>
6998#include <netdb.h>
6999
7000_ACEOF
7001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7002  $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7003
7004        tmp_getprotobyname_r="proto_needs_reentrant"
7005        tmp_need_reentrant="yes"
7006
7007fi
7008rm -f conftest*
7009
7010
7011fi
7012rm -f conftest*
7013
7014  fi
7015
7016  fi
7017  if test "$tmp_need_reentrant" = "no"; then
7018
7019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020/* end confdefs.h.  */
7021
7022
7023#define getservbyport_r innocuous_getservbyport_r
7024#ifdef __STDC__
7025# include <limits.h>
7026#else
7027# include <assert.h>
7028#endif
7029#undef getservbyport_r
7030#ifdef __cplusplus
7031extern "C"
7032#endif
7033char getservbyport_r ();
7034#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7035choke me
7036#endif
7037
7038int main (void)
7039{
7040return getservbyport_r ();
7041 ;
7042 return 0;
7043}
7044
7045_ACEOF
7046if ac_fn_c_try_link "$LINENO"; then :
7047
7048    tmp_getservbyport_r="yes"
7049
7050else
7051
7052    tmp_getservbyport_r="no"
7053
7054fi
7055rm -f core conftest.err conftest.$ac_objext \
7056    conftest$ac_exeext conftest.$ac_ext
7057  if test "$tmp_getservbyport_r" = "yes"; then
7058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060
7061#include <sys/types.h>
7062#include <netdb.h>
7063
7064_ACEOF
7065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7066  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7067
7068      tmp_getservbyport_r="proto_declared"
7069
7070else
7071
7072      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h.  */
7074
7075#define _REENTRANT
7076#include <sys/types.h>
7077#include <netdb.h>
7078
7079_ACEOF
7080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7081  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7082
7083        tmp_getservbyport_r="proto_needs_reentrant"
7084        tmp_need_reentrant="yes"
7085
7086fi
7087rm -f conftest*
7088
7089
7090fi
7091rm -f conftest*
7092
7093  fi
7094
7095  fi
7096
7097    fi
7098    if test "$tmp_need_reentrant" = "yes"; then
7099      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7100$as_echo "yes" >&6; }
7101    else
7102      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
7104    fi
7105  fi
7106  #
7107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7108$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7109  if test "$tmp_reentrant_initially_defined" = "yes" ||
7110    test "$tmp_need_reentrant" = "yes"; then
7111
7112
7113$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7114
7115cat >>confdefs.h <<_EOF
7116#ifndef _REENTRANT
7117#  define _REENTRANT
7118#endif
7119_EOF
7120
7121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7122$as_echo "yes" >&6; }
7123  else
7124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }
7126  fi
7127  #
7128
7129
7130# Check whether --enable-largefile was given.
7131if test "${enable_largefile+set}" = set; then :
7132  enableval=$enable_largefile;
7133fi
7134
7135if test "$enable_largefile" != no; then
7136
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7138$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7139if ${ac_cv_sys_largefile_CC+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  ac_cv_sys_largefile_CC=no
7143     if test "$GCC" != yes; then
7144       ac_save_CC=$CC
7145       while :; do
7146	 # IRIX 6.2 and later do not support large files by default,
7147	 # so use the C compiler's -n32 option if that helps.
7148	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h.  */
7150#include <sys/types.h>
7151 /* Check that off_t can represent 2**63 - 1 correctly.
7152    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7153    since some C++ compilers masquerading as C compilers
7154    incorrectly reject 9223372036854775807.  */
7155#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7156  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7157		       && LARGE_OFF_T % 2147483647 == 1)
7158		      ? 1 : -1];
7159int main (void)
7160{
7161
7162 ;
7163 return 0;
7164}
7165_ACEOF
7166	 if ac_fn_c_try_compile "$LINENO"; then :
7167  break
7168fi
7169rm -f core conftest.err conftest.$ac_objext
7170	 CC="$CC -n32"
7171	 if ac_fn_c_try_compile "$LINENO"; then :
7172  ac_cv_sys_largefile_CC=' -n32'; break
7173fi
7174rm -f core conftest.err conftest.$ac_objext
7175	 break
7176       done
7177       CC=$ac_save_CC
7178       rm -f conftest.$ac_ext
7179    fi
7180fi
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7182$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7183  if test "$ac_cv_sys_largefile_CC" != no; then
7184    CC=$CC$ac_cv_sys_largefile_CC
7185  fi
7186
7187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7188$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7189if ${ac_cv_sys_file_offset_bits+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  while :; do
7193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h.  */
7195#include <sys/types.h>
7196 /* Check that off_t can represent 2**63 - 1 correctly.
7197    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7198    since some C++ compilers masquerading as C compilers
7199    incorrectly reject 9223372036854775807.  */
7200#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7201  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7202		       && LARGE_OFF_T % 2147483647 == 1)
7203		      ? 1 : -1];
7204int main (void)
7205{
7206
7207 ;
7208 return 0;
7209}
7210_ACEOF
7211if ac_fn_c_try_compile "$LINENO"; then :
7212  ac_cv_sys_file_offset_bits=no; break
7213fi
7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216/* end confdefs.h.  */
7217#define _FILE_OFFSET_BITS 64
7218#include <sys/types.h>
7219 /* Check that off_t can represent 2**63 - 1 correctly.
7220    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7221    since some C++ compilers masquerading as C compilers
7222    incorrectly reject 9223372036854775807.  */
7223#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7224  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7225		       && LARGE_OFF_T % 2147483647 == 1)
7226		      ? 1 : -1];
7227int main (void)
7228{
7229
7230 ;
7231 return 0;
7232}
7233_ACEOF
7234if ac_fn_c_try_compile "$LINENO"; then :
7235  ac_cv_sys_file_offset_bits=64; break
7236fi
7237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238  ac_cv_sys_file_offset_bits=unknown
7239  break
7240done
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7243$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7244case $ac_cv_sys_file_offset_bits in #(
7245  no | unknown) ;;
7246  *)
7247cat >>confdefs.h <<_ACEOF
7248#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7249_ACEOF
7250;;
7251esac
7252rm -rf conftest*
7253  if test $ac_cv_sys_file_offset_bits = unknown; then
7254    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7255$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7256if ${ac_cv_sys_large_files+:} false; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  while :; do
7260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h.  */
7262#include <sys/types.h>
7263 /* Check that off_t can represent 2**63 - 1 correctly.
7264    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7265    since some C++ compilers masquerading as C compilers
7266    incorrectly reject 9223372036854775807.  */
7267#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7268  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7269		       && LARGE_OFF_T % 2147483647 == 1)
7270		      ? 1 : -1];
7271int main (void)
7272{
7273
7274 ;
7275 return 0;
7276}
7277_ACEOF
7278if ac_fn_c_try_compile "$LINENO"; then :
7279  ac_cv_sys_large_files=no; break
7280fi
7281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283/* end confdefs.h.  */
7284#define _LARGE_FILES 1
7285#include <sys/types.h>
7286 /* Check that off_t can represent 2**63 - 1 correctly.
7287    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7288    since some C++ compilers masquerading as C compilers
7289    incorrectly reject 9223372036854775807.  */
7290#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7291  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7292		       && LARGE_OFF_T % 2147483647 == 1)
7293		      ? 1 : -1];
7294int main (void)
7295{
7296
7297 ;
7298 return 0;
7299}
7300_ACEOF
7301if ac_fn_c_try_compile "$LINENO"; then :
7302  ac_cv_sys_large_files=1; break
7303fi
7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305  ac_cv_sys_large_files=unknown
7306  break
7307done
7308fi
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7310$as_echo "$ac_cv_sys_large_files" >&6; }
7311case $ac_cv_sys_large_files in #(
7312  no | unknown) ;;
7313  *)
7314cat >>confdefs.h <<_ACEOF
7315#define _LARGE_FILES $ac_cv_sys_large_files
7316_ACEOF
7317;;
7318esac
7319rm -rf conftest*
7320  fi
7321
7322
7323fi
7324
7325
7326case `pwd` in
7327  *\ * | *\	*)
7328    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7329$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7330esac
7331
7332
7333
7334macro_version='2.4.6'
7335macro_revision='2.4.6'
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349ltmain=$ac_aux_dir/ltmain.sh
7350
7351# Backslashify metacharacters that are still active within
7352# double-quoted strings.
7353sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7354
7355# Same as above, but do not quote variable references.
7356double_quote_subst='s/\(["`\\]\)/\\\1/g'
7357
7358# Sed substitution to delay expansion of an escaped shell variable in a
7359# double_quote_subst'ed string.
7360delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7361
7362# Sed substitution to delay expansion of an escaped single quote.
7363delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7364
7365# Sed substitution to avoid accidental globbing in evaled expressions
7366no_glob_subst='s/\*/\\\*/g'
7367
7368ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7369ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7370ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7371
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7373$as_echo_n "checking how to print strings... " >&6; }
7374# Test print first, because it will be a builtin if present.
7375if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7376   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7377  ECHO='print -r --'
7378elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7379  ECHO='printf %s\n'
7380else
7381  # Use this function as a fallback that always works.
7382  func_fallback_echo ()
7383  {
7384    eval 'cat <<_LTECHO_EOF
7385$1
7386_LTECHO_EOF'
7387  }
7388  ECHO='func_fallback_echo'
7389fi
7390
7391# func_echo_all arg...
7392# Invoke $ECHO with all args, space-separated.
7393func_echo_all ()
7394{
7395    $ECHO ""
7396}
7397
7398case $ECHO in
7399  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7400$as_echo "printf" >&6; } ;;
7401  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7402$as_echo "print -r" >&6; } ;;
7403  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7404$as_echo "cat" >&6; } ;;
7405esac
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7421$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7422if ${ac_cv_path_SED+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7426     for ac_i in 1 2 3 4 5 6 7; do
7427       ac_script="$ac_script$as_nl$ac_script"
7428     done
7429     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7430     { ac_script=; unset ac_script;}
7431     if test -z "$SED"; then
7432  ac_path_SED_found=false
7433  # Loop through the user's path and test for each of PROGNAME-LIST
7434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437  IFS=$as_save_IFS
7438  test -z "$as_dir" && as_dir=.
7439    for ac_prog in sed gsed; do
7440    for ac_exec_ext in '' $ac_executable_extensions; do
7441      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7442      as_fn_executable_p "$ac_path_SED" || continue
7443# Check for GNU ac_path_SED and select it if it is found.
7444  # Check for GNU $ac_path_SED
7445case `"$ac_path_SED" --version 2>&1` in
7446*GNU*)
7447  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7448*)
7449  ac_count=0
7450  $as_echo_n 0123456789 >"conftest.in"
7451  while :
7452  do
7453    cat "conftest.in" "conftest.in" >"conftest.tmp"
7454    mv "conftest.tmp" "conftest.in"
7455    cp "conftest.in" "conftest.nl"
7456    $as_echo '' >> "conftest.nl"
7457    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7458    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7459    as_fn_arith $ac_count + 1 && ac_count=$as_val
7460    if test $ac_count -gt ${ac_path_SED_max-0}; then
7461      # Best one so far, save it but keep looking for a better one
7462      ac_cv_path_SED="$ac_path_SED"
7463      ac_path_SED_max=$ac_count
7464    fi
7465    # 10*(2^10) chars as input seems more than enough
7466    test $ac_count -gt 10 && break
7467  done
7468  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7469esac
7470
7471      $ac_path_SED_found && break 3
7472    done
7473  done
7474  done
7475IFS=$as_save_IFS
7476  if test -z "$ac_cv_path_SED"; then
7477    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7478  fi
7479else
7480  ac_cv_path_SED=$SED
7481fi
7482
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7485$as_echo "$ac_cv_path_SED" >&6; }
7486 SED="$ac_cv_path_SED"
7487  rm -f conftest.sed
7488
7489test -z "$SED" && SED=sed
7490Xsed="$SED -e 1s/^X//"
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7503$as_echo_n "checking for fgrep... " >&6; }
7504if ${ac_cv_path_FGREP+:} false; then :
7505  $as_echo_n "(cached) " >&6
7506else
7507  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7508   then ac_cv_path_FGREP="$GREP -F"
7509   else
7510     if test -z "$FGREP"; then
7511  ac_path_FGREP_found=false
7512  # Loop through the user's path and test for each of PROGNAME-LIST
7513  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7515do
7516  IFS=$as_save_IFS
7517  test -z "$as_dir" && as_dir=.
7518    for ac_prog in fgrep; do
7519    for ac_exec_ext in '' $ac_executable_extensions; do
7520      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7521      as_fn_executable_p "$ac_path_FGREP" || continue
7522# Check for GNU ac_path_FGREP and select it if it is found.
7523  # Check for GNU $ac_path_FGREP
7524case `"$ac_path_FGREP" --version 2>&1` in
7525*GNU*)
7526  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7527*)
7528  ac_count=0
7529  $as_echo_n 0123456789 >"conftest.in"
7530  while :
7531  do
7532    cat "conftest.in" "conftest.in" >"conftest.tmp"
7533    mv "conftest.tmp" "conftest.in"
7534    cp "conftest.in" "conftest.nl"
7535    $as_echo 'FGREP' >> "conftest.nl"
7536    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7537    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7538    as_fn_arith $ac_count + 1 && ac_count=$as_val
7539    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7540      # Best one so far, save it but keep looking for a better one
7541      ac_cv_path_FGREP="$ac_path_FGREP"
7542      ac_path_FGREP_max=$ac_count
7543    fi
7544    # 10*(2^10) chars as input seems more than enough
7545    test $ac_count -gt 10 && break
7546  done
7547  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7548esac
7549
7550      $ac_path_FGREP_found && break 3
7551    done
7552  done
7553  done
7554IFS=$as_save_IFS
7555  if test -z "$ac_cv_path_FGREP"; then
7556    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7557  fi
7558else
7559  ac_cv_path_FGREP=$FGREP
7560fi
7561
7562   fi
7563fi
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7565$as_echo "$ac_cv_path_FGREP" >&6; }
7566 FGREP="$ac_cv_path_FGREP"
7567
7568
7569test -z "$GREP" && GREP=grep
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589# Check whether --with-gnu-ld was given.
7590if test "${with_gnu_ld+set}" = set; then :
7591  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7592else
7593  with_gnu_ld=no
7594fi
7595
7596ac_prog=ld
7597if test yes = "$GCC"; then
7598  # Check if gcc -print-prog-name=ld gives a path.
7599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7600$as_echo_n "checking for ld used by $CC... " >&6; }
7601  case $host in
7602  *-*-mingw*)
7603    # gcc leaves a trailing carriage return, which upsets mingw
7604    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7605  *)
7606    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7607  esac
7608  case $ac_prog in
7609    # Accept absolute paths.
7610    [\\/]* | ?:[\\/]*)
7611      re_direlt='/[^/][^/]*/\.\./'
7612      # Canonicalize the pathname of ld
7613      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7614      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7615	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7616      done
7617      test -z "$LD" && LD=$ac_prog
7618      ;;
7619  "")
7620    # If it fails, then pretend we aren't using GCC.
7621    ac_prog=ld
7622    ;;
7623  *)
7624    # If it is relative, then search for the first ld in PATH.
7625    with_gnu_ld=unknown
7626    ;;
7627  esac
7628elif test yes = "$with_gnu_ld"; then
7629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7630$as_echo_n "checking for GNU ld... " >&6; }
7631else
7632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7633$as_echo_n "checking for non-GNU ld... " >&6; }
7634fi
7635if ${lt_cv_path_LD+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  if test -z "$LD"; then
7639  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7640  for ac_dir in $PATH; do
7641    IFS=$lt_save_ifs
7642    test -z "$ac_dir" && ac_dir=.
7643    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7644      lt_cv_path_LD=$ac_dir/$ac_prog
7645      # Check to see if the program is GNU ld.  I'd rather use --version,
7646      # but apparently some variants of GNU ld only accept -v.
7647      # Break only if it was the GNU/non-GNU ld that we prefer.
7648      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7649      *GNU* | *'with BFD'*)
7650	test no != "$with_gnu_ld" && break
7651	;;
7652      *)
7653	test yes != "$with_gnu_ld" && break
7654	;;
7655      esac
7656    fi
7657  done
7658  IFS=$lt_save_ifs
7659else
7660  lt_cv_path_LD=$LD # Let the user override the test with a path.
7661fi
7662fi
7663
7664LD=$lt_cv_path_LD
7665if test -n "$LD"; then
7666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7667$as_echo "$LD" >&6; }
7668else
7669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670$as_echo "no" >&6; }
7671fi
7672test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7674$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7675if ${lt_cv_prog_gnu_ld+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7679case `$LD -v 2>&1 </dev/null` in
7680*GNU* | *'with BFD'*)
7681  lt_cv_prog_gnu_ld=yes
7682  ;;
7683*)
7684  lt_cv_prog_gnu_ld=no
7685  ;;
7686esac
7687fi
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7689$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7690with_gnu_ld=$lt_cv_prog_gnu_ld
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7701$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7702if ${lt_cv_path_NM+:} false; then :
7703  $as_echo_n "(cached) " >&6
7704else
7705  if test -n "$NM"; then
7706  # Let the user override the test.
7707  lt_cv_path_NM=$NM
7708else
7709  lt_nm_to_check=${ac_tool_prefix}nm
7710  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7711    lt_nm_to_check="$lt_nm_to_check nm"
7712  fi
7713  for lt_tmp_nm in $lt_nm_to_check; do
7714    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7715    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7716      IFS=$lt_save_ifs
7717      test -z "$ac_dir" && ac_dir=.
7718      tmp_nm=$ac_dir/$lt_tmp_nm
7719      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7720	# Check to see if the nm accepts a BSD-compat flag.
7721	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7722	#   nm: unknown option "B" ignored
7723	# Tru64's nm complains that /dev/null is an invalid object file
7724	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7725	case $build_os in
7726	mingw*) lt_bad_file=conftest.nm/nofile ;;
7727	*) lt_bad_file=/dev/null ;;
7728	esac
7729	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7730	*$lt_bad_file* | *'Invalid file or object type'*)
7731	  lt_cv_path_NM="$tmp_nm -B"
7732	  break 2
7733	  ;;
7734	*)
7735	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7736	  */dev/null*)
7737	    lt_cv_path_NM="$tmp_nm -p"
7738	    break 2
7739	    ;;
7740	  *)
7741	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7742	    continue # so that we can try to find one that supports BSD flags
7743	    ;;
7744	  esac
7745	  ;;
7746	esac
7747      fi
7748    done
7749    IFS=$lt_save_ifs
7750  done
7751  : ${lt_cv_path_NM=no}
7752fi
7753fi
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7755$as_echo "$lt_cv_path_NM" >&6; }
7756if test no != "$lt_cv_path_NM"; then
7757  NM=$lt_cv_path_NM
7758else
7759  # Didn't find any BSD compatible name lister, look for dumpbin.
7760  if test -n "$DUMPBIN"; then :
7761    # Let the user override the test.
7762  else
7763    if test -n "$ac_tool_prefix"; then
7764  for ac_prog in dumpbin "link -dump"
7765  do
7766    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769$as_echo_n "checking for $ac_word... " >&6; }
7770if ${ac_cv_prog_DUMPBIN+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  if test -n "$DUMPBIN"; then
7774  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7775else
7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779  IFS=$as_save_IFS
7780  test -z "$as_dir" && as_dir=.
7781    for ac_exec_ext in '' $ac_executable_extensions; do
7782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785    break 2
7786  fi
7787done
7788  done
7789IFS=$as_save_IFS
7790
7791fi
7792fi
7793DUMPBIN=$ac_cv_prog_DUMPBIN
7794if test -n "$DUMPBIN"; then
7795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7796$as_echo "$DUMPBIN" >&6; }
7797else
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799$as_echo "no" >&6; }
7800fi
7801
7802
7803    test -n "$DUMPBIN" && break
7804  done
7805fi
7806if test -z "$DUMPBIN"; then
7807  ac_ct_DUMPBIN=$DUMPBIN
7808  for ac_prog in dumpbin "link -dump"
7809do
7810  # Extract the first word of "$ac_prog", so it can be a program name with args.
7811set dummy $ac_prog; ac_word=$2
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813$as_echo_n "checking for $ac_word... " >&6; }
7814if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7815  $as_echo_n "(cached) " >&6
7816else
7817  if test -n "$ac_ct_DUMPBIN"; then
7818  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7819else
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823  IFS=$as_save_IFS
7824  test -z "$as_dir" && as_dir=.
7825    for ac_exec_ext in '' $ac_executable_extensions; do
7826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829    break 2
7830  fi
7831done
7832  done
7833IFS=$as_save_IFS
7834
7835fi
7836fi
7837ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7838if test -n "$ac_ct_DUMPBIN"; then
7839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7840$as_echo "$ac_ct_DUMPBIN" >&6; }
7841else
7842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
7844fi
7845
7846
7847  test -n "$ac_ct_DUMPBIN" && break
7848done
7849
7850  if test "x$ac_ct_DUMPBIN" = x; then
7851    DUMPBIN=":"
7852  else
7853    case $cross_compiling:$ac_tool_warned in
7854yes:)
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857ac_tool_warned=yes ;;
7858esac
7859    DUMPBIN=$ac_ct_DUMPBIN
7860  fi
7861fi
7862
7863    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7864    *COFF*)
7865      DUMPBIN="$DUMPBIN -symbols -headers"
7866      ;;
7867    *)
7868      DUMPBIN=:
7869      ;;
7870    esac
7871  fi
7872
7873  if test : != "$DUMPBIN"; then
7874    NM=$DUMPBIN
7875  fi
7876fi
7877test -z "$NM" && NM=nm
7878
7879
7880
7881
7882
7883
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7885$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7886if ${lt_cv_nm_interface+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  lt_cv_nm_interface="BSD nm"
7890  echo "int some_variable = 0;" > conftest.$ac_ext
7891  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7892  (eval "$ac_compile" 2>conftest.err)
7893  cat conftest.err >&5
7894  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7895  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7896  cat conftest.err >&5
7897  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7898  cat conftest.out >&5
7899  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7900    lt_cv_nm_interface="MS dumpbin"
7901  fi
7902  rm -f conftest*
7903fi
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7905$as_echo "$lt_cv_nm_interface" >&6; }
7906
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7908$as_echo_n "checking whether ln -s works... " >&6; }
7909LN_S=$as_ln_s
7910if test "$LN_S" = "ln -s"; then
7911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7912$as_echo "yes" >&6; }
7913else
7914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7915$as_echo "no, using $LN_S" >&6; }
7916fi
7917
7918# find the maximum length of command line arguments
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7920$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7921if ${lt_cv_sys_max_cmd_len+:} false; then :
7922  $as_echo_n "(cached) " >&6
7923else
7924    i=0
7925  teststring=ABCD
7926
7927  case $build_os in
7928  msdosdjgpp*)
7929    # On DJGPP, this test can blow up pretty badly due to problems in libc
7930    # (any single argument exceeding 2000 bytes causes a buffer overrun
7931    # during glob expansion).  Even if it were fixed, the result of this
7932    # check would be larger than it should be.
7933    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7934    ;;
7935
7936  gnu*)
7937    # Under GNU Hurd, this test is not required because there is
7938    # no limit to the length of command line arguments.
7939    # Libtool will interpret -1 as no limit whatsoever
7940    lt_cv_sys_max_cmd_len=-1;
7941    ;;
7942
7943  cygwin* | mingw* | cegcc*)
7944    # On Win9x/ME, this test blows up -- it succeeds, but takes
7945    # about 5 minutes as the teststring grows exponentially.
7946    # Worse, since 9x/ME are not pre-emptively multitasking,
7947    # you end up with a "frozen" computer, even though with patience
7948    # the test eventually succeeds (with a max line length of 256k).
7949    # Instead, let's just punt: use the minimum linelength reported by
7950    # all of the supported platforms: 8192 (on NT/2K/XP).
7951    lt_cv_sys_max_cmd_len=8192;
7952    ;;
7953
7954  mint*)
7955    # On MiNT this can take a long time and run out of memory.
7956    lt_cv_sys_max_cmd_len=8192;
7957    ;;
7958
7959  amigaos*)
7960    # On AmigaOS with pdksh, this test takes hours, literally.
7961    # So we just punt and use a minimum line length of 8192.
7962    lt_cv_sys_max_cmd_len=8192;
7963    ;;
7964
7965  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7966    # This has been around since 386BSD, at least.  Likely further.
7967    if test -x /sbin/sysctl; then
7968      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7969    elif test -x /usr/sbin/sysctl; then
7970      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7971    else
7972      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7973    fi
7974    # And add a safety zone
7975    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7976    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7977    ;;
7978
7979  interix*)
7980    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7981    lt_cv_sys_max_cmd_len=196608
7982    ;;
7983
7984  os2*)
7985    # The test takes a long time on OS/2.
7986    lt_cv_sys_max_cmd_len=8192
7987    ;;
7988
7989  osf*)
7990    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7991    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7992    # nice to cause kernel panics so lets avoid the loop below.
7993    # First set a reasonable default.
7994    lt_cv_sys_max_cmd_len=16384
7995    #
7996    if test -x /sbin/sysconfig; then
7997      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7998        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7999      esac
8000    fi
8001    ;;
8002  sco3.2v5*)
8003    lt_cv_sys_max_cmd_len=102400
8004    ;;
8005  sysv5* | sco5v6* | sysv4.2uw2*)
8006    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8007    if test -n "$kargmax"; then
8008      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8009    else
8010      lt_cv_sys_max_cmd_len=32768
8011    fi
8012    ;;
8013  *)
8014    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8015    if test -n "$lt_cv_sys_max_cmd_len" && \
8016       test undefined != "$lt_cv_sys_max_cmd_len"; then
8017      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8018      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8019    else
8020      # Make teststring a little bigger before we do anything with it.
8021      # a 1K string should be a reasonable start.
8022      for i in 1 2 3 4 5 6 7 8; do
8023        teststring=$teststring$teststring
8024      done
8025      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8026      # If test is not a shell built-in, we'll probably end up computing a
8027      # maximum length that is only half of the actual maximum length, but
8028      # we can't tell.
8029      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8030	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8031	      test 17 != "$i" # 1/2 MB should be enough
8032      do
8033        i=`expr $i + 1`
8034        teststring=$teststring$teststring
8035      done
8036      # Only check the string length outside the loop.
8037      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8038      teststring=
8039      # Add a significant safety factor because C++ compilers can tack on
8040      # massive amounts of additional arguments before passing them to the
8041      # linker.  It appears as though 1/2 is a usable value.
8042      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8043    fi
8044    ;;
8045  esac
8046
8047fi
8048
8049if test -n "$lt_cv_sys_max_cmd_len"; then
8050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8051$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8052else
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8054$as_echo "none" >&6; }
8055fi
8056max_cmd_len=$lt_cv_sys_max_cmd_len
8057
8058
8059
8060
8061
8062
8063: ${CP="cp -f"}
8064: ${MV="mv -f"}
8065: ${RM="rm -f"}
8066
8067if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8068  lt_unset=unset
8069else
8070  lt_unset=false
8071fi
8072
8073
8074
8075
8076
8077# test EBCDIC or ASCII
8078case `echo X|tr X '\101'` in
8079 A) # ASCII based system
8080    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8081  lt_SP2NL='tr \040 \012'
8082  lt_NL2SP='tr \015\012 \040\040'
8083  ;;
8084 *) # EBCDIC based system
8085  lt_SP2NL='tr \100 \n'
8086  lt_NL2SP='tr \r\n \100\100'
8087  ;;
8088esac
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8099$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8100if ${lt_cv_to_host_file_cmd+:} false; then :
8101  $as_echo_n "(cached) " >&6
8102else
8103  case $host in
8104  *-*-mingw* )
8105    case $build in
8106      *-*-mingw* ) # actually msys
8107        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8108        ;;
8109      *-*-cygwin* )
8110        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8111        ;;
8112      * ) # otherwise, assume *nix
8113        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8114        ;;
8115    esac
8116    ;;
8117  *-*-cygwin* )
8118    case $build in
8119      *-*-mingw* ) # actually msys
8120        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8121        ;;
8122      *-*-cygwin* )
8123        lt_cv_to_host_file_cmd=func_convert_file_noop
8124        ;;
8125      * ) # otherwise, assume *nix
8126        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8127        ;;
8128    esac
8129    ;;
8130  * ) # unhandled hosts (and "normal" native builds)
8131    lt_cv_to_host_file_cmd=func_convert_file_noop
8132    ;;
8133esac
8134
8135fi
8136
8137to_host_file_cmd=$lt_cv_to_host_file_cmd
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8139$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8140
8141
8142
8143
8144
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8146$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8147if ${lt_cv_to_tool_file_cmd+:} false; then :
8148  $as_echo_n "(cached) " >&6
8149else
8150  #assume ordinary cross tools, or native build.
8151lt_cv_to_tool_file_cmd=func_convert_file_noop
8152case $host in
8153  *-*-mingw* )
8154    case $build in
8155      *-*-mingw* ) # actually msys
8156        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8157        ;;
8158    esac
8159    ;;
8160esac
8161
8162fi
8163
8164to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8166$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8167
8168
8169
8170
8171
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8173$as_echo_n "checking for $LD option to reload object files... " >&6; }
8174if ${lt_cv_ld_reload_flag+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  lt_cv_ld_reload_flag='-r'
8178fi
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8180$as_echo "$lt_cv_ld_reload_flag" >&6; }
8181reload_flag=$lt_cv_ld_reload_flag
8182case $reload_flag in
8183"" | " "*) ;;
8184*) reload_flag=" $reload_flag" ;;
8185esac
8186reload_cmds='$LD$reload_flag -o $output$reload_objs'
8187case $host_os in
8188  cygwin* | mingw* | pw32* | cegcc*)
8189    if test yes != "$GCC"; then
8190      reload_cmds=false
8191    fi
8192    ;;
8193  darwin*)
8194    if test yes = "$GCC"; then
8195      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8196    else
8197      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8198    fi
8199    ;;
8200esac
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210if test -n "$ac_tool_prefix"; then
8211  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8212set dummy ${ac_tool_prefix}objdump; ac_word=$2
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
8215if ${ac_cv_prog_OBJDUMP+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218  if test -n "$OBJDUMP"; then
8219  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8220else
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224  IFS=$as_save_IFS
8225  test -z "$as_dir" && as_dir=.
8226    for ac_exec_ext in '' $ac_executable_extensions; do
8227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230    break 2
8231  fi
8232done
8233  done
8234IFS=$as_save_IFS
8235
8236fi
8237fi
8238OBJDUMP=$ac_cv_prog_OBJDUMP
8239if test -n "$OBJDUMP"; then
8240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8241$as_echo "$OBJDUMP" >&6; }
8242else
8243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
8245fi
8246
8247
8248fi
8249if test -z "$ac_cv_prog_OBJDUMP"; then
8250  ac_ct_OBJDUMP=$OBJDUMP
8251  # Extract the first word of "objdump", so it can be a program name with args.
8252set dummy objdump; ac_word=$2
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254$as_echo_n "checking for $ac_word... " >&6; }
8255if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8256  $as_echo_n "(cached) " >&6
8257else
8258  if test -n "$ac_ct_OBJDUMP"; then
8259  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8260else
8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262for as_dir in $PATH
8263do
8264  IFS=$as_save_IFS
8265  test -z "$as_dir" && as_dir=.
8266    for ac_exec_ext in '' $ac_executable_extensions; do
8267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270    break 2
8271  fi
8272done
8273  done
8274IFS=$as_save_IFS
8275
8276fi
8277fi
8278ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8279if test -n "$ac_ct_OBJDUMP"; then
8280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8281$as_echo "$ac_ct_OBJDUMP" >&6; }
8282else
8283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284$as_echo "no" >&6; }
8285fi
8286
8287  if test "x$ac_ct_OBJDUMP" = x; then
8288    OBJDUMP="false"
8289  else
8290    case $cross_compiling:$ac_tool_warned in
8291yes:)
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294ac_tool_warned=yes ;;
8295esac
8296    OBJDUMP=$ac_ct_OBJDUMP
8297  fi
8298else
8299  OBJDUMP="$ac_cv_prog_OBJDUMP"
8300fi
8301
8302test -z "$OBJDUMP" && OBJDUMP=objdump
8303
8304
8305
8306
8307
8308
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8310$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8311if ${lt_cv_deplibs_check_method+:} false; then :
8312  $as_echo_n "(cached) " >&6
8313else
8314  lt_cv_file_magic_cmd='$MAGIC_CMD'
8315lt_cv_file_magic_test_file=
8316lt_cv_deplibs_check_method='unknown'
8317# Need to set the preceding variable on all platforms that support
8318# interlibrary dependencies.
8319# 'none' -- dependencies not supported.
8320# 'unknown' -- same as none, but documents that we really don't know.
8321# 'pass_all' -- all dependencies passed with no checks.
8322# 'test_compile' -- check by making test program.
8323# 'file_magic [[regex]]' -- check by looking for files in library path
8324# that responds to the $file_magic_cmd with a given extended regex.
8325# If you have 'file' or equivalent on your system and you're not sure
8326# whether 'pass_all' will *always* work, you probably want this one.
8327
8328case $host_os in
8329aix[4-9]*)
8330  lt_cv_deplibs_check_method=pass_all
8331  ;;
8332
8333beos*)
8334  lt_cv_deplibs_check_method=pass_all
8335  ;;
8336
8337bsdi[45]*)
8338  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8339  lt_cv_file_magic_cmd='/usr/bin/file -L'
8340  lt_cv_file_magic_test_file=/shlib/libc.so
8341  ;;
8342
8343cygwin*)
8344  # func_win32_libid is a shell function defined in ltmain.sh
8345  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8346  lt_cv_file_magic_cmd='func_win32_libid'
8347  ;;
8348
8349mingw* | pw32*)
8350  # Base MSYS/MinGW do not provide the 'file' command needed by
8351  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8352  # unless we find 'file', for example because we are cross-compiling.
8353  if ( file / ) >/dev/null 2>&1; then
8354    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8355    lt_cv_file_magic_cmd='func_win32_libid'
8356  else
8357    # Keep this pattern in sync with the one in func_win32_libid.
8358    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8359    lt_cv_file_magic_cmd='$OBJDUMP -f'
8360  fi
8361  ;;
8362
8363cegcc*)
8364  # use the weaker test based on 'objdump'. See mingw*.
8365  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8366  lt_cv_file_magic_cmd='$OBJDUMP -f'
8367  ;;
8368
8369darwin* | rhapsody*)
8370  lt_cv_deplibs_check_method=pass_all
8371  ;;
8372
8373freebsd* | dragonfly*)
8374  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8375    case $host_cpu in
8376    i*86 )
8377      # Not sure whether the presence of OpenBSD here was a mistake.
8378      # Let's accept both of them until this is cleared up.
8379      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8380      lt_cv_file_magic_cmd=/usr/bin/file
8381      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8382      ;;
8383    esac
8384  else
8385    lt_cv_deplibs_check_method=pass_all
8386  fi
8387  ;;
8388
8389haiku*)
8390  lt_cv_deplibs_check_method=pass_all
8391  ;;
8392
8393hpux10.20* | hpux11*)
8394  lt_cv_file_magic_cmd=/usr/bin/file
8395  case $host_cpu in
8396  ia64*)
8397    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8398    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8399    ;;
8400  hppa*64*)
8401    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]'
8402    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8403    ;;
8404  *)
8405    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8406    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8407    ;;
8408  esac
8409  ;;
8410
8411interix[3-9]*)
8412  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8413  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8414  ;;
8415
8416irix5* | irix6* | nonstopux*)
8417  case $LD in
8418  *-32|*"-32 ") libmagic=32-bit;;
8419  *-n32|*"-n32 ") libmagic=N32;;
8420  *-64|*"-64 ") libmagic=64-bit;;
8421  *) libmagic=never-match;;
8422  esac
8423  lt_cv_deplibs_check_method=pass_all
8424  ;;
8425
8426# This must be glibc/ELF.
8427linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8428  lt_cv_deplibs_check_method=pass_all
8429  ;;
8430
8431netbsd* | netbsdelf*-gnu)
8432  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8433    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8434  else
8435    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8436  fi
8437  ;;
8438
8439newos6*)
8440  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8441  lt_cv_file_magic_cmd=/usr/bin/file
8442  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8443  ;;
8444
8445*nto* | *qnx*)
8446  lt_cv_deplibs_check_method=pass_all
8447  ;;
8448
8449openbsd* | bitrig*)
8450  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8451    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8452  else
8453    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8454  fi
8455  ;;
8456
8457osf3* | osf4* | osf5*)
8458  lt_cv_deplibs_check_method=pass_all
8459  ;;
8460
8461rdos*)
8462  lt_cv_deplibs_check_method=pass_all
8463  ;;
8464
8465solaris*)
8466  lt_cv_deplibs_check_method=pass_all
8467  ;;
8468
8469sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8470  lt_cv_deplibs_check_method=pass_all
8471  ;;
8472
8473sysv4 | sysv4.3*)
8474  case $host_vendor in
8475  motorola)
8476    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]'
8477    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8478    ;;
8479  ncr)
8480    lt_cv_deplibs_check_method=pass_all
8481    ;;
8482  sequent)
8483    lt_cv_file_magic_cmd='/bin/file'
8484    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8485    ;;
8486  sni)
8487    lt_cv_file_magic_cmd='/bin/file'
8488    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8489    lt_cv_file_magic_test_file=/lib/libc.so
8490    ;;
8491  siemens)
8492    lt_cv_deplibs_check_method=pass_all
8493    ;;
8494  pc)
8495    lt_cv_deplibs_check_method=pass_all
8496    ;;
8497  esac
8498  ;;
8499
8500tpf*)
8501  lt_cv_deplibs_check_method=pass_all
8502  ;;
8503os2*)
8504  lt_cv_deplibs_check_method=pass_all
8505  ;;
8506esac
8507
8508fi
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8510$as_echo "$lt_cv_deplibs_check_method" >&6; }
8511
8512file_magic_glob=
8513want_nocaseglob=no
8514if test "$build" = "$host"; then
8515  case $host_os in
8516  mingw* | pw32*)
8517    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8518      want_nocaseglob=yes
8519    else
8520      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8521    fi
8522    ;;
8523  esac
8524fi
8525
8526file_magic_cmd=$lt_cv_file_magic_cmd
8527deplibs_check_method=$lt_cv_deplibs_check_method
8528test -z "$deplibs_check_method" && deplibs_check_method=unknown
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551if test -n "$ac_tool_prefix"; then
8552  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8553set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if ${ac_cv_prog_DLLTOOL+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559  if test -n "$DLLTOOL"; then
8560  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8561else
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565  IFS=$as_save_IFS
8566  test -z "$as_dir" && as_dir=.
8567    for ac_exec_ext in '' $ac_executable_extensions; do
8568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571    break 2
8572  fi
8573done
8574  done
8575IFS=$as_save_IFS
8576
8577fi
8578fi
8579DLLTOOL=$ac_cv_prog_DLLTOOL
8580if test -n "$DLLTOOL"; then
8581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8582$as_echo "$DLLTOOL" >&6; }
8583else
8584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
8586fi
8587
8588
8589fi
8590if test -z "$ac_cv_prog_DLLTOOL"; then
8591  ac_ct_DLLTOOL=$DLLTOOL
8592  # Extract the first word of "dlltool", so it can be a program name with args.
8593set dummy dlltool; ac_word=$2
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
8596if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8597  $as_echo_n "(cached) " >&6
8598else
8599  if test -n "$ac_ct_DLLTOOL"; then
8600  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8601else
8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605  IFS=$as_save_IFS
8606  test -z "$as_dir" && as_dir=.
8607    for ac_exec_ext in '' $ac_executable_extensions; do
8608  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611    break 2
8612  fi
8613done
8614  done
8615IFS=$as_save_IFS
8616
8617fi
8618fi
8619ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8620if test -n "$ac_ct_DLLTOOL"; then
8621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8622$as_echo "$ac_ct_DLLTOOL" >&6; }
8623else
8624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
8626fi
8627
8628  if test "x$ac_ct_DLLTOOL" = x; then
8629    DLLTOOL="false"
8630  else
8631    case $cross_compiling:$ac_tool_warned in
8632yes:)
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635ac_tool_warned=yes ;;
8636esac
8637    DLLTOOL=$ac_ct_DLLTOOL
8638  fi
8639else
8640  DLLTOOL="$ac_cv_prog_DLLTOOL"
8641fi
8642
8643test -z "$DLLTOOL" && DLLTOOL=dlltool
8644
8645
8646
8647
8648
8649
8650
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8652$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8653if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  lt_cv_sharedlib_from_linklib_cmd='unknown'
8657
8658case $host_os in
8659cygwin* | mingw* | pw32* | cegcc*)
8660  # two different shell functions defined in ltmain.sh;
8661  # decide which one to use based on capabilities of $DLLTOOL
8662  case `$DLLTOOL --help 2>&1` in
8663  *--identify-strict*)
8664    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8665    ;;
8666  *)
8667    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8668    ;;
8669  esac
8670  ;;
8671*)
8672  # fallback: assume linklib IS sharedlib
8673  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8674  ;;
8675esac
8676
8677fi
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8679$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8680sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8681test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8682
8683
8684
8685
8686
8687
8688
8689if test -n "$ac_tool_prefix"; then
8690  for ac_prog in ar
8691  do
8692    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695$as_echo_n "checking for $ac_word... " >&6; }
8696if ${ac_cv_prog_AR+:} false; then :
8697  $as_echo_n "(cached) " >&6
8698else
8699  if test -n "$AR"; then
8700  ac_cv_prog_AR="$AR" # Let the user override the test.
8701else
8702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $PATH
8704do
8705  IFS=$as_save_IFS
8706  test -z "$as_dir" && as_dir=.
8707    for ac_exec_ext in '' $ac_executable_extensions; do
8708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711    break 2
8712  fi
8713done
8714  done
8715IFS=$as_save_IFS
8716
8717fi
8718fi
8719AR=$ac_cv_prog_AR
8720if test -n "$AR"; then
8721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8722$as_echo "$AR" >&6; }
8723else
8724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725$as_echo "no" >&6; }
8726fi
8727
8728
8729    test -n "$AR" && break
8730  done
8731fi
8732if test -z "$AR"; then
8733  ac_ct_AR=$AR
8734  for ac_prog in ar
8735do
8736  # Extract the first word of "$ac_prog", so it can be a program name with args.
8737set dummy $ac_prog; ac_word=$2
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739$as_echo_n "checking for $ac_word... " >&6; }
8740if ${ac_cv_prog_ac_ct_AR+:} false; then :
8741  $as_echo_n "(cached) " >&6
8742else
8743  if test -n "$ac_ct_AR"; then
8744  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8745else
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749  IFS=$as_save_IFS
8750  test -z "$as_dir" && as_dir=.
8751    for ac_exec_ext in '' $ac_executable_extensions; do
8752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753    ac_cv_prog_ac_ct_AR="$ac_prog"
8754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755    break 2
8756  fi
8757done
8758  done
8759IFS=$as_save_IFS
8760
8761fi
8762fi
8763ac_ct_AR=$ac_cv_prog_ac_ct_AR
8764if test -n "$ac_ct_AR"; then
8765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8766$as_echo "$ac_ct_AR" >&6; }
8767else
8768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
8770fi
8771
8772
8773  test -n "$ac_ct_AR" && break
8774done
8775
8776  if test "x$ac_ct_AR" = x; then
8777    AR="false"
8778  else
8779    case $cross_compiling:$ac_tool_warned in
8780yes:)
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8783ac_tool_warned=yes ;;
8784esac
8785    AR=$ac_ct_AR
8786  fi
8787fi
8788
8789: ${AR=ar}
8790: ${AR_FLAGS=cr}
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8803$as_echo_n "checking for archiver @FILE support... " >&6; }
8804if ${lt_cv_ar_at_file+:} false; then :
8805  $as_echo_n "(cached) " >&6
8806else
8807  lt_cv_ar_at_file=no
8808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809/* end confdefs.h.  */
8810
8811int main (void)
8812{
8813
8814 ;
8815 return 0;
8816}
8817_ACEOF
8818if ac_fn_c_try_compile "$LINENO"; then :
8819  echo conftest.$ac_objext > conftest.lst
8820      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8821      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8822  (eval $lt_ar_try) 2>&5
8823  ac_status=$?
8824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8825  test $ac_status = 0; }
8826      if test 0 -eq "$ac_status"; then
8827	# Ensure the archiver fails upon bogus file names.
8828	rm -f conftest.$ac_objext libconftest.a
8829	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8830  (eval $lt_ar_try) 2>&5
8831  ac_status=$?
8832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8833  test $ac_status = 0; }
8834	if test 0 -ne "$ac_status"; then
8835          lt_cv_ar_at_file=@
8836        fi
8837      fi
8838      rm -f conftest.* libconftest.a
8839
8840fi
8841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842
8843fi
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8845$as_echo "$lt_cv_ar_at_file" >&6; }
8846
8847if test no = "$lt_cv_ar_at_file"; then
8848  archiver_list_spec=
8849else
8850  archiver_list_spec=$lt_cv_ar_at_file
8851fi
8852
8853
8854
8855
8856
8857
8858
8859if test -n "$ac_tool_prefix"; then
8860  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8861set dummy ${ac_tool_prefix}strip; ac_word=$2
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863$as_echo_n "checking for $ac_word... " >&6; }
8864if ${ac_cv_prog_STRIP+:} false; then :
8865  $as_echo_n "(cached) " >&6
8866else
8867  if test -n "$STRIP"; then
8868  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8869else
8870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871for as_dir in $PATH
8872do
8873  IFS=$as_save_IFS
8874  test -z "$as_dir" && as_dir=.
8875    for ac_exec_ext in '' $ac_executable_extensions; do
8876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8877    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879    break 2
8880  fi
8881done
8882  done
8883IFS=$as_save_IFS
8884
8885fi
8886fi
8887STRIP=$ac_cv_prog_STRIP
8888if test -n "$STRIP"; then
8889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8890$as_echo "$STRIP" >&6; }
8891else
8892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893$as_echo "no" >&6; }
8894fi
8895
8896
8897fi
8898if test -z "$ac_cv_prog_STRIP"; then
8899  ac_ct_STRIP=$STRIP
8900  # Extract the first word of "strip", so it can be a program name with args.
8901set dummy strip; ac_word=$2
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903$as_echo_n "checking for $ac_word... " >&6; }
8904if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  if test -n "$ac_ct_STRIP"; then
8908  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8909else
8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911for as_dir in $PATH
8912do
8913  IFS=$as_save_IFS
8914  test -z "$as_dir" && as_dir=.
8915    for ac_exec_ext in '' $ac_executable_extensions; do
8916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917    ac_cv_prog_ac_ct_STRIP="strip"
8918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919    break 2
8920  fi
8921done
8922  done
8923IFS=$as_save_IFS
8924
8925fi
8926fi
8927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8928if test -n "$ac_ct_STRIP"; then
8929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8930$as_echo "$ac_ct_STRIP" >&6; }
8931else
8932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933$as_echo "no" >&6; }
8934fi
8935
8936  if test "x$ac_ct_STRIP" = x; then
8937    STRIP=":"
8938  else
8939    case $cross_compiling:$ac_tool_warned in
8940yes:)
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8943ac_tool_warned=yes ;;
8944esac
8945    STRIP=$ac_ct_STRIP
8946  fi
8947else
8948  STRIP="$ac_cv_prog_STRIP"
8949fi
8950
8951test -z "$STRIP" && STRIP=:
8952
8953
8954
8955
8956
8957
8958if test -n "$ac_tool_prefix"; then
8959  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8960set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962$as_echo_n "checking for $ac_word... " >&6; }
8963if ${ac_cv_prog_RANLIB+:} false; then :
8964  $as_echo_n "(cached) " >&6
8965else
8966  if test -n "$RANLIB"; then
8967  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8968else
8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
8971do
8972  IFS=$as_save_IFS
8973  test -z "$as_dir" && as_dir=.
8974    for ac_exec_ext in '' $ac_executable_extensions; do
8975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8978    break 2
8979  fi
8980done
8981  done
8982IFS=$as_save_IFS
8983
8984fi
8985fi
8986RANLIB=$ac_cv_prog_RANLIB
8987if test -n "$RANLIB"; then
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8989$as_echo "$RANLIB" >&6; }
8990else
8991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992$as_echo "no" >&6; }
8993fi
8994
8995
8996fi
8997if test -z "$ac_cv_prog_RANLIB"; then
8998  ac_ct_RANLIB=$RANLIB
8999  # Extract the first word of "ranlib", so it can be a program name with args.
9000set dummy ranlib; ac_word=$2
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002$as_echo_n "checking for $ac_word... " >&6; }
9003if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  if test -n "$ac_ct_RANLIB"; then
9007  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9008else
9009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010for as_dir in $PATH
9011do
9012  IFS=$as_save_IFS
9013  test -z "$as_dir" && as_dir=.
9014    for ac_exec_ext in '' $ac_executable_extensions; do
9015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016    ac_cv_prog_ac_ct_RANLIB="ranlib"
9017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018    break 2
9019  fi
9020done
9021  done
9022IFS=$as_save_IFS
9023
9024fi
9025fi
9026ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9027if test -n "$ac_ct_RANLIB"; then
9028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9029$as_echo "$ac_ct_RANLIB" >&6; }
9030else
9031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032$as_echo "no" >&6; }
9033fi
9034
9035  if test "x$ac_ct_RANLIB" = x; then
9036    RANLIB=":"
9037  else
9038    case $cross_compiling:$ac_tool_warned in
9039yes:)
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9042ac_tool_warned=yes ;;
9043esac
9044    RANLIB=$ac_ct_RANLIB
9045  fi
9046else
9047  RANLIB="$ac_cv_prog_RANLIB"
9048fi
9049
9050test -z "$RANLIB" && RANLIB=:
9051
9052
9053
9054
9055
9056
9057# Determine commands to create old-style static archives.
9058old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9059old_postinstall_cmds='chmod 644 $oldlib'
9060old_postuninstall_cmds=
9061
9062if test -n "$RANLIB"; then
9063  case $host_os in
9064  bitrig* | openbsd*)
9065    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9066    ;;
9067  *)
9068    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9069    ;;
9070  esac
9071  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9072fi
9073
9074case $host_os in
9075  darwin*)
9076    lock_old_archive_extraction=yes ;;
9077  *)
9078    lock_old_archive_extraction=no ;;
9079esac
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119# If no C compiler was specified, use CC.
9120LTCC=${LTCC-"$CC"}
9121
9122# If no C compiler flags were specified, use CFLAGS.
9123LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9124
9125# Allow CC to be a program name with arguments.
9126compiler=$CC
9127
9128
9129# Check for command to grab the raw symbol name followed by C symbol from nm.
9130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9131$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9132if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9133  $as_echo_n "(cached) " >&6
9134else
9135
9136# These are sane defaults that work on at least a few old systems.
9137# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9138
9139# Character class describing NM global symbol codes.
9140symcode='[BCDEGRST]'
9141
9142# Regexp to match symbols that can be accessed directly from C.
9143sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9144
9145# Define system-specific variables.
9146case $host_os in
9147aix*)
9148  symcode='[BCDT]'
9149  ;;
9150cygwin* | mingw* | pw32* | cegcc*)
9151  symcode='[ABCDGISTW]'
9152  ;;
9153hpux*)
9154  if test ia64 = "$host_cpu"; then
9155    symcode='[ABCDEGRST]'
9156  fi
9157  ;;
9158irix* | nonstopux*)
9159  symcode='[BCDEGRST]'
9160  ;;
9161osf*)
9162  symcode='[BCDEGQRST]'
9163  ;;
9164solaris*)
9165  symcode='[BDRT]'
9166  ;;
9167sco3.2v5*)
9168  symcode='[DT]'
9169  ;;
9170sysv4.2uw2*)
9171  symcode='[DT]'
9172  ;;
9173sysv5* | sco5v6* | unixware* | OpenUNIX*)
9174  symcode='[ABDT]'
9175  ;;
9176sysv4)
9177  symcode='[DFNSTU]'
9178  ;;
9179esac
9180
9181# If we're using GNU nm, then use its standard symbol codes.
9182case `$NM -V 2>&1` in
9183*GNU* | *'with BFD'*)
9184  symcode='[ABCDGIRSTW]' ;;
9185esac
9186
9187if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9188  # Gets list of data symbols to import.
9189  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9190  # Adjust the below global symbol transforms to fixup imported variables.
9191  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9192  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9193  lt_c_name_lib_hook="\
9194  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9195  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9196else
9197  # Disable hooks by default.
9198  lt_cv_sys_global_symbol_to_import=
9199  lt_cdecl_hook=
9200  lt_c_name_hook=
9201  lt_c_name_lib_hook=
9202fi
9203
9204# Transform an extracted symbol line into a proper C declaration.
9205# Some systems (esp. on ia64) link data and code symbols differently,
9206# so use this general approach.
9207lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9208$lt_cdecl_hook\
9209" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9210" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9211
9212# Transform an extracted symbol line into symbol name and symbol address
9213lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9214$lt_c_name_hook\
9215" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9216" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9217
9218# Transform an extracted symbol line into symbol name with lib prefix and
9219# symbol address.
9220lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9221$lt_c_name_lib_hook\
9222" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9223" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9224" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9225
9226# Handle CRLF in mingw tool chain
9227opt_cr=
9228case $build_os in
9229mingw*)
9230  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9231  ;;
9232esac
9233
9234# Try without a prefix underscore, then with it.
9235for ac_symprfx in "" "_"; do
9236
9237  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9238  symxfrm="\\1 $ac_symprfx\\2 \\2"
9239
9240  # Write the raw and C identifiers.
9241  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9242    # Fake it for dumpbin and say T for any non-static function,
9243    # D for any global variable and I for any imported variable.
9244    # Also find C++ and __fastcall symbols from MSVC++,
9245    # which start with @ or ?.
9246    lt_cv_sys_global_symbol_pipe="$AWK '"\
9247"     {last_section=section; section=\$ 3};"\
9248"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9249"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9250"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9251"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9252"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9253"     \$ 0!~/External *\|/{next};"\
9254"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9255"     {if(hide[section]) next};"\
9256"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9257"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9258"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9259"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9260"     ' prfx=^$ac_symprfx"
9261  else
9262    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9263  fi
9264  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9265
9266  # Check to see that the pipe works correctly.
9267  pipe_works=no
9268
9269  rm -f conftest*
9270  cat > conftest.$ac_ext <<_LT_EOF
9271#ifdef __cplusplus
9272extern "C" {
9273#endif
9274char nm_test_var;
9275void nm_test_func(void);
9276void nm_test_func(void){}
9277#ifdef __cplusplus
9278}
9279#endif
9280int main(){nm_test_var='a';nm_test_func();return(0);}
9281_LT_EOF
9282
9283  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9284  (eval $ac_compile) 2>&5
9285  ac_status=$?
9286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9287  test $ac_status = 0; }; then
9288    # Now try to grab the symbols.
9289    nlist=conftest.nm
9290    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9291    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9292      # Try sorting and uniquifying the output.
9293      if sort "$nlist" | uniq > "$nlist"T; then
9294	mv -f "$nlist"T "$nlist"
9295      else
9296	rm -f "$nlist"T
9297      fi
9298
9299      # Make sure that we snagged all the symbols we need.
9300      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9301	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9302	  cat <<_LT_EOF > conftest.$ac_ext
9303/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9304#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9305/* DATA imports from DLLs on WIN32 can't be const, because runtime
9306   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9307# define LT_DLSYM_CONST
9308#elif defined __osf__
9309/* This system does not cope well with relocations in const data.  */
9310# define LT_DLSYM_CONST
9311#else
9312# define LT_DLSYM_CONST const
9313#endif
9314
9315#ifdef __cplusplus
9316extern "C" {
9317#endif
9318
9319_LT_EOF
9320	  # Now generate the symbol file.
9321	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9322
9323	  cat <<_LT_EOF >> conftest.$ac_ext
9324
9325/* The mapping between symbol names and symbols.  */
9326LT_DLSYM_CONST struct {
9327  const char *name;
9328  void       *address;
9329}
9330lt__PROGRAM__LTX_preloaded_symbols[] =
9331{
9332  { "@PROGRAM@", (void *) 0 },
9333_LT_EOF
9334	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9335	  cat <<\_LT_EOF >> conftest.$ac_ext
9336  {0, (void *) 0}
9337};
9338
9339/* This works around a problem in FreeBSD linker */
9340#ifdef FREEBSD_WORKAROUND
9341static const void *lt_preloaded_setup() {
9342  return lt__PROGRAM__LTX_preloaded_symbols;
9343}
9344#endif
9345
9346#ifdef __cplusplus
9347}
9348#endif
9349_LT_EOF
9350	  # Now try linking the two files.
9351	  mv conftest.$ac_objext conftstm.$ac_objext
9352	  lt_globsym_save_LIBS=$LIBS
9353	  lt_globsym_save_CFLAGS=$CFLAGS
9354	  LIBS=conftstm.$ac_objext
9355	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9356	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9357  (eval $ac_link) 2>&5
9358  ac_status=$?
9359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9360  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9361	    pipe_works=yes
9362	  fi
9363	  LIBS=$lt_globsym_save_LIBS
9364	  CFLAGS=$lt_globsym_save_CFLAGS
9365	else
9366	  echo "cannot find nm_test_func in $nlist" >&5
9367	fi
9368      else
9369	echo "cannot find nm_test_var in $nlist" >&5
9370      fi
9371    else
9372      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9373    fi
9374  else
9375    echo "$progname: failed program was:" >&5
9376    cat conftest.$ac_ext >&5
9377  fi
9378  rm -rf conftest* conftst*
9379
9380  # Do not use the global_symbol_pipe unless it works.
9381  if test yes = "$pipe_works"; then
9382    break
9383  else
9384    lt_cv_sys_global_symbol_pipe=
9385  fi
9386done
9387
9388fi
9389
9390if test -z "$lt_cv_sys_global_symbol_pipe"; then
9391  lt_cv_sys_global_symbol_to_cdecl=
9392fi
9393if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9395$as_echo "failed" >&6; }
9396else
9397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9398$as_echo "ok" >&6; }
9399fi
9400
9401# Response file support.
9402if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9403  nm_file_list_spec='@'
9404elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9405  nm_file_list_spec='@'
9406fi
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9445$as_echo_n "checking for sysroot... " >&6; }
9446
9447# Check whether --with-sysroot was given.
9448if test "${with_sysroot+set}" = set; then :
9449  withval=$with_sysroot;
9450else
9451  with_sysroot=no
9452fi
9453
9454
9455lt_sysroot=
9456case $with_sysroot in #(
9457 yes)
9458   if test yes = "$GCC"; then
9459     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9460   fi
9461   ;; #(
9462 /*)
9463   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9464   ;; #(
9465 no|'')
9466   ;; #(
9467 *)
9468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9469$as_echo "$with_sysroot" >&6; }
9470   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9471   ;;
9472esac
9473
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9475$as_echo "${lt_sysroot:-no}" >&6; }
9476
9477
9478
9479
9480
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9482$as_echo_n "checking for a working dd... " >&6; }
9483if ${ac_cv_path_lt_DD+:} false; then :
9484  $as_echo_n "(cached) " >&6
9485else
9486  printf 0123456789abcdef0123456789abcdef >conftest.i
9487cat conftest.i conftest.i >conftest2.i
9488: ${lt_DD:=$DD}
9489if test -z "$lt_DD"; then
9490  ac_path_lt_DD_found=false
9491  # Loop through the user's path and test for each of PROGNAME-LIST
9492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493for as_dir in $PATH
9494do
9495  IFS=$as_save_IFS
9496  test -z "$as_dir" && as_dir=.
9497    for ac_prog in dd; do
9498    for ac_exec_ext in '' $ac_executable_extensions; do
9499      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9500      as_fn_executable_p "$ac_path_lt_DD" || continue
9501if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9502  cmp -s conftest.i conftest.out \
9503  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9504fi
9505      $ac_path_lt_DD_found && break 3
9506    done
9507  done
9508  done
9509IFS=$as_save_IFS
9510  if test -z "$ac_cv_path_lt_DD"; then
9511    :
9512  fi
9513else
9514  ac_cv_path_lt_DD=$lt_DD
9515fi
9516
9517rm -f conftest.i conftest2.i conftest.out
9518fi
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9520$as_echo "$ac_cv_path_lt_DD" >&6; }
9521
9522
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9524$as_echo_n "checking how to truncate binary pipes... " >&6; }
9525if ${lt_cv_truncate_bin+:} false; then :
9526  $as_echo_n "(cached) " >&6
9527else
9528  printf 0123456789abcdef0123456789abcdef >conftest.i
9529cat conftest.i conftest.i >conftest2.i
9530lt_cv_truncate_bin=
9531if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9532  cmp -s conftest.i conftest.out \
9533  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9534fi
9535rm -f conftest.i conftest2.i conftest.out
9536test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9537fi
9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9539$as_echo "$lt_cv_truncate_bin" >&6; }
9540
9541
9542
9543
9544
9545
9546
9547# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9548func_cc_basename ()
9549{
9550    for cc_temp in $*""; do
9551      case $cc_temp in
9552        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9553        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9554        \-*) ;;
9555        *) break;;
9556      esac
9557    done
9558    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9559}
9560
9561# Check whether --enable-libtool-lock was given.
9562if test "${enable_libtool_lock+set}" = set; then :
9563  enableval=$enable_libtool_lock;
9564fi
9565
9566test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9567
9568# Some flags need to be propagated to the compiler or linker for good
9569# libtool support.
9570case $host in
9571ia64-*-hpux*)
9572  # Find out what ABI is being produced by ac_compile, and set mode
9573  # options accordingly.
9574  echo 'int i;' > conftest.$ac_ext
9575  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9576  (eval $ac_compile) 2>&5
9577  ac_status=$?
9578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9579  test $ac_status = 0; }; then
9580    case `/usr/bin/file conftest.$ac_objext` in
9581      *ELF-32*)
9582	HPUX_IA64_MODE=32
9583	;;
9584      *ELF-64*)
9585	HPUX_IA64_MODE=64
9586	;;
9587    esac
9588  fi
9589  rm -rf conftest*
9590  ;;
9591*-*-irix6*)
9592  # Find out what ABI is being produced by ac_compile, and set linker
9593  # options accordingly.
9594  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9596  (eval $ac_compile) 2>&5
9597  ac_status=$?
9598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9599  test $ac_status = 0; }; then
9600    if test yes = "$lt_cv_prog_gnu_ld"; then
9601      case `/usr/bin/file conftest.$ac_objext` in
9602	*32-bit*)
9603	  LD="${LD-ld} -melf32bsmip"
9604	  ;;
9605	*N32*)
9606	  LD="${LD-ld} -melf32bmipn32"
9607	  ;;
9608	*64-bit*)
9609	  LD="${LD-ld} -melf64bmip"
9610	;;
9611      esac
9612    else
9613      case `/usr/bin/file conftest.$ac_objext` in
9614	*32-bit*)
9615	  LD="${LD-ld} -32"
9616	  ;;
9617	*N32*)
9618	  LD="${LD-ld} -n32"
9619	  ;;
9620	*64-bit*)
9621	  LD="${LD-ld} -64"
9622	  ;;
9623      esac
9624    fi
9625  fi
9626  rm -rf conftest*
9627  ;;
9628
9629mips64*-*linux*)
9630  # Find out what ABI is being produced by ac_compile, and set linker
9631  # options accordingly.
9632  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9633  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9634  (eval $ac_compile) 2>&5
9635  ac_status=$?
9636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9637  test $ac_status = 0; }; then
9638    emul=elf
9639    case `/usr/bin/file conftest.$ac_objext` in
9640      *32-bit*)
9641	emul="${emul}32"
9642	;;
9643      *64-bit*)
9644	emul="${emul}64"
9645	;;
9646    esac
9647    case `/usr/bin/file conftest.$ac_objext` in
9648      *MSB*)
9649	emul="${emul}btsmip"
9650	;;
9651      *LSB*)
9652	emul="${emul}ltsmip"
9653	;;
9654    esac
9655    case `/usr/bin/file conftest.$ac_objext` in
9656      *N32*)
9657	emul="${emul}n32"
9658	;;
9659    esac
9660    LD="${LD-ld} -m $emul"
9661  fi
9662  rm -rf conftest*
9663  ;;
9664
9665x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9666s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9667  # Find out what ABI is being produced by ac_compile, and set linker
9668  # options accordingly.  Note that the listed cases only cover the
9669  # situations where additional linker options are needed (such as when
9670  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9671  # vice versa); the common cases where no linker options are needed do
9672  # not appear in the list.
9673  echo 'int i;' > conftest.$ac_ext
9674  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9675  (eval $ac_compile) 2>&5
9676  ac_status=$?
9677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9678  test $ac_status = 0; }; then
9679    case `/usr/bin/file conftest.o` in
9680      *32-bit*)
9681	case $host in
9682	  x86_64-*kfreebsd*-gnu)
9683	    LD="${LD-ld} -m elf_i386_fbsd"
9684	    ;;
9685	  x86_64-*linux*)
9686	    case `/usr/bin/file conftest.o` in
9687	      *x86-64*)
9688		LD="${LD-ld} -m elf32_x86_64"
9689		;;
9690	      *)
9691		LD="${LD-ld} -m elf_i386"
9692		;;
9693	    esac
9694	    ;;
9695	  powerpc64le-*linux*)
9696	    LD="${LD-ld} -m elf32lppclinux"
9697	    ;;
9698	  powerpc64-*linux*)
9699	    LD="${LD-ld} -m elf32ppclinux"
9700	    ;;
9701	  s390x-*linux*)
9702	    LD="${LD-ld} -m elf_s390"
9703	    ;;
9704	  sparc64-*linux*)
9705	    LD="${LD-ld} -m elf32_sparc"
9706	    ;;
9707	esac
9708	;;
9709      *64-bit*)
9710	case $host in
9711	  x86_64-*kfreebsd*-gnu)
9712	    LD="${LD-ld} -m elf_x86_64_fbsd"
9713	    ;;
9714	  x86_64-*linux*)
9715	    LD="${LD-ld} -m elf_x86_64"
9716	    ;;
9717	  powerpcle-*linux*)
9718	    LD="${LD-ld} -m elf64lppc"
9719	    ;;
9720	  powerpc-*linux*)
9721	    LD="${LD-ld} -m elf64ppc"
9722	    ;;
9723	  s390*-*linux*|s390*-*tpf*)
9724	    LD="${LD-ld} -m elf64_s390"
9725	    ;;
9726	  sparc*-*linux*)
9727	    LD="${LD-ld} -m elf64_sparc"
9728	    ;;
9729	esac
9730	;;
9731    esac
9732  fi
9733  rm -rf conftest*
9734  ;;
9735
9736*-*-sco3.2v5*)
9737  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9738  SAVE_CFLAGS=$CFLAGS
9739  CFLAGS="$CFLAGS -belf"
9740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9741$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9742if ${lt_cv_cc_needs_belf+:} false; then :
9743  $as_echo_n "(cached) " >&6
9744else
9745  ac_ext=c
9746ac_cpp='$CPP $CPPFLAGS'
9747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9749ac_compiler_gnu=$ac_cv_c_compiler_gnu
9750
9751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752/* end confdefs.h.  */
9753
9754int main (void)
9755{
9756
9757 ;
9758 return 0;
9759}
9760_ACEOF
9761if ac_fn_c_try_link "$LINENO"; then :
9762  lt_cv_cc_needs_belf=yes
9763else
9764  lt_cv_cc_needs_belf=no
9765fi
9766rm -f core conftest.err conftest.$ac_objext \
9767    conftest$ac_exeext conftest.$ac_ext
9768     ac_ext=c
9769ac_cpp='$CPP $CPPFLAGS'
9770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9772ac_compiler_gnu=$ac_cv_c_compiler_gnu
9773
9774fi
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9776$as_echo "$lt_cv_cc_needs_belf" >&6; }
9777  if test yes != "$lt_cv_cc_needs_belf"; then
9778    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9779    CFLAGS=$SAVE_CFLAGS
9780  fi
9781  ;;
9782*-*solaris*)
9783  # Find out what ABI is being produced by ac_compile, and set linker
9784  # options accordingly.
9785  echo 'int i;' > conftest.$ac_ext
9786  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9787  (eval $ac_compile) 2>&5
9788  ac_status=$?
9789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9790  test $ac_status = 0; }; then
9791    case `/usr/bin/file conftest.o` in
9792    *64-bit*)
9793      case $lt_cv_prog_gnu_ld in
9794      yes*)
9795        case $host in
9796        i?86-*-solaris*|x86_64-*-solaris*)
9797          LD="${LD-ld} -m elf_x86_64"
9798          ;;
9799        sparc*-*-solaris*)
9800          LD="${LD-ld} -m elf64_sparc"
9801          ;;
9802        esac
9803        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9804        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9805          LD=${LD-ld}_sol2
9806        fi
9807        ;;
9808      *)
9809	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9810	  LD="${LD-ld} -64"
9811	fi
9812	;;
9813      esac
9814      ;;
9815    esac
9816  fi
9817  rm -rf conftest*
9818  ;;
9819esac
9820
9821need_locks=$enable_libtool_lock
9822
9823if test -n "$ac_tool_prefix"; then
9824  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9825set dummy ${ac_tool_prefix}mt; ac_word=$2
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827$as_echo_n "checking for $ac_word... " >&6; }
9828if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  if test -n "$MANIFEST_TOOL"; then
9832  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9833else
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837  IFS=$as_save_IFS
9838  test -z "$as_dir" && as_dir=.
9839    for ac_exec_ext in '' $ac_executable_extensions; do
9840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9841    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843    break 2
9844  fi
9845done
9846  done
9847IFS=$as_save_IFS
9848
9849fi
9850fi
9851MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9852if test -n "$MANIFEST_TOOL"; then
9853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9854$as_echo "$MANIFEST_TOOL" >&6; }
9855else
9856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857$as_echo "no" >&6; }
9858fi
9859
9860
9861fi
9862if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9863  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9864  # Extract the first word of "mt", so it can be a program name with args.
9865set dummy mt; ac_word=$2
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867$as_echo_n "checking for $ac_word... " >&6; }
9868if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9869  $as_echo_n "(cached) " >&6
9870else
9871  if test -n "$ac_ct_MANIFEST_TOOL"; then
9872  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877  IFS=$as_save_IFS
9878  test -z "$as_dir" && as_dir=.
9879    for ac_exec_ext in '' $ac_executable_extensions; do
9880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883    break 2
9884  fi
9885done
9886  done
9887IFS=$as_save_IFS
9888
9889fi
9890fi
9891ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9892if test -n "$ac_ct_MANIFEST_TOOL"; then
9893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9894$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9895else
9896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898fi
9899
9900  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9901    MANIFEST_TOOL=":"
9902  else
9903    case $cross_compiling:$ac_tool_warned in
9904yes:)
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9907ac_tool_warned=yes ;;
9908esac
9909    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9910  fi
9911else
9912  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9913fi
9914
9915test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9917$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9918if ${lt_cv_path_mainfest_tool+:} false; then :
9919  $as_echo_n "(cached) " >&6
9920else
9921  lt_cv_path_mainfest_tool=no
9922  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9923  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9924  cat conftest.err >&5
9925  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9926    lt_cv_path_mainfest_tool=yes
9927  fi
9928  rm -f conftest*
9929fi
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9931$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9932if test yes != "$lt_cv_path_mainfest_tool"; then
9933  MANIFEST_TOOL=:
9934fi
9935
9936
9937
9938
9939
9940
9941  case $host_os in
9942    rhapsody* | darwin*)
9943    if test -n "$ac_tool_prefix"; then
9944  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9945set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947$as_echo_n "checking for $ac_word... " >&6; }
9948if ${ac_cv_prog_DSYMUTIL+:} false; then :
9949  $as_echo_n "(cached) " >&6
9950else
9951  if test -n "$DSYMUTIL"; then
9952  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9953else
9954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955for as_dir in $PATH
9956do
9957  IFS=$as_save_IFS
9958  test -z "$as_dir" && as_dir=.
9959    for ac_exec_ext in '' $ac_executable_extensions; do
9960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9961    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9963    break 2
9964  fi
9965done
9966  done
9967IFS=$as_save_IFS
9968
9969fi
9970fi
9971DSYMUTIL=$ac_cv_prog_DSYMUTIL
9972if test -n "$DSYMUTIL"; then
9973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9974$as_echo "$DSYMUTIL" >&6; }
9975else
9976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977$as_echo "no" >&6; }
9978fi
9979
9980
9981fi
9982if test -z "$ac_cv_prog_DSYMUTIL"; then
9983  ac_ct_DSYMUTIL=$DSYMUTIL
9984  # Extract the first word of "dsymutil", so it can be a program name with args.
9985set dummy dsymutil; ac_word=$2
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987$as_echo_n "checking for $ac_word... " >&6; }
9988if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9989  $as_echo_n "(cached) " >&6
9990else
9991  if test -n "$ac_ct_DSYMUTIL"; then
9992  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9993else
9994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995for as_dir in $PATH
9996do
9997  IFS=$as_save_IFS
9998  test -z "$as_dir" && as_dir=.
9999    for ac_exec_ext in '' $ac_executable_extensions; do
10000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003    break 2
10004  fi
10005done
10006  done
10007IFS=$as_save_IFS
10008
10009fi
10010fi
10011ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10012if test -n "$ac_ct_DSYMUTIL"; then
10013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10014$as_echo "$ac_ct_DSYMUTIL" >&6; }
10015else
10016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017$as_echo "no" >&6; }
10018fi
10019
10020  if test "x$ac_ct_DSYMUTIL" = x; then
10021    DSYMUTIL=":"
10022  else
10023    case $cross_compiling:$ac_tool_warned in
10024yes:)
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10027ac_tool_warned=yes ;;
10028esac
10029    DSYMUTIL=$ac_ct_DSYMUTIL
10030  fi
10031else
10032  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10033fi
10034
10035    if test -n "$ac_tool_prefix"; then
10036  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10037set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039$as_echo_n "checking for $ac_word... " >&6; }
10040if ${ac_cv_prog_NMEDIT+:} false; then :
10041  $as_echo_n "(cached) " >&6
10042else
10043  if test -n "$NMEDIT"; then
10044  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10045else
10046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047for as_dir in $PATH
10048do
10049  IFS=$as_save_IFS
10050  test -z "$as_dir" && as_dir=.
10051    for ac_exec_ext in '' $ac_executable_extensions; do
10052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055    break 2
10056  fi
10057done
10058  done
10059IFS=$as_save_IFS
10060
10061fi
10062fi
10063NMEDIT=$ac_cv_prog_NMEDIT
10064if test -n "$NMEDIT"; then
10065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10066$as_echo "$NMEDIT" >&6; }
10067else
10068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069$as_echo "no" >&6; }
10070fi
10071
10072
10073fi
10074if test -z "$ac_cv_prog_NMEDIT"; then
10075  ac_ct_NMEDIT=$NMEDIT
10076  # Extract the first word of "nmedit", so it can be a program name with args.
10077set dummy nmedit; ac_word=$2
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079$as_echo_n "checking for $ac_word... " >&6; }
10080if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10081  $as_echo_n "(cached) " >&6
10082else
10083  if test -n "$ac_ct_NMEDIT"; then
10084  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10085else
10086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087for as_dir in $PATH
10088do
10089  IFS=$as_save_IFS
10090  test -z "$as_dir" && as_dir=.
10091    for ac_exec_ext in '' $ac_executable_extensions; do
10092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095    break 2
10096  fi
10097done
10098  done
10099IFS=$as_save_IFS
10100
10101fi
10102fi
10103ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10104if test -n "$ac_ct_NMEDIT"; then
10105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10106$as_echo "$ac_ct_NMEDIT" >&6; }
10107else
10108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109$as_echo "no" >&6; }
10110fi
10111
10112  if test "x$ac_ct_NMEDIT" = x; then
10113    NMEDIT=":"
10114  else
10115    case $cross_compiling:$ac_tool_warned in
10116yes:)
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10119ac_tool_warned=yes ;;
10120esac
10121    NMEDIT=$ac_ct_NMEDIT
10122  fi
10123else
10124  NMEDIT="$ac_cv_prog_NMEDIT"
10125fi
10126
10127    if test -n "$ac_tool_prefix"; then
10128  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10129set dummy ${ac_tool_prefix}lipo; ac_word=$2
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131$as_echo_n "checking for $ac_word... " >&6; }
10132if ${ac_cv_prog_LIPO+:} false; then :
10133  $as_echo_n "(cached) " >&6
10134else
10135  if test -n "$LIPO"; then
10136  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10137else
10138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $PATH
10140do
10141  IFS=$as_save_IFS
10142  test -z "$as_dir" && as_dir=.
10143    for ac_exec_ext in '' $ac_executable_extensions; do
10144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147    break 2
10148  fi
10149done
10150  done
10151IFS=$as_save_IFS
10152
10153fi
10154fi
10155LIPO=$ac_cv_prog_LIPO
10156if test -n "$LIPO"; then
10157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10158$as_echo "$LIPO" >&6; }
10159else
10160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161$as_echo "no" >&6; }
10162fi
10163
10164
10165fi
10166if test -z "$ac_cv_prog_LIPO"; then
10167  ac_ct_LIPO=$LIPO
10168  # Extract the first word of "lipo", so it can be a program name with args.
10169set dummy lipo; ac_word=$2
10170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171$as_echo_n "checking for $ac_word... " >&6; }
10172if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10173  $as_echo_n "(cached) " >&6
10174else
10175  if test -n "$ac_ct_LIPO"; then
10176  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10177else
10178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179for as_dir in $PATH
10180do
10181  IFS=$as_save_IFS
10182  test -z "$as_dir" && as_dir=.
10183    for ac_exec_ext in '' $ac_executable_extensions; do
10184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10185    ac_cv_prog_ac_ct_LIPO="lipo"
10186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187    break 2
10188  fi
10189done
10190  done
10191IFS=$as_save_IFS
10192
10193fi
10194fi
10195ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10196if test -n "$ac_ct_LIPO"; then
10197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10198$as_echo "$ac_ct_LIPO" >&6; }
10199else
10200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201$as_echo "no" >&6; }
10202fi
10203
10204  if test "x$ac_ct_LIPO" = x; then
10205    LIPO=":"
10206  else
10207    case $cross_compiling:$ac_tool_warned in
10208yes:)
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10211ac_tool_warned=yes ;;
10212esac
10213    LIPO=$ac_ct_LIPO
10214  fi
10215else
10216  LIPO="$ac_cv_prog_LIPO"
10217fi
10218
10219    if test -n "$ac_tool_prefix"; then
10220  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10221set dummy ${ac_tool_prefix}otool; ac_word=$2
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223$as_echo_n "checking for $ac_word... " >&6; }
10224if ${ac_cv_prog_OTOOL+:} false; then :
10225  $as_echo_n "(cached) " >&6
10226else
10227  if test -n "$OTOOL"; then
10228  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10229else
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233  IFS=$as_save_IFS
10234  test -z "$as_dir" && as_dir=.
10235    for ac_exec_ext in '' $ac_executable_extensions; do
10236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239    break 2
10240  fi
10241done
10242  done
10243IFS=$as_save_IFS
10244
10245fi
10246fi
10247OTOOL=$ac_cv_prog_OTOOL
10248if test -n "$OTOOL"; then
10249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10250$as_echo "$OTOOL" >&6; }
10251else
10252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
10254fi
10255
10256
10257fi
10258if test -z "$ac_cv_prog_OTOOL"; then
10259  ac_ct_OTOOL=$OTOOL
10260  # Extract the first word of "otool", so it can be a program name with args.
10261set dummy otool; ac_word=$2
10262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263$as_echo_n "checking for $ac_word... " >&6; }
10264if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10265  $as_echo_n "(cached) " >&6
10266else
10267  if test -n "$ac_ct_OTOOL"; then
10268  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10269else
10270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271for as_dir in $PATH
10272do
10273  IFS=$as_save_IFS
10274  test -z "$as_dir" && as_dir=.
10275    for ac_exec_ext in '' $ac_executable_extensions; do
10276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277    ac_cv_prog_ac_ct_OTOOL="otool"
10278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279    break 2
10280  fi
10281done
10282  done
10283IFS=$as_save_IFS
10284
10285fi
10286fi
10287ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10288if test -n "$ac_ct_OTOOL"; then
10289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10290$as_echo "$ac_ct_OTOOL" >&6; }
10291else
10292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293$as_echo "no" >&6; }
10294fi
10295
10296  if test "x$ac_ct_OTOOL" = x; then
10297    OTOOL=":"
10298  else
10299    case $cross_compiling:$ac_tool_warned in
10300yes:)
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10303ac_tool_warned=yes ;;
10304esac
10305    OTOOL=$ac_ct_OTOOL
10306  fi
10307else
10308  OTOOL="$ac_cv_prog_OTOOL"
10309fi
10310
10311    if test -n "$ac_tool_prefix"; then
10312  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10313set dummy ${ac_tool_prefix}otool64; ac_word=$2
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315$as_echo_n "checking for $ac_word... " >&6; }
10316if ${ac_cv_prog_OTOOL64+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  if test -n "$OTOOL64"; then
10320  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10321else
10322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323for as_dir in $PATH
10324do
10325  IFS=$as_save_IFS
10326  test -z "$as_dir" && as_dir=.
10327    for ac_exec_ext in '' $ac_executable_extensions; do
10328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331    break 2
10332  fi
10333done
10334  done
10335IFS=$as_save_IFS
10336
10337fi
10338fi
10339OTOOL64=$ac_cv_prog_OTOOL64
10340if test -n "$OTOOL64"; then
10341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10342$as_echo "$OTOOL64" >&6; }
10343else
10344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345$as_echo "no" >&6; }
10346fi
10347
10348
10349fi
10350if test -z "$ac_cv_prog_OTOOL64"; then
10351  ac_ct_OTOOL64=$OTOOL64
10352  # Extract the first word of "otool64", so it can be a program name with args.
10353set dummy otool64; ac_word=$2
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355$as_echo_n "checking for $ac_word... " >&6; }
10356if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10357  $as_echo_n "(cached) " >&6
10358else
10359  if test -n "$ac_ct_OTOOL64"; then
10360  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10361else
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365  IFS=$as_save_IFS
10366  test -z "$as_dir" && as_dir=.
10367    for ac_exec_ext in '' $ac_executable_extensions; do
10368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369    ac_cv_prog_ac_ct_OTOOL64="otool64"
10370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371    break 2
10372  fi
10373done
10374  done
10375IFS=$as_save_IFS
10376
10377fi
10378fi
10379ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10380if test -n "$ac_ct_OTOOL64"; then
10381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10382$as_echo "$ac_ct_OTOOL64" >&6; }
10383else
10384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385$as_echo "no" >&6; }
10386fi
10387
10388  if test "x$ac_ct_OTOOL64" = x; then
10389    OTOOL64=":"
10390  else
10391    case $cross_compiling:$ac_tool_warned in
10392yes:)
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10395ac_tool_warned=yes ;;
10396esac
10397    OTOOL64=$ac_ct_OTOOL64
10398  fi
10399else
10400  OTOOL64="$ac_cv_prog_OTOOL64"
10401fi
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10430$as_echo_n "checking for -single_module linker flag... " >&6; }
10431if ${lt_cv_apple_cc_single_mod+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  lt_cv_apple_cc_single_mod=no
10435      if test -z "$LT_MULTI_MODULE"; then
10436	# By default we will add the -single_module flag. You can override
10437	# by either setting the environment variable LT_MULTI_MODULE
10438	# non-empty at configure time, or by adding -multi_module to the
10439	# link flags.
10440	rm -rf libconftest.dylib*
10441	echo "int foo(void){return 1;}" > conftest.c
10442	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10443-dynamiclib -Wl,-single_module conftest.c" >&5
10444	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10445	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10446        _lt_result=$?
10447	# If there is a non-empty error log, and "single_module"
10448	# appears in it, assume the flag caused a linker warning
10449        if test -s conftest.err && $GREP single_module conftest.err; then
10450	  cat conftest.err >&5
10451	# Otherwise, if the output was created with a 0 exit code from
10452	# the compiler, it worked.
10453	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10454	  lt_cv_apple_cc_single_mod=yes
10455	else
10456	  cat conftest.err >&5
10457	fi
10458	rm -rf libconftest.dylib*
10459	rm -f conftest.*
10460      fi
10461fi
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10463$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10464
10465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10466$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10467if ${lt_cv_ld_exported_symbols_list+:} false; then :
10468  $as_echo_n "(cached) " >&6
10469else
10470  lt_cv_ld_exported_symbols_list=no
10471      save_LDFLAGS=$LDFLAGS
10472      echo "_main" > conftest.sym
10473      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476
10477int main (void)
10478{
10479
10480 ;
10481 return 0;
10482}
10483_ACEOF
10484if ac_fn_c_try_link "$LINENO"; then :
10485  lt_cv_ld_exported_symbols_list=yes
10486else
10487  lt_cv_ld_exported_symbols_list=no
10488fi
10489rm -f core conftest.err conftest.$ac_objext \
10490    conftest$ac_exeext conftest.$ac_ext
10491	LDFLAGS=$save_LDFLAGS
10492
10493fi
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10495$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10496
10497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10498$as_echo_n "checking for -force_load linker flag... " >&6; }
10499if ${lt_cv_ld_force_load+:} false; then :
10500  $as_echo_n "(cached) " >&6
10501else
10502  lt_cv_ld_force_load=no
10503      cat > conftest.c << _LT_EOF
10504int forced_loaded() { return 2;}
10505_LT_EOF
10506      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10507      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10508      echo "$AR cr libconftest.a conftest.o" >&5
10509      $AR cr libconftest.a conftest.o 2>&5
10510      echo "$RANLIB libconftest.a" >&5
10511      $RANLIB libconftest.a 2>&5
10512      cat > conftest.c << _LT_EOF
10513int main() { return 0;}
10514_LT_EOF
10515      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10516      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10517      _lt_result=$?
10518      if test -s conftest.err && $GREP force_load conftest.err; then
10519	cat conftest.err >&5
10520      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10521	lt_cv_ld_force_load=yes
10522      else
10523	cat conftest.err >&5
10524      fi
10525        rm -f conftest.err libconftest.a conftest conftest.c
10526        rm -rf conftest.dSYM
10527
10528fi
10529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10530$as_echo "$lt_cv_ld_force_load" >&6; }
10531    case $host_os in
10532    rhapsody* | darwin1.[012])
10533      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10534    darwin1.*)
10535      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10536    darwin*) # darwin 5.x on
10537      # if running on 10.5 or later, the deployment target defaults
10538      # to the OS version, if on x86, and 10.4, the deployment
10539      # target defaults to 10.4. Don't you love it?
10540      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10541	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10542	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10543	10.[012][,.]*)
10544	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10545	10.*)
10546	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10547      esac
10548    ;;
10549  esac
10550    if test yes = "$lt_cv_apple_cc_single_mod"; then
10551      _lt_dar_single_mod='$single_module'
10552    fi
10553    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10554      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10555    else
10556      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10557    fi
10558    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10559      _lt_dsymutil='~$DSYMUTIL $lib || :'
10560    else
10561      _lt_dsymutil=
10562    fi
10563    ;;
10564  esac
10565
10566# func_munge_path_list VARIABLE PATH
10567# -----------------------------------
10568# VARIABLE is name of variable containing _space_ separated list of
10569# directories to be munged by the contents of PATH, which is string
10570# having a format:
10571# "DIR[:DIR]:"
10572#       string "DIR[ DIR]" will be prepended to VARIABLE
10573# ":DIR[:DIR]"
10574#       string "DIR[ DIR]" will be appended to VARIABLE
10575# "DIRP[:DIRP]::[DIRA:]DIRA"
10576#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10577#       "DIRA[ DIRA]" will be appended to VARIABLE
10578# "DIR[:DIR]"
10579#       VARIABLE will be replaced by "DIR[ DIR]"
10580func_munge_path_list ()
10581{
10582    case x$2 in
10583    x)
10584        ;;
10585    *:)
10586        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10587        ;;
10588    x:*)
10589        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10590        ;;
10591    *::*)
10592        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10593        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10594        ;;
10595    *)
10596        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10597        ;;
10598    esac
10599}
10600
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10602$as_echo_n "checking for ANSI C header files... " >&6; }
10603if ${ac_cv_header_stdc+:} false; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608#include <stdlib.h>
10609#include <stdarg.h>
10610#include <string.h>
10611#include <float.h>
10612
10613int main (void)
10614{
10615
10616 ;
10617 return 0;
10618}
10619_ACEOF
10620if ac_fn_c_try_compile "$LINENO"; then :
10621  ac_cv_header_stdc=yes
10622else
10623  ac_cv_header_stdc=no
10624fi
10625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626
10627if test $ac_cv_header_stdc = yes; then
10628  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630/* end confdefs.h.  */
10631#include <string.h>
10632
10633_ACEOF
10634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10635  $EGREP "memchr" >/dev/null 2>&1; then :
10636
10637else
10638  ac_cv_header_stdc=no
10639fi
10640rm -f conftest*
10641
10642fi
10643
10644if test $ac_cv_header_stdc = yes; then
10645  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648#include <stdlib.h>
10649
10650_ACEOF
10651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10652  $EGREP "free" >/dev/null 2>&1; then :
10653
10654else
10655  ac_cv_header_stdc=no
10656fi
10657rm -f conftest*
10658
10659fi
10660
10661if test $ac_cv_header_stdc = yes; then
10662  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10663  if test "$cross_compiling" = yes; then :
10664  :
10665else
10666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667/* end confdefs.h.  */
10668#include <ctype.h>
10669#include <stdlib.h>
10670#if ((' ' & 0x0FF) == 0x020)
10671# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10672# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10673#else
10674# define ISLOWER(c) \
10675		   (('a' <= (c) && (c) <= 'i') \
10676		     || ('j' <= (c) && (c) <= 'r') \
10677		     || ('s' <= (c) && (c) <= 'z'))
10678# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10679#endif
10680
10681#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10682int
10683main ()
10684{
10685  int i;
10686  for (i = 0; i < 256; i++)
10687    if (XOR (islower (i), ISLOWER (i))
10688	|| toupper (i) != TOUPPER (i))
10689      return 2;
10690  return 0;
10691}
10692_ACEOF
10693if ac_fn_c_try_run "$LINENO"; then :
10694
10695else
10696  ac_cv_header_stdc=no
10697fi
10698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10699  conftest.$ac_objext conftest.beam conftest.$ac_ext
10700fi
10701
10702fi
10703fi
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10705$as_echo "$ac_cv_header_stdc" >&6; }
10706if test $ac_cv_header_stdc = yes; then
10707
10708$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10709
10710fi
10711
10712# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10713for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10714		  inttypes.h stdint.h unistd.h
10715do :
10716  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10717ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10718"
10719if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10720  cat >>confdefs.h <<_ACEOF
10721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722_ACEOF
10723
10724fi
10725
10726done
10727
10728
10729for ac_header in dlfcn.h
10730do :
10731  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10732"
10733if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10734  cat >>confdefs.h <<_ACEOF
10735#define HAVE_DLFCN_H 1
10736_ACEOF
10737
10738fi
10739
10740done
10741
10742# ------------------------------------ #
10743#  Determine libtool default behavior  #
10744# ------------------------------------ #
10745
10746#
10747# Default behavior is to enable shared and static libraries on systems
10748# where libtool knows how to build both library versions, and does not
10749# require separate configuration and build runs for each flavor.
10750#
10751
10752xc_lt_want_enable_shared='yes'
10753xc_lt_want_enable_static='yes'
10754
10755#
10756# User may have disabled shared or static libraries.
10757#
10758case "x$enable_shared" in # (
10759  xno)
10760    xc_lt_want_enable_shared='no'
10761    ;;
10762esac
10763case "x$enable_static" in # (
10764  xno)
10765    xc_lt_want_enable_static='no'
10766    ;;
10767esac
10768if test "x$xc_lt_want_enable_shared" = 'xno' &&
10769  test "x$xc_lt_want_enable_static" = 'xno'; then
10770  as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10771fi
10772
10773#
10774# Default behavior on systems that require independent configuration
10775# and build runs for shared and static is to enable shared libraries
10776# and disable static ones. On these systems option '--disable-shared'
10777# must be used in order to build a proper static library.
10778#
10779
10780if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10781  test "x$xc_lt_want_enable_static" = 'xyes'; then
10782  case $host_os in # (
10783    pw32* | cegcc* | os2* | aix*)
10784      xc_lt_want_enable_static='no'
10785      ;;
10786  esac
10787fi
10788
10789#
10790# Make libtool aware of current shared and static library preferences
10791# taking in account that, depending on host characteristics, libtool
10792# may modify these option preferences later in this configure script.
10793#
10794
10795enable_shared=$xc_lt_want_enable_shared
10796enable_static=$xc_lt_want_enable_static
10797
10798#
10799# Default behavior is to build PIC objects for shared libraries and
10800# non-PIC objects for static libraries.
10801#
10802
10803xc_lt_want_with_pic='default'
10804
10805#
10806# User may have specified PIC preference.
10807#
10808
10809case "x$with_pic" in # ((
10810  xno)
10811    xc_lt_want_with_pic='no'
10812    ;;
10813  xyes)
10814    xc_lt_want_with_pic='yes'
10815    ;;
10816esac
10817
10818#
10819# Default behavior on some systems where building a shared library out
10820# of non-PIC compiled objects will fail with following linker error
10821# "relocation R_X86_64_32 can not be used when making a shared object"
10822# is to build PIC objects even for static libraries. This behavior may
10823# be overridden using 'configure --disable-shared --without-pic'.
10824#
10825
10826if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10827  case $host_cpu in # (
10828    x86_64 | amd64 | ia64)
10829      case $host_os in # (
10830        linux* | freebsd*)
10831          xc_lt_want_with_pic='yes'
10832          ;;
10833      esac
10834      ;;
10835  esac
10836fi
10837
10838#
10839# Make libtool aware of current PIC preference taking in account that,
10840# depending on host characteristics, libtool may modify PIC default
10841# behavior to fit host system idiosyncrasies later in this script.
10842#
10843
10844with_pic=$xc_lt_want_with_pic
10845
10846## ----------------------- ##
10847##  Start of libtool code  ##
10848## ----------------------- ##
10849
10850
10851
10852
10853# Set options
10854enable_win32_dll=yes
10855
10856case $host in
10857*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10858  if test -n "$ac_tool_prefix"; then
10859  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10860set dummy ${ac_tool_prefix}as; ac_word=$2
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862$as_echo_n "checking for $ac_word... " >&6; }
10863if ${ac_cv_prog_AS+:} false; then :
10864  $as_echo_n "(cached) " >&6
10865else
10866  if test -n "$AS"; then
10867  ac_cv_prog_AS="$AS" # Let the user override the test.
10868else
10869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870for as_dir in $PATH
10871do
10872  IFS=$as_save_IFS
10873  test -z "$as_dir" && as_dir=.
10874    for ac_exec_ext in '' $ac_executable_extensions; do
10875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876    ac_cv_prog_AS="${ac_tool_prefix}as"
10877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10878    break 2
10879  fi
10880done
10881  done
10882IFS=$as_save_IFS
10883
10884fi
10885fi
10886AS=$ac_cv_prog_AS
10887if test -n "$AS"; then
10888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10889$as_echo "$AS" >&6; }
10890else
10891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892$as_echo "no" >&6; }
10893fi
10894
10895
10896fi
10897if test -z "$ac_cv_prog_AS"; then
10898  ac_ct_AS=$AS
10899  # Extract the first word of "as", so it can be a program name with args.
10900set dummy as; ac_word=$2
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902$as_echo_n "checking for $ac_word... " >&6; }
10903if ${ac_cv_prog_ac_ct_AS+:} false; then :
10904  $as_echo_n "(cached) " >&6
10905else
10906  if test -n "$ac_ct_AS"; then
10907  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10908else
10909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910for as_dir in $PATH
10911do
10912  IFS=$as_save_IFS
10913  test -z "$as_dir" && as_dir=.
10914    for ac_exec_ext in '' $ac_executable_extensions; do
10915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10916    ac_cv_prog_ac_ct_AS="as"
10917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10918    break 2
10919  fi
10920done
10921  done
10922IFS=$as_save_IFS
10923
10924fi
10925fi
10926ac_ct_AS=$ac_cv_prog_ac_ct_AS
10927if test -n "$ac_ct_AS"; then
10928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10929$as_echo "$ac_ct_AS" >&6; }
10930else
10931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932$as_echo "no" >&6; }
10933fi
10934
10935  if test "x$ac_ct_AS" = x; then
10936    AS="false"
10937  else
10938    case $cross_compiling:$ac_tool_warned in
10939yes:)
10940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10942ac_tool_warned=yes ;;
10943esac
10944    AS=$ac_ct_AS
10945  fi
10946else
10947  AS="$ac_cv_prog_AS"
10948fi
10949
10950  if test -n "$ac_tool_prefix"; then
10951  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10952set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10954$as_echo_n "checking for $ac_word... " >&6; }
10955if ${ac_cv_prog_DLLTOOL+:} false; then :
10956  $as_echo_n "(cached) " >&6
10957else
10958  if test -n "$DLLTOOL"; then
10959  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10960else
10961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962for as_dir in $PATH
10963do
10964  IFS=$as_save_IFS
10965  test -z "$as_dir" && as_dir=.
10966    for ac_exec_ext in '' $ac_executable_extensions; do
10967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10968    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10970    break 2
10971  fi
10972done
10973  done
10974IFS=$as_save_IFS
10975
10976fi
10977fi
10978DLLTOOL=$ac_cv_prog_DLLTOOL
10979if test -n "$DLLTOOL"; then
10980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10981$as_echo "$DLLTOOL" >&6; }
10982else
10983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984$as_echo "no" >&6; }
10985fi
10986
10987
10988fi
10989if test -z "$ac_cv_prog_DLLTOOL"; then
10990  ac_ct_DLLTOOL=$DLLTOOL
10991  # Extract the first word of "dlltool", so it can be a program name with args.
10992set dummy dlltool; ac_word=$2
10993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994$as_echo_n "checking for $ac_word... " >&6; }
10995if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10996  $as_echo_n "(cached) " >&6
10997else
10998  if test -n "$ac_ct_DLLTOOL"; then
10999  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11000else
11001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002for as_dir in $PATH
11003do
11004  IFS=$as_save_IFS
11005  test -z "$as_dir" && as_dir=.
11006    for ac_exec_ext in '' $ac_executable_extensions; do
11007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11010    break 2
11011  fi
11012done
11013  done
11014IFS=$as_save_IFS
11015
11016fi
11017fi
11018ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11019if test -n "$ac_ct_DLLTOOL"; then
11020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11021$as_echo "$ac_ct_DLLTOOL" >&6; }
11022else
11023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024$as_echo "no" >&6; }
11025fi
11026
11027  if test "x$ac_ct_DLLTOOL" = x; then
11028    DLLTOOL="false"
11029  else
11030    case $cross_compiling:$ac_tool_warned in
11031yes:)
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11034ac_tool_warned=yes ;;
11035esac
11036    DLLTOOL=$ac_ct_DLLTOOL
11037  fi
11038else
11039  DLLTOOL="$ac_cv_prog_DLLTOOL"
11040fi
11041
11042  if test -n "$ac_tool_prefix"; then
11043  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11044set dummy ${ac_tool_prefix}objdump; ac_word=$2
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046$as_echo_n "checking for $ac_word... " >&6; }
11047if ${ac_cv_prog_OBJDUMP+:} false; then :
11048  $as_echo_n "(cached) " >&6
11049else
11050  if test -n "$OBJDUMP"; then
11051  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11052else
11053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054for as_dir in $PATH
11055do
11056  IFS=$as_save_IFS
11057  test -z "$as_dir" && as_dir=.
11058    for ac_exec_ext in '' $ac_executable_extensions; do
11059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11062    break 2
11063  fi
11064done
11065  done
11066IFS=$as_save_IFS
11067
11068fi
11069fi
11070OBJDUMP=$ac_cv_prog_OBJDUMP
11071if test -n "$OBJDUMP"; then
11072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11073$as_echo "$OBJDUMP" >&6; }
11074else
11075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
11077fi
11078
11079
11080fi
11081if test -z "$ac_cv_prog_OBJDUMP"; then
11082  ac_ct_OBJDUMP=$OBJDUMP
11083  # Extract the first word of "objdump", so it can be a program name with args.
11084set dummy objdump; ac_word=$2
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086$as_echo_n "checking for $ac_word... " >&6; }
11087if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11088  $as_echo_n "(cached) " >&6
11089else
11090  if test -n "$ac_ct_OBJDUMP"; then
11091  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11092else
11093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094for as_dir in $PATH
11095do
11096  IFS=$as_save_IFS
11097  test -z "$as_dir" && as_dir=.
11098    for ac_exec_ext in '' $ac_executable_extensions; do
11099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11100    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102    break 2
11103  fi
11104done
11105  done
11106IFS=$as_save_IFS
11107
11108fi
11109fi
11110ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11111if test -n "$ac_ct_OBJDUMP"; then
11112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11113$as_echo "$ac_ct_OBJDUMP" >&6; }
11114else
11115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116$as_echo "no" >&6; }
11117fi
11118
11119  if test "x$ac_ct_OBJDUMP" = x; then
11120    OBJDUMP="false"
11121  else
11122    case $cross_compiling:$ac_tool_warned in
11123yes:)
11124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11126ac_tool_warned=yes ;;
11127esac
11128    OBJDUMP=$ac_ct_OBJDUMP
11129  fi
11130else
11131  OBJDUMP="$ac_cv_prog_OBJDUMP"
11132fi
11133
11134  ;;
11135esac
11136
11137test -z "$AS" && AS=as
11138
11139
11140
11141
11142
11143test -z "$DLLTOOL" && DLLTOOL=dlltool
11144
11145
11146
11147
11148
11149test -z "$OBJDUMP" && OBJDUMP=objdump
11150
11151
11152
11153
11154
11155
11156
11157        enable_dlopen=no
11158
11159
11160
11161            # Check whether --enable-shared was given.
11162if test "${enable_shared+set}" = set; then :
11163  enableval=$enable_shared; p=${PACKAGE-default}
11164    case $enableval in
11165    yes) enable_shared=yes ;;
11166    no) enable_shared=no ;;
11167    *)
11168      enable_shared=no
11169      # Look at the argument we got.  We use all the common list separators.
11170      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11171      for pkg in $enableval; do
11172	IFS=$lt_save_ifs
11173	if test "X$pkg" = "X$p"; then
11174	  enable_shared=yes
11175	fi
11176      done
11177      IFS=$lt_save_ifs
11178      ;;
11179    esac
11180else
11181  enable_shared=yes
11182fi
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192  # Check whether --enable-static was given.
11193if test "${enable_static+set}" = set; then :
11194  enableval=$enable_static; p=${PACKAGE-default}
11195    case $enableval in
11196    yes) enable_static=yes ;;
11197    no) enable_static=no ;;
11198    *)
11199     enable_static=no
11200      # Look at the argument we got.  We use all the common list separators.
11201      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11202      for pkg in $enableval; do
11203	IFS=$lt_save_ifs
11204	if test "X$pkg" = "X$p"; then
11205	  enable_static=yes
11206	fi
11207      done
11208      IFS=$lt_save_ifs
11209      ;;
11210    esac
11211else
11212  enable_static=yes
11213fi
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224# Check whether --with-pic was given.
11225if test "${with_pic+set}" = set; then :
11226  withval=$with_pic; lt_p=${PACKAGE-default}
11227    case $withval in
11228    yes|no) pic_mode=$withval ;;
11229    *)
11230      pic_mode=default
11231      # Look at the argument we got.  We use all the common list separators.
11232      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11233      for lt_pkg in $withval; do
11234	IFS=$lt_save_ifs
11235	if test "X$lt_pkg" = "X$lt_p"; then
11236	  pic_mode=yes
11237	fi
11238      done
11239      IFS=$lt_save_ifs
11240      ;;
11241    esac
11242else
11243  pic_mode=default
11244fi
11245
11246
11247
11248
11249
11250
11251
11252
11253  # Check whether --enable-fast-install was given.
11254if test "${enable_fast_install+set}" = set; then :
11255  enableval=$enable_fast_install; p=${PACKAGE-default}
11256    case $enableval in
11257    yes) enable_fast_install=yes ;;
11258    no) enable_fast_install=no ;;
11259    *)
11260      enable_fast_install=no
11261      # Look at the argument we got.  We use all the common list separators.
11262      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11263      for pkg in $enableval; do
11264	IFS=$lt_save_ifs
11265	if test "X$pkg" = "X$p"; then
11266	  enable_fast_install=yes
11267	fi
11268      done
11269      IFS=$lt_save_ifs
11270      ;;
11271    esac
11272else
11273  enable_fast_install=yes
11274fi
11275
11276
11277
11278
11279
11280
11281
11282
11283  shared_archive_member_spec=
11284case $host,$enable_shared in
11285power*-*-aix[5-9]*,yes)
11286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11287$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11288
11289# Check whether --with-aix-soname was given.
11290if test "${with_aix_soname+set}" = set; then :
11291  withval=$with_aix_soname; case $withval in
11292    aix|svr4|both)
11293      ;;
11294    *)
11295      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11296      ;;
11297    esac
11298    lt_cv_with_aix_soname=$with_aix_soname
11299else
11300  if ${lt_cv_with_aix_soname+:} false; then :
11301  $as_echo_n "(cached) " >&6
11302else
11303  lt_cv_with_aix_soname=aix
11304fi
11305
11306    with_aix_soname=$lt_cv_with_aix_soname
11307fi
11308
11309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11310$as_echo "$with_aix_soname" >&6; }
11311  if test aix != "$with_aix_soname"; then
11312    # For the AIX way of multilib, we name the shared archive member
11313    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11314    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11315    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11316    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11317    if test 64 = "${OBJECT_MODE-32}"; then
11318      shared_archive_member_spec=shr_64
11319    else
11320      shared_archive_member_spec=shr
11321    fi
11322  fi
11323  ;;
11324*)
11325  with_aix_soname=aix
11326  ;;
11327esac
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338# This can be used to rebuild libtool when needed
11339LIBTOOL_DEPS=$ltmain
11340
11341# Always use our own libtool.
11342LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373test -z "$LN_S" && LN_S="ln -s"
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388if test -n "${ZSH_VERSION+set}"; then
11389   setopt NO_GLOB_SUBST
11390fi
11391
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11393$as_echo_n "checking for objdir... " >&6; }
11394if ${lt_cv_objdir+:} false; then :
11395  $as_echo_n "(cached) " >&6
11396else
11397  rm -f .libs 2>/dev/null
11398mkdir .libs 2>/dev/null
11399if test -d .libs; then
11400  lt_cv_objdir=.libs
11401else
11402  # MS-DOS does not allow filenames that begin with a dot.
11403  lt_cv_objdir=_libs
11404fi
11405rmdir .libs 2>/dev/null
11406fi
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11408$as_echo "$lt_cv_objdir" >&6; }
11409objdir=$lt_cv_objdir
11410
11411
11412
11413
11414
11415cat >>confdefs.h <<_ACEOF
11416#define LT_OBJDIR "$lt_cv_objdir/"
11417_ACEOF
11418
11419
11420
11421
11422case $host_os in
11423aix3*)
11424  # AIX sometimes has problems with the GCC collect2 program.  For some
11425  # reason, if we set the COLLECT_NAMES environment variable, the problems
11426  # vanish in a puff of smoke.
11427  if test set != "${COLLECT_NAMES+set}"; then
11428    COLLECT_NAMES=
11429    export COLLECT_NAMES
11430  fi
11431  ;;
11432esac
11433
11434# Global variables:
11435ofile=libtool
11436can_build_shared=yes
11437
11438# All known linkers require a '.a' archive for static linking (except MSVC,
11439# which needs '.lib').
11440libext=a
11441
11442with_gnu_ld=$lt_cv_prog_gnu_ld
11443
11444old_CC=$CC
11445old_CFLAGS=$CFLAGS
11446
11447# Set sane defaults for various variables
11448test -z "$CC" && CC=cc
11449test -z "$LTCC" && LTCC=$CC
11450test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11451test -z "$LD" && LD=ld
11452test -z "$ac_objext" && ac_objext=o
11453
11454func_cc_basename $compiler
11455cc_basename=$func_cc_basename_result
11456
11457
11458# Only perform the check for file, if the check method requires it
11459test -z "$MAGIC_CMD" && MAGIC_CMD=file
11460case $deplibs_check_method in
11461file_magic*)
11462  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11464$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11465if ${lt_cv_path_MAGIC_CMD+:} false; then :
11466  $as_echo_n "(cached) " >&6
11467else
11468  case $MAGIC_CMD in
11469[\\/*] |  ?:[\\/]*)
11470  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11471  ;;
11472*)
11473  lt_save_MAGIC_CMD=$MAGIC_CMD
11474  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11475  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11476  for ac_dir in $ac_dummy; do
11477    IFS=$lt_save_ifs
11478    test -z "$ac_dir" && ac_dir=.
11479    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11480      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11481      if test -n "$file_magic_test_file"; then
11482	case $deplibs_check_method in
11483	"file_magic "*)
11484	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11485	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11486	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11487	    $EGREP "$file_magic_regex" > /dev/null; then
11488	    :
11489	  else
11490	    cat <<_LT_EOF 1>&2
11491
11492*** Warning: the command libtool uses to detect shared libraries,
11493*** $file_magic_cmd, produces output that libtool cannot recognize.
11494*** The result is that libtool may fail to recognize shared libraries
11495*** as such.  This will affect the creation of libtool libraries that
11496*** depend on shared libraries, but programs linked with such libtool
11497*** libraries will work regardless of this problem.  Nevertheless, you
11498*** may want to report the problem to your system manager and/or to
11499*** bug-libtool@gnu.org
11500
11501_LT_EOF
11502	  fi ;;
11503	esac
11504      fi
11505      break
11506    fi
11507  done
11508  IFS=$lt_save_ifs
11509  MAGIC_CMD=$lt_save_MAGIC_CMD
11510  ;;
11511esac
11512fi
11513
11514MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11515if test -n "$MAGIC_CMD"; then
11516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11517$as_echo "$MAGIC_CMD" >&6; }
11518else
11519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520$as_echo "no" >&6; }
11521fi
11522
11523
11524
11525
11526
11527if test -z "$lt_cv_path_MAGIC_CMD"; then
11528  if test -n "$ac_tool_prefix"; then
11529    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11530$as_echo_n "checking for file... " >&6; }
11531if ${lt_cv_path_MAGIC_CMD+:} false; then :
11532  $as_echo_n "(cached) " >&6
11533else
11534  case $MAGIC_CMD in
11535[\\/*] |  ?:[\\/]*)
11536  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11537  ;;
11538*)
11539  lt_save_MAGIC_CMD=$MAGIC_CMD
11540  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11541  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11542  for ac_dir in $ac_dummy; do
11543    IFS=$lt_save_ifs
11544    test -z "$ac_dir" && ac_dir=.
11545    if test -f "$ac_dir/file"; then
11546      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11547      if test -n "$file_magic_test_file"; then
11548	case $deplibs_check_method in
11549	"file_magic "*)
11550	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11551	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11552	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11553	    $EGREP "$file_magic_regex" > /dev/null; then
11554	    :
11555	  else
11556	    cat <<_LT_EOF 1>&2
11557
11558*** Warning: the command libtool uses to detect shared libraries,
11559*** $file_magic_cmd, produces output that libtool cannot recognize.
11560*** The result is that libtool may fail to recognize shared libraries
11561*** as such.  This will affect the creation of libtool libraries that
11562*** depend on shared libraries, but programs linked with such libtool
11563*** libraries will work regardless of this problem.  Nevertheless, you
11564*** may want to report the problem to your system manager and/or to
11565*** bug-libtool@gnu.org
11566
11567_LT_EOF
11568	  fi ;;
11569	esac
11570      fi
11571      break
11572    fi
11573  done
11574  IFS=$lt_save_ifs
11575  MAGIC_CMD=$lt_save_MAGIC_CMD
11576  ;;
11577esac
11578fi
11579
11580MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11581if test -n "$MAGIC_CMD"; then
11582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11583$as_echo "$MAGIC_CMD" >&6; }
11584else
11585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
11587fi
11588
11589
11590  else
11591    MAGIC_CMD=:
11592  fi
11593fi
11594
11595  fi
11596  ;;
11597esac
11598
11599# Use C for the default configuration in the libtool script
11600
11601lt_save_CC=$CC
11602ac_ext=c
11603ac_cpp='$CPP $CPPFLAGS'
11604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11606ac_compiler_gnu=$ac_cv_c_compiler_gnu
11607
11608
11609# Source file extension for C test sources.
11610ac_ext=c
11611
11612# Object file extension for compiled C test sources.
11613objext=o
11614objext=$objext
11615
11616# Code to be used in simple compile tests
11617lt_simple_compile_test_code="int some_variable = 0;"
11618
11619# Code to be used in simple link tests
11620lt_simple_link_test_code='int main(){return(0);}'
11621
11622
11623
11624
11625
11626
11627
11628# If no C compiler was specified, use CC.
11629LTCC=${LTCC-"$CC"}
11630
11631# If no C compiler flags were specified, use CFLAGS.
11632LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11633
11634# Allow CC to be a program name with arguments.
11635compiler=$CC
11636
11637# Save the default compiler, since it gets overwritten when the other
11638# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11639compiler_DEFAULT=$CC
11640
11641# save warnings/boilerplate of simple test code
11642ac_outfile=conftest.$ac_objext
11643echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11644eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11645_lt_compiler_boilerplate=`cat conftest.err`
11646$RM conftest*
11647
11648ac_outfile=conftest.$ac_objext
11649echo "$lt_simple_link_test_code" >conftest.$ac_ext
11650eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11651_lt_linker_boilerplate=`cat conftest.err`
11652$RM -r conftest*
11653
11654
11655## CAVEAT EMPTOR:
11656## There is no encapsulation within the following macros, do not change
11657## the running order or otherwise move them around unless you know exactly
11658## what you are doing...
11659if test -n "$compiler"; then
11660
11661lt_prog_compiler_no_builtin_flag=
11662
11663if test yes = "$GCC"; then
11664  case $cc_basename in
11665  nvcc*)
11666    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11667  *)
11668    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11669  esac
11670
11671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11672$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11673if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11674  $as_echo_n "(cached) " >&6
11675else
11676  lt_cv_prog_compiler_rtti_exceptions=no
11677   ac_outfile=conftest.$ac_objext
11678   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11679   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11680   # Insert the option either (1) after the last *FLAGS variable, or
11681   # (2) before a word containing "conftest.", or (3) at the end.
11682   # Note that $ac_compile itself does not contain backslashes and begins
11683   # with a dollar sign (not a hyphen), so the echo should work correctly.
11684   # The option is referenced via a variable to avoid confusing sed.
11685   lt_compile=`echo "$ac_compile" | $SED \
11686   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11687   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11688   -e 's:$: $lt_compiler_flag:'`
11689   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11690   (eval "$lt_compile" 2>conftest.err)
11691   ac_status=$?
11692   cat conftest.err >&5
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   if (exit $ac_status) && test -s "$ac_outfile"; then
11695     # The compiler can only warn and ignore the option if not recognized
11696     # So say no if there are warnings other than the usual output.
11697     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11698     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11699     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11700       lt_cv_prog_compiler_rtti_exceptions=yes
11701     fi
11702   fi
11703   $RM conftest*
11704
11705fi
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11707$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11708
11709if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11710    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11711else
11712    :
11713fi
11714
11715fi
11716
11717
11718
11719
11720
11721
11722  lt_prog_compiler_wl=
11723lt_prog_compiler_pic=
11724lt_prog_compiler_static=
11725
11726
11727  if test yes = "$GCC"; then
11728    lt_prog_compiler_wl='-Wl,'
11729    lt_prog_compiler_static='-static'
11730
11731    case $host_os in
11732      aix*)
11733      # All AIX code is PIC.
11734      if test ia64 = "$host_cpu"; then
11735	# AIX 5 now supports IA64 processor
11736	lt_prog_compiler_static='-Bstatic'
11737      fi
11738      lt_prog_compiler_pic='-fPIC'
11739      ;;
11740
11741    amigaos*)
11742      case $host_cpu in
11743      powerpc)
11744            # see comment about AmigaOS4 .so support
11745            lt_prog_compiler_pic='-fPIC'
11746        ;;
11747      m68k)
11748            # FIXME: we need at least 68020 code to build shared libraries, but
11749            # adding the '-m68020' flag to GCC prevents building anything better,
11750            # like '-m68040'.
11751            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11752        ;;
11753      esac
11754      ;;
11755
11756    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11757      # PIC is the default for these OSes.
11758      ;;
11759
11760    mingw* | cygwin* | pw32* | os2* | cegcc*)
11761      # This hack is so that the source file can tell whether it is being
11762      # built for inclusion in a dll (and should export symbols for example).
11763      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11764      # (--disable-auto-import) libraries
11765      lt_prog_compiler_pic='-DDLL_EXPORT'
11766      case $host_os in
11767      os2*)
11768	lt_prog_compiler_static='$wl-static'
11769	;;
11770      esac
11771      ;;
11772
11773    darwin* | rhapsody*)
11774      # PIC is the default on this platform
11775      # Common symbols not allowed in MH_DYLIB files
11776      lt_prog_compiler_pic='-fno-common'
11777      ;;
11778
11779    haiku*)
11780      # PIC is the default for Haiku.
11781      # The "-static" flag exists, but is broken.
11782      lt_prog_compiler_static=
11783      ;;
11784
11785    hpux*)
11786      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11787      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11788      # sets the default TLS model and affects inlining.
11789      case $host_cpu in
11790      hppa*64*)
11791	# +Z the default
11792	;;
11793      *)
11794	lt_prog_compiler_pic='-fPIC'
11795	;;
11796      esac
11797      ;;
11798
11799    interix[3-9]*)
11800      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11801      # Instead, we relocate shared libraries at runtime.
11802      ;;
11803
11804    msdosdjgpp*)
11805      # Just because we use GCC doesn't mean we suddenly get shared libraries
11806      # on systems that don't support them.
11807      lt_prog_compiler_can_build_shared=no
11808      enable_shared=no
11809      ;;
11810
11811    *nto* | *qnx*)
11812      # QNX uses GNU C++, but need to define -shared option too, otherwise
11813      # it will coredump.
11814      lt_prog_compiler_pic='-fPIC -shared'
11815      ;;
11816
11817    sysv4*MP*)
11818      if test -d /usr/nec; then
11819	lt_prog_compiler_pic=-Kconform_pic
11820      fi
11821      ;;
11822
11823    *)
11824      lt_prog_compiler_pic='-fPIC'
11825      ;;
11826    esac
11827
11828    case $cc_basename in
11829    nvcc*) # Cuda Compiler Driver 2.2
11830      lt_prog_compiler_wl='-Xlinker '
11831      if test -n "$lt_prog_compiler_pic"; then
11832        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11833      fi
11834      ;;
11835    esac
11836  else
11837    # PORTME Check for flag to pass linker flags through the system compiler.
11838    case $host_os in
11839    aix*)
11840      lt_prog_compiler_wl='-Wl,'
11841      if test ia64 = "$host_cpu"; then
11842	# AIX 5 now supports IA64 processor
11843	lt_prog_compiler_static='-Bstatic'
11844      else
11845	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11846      fi
11847      ;;
11848
11849    darwin* | rhapsody*)
11850      # PIC is the default on this platform
11851      # Common symbols not allowed in MH_DYLIB files
11852      lt_prog_compiler_pic='-fno-common'
11853      case $cc_basename in
11854      nagfor*)
11855        # NAG Fortran compiler
11856        lt_prog_compiler_wl='-Wl,-Wl,,'
11857        lt_prog_compiler_pic='-PIC'
11858        lt_prog_compiler_static='-Bstatic'
11859        ;;
11860      esac
11861      ;;
11862
11863    mingw* | cygwin* | pw32* | os2* | cegcc*)
11864      # This hack is so that the source file can tell whether it is being
11865      # built for inclusion in a dll (and should export symbols for example).
11866      lt_prog_compiler_pic='-DDLL_EXPORT'
11867      case $host_os in
11868      os2*)
11869	lt_prog_compiler_static='$wl-static'
11870	;;
11871      esac
11872      ;;
11873
11874    hpux9* | hpux10* | hpux11*)
11875      lt_prog_compiler_wl='-Wl,'
11876      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11877      # not for PA HP-UX.
11878      case $host_cpu in
11879      hppa*64*|ia64*)
11880	# +Z the default
11881	;;
11882      *)
11883	lt_prog_compiler_pic='+Z'
11884	;;
11885      esac
11886      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11887      lt_prog_compiler_static='$wl-a ${wl}archive'
11888      ;;
11889
11890    irix5* | irix6* | nonstopux*)
11891      lt_prog_compiler_wl='-Wl,'
11892      # PIC (with -KPIC) is the default.
11893      lt_prog_compiler_static='-non_shared'
11894      ;;
11895
11896    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11897      case $cc_basename in
11898      # old Intel for x86_64, which still supported -KPIC.
11899      ecc*)
11900	lt_prog_compiler_wl='-Wl,'
11901	lt_prog_compiler_pic='-KPIC'
11902	lt_prog_compiler_static='-static'
11903        ;;
11904      # flang / f18. f95 an alias for gfortran or flang on Debian
11905      flang* | f18* | f95*)
11906	lt_prog_compiler_wl='-Wl,'
11907	lt_prog_compiler_pic='-fPIC'
11908	lt_prog_compiler_static='-static'
11909        ;;
11910      # icc used to be incompatible with GCC.
11911      # ICC 10 doesn't accept -KPIC any more.
11912      icc* | ifort*)
11913	lt_prog_compiler_wl='-Wl,'
11914	lt_prog_compiler_pic='-fPIC'
11915	lt_prog_compiler_static='-static'
11916        ;;
11917      # Lahey Fortran 8.1.
11918      lf95*)
11919	lt_prog_compiler_wl='-Wl,'
11920	lt_prog_compiler_pic='--shared'
11921	lt_prog_compiler_static='--static'
11922	;;
11923      nagfor*)
11924	# NAG Fortran compiler
11925	lt_prog_compiler_wl='-Wl,-Wl,,'
11926	lt_prog_compiler_pic='-PIC'
11927	lt_prog_compiler_static='-Bstatic'
11928	;;
11929      tcc*)
11930	# Fabrice Bellard et al's Tiny C Compiler
11931	lt_prog_compiler_wl='-Wl,'
11932	lt_prog_compiler_pic='-fPIC'
11933	lt_prog_compiler_static='-static'
11934	;;
11935      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11936        # Portland Group compilers (*not* the Pentium gcc compiler,
11937	# which looks to be a dead project)
11938	lt_prog_compiler_wl='-Wl,'
11939	lt_prog_compiler_pic='-fpic'
11940	lt_prog_compiler_static='-Bstatic'
11941        ;;
11942      ccc*)
11943        lt_prog_compiler_wl='-Wl,'
11944        # All Alpha code is PIC.
11945        lt_prog_compiler_static='-non_shared'
11946        ;;
11947      xl* | bgxl* | bgf* | mpixl*)
11948	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11949	lt_prog_compiler_wl='-Wl,'
11950	lt_prog_compiler_pic='-qpic'
11951	lt_prog_compiler_static='-qstaticlink'
11952	;;
11953      *)
11954	case `$CC -V 2>&1 | sed 5q` in
11955	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11956	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11957	  lt_prog_compiler_pic='-KPIC'
11958	  lt_prog_compiler_static='-Bstatic'
11959	  lt_prog_compiler_wl=''
11960	  ;;
11961	*Sun\ F* | *Sun*Fortran*)
11962	  lt_prog_compiler_pic='-KPIC'
11963	  lt_prog_compiler_static='-Bstatic'
11964	  lt_prog_compiler_wl='-Qoption ld '
11965	  ;;
11966	*Sun\ C*)
11967	  # Sun C 5.9
11968	  lt_prog_compiler_pic='-KPIC'
11969	  lt_prog_compiler_static='-Bstatic'
11970	  lt_prog_compiler_wl='-Wl,'
11971	  ;;
11972        *Intel*\ [CF]*Compiler*)
11973	  lt_prog_compiler_wl='-Wl,'
11974	  lt_prog_compiler_pic='-fPIC'
11975	  lt_prog_compiler_static='-static'
11976	  ;;
11977	*Portland\ Group*)
11978	  lt_prog_compiler_wl='-Wl,'
11979	  lt_prog_compiler_pic='-fpic'
11980	  lt_prog_compiler_static='-Bstatic'
11981	  ;;
11982	esac
11983	;;
11984      esac
11985      ;;
11986
11987    newsos6)
11988      lt_prog_compiler_pic='-KPIC'
11989      lt_prog_compiler_static='-Bstatic'
11990      ;;
11991
11992    *nto* | *qnx*)
11993      # QNX uses GNU C++, but need to define -shared option too, otherwise
11994      # it will coredump.
11995      lt_prog_compiler_pic='-fPIC -shared'
11996      ;;
11997
11998    osf3* | osf4* | osf5*)
11999      lt_prog_compiler_wl='-Wl,'
12000      # All OSF/1 code is PIC.
12001      lt_prog_compiler_static='-non_shared'
12002      ;;
12003
12004    rdos*)
12005      lt_prog_compiler_static='-non_shared'
12006      ;;
12007
12008    solaris*)
12009      lt_prog_compiler_pic='-KPIC'
12010      lt_prog_compiler_static='-Bstatic'
12011      case $cc_basename in
12012      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12013	lt_prog_compiler_wl='-Qoption ld ';;
12014      *)
12015	lt_prog_compiler_wl='-Wl,';;
12016      esac
12017      ;;
12018
12019    sunos4*)
12020      lt_prog_compiler_wl='-Qoption ld '
12021      lt_prog_compiler_pic='-PIC'
12022      lt_prog_compiler_static='-Bstatic'
12023      ;;
12024
12025    sysv4 | sysv4.2uw2* | sysv4.3*)
12026      lt_prog_compiler_wl='-Wl,'
12027      lt_prog_compiler_pic='-KPIC'
12028      lt_prog_compiler_static='-Bstatic'
12029      ;;
12030
12031    sysv4*MP*)
12032      if test -d /usr/nec; then
12033	lt_prog_compiler_pic='-Kconform_pic'
12034	lt_prog_compiler_static='-Bstatic'
12035      fi
12036      ;;
12037
12038    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12039      lt_prog_compiler_wl='-Wl,'
12040      lt_prog_compiler_pic='-KPIC'
12041      lt_prog_compiler_static='-Bstatic'
12042      ;;
12043
12044    unicos*)
12045      lt_prog_compiler_wl='-Wl,'
12046      lt_prog_compiler_can_build_shared=no
12047      ;;
12048
12049    uts4*)
12050      lt_prog_compiler_pic='-pic'
12051      lt_prog_compiler_static='-Bstatic'
12052      ;;
12053
12054    *)
12055      lt_prog_compiler_can_build_shared=no
12056      ;;
12057    esac
12058  fi
12059
12060case $host_os in
12061  # For platforms that do not support PIC, -DPIC is meaningless:
12062  *djgpp*)
12063    lt_prog_compiler_pic=
12064    ;;
12065  *)
12066    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12067    ;;
12068esac
12069
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12071$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12072if ${lt_cv_prog_compiler_pic+:} false; then :
12073  $as_echo_n "(cached) " >&6
12074else
12075  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12076fi
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12078$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12079lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12080
12081#
12082# Check to make sure the PIC flag actually works.
12083#
12084if test -n "$lt_prog_compiler_pic"; then
12085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12086$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12087if ${lt_cv_prog_compiler_pic_works+:} false; then :
12088  $as_echo_n "(cached) " >&6
12089else
12090  lt_cv_prog_compiler_pic_works=no
12091   ac_outfile=conftest.$ac_objext
12092   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12093   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12094   # Insert the option either (1) after the last *FLAGS variable, or
12095   # (2) before a word containing "conftest.", or (3) at the end.
12096   # Note that $ac_compile itself does not contain backslashes and begins
12097   # with a dollar sign (not a hyphen), so the echo should work correctly.
12098   # The option is referenced via a variable to avoid confusing sed.
12099   lt_compile=`echo "$ac_compile" | $SED \
12100   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12101   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12102   -e 's:$: $lt_compiler_flag:'`
12103   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12104   (eval "$lt_compile" 2>conftest.err)
12105   ac_status=$?
12106   cat conftest.err >&5
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   if (exit $ac_status) && test -s "$ac_outfile"; then
12109     # The compiler can only warn and ignore the option if not recognized
12110     # So say no if there are warnings other than the usual output.
12111     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12112     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12113     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12114       lt_cv_prog_compiler_pic_works=yes
12115     fi
12116   fi
12117   $RM conftest*
12118
12119fi
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12121$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12122
12123if test yes = "$lt_cv_prog_compiler_pic_works"; then
12124    case $lt_prog_compiler_pic in
12125     "" | " "*) ;;
12126     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12127     esac
12128else
12129    lt_prog_compiler_pic=
12130     lt_prog_compiler_can_build_shared=no
12131fi
12132
12133fi
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145#
12146# Check to make sure the static flag actually works.
12147#
12148wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12150$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12151if ${lt_cv_prog_compiler_static_works+:} false; then :
12152  $as_echo_n "(cached) " >&6
12153else
12154  lt_cv_prog_compiler_static_works=no
12155   save_LDFLAGS=$LDFLAGS
12156   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12157   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12158   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12159     # The linker can only warn and ignore the option if not recognized
12160     # So say no if there are warnings
12161     if test -s conftest.err; then
12162       # Append any errors to the config.log.
12163       cat conftest.err 1>&5
12164       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12165       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12166       if diff conftest.exp conftest.er2 >/dev/null; then
12167         lt_cv_prog_compiler_static_works=yes
12168       fi
12169     else
12170       lt_cv_prog_compiler_static_works=yes
12171     fi
12172   fi
12173   $RM -r conftest*
12174   LDFLAGS=$save_LDFLAGS
12175
12176fi
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12178$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12179
12180if test yes = "$lt_cv_prog_compiler_static_works"; then
12181    :
12182else
12183    lt_prog_compiler_static=
12184fi
12185
12186
12187
12188
12189
12190
12191
12192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12194if ${lt_cv_prog_compiler_c_o+:} false; then :
12195  $as_echo_n "(cached) " >&6
12196else
12197  lt_cv_prog_compiler_c_o=no
12198   $RM -r conftest 2>/dev/null
12199   mkdir conftest
12200   cd conftest
12201   mkdir out
12202   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12203
12204   lt_compiler_flag="-o out/conftest2.$ac_objext"
12205   # Insert the option either (1) after the last *FLAGS variable, or
12206   # (2) before a word containing "conftest.", or (3) at the end.
12207   # Note that $ac_compile itself does not contain backslashes and begins
12208   # with a dollar sign (not a hyphen), so the echo should work correctly.
12209   lt_compile=`echo "$ac_compile" | $SED \
12210   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12211   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12212   -e 's:$: $lt_compiler_flag:'`
12213   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12214   (eval "$lt_compile" 2>out/conftest.err)
12215   ac_status=$?
12216   cat out/conftest.err >&5
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12219   then
12220     # The compiler can only warn and ignore the option if not recognized
12221     # So say no if there are warnings
12222     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12223     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12224     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12225       lt_cv_prog_compiler_c_o=yes
12226     fi
12227   fi
12228   chmod u+w . 2>&5
12229   $RM conftest*
12230   # SGI C++ compiler will create directory out/ii_files/ for
12231   # template instantiation
12232   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12233   $RM out/* && rmdir out
12234   cd ..
12235   $RM -r conftest
12236   $RM conftest*
12237
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12240$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12241
12242
12243
12244
12245
12246
12247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12248$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12249if ${lt_cv_prog_compiler_c_o+:} false; then :
12250  $as_echo_n "(cached) " >&6
12251else
12252  lt_cv_prog_compiler_c_o=no
12253   $RM -r conftest 2>/dev/null
12254   mkdir conftest
12255   cd conftest
12256   mkdir out
12257   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12258
12259   lt_compiler_flag="-o out/conftest2.$ac_objext"
12260   # Insert the option either (1) after the last *FLAGS variable, or
12261   # (2) before a word containing "conftest.", or (3) at the end.
12262   # Note that $ac_compile itself does not contain backslashes and begins
12263   # with a dollar sign (not a hyphen), so the echo should work correctly.
12264   lt_compile=`echo "$ac_compile" | $SED \
12265   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12266   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12267   -e 's:$: $lt_compiler_flag:'`
12268   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12269   (eval "$lt_compile" 2>out/conftest.err)
12270   ac_status=$?
12271   cat out/conftest.err >&5
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12274   then
12275     # The compiler can only warn and ignore the option if not recognized
12276     # So say no if there are warnings
12277     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12278     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12279     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12280       lt_cv_prog_compiler_c_o=yes
12281     fi
12282   fi
12283   chmod u+w . 2>&5
12284   $RM conftest*
12285   # SGI C++ compiler will create directory out/ii_files/ for
12286   # template instantiation
12287   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12288   $RM out/* && rmdir out
12289   cd ..
12290   $RM -r conftest
12291   $RM conftest*
12292
12293fi
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12295$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12296
12297
12298
12299
12300hard_links=nottested
12301if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12302  # do not overwrite the value of need_locks provided by the user
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12304$as_echo_n "checking if we can lock with hard links... " >&6; }
12305  hard_links=yes
12306  $RM conftest*
12307  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12308  touch conftest.a
12309  ln conftest.a conftest.b 2>&5 || hard_links=no
12310  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12312$as_echo "$hard_links" >&6; }
12313  if test no = "$hard_links"; then
12314    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12315$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12316    need_locks=warn
12317  fi
12318else
12319  need_locks=no
12320fi
12321
12322
12323
12324
12325
12326
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12328$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12329
12330  runpath_var=
12331  allow_undefined_flag=
12332  always_export_symbols=no
12333  archive_cmds=
12334  archive_expsym_cmds=
12335  compiler_needs_object=no
12336  enable_shared_with_static_runtimes=no
12337  export_dynamic_flag_spec=
12338  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12339  hardcode_automatic=no
12340  hardcode_direct=no
12341  hardcode_direct_absolute=no
12342  hardcode_libdir_flag_spec=
12343  hardcode_libdir_separator=
12344  hardcode_minus_L=no
12345  hardcode_shlibpath_var=unsupported
12346  inherit_rpath=no
12347  link_all_deplibs=unknown
12348  module_cmds=
12349  module_expsym_cmds=
12350  old_archive_from_new_cmds=
12351  old_archive_from_expsyms_cmds=
12352  thread_safe_flag_spec=
12353  whole_archive_flag_spec=
12354  # include_expsyms should be a list of space-separated symbols to be *always*
12355  # included in the symbol list
12356  include_expsyms=
12357  # exclude_expsyms can be an extended regexp of symbols to exclude
12358  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12359  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12360  # as well as any symbol that contains 'd'.
12361  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12362  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12363  # platforms (ab)use it in PIC code, but their linkers get confused if
12364  # the symbol is explicitly referenced.  Since portable code cannot
12365  # rely on this symbol name, it's probably fine to never include it in
12366  # preloaded symbol tables.
12367  # Exclude shared library initialization/finalization symbols.
12368  extract_expsyms_cmds=
12369
12370  case $host_os in
12371  cygwin* | mingw* | pw32* | cegcc*)
12372    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12373    # When not using gcc, we currently assume that we are using
12374    # Microsoft Visual C++.
12375    if test yes != "$GCC"; then
12376      with_gnu_ld=no
12377    fi
12378    ;;
12379  interix*)
12380    # we just hope/assume this is gcc and not c89 (= MSVC++)
12381    with_gnu_ld=yes
12382    ;;
12383  openbsd* | bitrig*)
12384    with_gnu_ld=no
12385    ;;
12386  linux* | k*bsd*-gnu | gnu*)
12387    link_all_deplibs=no
12388    ;;
12389  esac
12390
12391  ld_shlibs=yes
12392
12393  # On some targets, GNU ld is compatible enough with the native linker
12394  # that we're better off using the native interface for both.
12395  lt_use_gnu_ld_interface=no
12396  if test yes = "$with_gnu_ld"; then
12397    case $host_os in
12398      aix*)
12399	# The AIX port of GNU ld has always aspired to compatibility
12400	# with the native linker.  However, as the warning in the GNU ld
12401	# block says, versions before 2.19.5* couldn't really create working
12402	# shared libraries, regardless of the interface used.
12403	case `$LD -v 2>&1` in
12404	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12405	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12406	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12407	  *)
12408	    lt_use_gnu_ld_interface=yes
12409	    ;;
12410	esac
12411	;;
12412      *)
12413	lt_use_gnu_ld_interface=yes
12414	;;
12415    esac
12416  fi
12417
12418  if test yes = "$lt_use_gnu_ld_interface"; then
12419    # If archive_cmds runs LD, not CC, wlarc should be empty
12420    wlarc='$wl'
12421
12422    # Set some defaults for GNU ld with shared library support. These
12423    # are reset later if shared libraries are not supported. Putting them
12424    # here allows them to be overridden if necessary.
12425    runpath_var=LD_RUN_PATH
12426    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12427    export_dynamic_flag_spec='$wl--export-dynamic'
12428    # ancient GNU ld didn't support --whole-archive et. al.
12429    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12430      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12431    else
12432      whole_archive_flag_spec=
12433    fi
12434    supports_anon_versioning=no
12435    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12436      *GNU\ gold*) supports_anon_versioning=yes ;;
12437      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12438      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12439      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12440      *\ 2.11.*) ;; # other 2.11 versions
12441      *) supports_anon_versioning=yes ;;
12442    esac
12443
12444    # See if GNU ld supports shared libraries.
12445    case $host_os in
12446    aix[3-9]*)
12447      # On AIX/PPC, the GNU linker is very broken
12448      if test ia64 != "$host_cpu"; then
12449	ld_shlibs=no
12450	cat <<_LT_EOF 1>&2
12451
12452*** Warning: the GNU linker, at least up to release 2.19, is reported
12453*** to be unable to reliably create shared libraries on AIX.
12454*** Therefore, libtool is disabling shared libraries support.  If you
12455*** really care for shared libraries, you may want to install binutils
12456*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12457*** You will then need to restart the configuration process.
12458
12459_LT_EOF
12460      fi
12461      ;;
12462
12463    amigaos*)
12464      case $host_cpu in
12465      powerpc)
12466            # see comment about AmigaOS4 .so support
12467            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12468            archive_expsym_cmds=''
12469        ;;
12470      m68k)
12471            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)'
12472            hardcode_libdir_flag_spec='-L$libdir'
12473            hardcode_minus_L=yes
12474        ;;
12475      esac
12476      ;;
12477
12478    beos*)
12479      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12480	allow_undefined_flag=unsupported
12481	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12482	# support --undefined.  This deserves some investigation.  FIXME
12483	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12484      else
12485	ld_shlibs=no
12486      fi
12487      ;;
12488
12489    cygwin* | mingw* | pw32* | cegcc*)
12490      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12491      # as there is no search path for DLLs.
12492      hardcode_libdir_flag_spec='-L$libdir'
12493      export_dynamic_flag_spec='$wl--export-all-symbols'
12494      allow_undefined_flag=unsupported
12495      always_export_symbols=no
12496      enable_shared_with_static_runtimes=yes
12497      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'
12498      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12499
12500      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12501        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12502	# If the export-symbols file already is a .def file, use it as
12503	# is; otherwise, prepend EXPORTS...
12504	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12505          cp $export_symbols $output_objdir/$soname.def;
12506        else
12507          echo EXPORTS > $output_objdir/$soname.def;
12508          cat $export_symbols >> $output_objdir/$soname.def;
12509        fi~
12510        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12511      else
12512	ld_shlibs=no
12513      fi
12514      ;;
12515
12516    haiku*)
12517      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12518      link_all_deplibs=yes
12519      ;;
12520
12521    os2*)
12522      hardcode_libdir_flag_spec='-L$libdir'
12523      hardcode_minus_L=yes
12524      allow_undefined_flag=unsupported
12525      shrext_cmds=.dll
12526      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12527	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12528	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12529	$ECHO EXPORTS >> $output_objdir/$libname.def~
12530	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12531	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12532	emximp -o $lib $output_objdir/$libname.def'
12533      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12534	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12535	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12536	$ECHO EXPORTS >> $output_objdir/$libname.def~
12537	prefix_cmds="$SED"~
12538	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12539	  prefix_cmds="$prefix_cmds -e 1d";
12540	fi~
12541	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12542	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12543	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12544	emximp -o $lib $output_objdir/$libname.def'
12545      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12546      enable_shared_with_static_runtimes=yes
12547      ;;
12548
12549    interix[3-9]*)
12550      hardcode_direct=no
12551      hardcode_shlibpath_var=no
12552      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12553      export_dynamic_flag_spec='$wl-E'
12554      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12555      # Instead, shared libraries are loaded at an image base (0x10000000 by
12556      # default) and relocated if they conflict, which is a slow very memory
12557      # consuming and fragmenting process.  To avoid this, we pick a random,
12558      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12559      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12560      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12561      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'
12562      ;;
12563
12564    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12565      tmp_diet=no
12566      if test linux-dietlibc = "$host_os"; then
12567	case $cc_basename in
12568	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12569	esac
12570      fi
12571      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12572	 && test no = "$tmp_diet"
12573      then
12574	tmp_addflag=' $pic_flag'
12575	tmp_sharedflag='-shared'
12576	case $cc_basename,$host_cpu in
12577        pgcc*)				# Portland Group C compiler
12578	  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'
12579	  tmp_addflag=' $pic_flag'
12580	  ;;
12581	pgf77* | pgf90* | pgf95* | pgfortran*)
12582					# Portland Group f77 and f90 compilers
12583	  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'
12584	  tmp_addflag=' $pic_flag -Mnomain' ;;
12585	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12586	  tmp_addflag=' -i_dynamic' ;;
12587	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12588	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12589	ifc* | ifort*)			# Intel Fortran compiler
12590	  tmp_addflag=' -nofor_main' ;;
12591	lf95*)				# Lahey Fortran 8.1
12592	  whole_archive_flag_spec=
12593	  tmp_sharedflag='--shared' ;;
12594        nagfor*)                        # NAGFOR 5.3
12595          tmp_sharedflag='-Wl,-shared' ;;
12596	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12597	  tmp_sharedflag='-qmkshrobj'
12598	  tmp_addflag= ;;
12599	nvcc*)	# Cuda Compiler Driver 2.2
12600	  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'
12601	  compiler_needs_object=yes
12602	  ;;
12603	esac
12604	case `$CC -V 2>&1 | sed 5q` in
12605	*Sun\ C*)			# Sun C 5.9
12606	  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'
12607	  compiler_needs_object=yes
12608	  tmp_sharedflag='-G' ;;
12609	*Sun\ F*)			# Sun Fortran 8.3
12610	  tmp_sharedflag='-G' ;;
12611	esac
12612	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12613
12614        if test yes = "$supports_anon_versioning"; then
12615          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12616            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12617            echo "local: *; };" >> $output_objdir/$libname.ver~
12618            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12619        fi
12620
12621	case $cc_basename in
12622	tcc*)
12623	  export_dynamic_flag_spec='-rdynamic'
12624	  ;;
12625	xlf* | bgf* | bgxlf* | mpixlf*)
12626	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12627	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12628	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12629	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12630	  if test yes = "$supports_anon_versioning"; then
12631	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12632              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12633              echo "local: *; };" >> $output_objdir/$libname.ver~
12634              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12635	  fi
12636	  ;;
12637	esac
12638      else
12639        ld_shlibs=no
12640      fi
12641      ;;
12642
12643    netbsd* | netbsdelf*-gnu)
12644      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12645	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12646	wlarc=
12647      else
12648	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12649	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12650      fi
12651      ;;
12652
12653    solaris*)
12654      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12655	ld_shlibs=no
12656	cat <<_LT_EOF 1>&2
12657
12658*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12659*** create shared libraries on Solaris systems.  Therefore, libtool
12660*** is disabling shared libraries support.  We urge you to upgrade GNU
12661*** binutils to release 2.9.1 or newer.  Another option is to modify
12662*** your PATH or compiler configuration so that the native linker is
12663*** used, and then restart.
12664
12665_LT_EOF
12666      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12667	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12668	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12669      else
12670	ld_shlibs=no
12671      fi
12672      ;;
12673
12674    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12675      case `$LD -v 2>&1` in
12676        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12677	ld_shlibs=no
12678	cat <<_LT_EOF 1>&2
12679
12680*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12681*** reliably create shared libraries on SCO systems.  Therefore, libtool
12682*** is disabling shared libraries support.  We urge you to upgrade GNU
12683*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12684*** your PATH or compiler configuration so that the native linker is
12685*** used, and then restart.
12686
12687_LT_EOF
12688	;;
12689	*)
12690	  # For security reasons, it is highly recommended that you always
12691	  # use absolute paths for naming shared libraries, and exclude the
12692	  # DT_RUNPATH tag from executables and libraries.  But doing so
12693	  # requires that you compile everything twice, which is a pain.
12694	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12695	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12696	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12697	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12698	  else
12699	    ld_shlibs=no
12700	  fi
12701	;;
12702      esac
12703      ;;
12704
12705    sunos4*)
12706      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12707      wlarc=
12708      hardcode_direct=yes
12709      hardcode_shlibpath_var=no
12710      ;;
12711
12712    *)
12713      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12714	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12715	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12716      else
12717	ld_shlibs=no
12718      fi
12719      ;;
12720    esac
12721
12722    if test no = "$ld_shlibs"; then
12723      runpath_var=
12724      hardcode_libdir_flag_spec=
12725      export_dynamic_flag_spec=
12726      whole_archive_flag_spec=
12727    fi
12728  else
12729    # PORTME fill in a description of your system's linker (not GNU ld)
12730    case $host_os in
12731    aix3*)
12732      allow_undefined_flag=unsupported
12733      always_export_symbols=yes
12734      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'
12735      # Note: this linker hardcodes the directories in LIBPATH if there
12736      # are no directories specified by -L.
12737      hardcode_minus_L=yes
12738      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12739	# Neither direct hardcoding nor static linking is supported with a
12740	# broken collect2.
12741	hardcode_direct=unsupported
12742      fi
12743      ;;
12744
12745    aix[4-9]*)
12746      if test ia64 = "$host_cpu"; then
12747	# On IA64, the linker does run time linking by default, so we don't
12748	# have to do anything special.
12749	aix_use_runtimelinking=no
12750	exp_sym_flag='-Bexport'
12751	no_entry_flag=
12752      else
12753	# If we're using GNU nm, then we don't want the "-C" option.
12754	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12755	# Without the "-l" option, or with the "-B" option, AIX nm treats
12756	# weak defined symbols like other global defined symbols, whereas
12757	# GNU nm marks them as "W".
12758	# While the 'weak' keyword is ignored in the Export File, we need
12759	# it in the Import File for the 'aix-soname' feature, so we have
12760	# to replace the "-B" option with "-P" for AIX nm.
12761	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12762	  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'
12763	else
12764	  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'
12765	fi
12766	aix_use_runtimelinking=no
12767
12768	# Test if we are trying to use run time linking or normal
12769	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12770	# have runtime linking enabled, and use it for executables.
12771	# For shared libraries, we enable/disable runtime linking
12772	# depending on the kind of the shared library created -
12773	# when "with_aix_soname,aix_use_runtimelinking" is:
12774	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12775	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12776	#            lib.a           static archive
12777	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12778	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12779	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12780	#            lib.a(lib.so.V) shared, rtl:no
12781	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12782	#            lib.a           static archive
12783	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12784	  for ld_flag in $LDFLAGS; do
12785	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12786	    aix_use_runtimelinking=yes
12787	    break
12788	  fi
12789	  done
12790	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12791	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12792	    # so we don't have lib.a shared libs to link our executables.
12793	    # We have to force runtime linking in this case.
12794	    aix_use_runtimelinking=yes
12795	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12796	  fi
12797	  ;;
12798	esac
12799
12800	exp_sym_flag='-bexport'
12801	no_entry_flag='-bnoentry'
12802      fi
12803
12804      # When large executables or shared objects are built, AIX ld can
12805      # have problems creating the table of contents.  If linking a library
12806      # or program results in "error TOC overflow" add -mminimal-toc to
12807      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12808      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12809
12810      archive_cmds=''
12811      hardcode_direct=yes
12812      hardcode_direct_absolute=yes
12813      hardcode_libdir_separator=':'
12814      link_all_deplibs=yes
12815      file_list_spec='$wl-f,'
12816      case $with_aix_soname,$aix_use_runtimelinking in
12817      aix,*) ;; # traditional, no import file
12818      svr4,* | *,yes) # use import file
12819	# The Import File defines what to hardcode.
12820	hardcode_direct=no
12821	hardcode_direct_absolute=no
12822	;;
12823      esac
12824
12825      if test yes = "$GCC"; then
12826	case $host_os in aix4.[012]|aix4.[012].*)
12827	# We only want to do this on AIX 4.2 and lower, the check
12828	# below for broken collect2 doesn't work under 4.3+
12829	  collect2name=`$CC -print-prog-name=collect2`
12830	  if test -f "$collect2name" &&
12831	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12832	  then
12833	  # We have reworked collect2
12834	  :
12835	  else
12836	  # We have old collect2
12837	  hardcode_direct=unsupported
12838	  # It fails to find uninstalled libraries when the uninstalled
12839	  # path is not listed in the libpath.  Setting hardcode_minus_L
12840	  # to unsupported forces relinking
12841	  hardcode_minus_L=yes
12842	  hardcode_libdir_flag_spec='-L$libdir'
12843	  hardcode_libdir_separator=
12844	  fi
12845	  ;;
12846	esac
12847	shared_flag='-shared'
12848	if test yes = "$aix_use_runtimelinking"; then
12849	  shared_flag="$shared_flag "'$wl-G'
12850	fi
12851	# Need to ensure runtime linking is disabled for the traditional
12852	# shared library, or the linker may eventually find shared libraries
12853	# /with/ Import File - we do not want to mix them.
12854	shared_flag_aix='-shared'
12855	shared_flag_svr4='-shared $wl-G'
12856      else
12857	# not using gcc
12858	if test ia64 = "$host_cpu"; then
12859	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12860	# chokes on -Wl,-G. The following line is correct:
12861	  shared_flag='-G'
12862	else
12863	  if test yes = "$aix_use_runtimelinking"; then
12864	    shared_flag='$wl-G'
12865	  else
12866	    shared_flag='$wl-bM:SRE'
12867	  fi
12868	  shared_flag_aix='$wl-bM:SRE'
12869	  shared_flag_svr4='$wl-G'
12870	fi
12871      fi
12872
12873      export_dynamic_flag_spec='$wl-bexpall'
12874      # It seems that -bexpall does not export symbols beginning with
12875      # underscore (_), so it is better to generate a list of symbols to export.
12876      always_export_symbols=yes
12877      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12878	# Warning - without using the other runtime loading flags (-brtl),
12879	# -berok will link without error, but may produce a broken library.
12880	allow_undefined_flag='-berok'
12881        # Determine the default libpath from the value encoded in an
12882        # empty executable.
12883        if test set = "${lt_cv_aix_libpath+set}"; then
12884  aix_libpath=$lt_cv_aix_libpath
12885else
12886  if ${lt_cv_aix_libpath_+:} false; then :
12887  $as_echo_n "(cached) " >&6
12888else
12889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890/* end confdefs.h.  */
12891
12892int main (void)
12893{
12894
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899if ac_fn_c_try_link "$LINENO"; then :
12900
12901  lt_aix_libpath_sed='
12902      /Import File Strings/,/^$/ {
12903	  /^0/ {
12904	      s/^0  *\([^ ]*\) *$/\1/
12905	      p
12906	  }
12907      }'
12908  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12909  # Check for a 64-bit object if we didn't find anything.
12910  if test -z "$lt_cv_aix_libpath_"; then
12911    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12912  fi
12913fi
12914rm -f core conftest.err conftest.$ac_objext \
12915    conftest$ac_exeext conftest.$ac_ext
12916  if test -z "$lt_cv_aix_libpath_"; then
12917    lt_cv_aix_libpath_=/usr/lib:/lib
12918  fi
12919
12920fi
12921
12922  aix_libpath=$lt_cv_aix_libpath_
12923fi
12924
12925        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12926        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
12927      else
12928	if test ia64 = "$host_cpu"; then
12929	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12930	  allow_undefined_flag="-z nodefs"
12931	  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"
12932	else
12933	 # Determine the default libpath from the value encoded in an
12934	 # empty executable.
12935	 if test set = "${lt_cv_aix_libpath+set}"; then
12936  aix_libpath=$lt_cv_aix_libpath
12937else
12938  if ${lt_cv_aix_libpath_+:} false; then :
12939  $as_echo_n "(cached) " >&6
12940else
12941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942/* end confdefs.h.  */
12943
12944int main (void)
12945{
12946
12947 ;
12948 return 0;
12949}
12950_ACEOF
12951if ac_fn_c_try_link "$LINENO"; then :
12952
12953  lt_aix_libpath_sed='
12954      /Import File Strings/,/^$/ {
12955	  /^0/ {
12956	      s/^0  *\([^ ]*\) *$/\1/
12957	      p
12958	  }
12959      }'
12960  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12961  # Check for a 64-bit object if we didn't find anything.
12962  if test -z "$lt_cv_aix_libpath_"; then
12963    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12964  fi
12965fi
12966rm -f core conftest.err conftest.$ac_objext \
12967    conftest$ac_exeext conftest.$ac_ext
12968  if test -z "$lt_cv_aix_libpath_"; then
12969    lt_cv_aix_libpath_=/usr/lib:/lib
12970  fi
12971
12972fi
12973
12974  aix_libpath=$lt_cv_aix_libpath_
12975fi
12976
12977	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12978	  # Warning - without using the other run time loading flags,
12979	  # -berok will link without error, but may produce a broken library.
12980	  no_undefined_flag=' $wl-bernotok'
12981	  allow_undefined_flag=' $wl-berok'
12982	  if test yes = "$with_gnu_ld"; then
12983	    # We only use this code for GNU lds that support --whole-archive.
12984	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12985	  else
12986	    # Exported symbols can be pulled into shared objects from archives
12987	    whole_archive_flag_spec='$convenience'
12988	  fi
12989	  archive_cmds_need_lc=yes
12990	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12991	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12992	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12993	  if test svr4 != "$with_aix_soname"; then
12994	    # This is similar to how AIX traditionally builds its shared libraries.
12995	    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'
12996	  fi
12997	  if test aix != "$with_aix_soname"; then
12998	    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'
12999	  else
13000	    # used by -dlpreopen to get the symbols
13001	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13002	  fi
13003	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13004	fi
13005      fi
13006      ;;
13007
13008    amigaos*)
13009      case $host_cpu in
13010      powerpc)
13011            # see comment about AmigaOS4 .so support
13012            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13013            archive_expsym_cmds=''
13014        ;;
13015      m68k)
13016            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)'
13017            hardcode_libdir_flag_spec='-L$libdir'
13018            hardcode_minus_L=yes
13019        ;;
13020      esac
13021      ;;
13022
13023    bsdi[45]*)
13024      export_dynamic_flag_spec=-rdynamic
13025      ;;
13026
13027    cygwin* | mingw* | pw32* | cegcc*)
13028      # When not using gcc, we currently assume that we are using
13029      # Microsoft Visual C++.
13030      # hardcode_libdir_flag_spec is actually meaningless, as there is
13031      # no search path for DLLs.
13032      case $cc_basename in
13033      cl*)
13034	# Native MSVC
13035	hardcode_libdir_flag_spec=' '
13036	allow_undefined_flag=unsupported
13037	always_export_symbols=yes
13038	file_list_spec='@'
13039	# Tell ltmain to make .lib files, not .a files.
13040	libext=lib
13041	# Tell ltmain to make .dll files, not .so files.
13042	shrext_cmds=.dll
13043	# FIXME: Setting linknames here is a bad hack.
13044	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13045	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13046            cp "$export_symbols" "$output_objdir/$soname.def";
13047            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13048          else
13049            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13050          fi~
13051          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13052          linknames='
13053	# The linker will not automatically build a static lib if we build a DLL.
13054	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13055	enable_shared_with_static_runtimes=yes
13056	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13057	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13058	# Don't use ranlib
13059	old_postinstall_cmds='chmod 644 $oldlib'
13060	postlink_cmds='lt_outputfile="@OUTPUT@"~
13061          lt_tool_outputfile="@TOOL_OUTPUT@"~
13062          case $lt_outputfile in
13063            *.exe|*.EXE) ;;
13064            *)
13065              lt_outputfile=$lt_outputfile.exe
13066              lt_tool_outputfile=$lt_tool_outputfile.exe
13067              ;;
13068          esac~
13069          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13070            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13071            $RM "$lt_outputfile.manifest";
13072          fi'
13073	;;
13074      *)
13075	# Assume MSVC wrapper
13076	hardcode_libdir_flag_spec=' '
13077	allow_undefined_flag=unsupported
13078	# Tell ltmain to make .lib files, not .a files.
13079	libext=lib
13080	# Tell ltmain to make .dll files, not .so files.
13081	shrext_cmds=.dll
13082	# FIXME: Setting linknames here is a bad hack.
13083	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13084	# The linker will automatically build a .lib file if we build a DLL.
13085	old_archive_from_new_cmds='true'
13086	# FIXME: Should let the user specify the lib program.
13087	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13088	enable_shared_with_static_runtimes=yes
13089	;;
13090      esac
13091      ;;
13092
13093    darwin* | rhapsody*)
13094
13095
13096  archive_cmds_need_lc=no
13097  hardcode_direct=no
13098  hardcode_automatic=yes
13099  hardcode_shlibpath_var=unsupported
13100  if test yes = "$lt_cv_ld_force_load"; then
13101    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\"`'
13102
13103  else
13104    whole_archive_flag_spec=''
13105  fi
13106  link_all_deplibs=yes
13107  allow_undefined_flag=$_lt_dar_allow_undefined
13108  case $cc_basename in
13109     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13110     *) _lt_dar_can_shared=$GCC ;;
13111  esac
13112  if test yes = "$_lt_dar_can_shared"; then
13113    output_verbose_link_cmd=func_echo_all
13114    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13115    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13116    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"
13117    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"
13118
13119  else
13120  ld_shlibs=no
13121  fi
13122
13123      ;;
13124
13125    dgux*)
13126      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13127      hardcode_libdir_flag_spec='-L$libdir'
13128      hardcode_shlibpath_var=no
13129      ;;
13130
13131    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13132    # support.  Future versions do this automatically, but an explicit c++rt0.o
13133    # does not break anything, and helps significantly (at the cost of a little
13134    # extra space).
13135    freebsd2.2*)
13136      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13137      hardcode_libdir_flag_spec='-R$libdir'
13138      hardcode_direct=yes
13139      hardcode_shlibpath_var=no
13140      ;;
13141
13142    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13143    freebsd2.*)
13144      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13145      hardcode_direct=yes
13146      hardcode_minus_L=yes
13147      hardcode_shlibpath_var=no
13148      ;;
13149
13150    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13151    freebsd* | dragonfly*)
13152      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13153      hardcode_libdir_flag_spec='-R$libdir'
13154      hardcode_direct=yes
13155      hardcode_shlibpath_var=no
13156      ;;
13157
13158    hpux9*)
13159      if test yes = "$GCC"; then
13160	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 $output_objdir/$soname $lib'
13161      else
13162	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 $output_objdir/$soname $lib'
13163      fi
13164      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13165      hardcode_libdir_separator=:
13166      hardcode_direct=yes
13167
13168      # hardcode_minus_L: Not really in the search PATH,
13169      # but as the default location of the library.
13170      hardcode_minus_L=yes
13171      export_dynamic_flag_spec='$wl-E'
13172      ;;
13173
13174    hpux10*)
13175      if test yes,no = "$GCC,$with_gnu_ld"; then
13176	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13177      else
13178	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13179      fi
13180      if test no = "$with_gnu_ld"; then
13181	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13182	hardcode_libdir_separator=:
13183	hardcode_direct=yes
13184	hardcode_direct_absolute=yes
13185	export_dynamic_flag_spec='$wl-E'
13186	# hardcode_minus_L: Not really in the search PATH,
13187	# but as the default location of the library.
13188	hardcode_minus_L=yes
13189      fi
13190      ;;
13191
13192    hpux11*)
13193      if test yes,no = "$GCC,$with_gnu_ld"; then
13194	case $host_cpu in
13195	hppa*64*)
13196	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13197	  ;;
13198	ia64*)
13199	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13200	  ;;
13201	*)
13202	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13203	  ;;
13204	esac
13205      else
13206	case $host_cpu in
13207	hppa*64*)
13208	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13209	  ;;
13210	ia64*)
13211	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13212	  ;;
13213	*)
13214
13215	  # Older versions of the 11.00 compiler do not understand -b yet
13216	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13217	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13218$as_echo_n "checking if $CC understands -b... " >&6; }
13219if ${lt_cv_prog_compiler__b+:} false; then :
13220  $as_echo_n "(cached) " >&6
13221else
13222  lt_cv_prog_compiler__b=no
13223   save_LDFLAGS=$LDFLAGS
13224   LDFLAGS="$LDFLAGS -b"
13225   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13226   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13227     # The linker can only warn and ignore the option if not recognized
13228     # So say no if there are warnings
13229     if test -s conftest.err; then
13230       # Append any errors to the config.log.
13231       cat conftest.err 1>&5
13232       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13233       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13234       if diff conftest.exp conftest.er2 >/dev/null; then
13235         lt_cv_prog_compiler__b=yes
13236       fi
13237     else
13238       lt_cv_prog_compiler__b=yes
13239     fi
13240   fi
13241   $RM -r conftest*
13242   LDFLAGS=$save_LDFLAGS
13243
13244fi
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13246$as_echo "$lt_cv_prog_compiler__b" >&6; }
13247
13248if test yes = "$lt_cv_prog_compiler__b"; then
13249    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13250else
13251    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13252fi
13253
13254	  ;;
13255	esac
13256      fi
13257      if test no = "$with_gnu_ld"; then
13258	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13259	hardcode_libdir_separator=:
13260
13261	case $host_cpu in
13262	hppa*64*|ia64*)
13263	  hardcode_direct=no
13264	  hardcode_shlibpath_var=no
13265	  ;;
13266	*)
13267	  hardcode_direct=yes
13268	  hardcode_direct_absolute=yes
13269	  export_dynamic_flag_spec='$wl-E'
13270
13271	  # hardcode_minus_L: Not really in the search PATH,
13272	  # but as the default location of the library.
13273	  hardcode_minus_L=yes
13274	  ;;
13275	esac
13276      fi
13277      ;;
13278
13279    irix5* | irix6* | nonstopux*)
13280      if test yes = "$GCC"; then
13281	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'
13282	# Try to use the -exported_symbol ld option, if it does not
13283	# work, assume that -exports_file does not work either and
13284	# implicitly export all symbols.
13285	# This should be the same for all languages, so no per-tag cache variable.
13286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13287$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13288if ${lt_cv_irix_exported_symbol+:} false; then :
13289  $as_echo_n "(cached) " >&6
13290else
13291  save_LDFLAGS=$LDFLAGS
13292	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13293	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294/* end confdefs.h.  */
13295int foo (void) { return 0; }
13296_ACEOF
13297if ac_fn_c_try_link "$LINENO"; then :
13298  lt_cv_irix_exported_symbol=yes
13299else
13300  lt_cv_irix_exported_symbol=no
13301fi
13302rm -f core conftest.err conftest.$ac_objext \
13303    conftest$ac_exeext conftest.$ac_ext
13304           LDFLAGS=$save_LDFLAGS
13305fi
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13307$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13308	if test yes = "$lt_cv_irix_exported_symbol"; then
13309          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'
13310	fi
13311	link_all_deplibs=no
13312      else
13313	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'
13314	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'
13315      fi
13316      archive_cmds_need_lc='no'
13317      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13318      hardcode_libdir_separator=:
13319      inherit_rpath=yes
13320      link_all_deplibs=yes
13321      ;;
13322
13323    linux*)
13324      case $cc_basename in
13325      tcc*)
13326	# Fabrice Bellard et al's Tiny C Compiler
13327	ld_shlibs=yes
13328	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13329	;;
13330      esac
13331      ;;
13332
13333    netbsd* | netbsdelf*-gnu)
13334      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13335	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13336      else
13337	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13338      fi
13339      hardcode_libdir_flag_spec='-R$libdir'
13340      hardcode_direct=yes
13341      hardcode_shlibpath_var=no
13342      ;;
13343
13344    newsos6)
13345      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13346      hardcode_direct=yes
13347      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13348      hardcode_libdir_separator=:
13349      hardcode_shlibpath_var=no
13350      ;;
13351
13352    *nto* | *qnx*)
13353      ;;
13354
13355    openbsd* | bitrig*)
13356      if test -f /usr/libexec/ld.so; then
13357	hardcode_direct=yes
13358	hardcode_shlibpath_var=no
13359	hardcode_direct_absolute=yes
13360	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13361	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13362	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13363	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13364	  export_dynamic_flag_spec='$wl-E'
13365	else
13366	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13367	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13368	fi
13369      else
13370	ld_shlibs=no
13371      fi
13372      ;;
13373
13374    os2*)
13375      hardcode_libdir_flag_spec='-L$libdir'
13376      hardcode_minus_L=yes
13377      allow_undefined_flag=unsupported
13378      shrext_cmds=.dll
13379      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13380	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13381	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13382	$ECHO EXPORTS >> $output_objdir/$libname.def~
13383	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13384	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13385	emximp -o $lib $output_objdir/$libname.def'
13386      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13387	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13388	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13389	$ECHO EXPORTS >> $output_objdir/$libname.def~
13390	prefix_cmds="$SED"~
13391	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13392	  prefix_cmds="$prefix_cmds -e 1d";
13393	fi~
13394	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13395	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13396	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13397	emximp -o $lib $output_objdir/$libname.def'
13398      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13399      enable_shared_with_static_runtimes=yes
13400      ;;
13401
13402    osf3*)
13403      if test yes = "$GCC"; then
13404	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13405	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'
13406      else
13407	allow_undefined_flag=' -expect_unresolved \*'
13408	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'
13409      fi
13410      archive_cmds_need_lc='no'
13411      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13412      hardcode_libdir_separator=:
13413      ;;
13414
13415    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13416      if test yes = "$GCC"; then
13417	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13418	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'
13419	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13420      else
13421	allow_undefined_flag=' -expect_unresolved \*'
13422	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'
13423	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~
13424          $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'
13425
13426	# Both c and cxx compiler support -rpath directly
13427	hardcode_libdir_flag_spec='-rpath $libdir'
13428      fi
13429      archive_cmds_need_lc='no'
13430      hardcode_libdir_separator=:
13431      ;;
13432
13433    solaris*)
13434      no_undefined_flag=' -z defs'
13435      if test yes = "$GCC"; then
13436	wlarc='$wl'
13437	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13438	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13439          $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'
13440      else
13441	case `$CC -V 2>&1` in
13442	*"Compilers 5.0"*)
13443	  wlarc=''
13444	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13445	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13446            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13447	  ;;
13448	*)
13449	  wlarc='$wl'
13450	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13451	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13452            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13453	  ;;
13454	esac
13455      fi
13456      hardcode_libdir_flag_spec='-R$libdir'
13457      hardcode_shlibpath_var=no
13458      case $host_os in
13459      solaris2.[0-5] | solaris2.[0-5].*) ;;
13460      *)
13461	# The compiler driver will combine and reorder linker options,
13462	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13463	# but is careful enough not to reorder.
13464	# Supported since Solaris 2.6 (maybe 2.5.1?)
13465	if test yes = "$GCC"; then
13466	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13467	else
13468	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13469	fi
13470	;;
13471      esac
13472      link_all_deplibs=yes
13473      ;;
13474
13475    sunos4*)
13476      if test sequent = "$host_vendor"; then
13477	# Use $CC to link under sequent, because it throws in some extra .o
13478	# files that make .init and .fini sections work.
13479	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13480      else
13481	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13482      fi
13483      hardcode_libdir_flag_spec='-L$libdir'
13484      hardcode_direct=yes
13485      hardcode_minus_L=yes
13486      hardcode_shlibpath_var=no
13487      ;;
13488
13489    sysv4)
13490      case $host_vendor in
13491	sni)
13492	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13493	  hardcode_direct=yes # is this really true???
13494	;;
13495	siemens)
13496	  ## LD is ld it makes a PLAMLIB
13497	  ## CC just makes a GrossModule.
13498	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13499	  reload_cmds='$CC -r -o $output$reload_objs'
13500	  hardcode_direct=no
13501        ;;
13502	motorola)
13503	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13505	;;
13506      esac
13507      runpath_var='LD_RUN_PATH'
13508      hardcode_shlibpath_var=no
13509      ;;
13510
13511    sysv4.3*)
13512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13513      hardcode_shlibpath_var=no
13514      export_dynamic_flag_spec='-Bexport'
13515      ;;
13516
13517    sysv4*MP*)
13518      if test -d /usr/nec; then
13519	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13520	hardcode_shlibpath_var=no
13521	runpath_var=LD_RUN_PATH
13522	hardcode_runpath_var=yes
13523	ld_shlibs=yes
13524      fi
13525      ;;
13526
13527    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13528      no_undefined_flag='$wl-z,text'
13529      archive_cmds_need_lc=no
13530      hardcode_shlibpath_var=no
13531      runpath_var='LD_RUN_PATH'
13532
13533      if test yes = "$GCC"; then
13534	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13535	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13536      else
13537	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13538	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13539      fi
13540      ;;
13541
13542    sysv5* | sco3.2v5* | sco5v6*)
13543      # Note: We CANNOT use -z defs as we might desire, because we do not
13544      # link with -lc, and that would cause any symbols used from libc to
13545      # always be unresolved, which means just about no library would
13546      # ever link correctly.  If we're not using GNU ld we use -z text
13547      # though, which does catch some bad symbols but isn't as heavy-handed
13548      # as -z defs.
13549      no_undefined_flag='$wl-z,text'
13550      allow_undefined_flag='$wl-z,nodefs'
13551      archive_cmds_need_lc=no
13552      hardcode_shlibpath_var=no
13553      hardcode_libdir_flag_spec='$wl-R,$libdir'
13554      hardcode_libdir_separator=':'
13555      link_all_deplibs=yes
13556      export_dynamic_flag_spec='$wl-Bexport'
13557      runpath_var='LD_RUN_PATH'
13558
13559      if test yes = "$GCC"; then
13560	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13562      else
13563	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13564	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13565      fi
13566      ;;
13567
13568    uts4*)
13569      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13570      hardcode_libdir_flag_spec='-L$libdir'
13571      hardcode_shlibpath_var=no
13572      ;;
13573
13574    *)
13575      ld_shlibs=no
13576      ;;
13577    esac
13578
13579    if test sni = "$host_vendor"; then
13580      case $host in
13581      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13582	export_dynamic_flag_spec='$wl-Blargedynsym'
13583	;;
13584      esac
13585    fi
13586  fi
13587
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13589$as_echo "$ld_shlibs" >&6; }
13590test no = "$ld_shlibs" && can_build_shared=no
13591
13592with_gnu_ld=$with_gnu_ld
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608#
13609# Do we need to explicitly link libc?
13610#
13611case "x$archive_cmds_need_lc" in
13612x|xyes)
13613  # Assume -lc should be added
13614  archive_cmds_need_lc=yes
13615
13616  if test yes,yes = "$GCC,$enable_shared"; then
13617    case $archive_cmds in
13618    *'~'*)
13619      # FIXME: we may have to deal with multi-command sequences.
13620      ;;
13621    '$CC '*)
13622      # Test whether the compiler implicitly links with -lc since on some
13623      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13624      # to ld, don't add -lc before -lgcc.
13625      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13626$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13627if ${lt_cv_archive_cmds_need_lc+:} false; then :
13628  $as_echo_n "(cached) " >&6
13629else
13630  $RM conftest*
13631	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13632
13633	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13634  (eval $ac_compile) 2>&5
13635  ac_status=$?
13636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637  test $ac_status = 0; } 2>conftest.err; then
13638	  soname=conftest
13639	  lib=conftest
13640	  libobjs=conftest.$ac_objext
13641	  deplibs=
13642	  wl=$lt_prog_compiler_wl
13643	  pic_flag=$lt_prog_compiler_pic
13644	  compiler_flags=-v
13645	  linker_flags=-v
13646	  verstring=
13647	  output_objdir=.
13648	  libname=conftest
13649	  lt_save_allow_undefined_flag=$allow_undefined_flag
13650	  allow_undefined_flag=
13651	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13652  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13653  ac_status=$?
13654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655  test $ac_status = 0; }
13656	  then
13657	    lt_cv_archive_cmds_need_lc=no
13658	  else
13659	    lt_cv_archive_cmds_need_lc=yes
13660	  fi
13661	  allow_undefined_flag=$lt_save_allow_undefined_flag
13662	else
13663	  cat conftest.err 1>&5
13664	fi
13665	$RM conftest*
13666
13667fi
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13669$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13670      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13671      ;;
13672    esac
13673  fi
13674  ;;
13675esac
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13829$as_echo_n "checking dynamic linker characteristics... " >&6; }
13830
13831if test yes = "$GCC"; then
13832  case $host_os in
13833    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13834    *) lt_awk_arg='/^libraries:/' ;;
13835  esac
13836  case $host_os in
13837    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13838    *) lt_sed_strip_eq='s|=/|/|g' ;;
13839  esac
13840  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13841  case $lt_search_path_spec in
13842  *\;*)
13843    # if the path contains ";" then we assume it to be the separator
13844    # otherwise default to the standard path separator (i.e. ":") - it is
13845    # assumed that no part of a normal pathname contains ";" but that should
13846    # okay in the real world where ";" in dirpaths is itself problematic.
13847    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13848    ;;
13849  *)
13850    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13851    ;;
13852  esac
13853  # Ok, now we have the path, separated by spaces, we can step through it
13854  # and add multilib dir if necessary...
13855  lt_tmp_lt_search_path_spec=
13856  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13857  # ...but if some path component already ends with the multilib dir we assume
13858  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13859  case "$lt_multi_os_dir; $lt_search_path_spec " in
13860  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13861    lt_multi_os_dir=
13862    ;;
13863  esac
13864  for lt_sys_path in $lt_search_path_spec; do
13865    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13866      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13867    elif test -n "$lt_multi_os_dir"; then
13868      test -d "$lt_sys_path" && \
13869	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13870    fi
13871  done
13872  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13873BEGIN {RS = " "; FS = "/|\n";} {
13874  lt_foo = "";
13875  lt_count = 0;
13876  for (lt_i = NF; lt_i > 0; lt_i--) {
13877    if ($lt_i != "" && $lt_i != ".") {
13878      if ($lt_i == "..") {
13879        lt_count++;
13880      } else {
13881        if (lt_count == 0) {
13882          lt_foo = "/" $lt_i lt_foo;
13883        } else {
13884          lt_count--;
13885        }
13886      }
13887    }
13888  }
13889  if (lt_foo != "") { lt_freq[lt_foo]++; }
13890  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13891}'`
13892  # AWK program above erroneously prepends '/' to C:/dos/paths
13893  # for these hosts.
13894  case $host_os in
13895    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13896      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13897  esac
13898  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13899else
13900  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13901fi
13902library_names_spec=
13903libname_spec='lib$name'
13904soname_spec=
13905shrext_cmds=.so
13906postinstall_cmds=
13907postuninstall_cmds=
13908finish_cmds=
13909finish_eval=
13910shlibpath_var=
13911shlibpath_overrides_runpath=unknown
13912version_type=none
13913dynamic_linker="$host_os ld.so"
13914sys_lib_dlsearch_path_spec="/lib /usr/lib"
13915need_lib_prefix=unknown
13916hardcode_into_libs=no
13917
13918# when you set need_version to no, make sure it does not cause -set_version
13919# flags to be left without arguments
13920need_version=unknown
13921
13922
13923
13924case $host_os in
13925aix3*)
13926  version_type=linux # correct to gnu/linux during the next big refactor
13927  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13928  shlibpath_var=LIBPATH
13929
13930  # AIX 3 has no versioning support, so we append a major version to the name.
13931  soname_spec='$libname$release$shared_ext$major'
13932  ;;
13933
13934aix[4-9]*)
13935  version_type=linux # correct to gnu/linux during the next big refactor
13936  need_lib_prefix=no
13937  need_version=no
13938  hardcode_into_libs=yes
13939  if test ia64 = "$host_cpu"; then
13940    # AIX 5 supports IA64
13941    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13942    shlibpath_var=LD_LIBRARY_PATH
13943  else
13944    # With GCC up to 2.95.x, collect2 would create an import file
13945    # for dependence libraries.  The import file would start with
13946    # the line '#! .'.  This would cause the generated library to
13947    # depend on '.', always an invalid library.  This was fixed in
13948    # development snapshots of GCC prior to 3.0.
13949    case $host_os in
13950      aix4 | aix4.[01] | aix4.[01].*)
13951      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13952	   echo ' yes '
13953	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13954	:
13955      else
13956	can_build_shared=no
13957      fi
13958      ;;
13959    esac
13960    # Using Import Files as archive members, it is possible to support
13961    # filename-based versioning of shared library archives on AIX. While
13962    # this would work for both with and without runtime linking, it will
13963    # prevent static linking of such archives. So we do filename-based
13964    # shared library versioning with .so extension only, which is used
13965    # when both runtime linking and shared linking is enabled.
13966    # Unfortunately, runtime linking may impact performance, so we do
13967    # not want this to be the default eventually. Also, we use the
13968    # versioned .so libs for executables only if there is the -brtl
13969    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13970    # To allow for filename-based versioning support, we need to create
13971    # libNAME.so.V as an archive file, containing:
13972    # *) an Import File, referring to the versioned filename of the
13973    #    archive as well as the shared archive member, telling the
13974    #    bitwidth (32 or 64) of that shared object, and providing the
13975    #    list of exported symbols of that shared object, eventually
13976    #    decorated with the 'weak' keyword
13977    # *) the shared object with the F_LOADONLY flag set, to really avoid
13978    #    it being seen by the linker.
13979    # At run time we better use the real file rather than another symlink,
13980    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13981
13982    case $with_aix_soname,$aix_use_runtimelinking in
13983    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13984    # soname into executable. Probably we can add versioning support to
13985    # collect2, so additional links can be useful in future.
13986    aix,yes) # traditional libtool
13987      dynamic_linker='AIX unversionable lib.so'
13988      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13989      # instead of lib<name>.a to let people know that these are not
13990      # typical AIX shared libraries.
13991      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13992      ;;
13993    aix,no) # traditional AIX only
13994      dynamic_linker='AIX lib.a(lib.so.V)'
13995      # We preserve .a as extension for shared libraries through AIX4.2
13996      # and later when we are not doing run time linking.
13997      library_names_spec='$libname$release.a $libname.a'
13998      soname_spec='$libname$release$shared_ext$major'
13999      ;;
14000    svr4,*) # full svr4 only
14001      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14002      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14003      # We do not specify a path in Import Files, so LIBPATH fires.
14004      shlibpath_overrides_runpath=yes
14005      ;;
14006    *,yes) # both, prefer svr4
14007      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14008      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14009      # unpreferred sharedlib libNAME.a needs extra handling
14010      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"'
14011      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"'
14012      # We do not specify a path in Import Files, so LIBPATH fires.
14013      shlibpath_overrides_runpath=yes
14014      ;;
14015    *,no) # both, prefer aix
14016      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14017      library_names_spec='$libname$release.a $libname.a'
14018      soname_spec='$libname$release$shared_ext$major'
14019      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14020      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)'
14021      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"'
14022      ;;
14023    esac
14024    shlibpath_var=LIBPATH
14025  fi
14026  ;;
14027
14028amigaos*)
14029  case $host_cpu in
14030  powerpc)
14031    # Since July 2007 AmigaOS4 officially supports .so libraries.
14032    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14033    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14034    ;;
14035  m68k)
14036    library_names_spec='$libname.ixlibrary $libname.a'
14037    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14038    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'
14039    ;;
14040  esac
14041  ;;
14042
14043beos*)
14044  library_names_spec='$libname$shared_ext'
14045  dynamic_linker="$host_os ld.so"
14046  shlibpath_var=LIBRARY_PATH
14047  ;;
14048
14049bsdi[45]*)
14050  version_type=linux # correct to gnu/linux during the next big refactor
14051  need_version=no
14052  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14053  soname_spec='$libname$release$shared_ext$major'
14054  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14055  shlibpath_var=LD_LIBRARY_PATH
14056  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14057  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14058  # the default ld.so.conf also contains /usr/contrib/lib and
14059  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14060  # libtool to hard-code these into programs
14061  ;;
14062
14063cygwin* | mingw* | pw32* | cegcc*)
14064  version_type=windows
14065  shrext_cmds=.dll
14066  need_version=no
14067  need_lib_prefix=no
14068
14069  case $GCC,$cc_basename in
14070  yes,*)
14071    # gcc
14072    library_names_spec='$libname.dll.a'
14073    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14074    postinstall_cmds='base_file=`basename \$file`~
14075      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14076      dldir=$destdir/`dirname \$dlpath`~
14077      test -d \$dldir || mkdir -p \$dldir~
14078      $install_prog $dir/$dlname \$dldir/$dlname~
14079      chmod a+x \$dldir/$dlname~
14080      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14081        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14082      fi'
14083    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14084      dlpath=$dir/\$dldll~
14085       $RM \$dlpath'
14086    shlibpath_overrides_runpath=yes
14087
14088    case $host_os in
14089    cygwin*)
14090      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14091      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14092
14093      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14094      ;;
14095    mingw* | cegcc*)
14096      # MinGW DLLs use traditional 'lib' prefix
14097      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14098      ;;
14099    pw32*)
14100      # pw32 DLLs use 'pw' prefix rather than 'lib'
14101      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14102      ;;
14103    esac
14104    dynamic_linker='Win32 ld.exe'
14105    ;;
14106
14107  *,cl*)
14108    # Native MSVC
14109    libname_spec='$name'
14110    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14111    library_names_spec='$libname.dll.lib'
14112
14113    case $build_os in
14114    mingw*)
14115      sys_lib_search_path_spec=
14116      lt_save_ifs=$IFS
14117      IFS=';'
14118      for lt_path in $LIB
14119      do
14120        IFS=$lt_save_ifs
14121        # Let DOS variable expansion print the short 8.3 style file name.
14122        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14123        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14124      done
14125      IFS=$lt_save_ifs
14126      # Convert to MSYS style.
14127      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14128      ;;
14129    cygwin*)
14130      # Convert to unix form, then to dos form, then back to unix form
14131      # but this time dos style (no spaces!) so that the unix form looks
14132      # like /cygdrive/c/PROGRA~1:/cygdr...
14133      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14134      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14135      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14136      ;;
14137    *)
14138      sys_lib_search_path_spec=$LIB
14139      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14140        # It is most probably a Windows format PATH.
14141        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14142      else
14143        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14144      fi
14145      # FIXME: find the short name or the path components, as spaces are
14146      # common. (e.g. "Program Files" -> "PROGRA~1")
14147      ;;
14148    esac
14149
14150    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14151    postinstall_cmds='base_file=`basename \$file`~
14152      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14153      dldir=$destdir/`dirname \$dlpath`~
14154      test -d \$dldir || mkdir -p \$dldir~
14155      $install_prog $dir/$dlname \$dldir/$dlname'
14156    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14157      dlpath=$dir/\$dldll~
14158       $RM \$dlpath'
14159    shlibpath_overrides_runpath=yes
14160    dynamic_linker='Win32 link.exe'
14161    ;;
14162
14163  *)
14164    # Assume MSVC wrapper
14165    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14166    dynamic_linker='Win32 ld.exe'
14167    ;;
14168  esac
14169  # FIXME: first we should search . and the directory the executable is in
14170  shlibpath_var=PATH
14171  ;;
14172
14173darwin* | rhapsody*)
14174  dynamic_linker="$host_os dyld"
14175  version_type=darwin
14176  need_lib_prefix=no
14177  need_version=no
14178  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14179  soname_spec='$libname$release$major$shared_ext'
14180  shlibpath_overrides_runpath=yes
14181  shlibpath_var=DYLD_LIBRARY_PATH
14182  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14183
14184  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14185  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14186  ;;
14187
14188dgux*)
14189  version_type=linux # correct to gnu/linux during the next big refactor
14190  need_lib_prefix=no
14191  need_version=no
14192  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14193  soname_spec='$libname$release$shared_ext$major'
14194  shlibpath_var=LD_LIBRARY_PATH
14195  ;;
14196
14197freebsd* | dragonfly*)
14198  # DragonFly does not have aout.  When/if they implement a new
14199  # versioning mechanism, adjust this.
14200  if test -x /usr/bin/objformat; then
14201    objformat=`/usr/bin/objformat`
14202  else
14203    case $host_os in
14204    freebsd[23].*) objformat=aout ;;
14205    *) objformat=elf ;;
14206    esac
14207  fi
14208  version_type=freebsd-$objformat
14209  case $version_type in
14210    freebsd-elf*)
14211      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14212      soname_spec='$libname$release$shared_ext$major'
14213      need_version=no
14214      need_lib_prefix=no
14215      ;;
14216    freebsd-*)
14217      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14218      need_version=yes
14219      ;;
14220  esac
14221  shlibpath_var=LD_LIBRARY_PATH
14222  case $host_os in
14223  freebsd2.*)
14224    shlibpath_overrides_runpath=yes
14225    ;;
14226  freebsd3.[01]* | freebsdelf3.[01]*)
14227    shlibpath_overrides_runpath=yes
14228    hardcode_into_libs=yes
14229    ;;
14230  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14231  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14232    shlibpath_overrides_runpath=no
14233    hardcode_into_libs=yes
14234    ;;
14235  *) # from 4.6 on, and DragonFly
14236    shlibpath_overrides_runpath=yes
14237    hardcode_into_libs=yes
14238    ;;
14239  esac
14240  ;;
14241
14242haiku*)
14243  version_type=linux # correct to gnu/linux during the next big refactor
14244  need_lib_prefix=no
14245  need_version=no
14246  dynamic_linker="$host_os runtime_loader"
14247  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14248  soname_spec='$libname$release$shared_ext$major'
14249  shlibpath_var=LIBRARY_PATH
14250  shlibpath_overrides_runpath=no
14251  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14252  hardcode_into_libs=yes
14253  ;;
14254
14255hpux9* | hpux10* | hpux11*)
14256  # Give a soname corresponding to the major version so that dld.sl refuses to
14257  # link against other versions.
14258  version_type=sunos
14259  need_lib_prefix=no
14260  need_version=no
14261  case $host_cpu in
14262  ia64*)
14263    shrext_cmds='.so'
14264    hardcode_into_libs=yes
14265    dynamic_linker="$host_os dld.so"
14266    shlibpath_var=LD_LIBRARY_PATH
14267    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14268    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14269    soname_spec='$libname$release$shared_ext$major'
14270    if test 32 = "$HPUX_IA64_MODE"; then
14271      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14272      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14273    else
14274      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14275      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14276    fi
14277    ;;
14278  hppa*64*)
14279    shrext_cmds='.sl'
14280    hardcode_into_libs=yes
14281    dynamic_linker="$host_os dld.sl"
14282    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14283    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14284    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14285    soname_spec='$libname$release$shared_ext$major'
14286    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14287    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14288    ;;
14289  *)
14290    shrext_cmds='.sl'
14291    dynamic_linker="$host_os dld.sl"
14292    shlibpath_var=SHLIB_PATH
14293    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14294    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14295    soname_spec='$libname$release$shared_ext$major'
14296    ;;
14297  esac
14298  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14299  postinstall_cmds='chmod 555 $lib'
14300  # or fails outright, so override atomically:
14301  install_override_mode=555
14302  ;;
14303
14304interix[3-9]*)
14305  version_type=linux # correct to gnu/linux during the next big refactor
14306  need_lib_prefix=no
14307  need_version=no
14308  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14309  soname_spec='$libname$release$shared_ext$major'
14310  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14311  shlibpath_var=LD_LIBRARY_PATH
14312  shlibpath_overrides_runpath=no
14313  hardcode_into_libs=yes
14314  ;;
14315
14316irix5* | irix6* | nonstopux*)
14317  case $host_os in
14318    nonstopux*) version_type=nonstopux ;;
14319    *)
14320	if test yes = "$lt_cv_prog_gnu_ld"; then
14321		version_type=linux # correct to gnu/linux during the next big refactor
14322	else
14323		version_type=irix
14324	fi ;;
14325  esac
14326  need_lib_prefix=no
14327  need_version=no
14328  soname_spec='$libname$release$shared_ext$major'
14329  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14330  case $host_os in
14331  irix5* | nonstopux*)
14332    libsuff= shlibsuff=
14333    ;;
14334  *)
14335    case $LD in # libtool.m4 will add one of these switches to LD
14336    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14337      libsuff= shlibsuff= libmagic=32-bit;;
14338    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14339      libsuff=32 shlibsuff=N32 libmagic=N32;;
14340    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14341      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14342    *) libsuff= shlibsuff= libmagic=never-match;;
14343    esac
14344    ;;
14345  esac
14346  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14347  shlibpath_overrides_runpath=no
14348  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14349  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14350  hardcode_into_libs=yes
14351  ;;
14352
14353# No shared lib support for Linux oldld, aout, or coff.
14354linux*oldld* | linux*aout* | linux*coff*)
14355  dynamic_linker=no
14356  ;;
14357
14358linux*android*)
14359  version_type=none # Android doesn't support versioned libraries.
14360  need_lib_prefix=no
14361  need_version=no
14362  library_names_spec='$libname$release$shared_ext'
14363  soname_spec='$libname$release$shared_ext'
14364  finish_cmds=
14365  shlibpath_var=LD_LIBRARY_PATH
14366  shlibpath_overrides_runpath=yes
14367
14368  # This implies no fast_install, which is unacceptable.
14369  # Some rework will be needed to allow for fast_install
14370  # before this can be enabled.
14371  hardcode_into_libs=yes
14372
14373  dynamic_linker='Android linker'
14374  # Don't embed -rpath directories since the linker doesn't support them.
14375  hardcode_libdir_flag_spec='-L$libdir'
14376  ;;
14377
14378# This must be glibc/ELF.
14379linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14380  version_type=linux # correct to gnu/linux during the next big refactor
14381  need_lib_prefix=no
14382  need_version=no
14383  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14384  soname_spec='$libname$release$shared_ext$major'
14385  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14386  shlibpath_var=LD_LIBRARY_PATH
14387  shlibpath_overrides_runpath=no
14388
14389  # Some binutils ld are patched to set DT_RUNPATH
14390  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14391  $as_echo_n "(cached) " >&6
14392else
14393  lt_cv_shlibpath_overrides_runpath=no
14394    save_LDFLAGS=$LDFLAGS
14395    save_libdir=$libdir
14396    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14397	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14398    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399/* end confdefs.h.  */
14400
14401int main (void)
14402{
14403
14404 ;
14405 return 0;
14406}
14407_ACEOF
14408if ac_fn_c_try_link "$LINENO"; then :
14409  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14410  lt_cv_shlibpath_overrides_runpath=yes
14411fi
14412fi
14413rm -f core conftest.err conftest.$ac_objext \
14414    conftest$ac_exeext conftest.$ac_ext
14415    LDFLAGS=$save_LDFLAGS
14416    libdir=$save_libdir
14417
14418fi
14419
14420  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14421
14422  # This implies no fast_install, which is unacceptable.
14423  # Some rework will be needed to allow for fast_install
14424  # before this can be enabled.
14425  hardcode_into_libs=yes
14426
14427  # Ideally, we could use ldconfig to report *all* directores which are
14428  # searched for libraries, however this is still not possible.  Aside from not
14429  # being certain /sbin/ldconfig is available, command
14430  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14431  # even though it is searched at run-time.  Try to do the best guess by
14432  # appending ld.so.conf contents (and includes) to the search path.
14433  if test -f /etc/ld.so.conf; then
14434    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' ' '`
14435    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14436  fi
14437
14438  # We used to test for /lib/ld.so.1 and disable shared libraries on
14439  # powerpc, because MkLinux only supported shared libraries with the
14440  # GNU dynamic linker.  Since this was broken with cross compilers,
14441  # most powerpc-linux boxes support dynamic linking these days and
14442  # people can always --disable-shared, the test was removed, and we
14443  # assume the GNU/Linux dynamic linker is in use.
14444  dynamic_linker='GNU/Linux ld.so'
14445  ;;
14446
14447netbsdelf*-gnu)
14448  version_type=linux
14449  need_lib_prefix=no
14450  need_version=no
14451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14452  soname_spec='${libname}${release}${shared_ext}$major'
14453  shlibpath_var=LD_LIBRARY_PATH
14454  shlibpath_overrides_runpath=no
14455  hardcode_into_libs=yes
14456  dynamic_linker='NetBSD ld.elf_so'
14457  ;;
14458
14459netbsd*)
14460  version_type=sunos
14461  need_lib_prefix=no
14462  need_version=no
14463  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14464    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14465    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14466    dynamic_linker='NetBSD (a.out) ld.so'
14467  else
14468    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14469    soname_spec='$libname$release$shared_ext$major'
14470    dynamic_linker='NetBSD ld.elf_so'
14471  fi
14472  shlibpath_var=LD_LIBRARY_PATH
14473  shlibpath_overrides_runpath=yes
14474  hardcode_into_libs=yes
14475  ;;
14476
14477newsos6)
14478  version_type=linux # correct to gnu/linux during the next big refactor
14479  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14480  shlibpath_var=LD_LIBRARY_PATH
14481  shlibpath_overrides_runpath=yes
14482  ;;
14483
14484*nto* | *qnx*)
14485  version_type=qnx
14486  need_lib_prefix=no
14487  need_version=no
14488  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14489  soname_spec='$libname$release$shared_ext$major'
14490  shlibpath_var=LD_LIBRARY_PATH
14491  shlibpath_overrides_runpath=no
14492  hardcode_into_libs=yes
14493  dynamic_linker='ldqnx.so'
14494  ;;
14495
14496openbsd* | bitrig*)
14497  version_type=sunos
14498  sys_lib_dlsearch_path_spec=/usr/lib
14499  need_lib_prefix=no
14500  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14501    need_version=no
14502  else
14503    need_version=yes
14504  fi
14505  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14506  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14507  shlibpath_var=LD_LIBRARY_PATH
14508  shlibpath_overrides_runpath=yes
14509  ;;
14510
14511os2*)
14512  libname_spec='$name'
14513  version_type=windows
14514  shrext_cmds=.dll
14515  need_version=no
14516  need_lib_prefix=no
14517  # OS/2 can only load a DLL with a base name of 8 characters or less.
14518  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14519    v=$($ECHO $release$versuffix | tr -d .-);
14520    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14521    $ECHO $n$v`$shared_ext'
14522  library_names_spec='${libname}_dll.$libext'
14523  dynamic_linker='OS/2 ld.exe'
14524  shlibpath_var=BEGINLIBPATH
14525  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14526  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14527  postinstall_cmds='base_file=`basename \$file`~
14528    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14529    dldir=$destdir/`dirname \$dlpath`~
14530    test -d \$dldir || mkdir -p \$dldir~
14531    $install_prog $dir/$dlname \$dldir/$dlname~
14532    chmod a+x \$dldir/$dlname~
14533    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14534      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14535    fi'
14536  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14537    dlpath=$dir/\$dldll~
14538    $RM \$dlpath'
14539  ;;
14540
14541osf3* | osf4* | osf5*)
14542  version_type=osf
14543  need_lib_prefix=no
14544  need_version=no
14545  soname_spec='$libname$release$shared_ext$major'
14546  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14547  shlibpath_var=LD_LIBRARY_PATH
14548  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14549  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14550  ;;
14551
14552rdos*)
14553  dynamic_linker=no
14554  ;;
14555
14556solaris*)
14557  version_type=linux # correct to gnu/linux during the next big refactor
14558  need_lib_prefix=no
14559  need_version=no
14560  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14561  soname_spec='$libname$release$shared_ext$major'
14562  shlibpath_var=LD_LIBRARY_PATH
14563  shlibpath_overrides_runpath=yes
14564  hardcode_into_libs=yes
14565  # ldd complains unless libraries are executable
14566  postinstall_cmds='chmod +x $lib'
14567  ;;
14568
14569sunos4*)
14570  version_type=sunos
14571  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14572  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14573  shlibpath_var=LD_LIBRARY_PATH
14574  shlibpath_overrides_runpath=yes
14575  if test yes = "$with_gnu_ld"; then
14576    need_lib_prefix=no
14577  fi
14578  need_version=yes
14579  ;;
14580
14581sysv4 | sysv4.3*)
14582  version_type=linux # correct to gnu/linux during the next big refactor
14583  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14584  soname_spec='$libname$release$shared_ext$major'
14585  shlibpath_var=LD_LIBRARY_PATH
14586  case $host_vendor in
14587    sni)
14588      shlibpath_overrides_runpath=no
14589      need_lib_prefix=no
14590      runpath_var=LD_RUN_PATH
14591      ;;
14592    siemens)
14593      need_lib_prefix=no
14594      ;;
14595    motorola)
14596      need_lib_prefix=no
14597      need_version=no
14598      shlibpath_overrides_runpath=no
14599      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14600      ;;
14601  esac
14602  ;;
14603
14604sysv4*MP*)
14605  if test -d /usr/nec; then
14606    version_type=linux # correct to gnu/linux during the next big refactor
14607    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14608    soname_spec='$libname$shared_ext.$major'
14609    shlibpath_var=LD_LIBRARY_PATH
14610  fi
14611  ;;
14612
14613sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14614  version_type=sco
14615  need_lib_prefix=no
14616  need_version=no
14617  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14618  soname_spec='$libname$release$shared_ext$major'
14619  shlibpath_var=LD_LIBRARY_PATH
14620  shlibpath_overrides_runpath=yes
14621  hardcode_into_libs=yes
14622  if test yes = "$with_gnu_ld"; then
14623    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14624  else
14625    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14626    case $host_os in
14627      sco3.2v5*)
14628        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14629	;;
14630    esac
14631  fi
14632  sys_lib_dlsearch_path_spec='/usr/lib'
14633  ;;
14634
14635tpf*)
14636  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14637  version_type=linux # correct to gnu/linux during the next big refactor
14638  need_lib_prefix=no
14639  need_version=no
14640  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14641  shlibpath_var=LD_LIBRARY_PATH
14642  shlibpath_overrides_runpath=no
14643  hardcode_into_libs=yes
14644  ;;
14645
14646uts4*)
14647  version_type=linux # correct to gnu/linux during the next big refactor
14648  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14649  soname_spec='$libname$release$shared_ext$major'
14650  shlibpath_var=LD_LIBRARY_PATH
14651  ;;
14652
14653*)
14654  dynamic_linker=no
14655  ;;
14656esac
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14658$as_echo "$dynamic_linker" >&6; }
14659test no = "$dynamic_linker" && can_build_shared=no
14660
14661variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14662if test yes = "$GCC"; then
14663  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14664fi
14665
14666if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14667  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14668fi
14669
14670if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14671  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14672fi
14673
14674# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14675configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14676
14677# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14678func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14679
14680# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14681configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14780$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14781hardcode_action=
14782if test -n "$hardcode_libdir_flag_spec" ||
14783   test -n "$runpath_var" ||
14784   test yes = "$hardcode_automatic"; then
14785
14786  # We can hardcode non-existent directories.
14787  if test no != "$hardcode_direct" &&
14788     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14789     # have to relink, otherwise we might link with an installed library
14790     # when we should be linking with a yet-to-be-installed one
14791     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14792     test no != "$hardcode_minus_L"; then
14793    # Linking always hardcodes the temporary library directory.
14794    hardcode_action=relink
14795  else
14796    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14797    hardcode_action=immediate
14798  fi
14799else
14800  # We cannot hardcode anything, or else we can only hardcode existing
14801  # directories.
14802  hardcode_action=unsupported
14803fi
14804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14805$as_echo "$hardcode_action" >&6; }
14806
14807if test relink = "$hardcode_action" ||
14808   test yes = "$inherit_rpath"; then
14809  # Fast installation is not supported
14810  enable_fast_install=no
14811elif test yes = "$shlibpath_overrides_runpath" ||
14812     test no = "$enable_shared"; then
14813  # Fast installation is not necessary
14814  enable_fast_install=needless
14815fi
14816
14817
14818
14819
14820
14821
14822  if test yes != "$enable_dlopen"; then
14823  enable_dlopen=unknown
14824  enable_dlopen_self=unknown
14825  enable_dlopen_self_static=unknown
14826else
14827  lt_cv_dlopen=no
14828  lt_cv_dlopen_libs=
14829
14830  case $host_os in
14831  beos*)
14832    lt_cv_dlopen=load_add_on
14833    lt_cv_dlopen_libs=
14834    lt_cv_dlopen_self=yes
14835    ;;
14836
14837  mingw* | pw32* | cegcc*)
14838    lt_cv_dlopen=LoadLibrary
14839    lt_cv_dlopen_libs=
14840    ;;
14841
14842  cygwin*)
14843    lt_cv_dlopen=dlopen
14844    lt_cv_dlopen_libs=
14845    ;;
14846
14847  darwin*)
14848    # if libdl is installed we need to link against it
14849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14850$as_echo_n "checking for dlopen in -ldl... " >&6; }
14851if ${ac_cv_lib_dl_dlopen+:} false; then :
14852  $as_echo_n "(cached) " >&6
14853else
14854  ac_check_lib_save_LIBS=$LIBS
14855LIBS="-ldl  $LIBS"
14856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857/* end confdefs.h.  */
14858
14859
14860#ifdef __cplusplus
14861extern "C"
14862#endif
14863char dlopen ();
14864int main (void)
14865{
14866return dlopen ();
14867 ;
14868 return 0;
14869}
14870_ACEOF
14871if ac_fn_c_try_link "$LINENO"; then :
14872  ac_cv_lib_dl_dlopen=yes
14873else
14874  ac_cv_lib_dl_dlopen=no
14875fi
14876rm -f core conftest.err conftest.$ac_objext \
14877    conftest$ac_exeext conftest.$ac_ext
14878LIBS=$ac_check_lib_save_LIBS
14879fi
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14881$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14882if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14883  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14884else
14885
14886    lt_cv_dlopen=dyld
14887    lt_cv_dlopen_libs=
14888    lt_cv_dlopen_self=yes
14889
14890fi
14891
14892    ;;
14893
14894  tpf*)
14895    # Don't try to run any link tests for TPF.  We know it's impossible
14896    # because TPF is a cross-compiler, and we know how we open DSOs.
14897    lt_cv_dlopen=dlopen
14898    lt_cv_dlopen_libs=
14899    lt_cv_dlopen_self=no
14900    ;;
14901
14902  *)
14903    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14904if test "x$ac_cv_func_shl_load" = xyes; then :
14905  lt_cv_dlopen=shl_load
14906else
14907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14908$as_echo_n "checking for shl_load in -ldld... " >&6; }
14909if ${ac_cv_lib_dld_shl_load+:} false; then :
14910  $as_echo_n "(cached) " >&6
14911else
14912  ac_check_lib_save_LIBS=$LIBS
14913LIBS="-ldld  $LIBS"
14914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915/* end confdefs.h.  */
14916
14917
14918#ifdef __cplusplus
14919extern "C"
14920#endif
14921char shl_load ();
14922int main (void)
14923{
14924return shl_load ();
14925 ;
14926 return 0;
14927}
14928_ACEOF
14929if ac_fn_c_try_link "$LINENO"; then :
14930  ac_cv_lib_dld_shl_load=yes
14931else
14932  ac_cv_lib_dld_shl_load=no
14933fi
14934rm -f core conftest.err conftest.$ac_objext \
14935    conftest$ac_exeext conftest.$ac_ext
14936LIBS=$ac_check_lib_save_LIBS
14937fi
14938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14939$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14940if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14941  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14942else
14943  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14944if test "x$ac_cv_func_dlopen" = xyes; then :
14945  lt_cv_dlopen=dlopen
14946else
14947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14948$as_echo_n "checking for dlopen in -ldl... " >&6; }
14949if ${ac_cv_lib_dl_dlopen+:} false; then :
14950  $as_echo_n "(cached) " >&6
14951else
14952  ac_check_lib_save_LIBS=$LIBS
14953LIBS="-ldl  $LIBS"
14954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955/* end confdefs.h.  */
14956
14957
14958#ifdef __cplusplus
14959extern "C"
14960#endif
14961char dlopen ();
14962int main (void)
14963{
14964return dlopen ();
14965 ;
14966 return 0;
14967}
14968_ACEOF
14969if ac_fn_c_try_link "$LINENO"; then :
14970  ac_cv_lib_dl_dlopen=yes
14971else
14972  ac_cv_lib_dl_dlopen=no
14973fi
14974rm -f core conftest.err conftest.$ac_objext \
14975    conftest$ac_exeext conftest.$ac_ext
14976LIBS=$ac_check_lib_save_LIBS
14977fi
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14979$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14980if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14981  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14982else
14983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14984$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14985if ${ac_cv_lib_svld_dlopen+:} false; then :
14986  $as_echo_n "(cached) " >&6
14987else
14988  ac_check_lib_save_LIBS=$LIBS
14989LIBS="-lsvld  $LIBS"
14990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991/* end confdefs.h.  */
14992
14993
14994#ifdef __cplusplus
14995extern "C"
14996#endif
14997char dlopen ();
14998int main (void)
14999{
15000return dlopen ();
15001 ;
15002 return 0;
15003}
15004_ACEOF
15005if ac_fn_c_try_link "$LINENO"; then :
15006  ac_cv_lib_svld_dlopen=yes
15007else
15008  ac_cv_lib_svld_dlopen=no
15009fi
15010rm -f core conftest.err conftest.$ac_objext \
15011    conftest$ac_exeext conftest.$ac_ext
15012LIBS=$ac_check_lib_save_LIBS
15013fi
15014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15015$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15016if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15017  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15018else
15019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15020$as_echo_n "checking for dld_link in -ldld... " >&6; }
15021if ${ac_cv_lib_dld_dld_link+:} false; then :
15022  $as_echo_n "(cached) " >&6
15023else
15024  ac_check_lib_save_LIBS=$LIBS
15025LIBS="-ldld  $LIBS"
15026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027/* end confdefs.h.  */
15028
15029
15030#ifdef __cplusplus
15031extern "C"
15032#endif
15033char dld_link ();
15034int main (void)
15035{
15036return dld_link ();
15037 ;
15038 return 0;
15039}
15040_ACEOF
15041if ac_fn_c_try_link "$LINENO"; then :
15042  ac_cv_lib_dld_dld_link=yes
15043else
15044  ac_cv_lib_dld_dld_link=no
15045fi
15046rm -f core conftest.err conftest.$ac_objext \
15047    conftest$ac_exeext conftest.$ac_ext
15048LIBS=$ac_check_lib_save_LIBS
15049fi
15050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15051$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15052if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15053  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15054fi
15055
15056
15057fi
15058
15059
15060fi
15061
15062
15063fi
15064
15065
15066fi
15067
15068
15069fi
15070
15071    ;;
15072  esac
15073
15074  if test no = "$lt_cv_dlopen"; then
15075    enable_dlopen=no
15076  else
15077    enable_dlopen=yes
15078  fi
15079
15080  case $lt_cv_dlopen in
15081  dlopen)
15082    save_CPPFLAGS=$CPPFLAGS
15083    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15084
15085    save_LDFLAGS=$LDFLAGS
15086    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15087
15088    save_LIBS=$LIBS
15089    LIBS="$lt_cv_dlopen_libs $LIBS"
15090
15091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15092$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15093if ${lt_cv_dlopen_self+:} false; then :
15094  $as_echo_n "(cached) " >&6
15095else
15096  	  if test yes = "$cross_compiling"; then :
15097  lt_cv_dlopen_self=cross
15098else
15099  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15100  lt_status=$lt_dlunknown
15101  cat > conftest.$ac_ext <<_LT_EOF
15102#line $LINENO "configure"
15103#include "confdefs.h"
15104
15105#if HAVE_DLFCN_H
15106#include <dlfcn.h>
15107#endif
15108
15109#include <stdio.h>
15110
15111#ifdef RTLD_GLOBAL
15112#  define LT_DLGLOBAL		RTLD_GLOBAL
15113#else
15114#  ifdef DL_GLOBAL
15115#    define LT_DLGLOBAL		DL_GLOBAL
15116#  else
15117#    define LT_DLGLOBAL		0
15118#  endif
15119#endif
15120
15121/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15122   find out it does not work in some platform. */
15123#ifndef LT_DLLAZY_OR_NOW
15124#  ifdef RTLD_LAZY
15125#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15126#  else
15127#    ifdef DL_LAZY
15128#      define LT_DLLAZY_OR_NOW		DL_LAZY
15129#    else
15130#      ifdef RTLD_NOW
15131#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15132#      else
15133#        ifdef DL_NOW
15134#          define LT_DLLAZY_OR_NOW	DL_NOW
15135#        else
15136#          define LT_DLLAZY_OR_NOW	0
15137#        endif
15138#      endif
15139#    endif
15140#  endif
15141#endif
15142
15143/* When -fvisibility=hidden is used, assume the code has been annotated
15144   correspondingly for the symbols needed.  */
15145#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15146int fnord () __attribute__((visibility("default")));
15147#endif
15148
15149int fnord () { return 42; }
15150int main ()
15151{
15152  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15153  int status = $lt_dlunknown;
15154
15155  if (self)
15156    {
15157      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15158      else
15159        {
15160	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15161          else puts (dlerror ());
15162	}
15163      /* dlclose (self); */
15164    }
15165  else
15166    puts (dlerror ());
15167
15168  return status;
15169}
15170_LT_EOF
15171  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15172  (eval $ac_link) 2>&5
15173  ac_status=$?
15174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15175  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15176    (./conftest; exit; ) >&5 2>/dev/null
15177    lt_status=$?
15178    case x$lt_status in
15179      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15180      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15181      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15182    esac
15183  else :
15184    # compilation failed
15185    lt_cv_dlopen_self=no
15186  fi
15187fi
15188rm -fr conftest*
15189
15190
15191fi
15192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15193$as_echo "$lt_cv_dlopen_self" >&6; }
15194
15195    if test yes = "$lt_cv_dlopen_self"; then
15196      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15197      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15198$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15199if ${lt_cv_dlopen_self_static+:} false; then :
15200  $as_echo_n "(cached) " >&6
15201else
15202  	  if test yes = "$cross_compiling"; then :
15203  lt_cv_dlopen_self_static=cross
15204else
15205  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15206  lt_status=$lt_dlunknown
15207  cat > conftest.$ac_ext <<_LT_EOF
15208#line $LINENO "configure"
15209#include "confdefs.h"
15210
15211#if HAVE_DLFCN_H
15212#include <dlfcn.h>
15213#endif
15214
15215#include <stdio.h>
15216
15217#ifdef RTLD_GLOBAL
15218#  define LT_DLGLOBAL		RTLD_GLOBAL
15219#else
15220#  ifdef DL_GLOBAL
15221#    define LT_DLGLOBAL		DL_GLOBAL
15222#  else
15223#    define LT_DLGLOBAL		0
15224#  endif
15225#endif
15226
15227/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15228   find out it does not work in some platform. */
15229#ifndef LT_DLLAZY_OR_NOW
15230#  ifdef RTLD_LAZY
15231#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15232#  else
15233#    ifdef DL_LAZY
15234#      define LT_DLLAZY_OR_NOW		DL_LAZY
15235#    else
15236#      ifdef RTLD_NOW
15237#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15238#      else
15239#        ifdef DL_NOW
15240#          define LT_DLLAZY_OR_NOW	DL_NOW
15241#        else
15242#          define LT_DLLAZY_OR_NOW	0
15243#        endif
15244#      endif
15245#    endif
15246#  endif
15247#endif
15248
15249/* When -fvisibility=hidden is used, assume the code has been annotated
15250   correspondingly for the symbols needed.  */
15251#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15252int fnord () __attribute__((visibility("default")));
15253#endif
15254
15255int fnord () { return 42; }
15256int main ()
15257{
15258  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15259  int status = $lt_dlunknown;
15260
15261  if (self)
15262    {
15263      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15264      else
15265        {
15266	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15267          else puts (dlerror ());
15268	}
15269      /* dlclose (self); */
15270    }
15271  else
15272    puts (dlerror ());
15273
15274  return status;
15275}
15276_LT_EOF
15277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15278  (eval $ac_link) 2>&5
15279  ac_status=$?
15280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15281  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15282    (./conftest; exit; ) >&5 2>/dev/null
15283    lt_status=$?
15284    case x$lt_status in
15285      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15286      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15287      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15288    esac
15289  else :
15290    # compilation failed
15291    lt_cv_dlopen_self_static=no
15292  fi
15293fi
15294rm -fr conftest*
15295
15296
15297fi
15298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15299$as_echo "$lt_cv_dlopen_self_static" >&6; }
15300    fi
15301
15302    CPPFLAGS=$save_CPPFLAGS
15303    LDFLAGS=$save_LDFLAGS
15304    LIBS=$save_LIBS
15305    ;;
15306  esac
15307
15308  case $lt_cv_dlopen_self in
15309  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15310  *) enable_dlopen_self=unknown ;;
15311  esac
15312
15313  case $lt_cv_dlopen_self_static in
15314  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15315  *) enable_dlopen_self_static=unknown ;;
15316  esac
15317fi
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335striplib=
15336old_striplib=
15337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15338$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15339if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15340  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15341  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15343$as_echo "yes" >&6; }
15344else
15345# FIXME - insert some real tests, host_os isn't really good enough
15346  case $host_os in
15347  darwin*)
15348    if test -n "$STRIP"; then
15349      striplib="$STRIP -x"
15350      old_striplib="$STRIP -S"
15351      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15352$as_echo "yes" >&6; }
15353    else
15354      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355$as_echo "no" >&6; }
15356    fi
15357    ;;
15358  *)
15359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15360$as_echo "no" >&6; }
15361    ;;
15362  esac
15363fi
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376  # Report what library types will actually be built
15377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15378$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15380$as_echo "$can_build_shared" >&6; }
15381
15382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15383$as_echo_n "checking whether to build shared libraries... " >&6; }
15384  test no = "$can_build_shared" && enable_shared=no
15385
15386  # On AIX, shared libraries and static libraries use the same namespace, and
15387  # are all built from PIC.
15388  case $host_os in
15389  aix3*)
15390    test yes = "$enable_shared" && enable_static=no
15391    if test -n "$RANLIB"; then
15392      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15393      postinstall_cmds='$RANLIB $lib'
15394    fi
15395    ;;
15396
15397  aix[4-9]*)
15398    if test ia64 != "$host_cpu"; then
15399      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15400      yes,aix,yes) ;;			# shared object as lib.so file only
15401      yes,svr4,*) ;;			# shared object as lib.so archive member only
15402      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15403      esac
15404    fi
15405    ;;
15406  esac
15407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15408$as_echo "$enable_shared" >&6; }
15409
15410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15411$as_echo_n "checking whether to build static libraries... " >&6; }
15412  # Make sure either enable_shared or enable_static is yes.
15413  test yes = "$enable_shared" || enable_static=yes
15414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15415$as_echo "$enable_static" >&6; }
15416
15417
15418
15419
15420fi
15421ac_ext=c
15422ac_cpp='$CPP $CPPFLAGS'
15423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15425ac_compiler_gnu=$ac_cv_c_compiler_gnu
15426
15427CC=$lt_save_CC
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443        ac_config_commands="$ac_config_commands libtool"
15444
15445
15446
15447
15448# Only expand once:
15449
15450
15451## --------------------- ##
15452##  End of libtool code  ##
15453## --------------------- ##
15454
15455#
15456# Verify if finally libtool shared libraries will be built
15457#
15458
15459case "x$enable_shared" in # ((
15460  xyes | xno)
15461    xc_lt_build_shared=$enable_shared
15462    ;;
15463  *)
15464    as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15465    ;;
15466esac
15467
15468#
15469# Verify if finally libtool static libraries will be built
15470#
15471
15472case "x$enable_static" in # ((
15473  xyes | xno)
15474    xc_lt_build_static=$enable_static
15475    ;;
15476  *)
15477    as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15478    ;;
15479esac
15480
15481#
15482# Verify if libtool shared libraries should be linked using flag -version-info
15483#
15484
15485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15486$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15487xc_lt_shlib_use_version_info='yes'
15488if test "x$version_type" = 'xnone'; then
15489  xc_lt_shlib_use_version_info='no'
15490fi
15491case $host_os in # (
15492  amigaos*)
15493    xc_lt_shlib_use_version_info='yes'
15494    ;;
15495esac
15496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15497$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15498
15499#
15500# Verify if libtool shared libraries should be linked using flag -no-undefined
15501#
15502
15503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15504$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15505xc_lt_shlib_use_no_undefined='no'
15506if test "x$allow_undefined" = 'xno'; then
15507  xc_lt_shlib_use_no_undefined='yes'
15508elif test "x$allow_undefined_flag" = 'xunsupported'; then
15509  xc_lt_shlib_use_no_undefined='yes'
15510fi
15511case $host_os in # (
15512  cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15513    xc_lt_shlib_use_no_undefined='yes'
15514    ;;
15515esac
15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15517$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15518
15519#
15520# Verify if libtool shared libraries should be linked using flag -mimpure-text
15521#
15522
15523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15524$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15525xc_lt_shlib_use_mimpure_text='no'
15526case $host_os in # (
15527  solaris2*)
15528    if test "x$GCC" = 'xyes'; then
15529      xc_lt_shlib_use_mimpure_text='yes'
15530    fi
15531    ;;
15532esac
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15534$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15535
15536#
15537# Find out whether libtool libraries would be built wit PIC
15538#
15539
15540case "x$pic_mode" in # ((((
15541  xdefault)
15542    xc_lt_build_shared_with_pic='yes'
15543    xc_lt_build_static_with_pic='no'
15544    ;;
15545  xyes)
15546    xc_lt_build_shared_with_pic='yes'
15547    xc_lt_build_static_with_pic='yes'
15548    ;;
15549  xno)
15550    xc_lt_build_shared_with_pic='no'
15551    xc_lt_build_static_with_pic='no'
15552    ;;
15553  *)
15554    xc_lt_build_shared_with_pic='unknown'
15555    xc_lt_build_static_with_pic='unknown'
15556    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15557$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15558    ;;
15559esac
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15561$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15563$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15565$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15567$as_echo "$xc_lt_build_static_with_pic" >&6; }
15568
15569#
15570# Verify if libtool shared libraries will be built while static not built
15571#
15572
15573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15574$as_echo_n "checking whether to build shared libraries only... " >&6; }
15575if test "$xc_lt_build_shared" = 'yes' &&
15576  test "$xc_lt_build_static" = 'no'; then
15577  xc_lt_build_shared_only='yes'
15578else
15579  xc_lt_build_shared_only='no'
15580fi
15581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15582$as_echo "$xc_lt_build_shared_only" >&6; }
15583
15584#
15585# Verify if libtool static libraries will be built while shared not built
15586#
15587
15588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15589$as_echo_n "checking whether to build static libraries only... " >&6; }
15590if test "$xc_lt_build_static" = 'yes' &&
15591  test "$xc_lt_build_shared" = 'no'; then
15592  xc_lt_build_static_only='yes'
15593else
15594  xc_lt_build_static_only='no'
15595fi
15596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15597$as_echo "$xc_lt_build_static_only" >&6; }
15598
15599
15600
15601
15602#
15603# Automake conditionals based on libtool related checks
15604#
15605
15606 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15607  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15608  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15609else
15610  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15611  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15612fi
15613
15614 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15615  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15616  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15617else
15618  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15619  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15620fi
15621
15622 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15623  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15624  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15625else
15626  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15627  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15628fi
15629
15630
15631#
15632# Due to libtool and automake machinery limitations of not allowing
15633# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15634# inclusion of these in shared or static libraries, we are forced to
15635# build using separate configure runs for shared and static libraries
15636# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15637# to compile objects for each kind of library. Notice that relying on
15638# the '-DPIC' CFLAG that libtool provides is not valid given that the
15639# user might for example choose to build static libraries with PIC.
15640#
15641
15642#
15643# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15644# targeting a static library and not building its shared counterpart.
15645#
15646
15647 if test "x$xc_lt_build_static_only" = 'xyes'; then
15648  USE_CPPFLAG_CURL_STATICLIB_TRUE=
15649  USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15650else
15651  USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15652  USE_CPPFLAG_CURL_STATICLIB_FALSE=
15653fi
15654
15655
15656#
15657# Make staticlib CPPFLAG variable and its definition visible in output
15658# files unconditionally, providing an empty definition unless strictly
15659# targeting a static library and not building its shared counterpart.
15660#
15661
15662CPPFLAG_CURL_STATICLIB=
15663if test "x$xc_lt_build_static_only" = 'xyes'; then
15664  CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15665fi
15666
15667
15668
15669# Determine whether all dependent libraries must be specified when linking
15670if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15671then
15672    REQUIRE_LIB_DEPS=no
15673else
15674    REQUIRE_LIB_DEPS=yes
15675fi
15676
15677 if test x$REQUIRE_LIB_DEPS = xyes; then
15678  USE_EXPLICIT_LIB_DEPS_TRUE=
15679  USE_EXPLICIT_LIB_DEPS_FALSE='#'
15680else
15681  USE_EXPLICIT_LIB_DEPS_TRUE='#'
15682  USE_EXPLICIT_LIB_DEPS_FALSE=
15683fi
15684
15685
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15687$as_echo_n "checking for inline... " >&6; }
15688if ${ac_cv_c_inline+:} false; then :
15689  $as_echo_n "(cached) " >&6
15690else
15691  ac_cv_c_inline=no
15692for ac_kw in inline __inline__ __inline; do
15693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694/* end confdefs.h.  */
15695#ifndef __cplusplus
15696typedef int foo_t;
15697static $ac_kw foo_t static_foo () {return 0; }
15698$ac_kw foo_t foo () {return 0; }
15699#endif
15700
15701_ACEOF
15702if ac_fn_c_try_compile "$LINENO"; then :
15703  ac_cv_c_inline=$ac_kw
15704fi
15705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706  test "$ac_cv_c_inline" != no && break
15707done
15708
15709fi
15710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15711$as_echo "$ac_cv_c_inline" >&6; }
15712
15713case $ac_cv_c_inline in
15714  inline | yes) ;;
15715  *)
15716    case $ac_cv_c_inline in
15717      no) ac_val=;;
15718      *) ac_val=$ac_cv_c_inline;;
15719    esac
15720    cat >>confdefs.h <<_ACEOF
15721#ifndef __cplusplus
15722#define inline $ac_val
15723#endif
15724_ACEOF
15725    ;;
15726esac
15727
15728
15729
15730
15731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15732$as_echo_n "checking if cpp -P is needed... " >&6; }
15733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734/* end confdefs.h.  */
15735
15736 #include <errno.h>
15737TEST EINVAL TEST
15738
15739_ACEOF
15740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15741  $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15742  cpp=no
15743else
15744  cpp=yes
15745fi
15746rm -f conftest*
15747
15748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15749$as_echo "$cpp" >&6; }
15750
15751    if test "x$cpp" = "xyes"; then
15752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15753$as_echo_n "checking if cpp -P works... " >&6; }
15754    OLDCPPFLAGS=$CPPFLAGS
15755    CPPFLAGS="$CPPFLAGS -P"
15756    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757/* end confdefs.h.  */
15758
15759 #include <errno.h>
15760TEST EINVAL TEST
15761
15762_ACEOF
15763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15764  $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15765  cpp_p=yes
15766else
15767  cpp_p=no
15768fi
15769rm -f conftest*
15770
15771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15772$as_echo "$cpp_p" >&6; }
15773
15774    if test "x$cpp_p" = "xno"; then
15775      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15776$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15777      # without -P
15778      CPPPFLAG=""
15779    else
15780      # with -P
15781      CPPPFLAG="-P"
15782    fi
15783        CPPFLAGS=$OLDCPPFLAGS
15784  else
15785    # without -P
15786    CPPPFLAG=""
15787  fi
15788
15789
15790  #
15791  compiler_id="unknown"
15792  compiler_num="0"
15793  #
15794  flags_dbg_all="unknown"
15795  flags_dbg_yes="unknown"
15796  flags_dbg_off="unknown"
15797  flags_opt_all="unknown"
15798  flags_opt_yes="unknown"
15799  flags_opt_off="unknown"
15800  #
15801  flags_prefer_cppflags="no"
15802  #
15803
15804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15805$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15806
15807    OLDCPPFLAGS=$CPPFLAGS
15808  # CPPPFLAG comes from CURL_CPP_P
15809  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15810      if test -z "$SED"; then
15811    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15812  fi
15813  if test -z "$GREP"; then
15814    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15815  fi
15816
15817  tmp_exp=""
15818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h.  */
15820
15821
15822#ifdef __DECC
15823CURL_DEF_TOKEN __DECC
15824#endif
15825
15826
15827_ACEOF
15828if ac_fn_c_try_cpp "$LINENO"; then :
15829
15830    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15831      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15832      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15833      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15834    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15835      tmp_exp=""
15836    fi
15837
15838fi
15839rm -f conftest.err conftest.i conftest.$ac_ext
15840  if test -z "$tmp_exp"; then
15841    curl_cv_have_def___DECC=no
15842
15843  else
15844    curl_cv_have_def___DECC=yes
15845    curl_cv_def___DECC=$tmp_exp
15846
15847  fi
15848      CPPFLAGS=$OLDCPPFLAGS
15849
15850
15851    OLDCPPFLAGS=$CPPFLAGS
15852  # CPPPFLAG comes from CURL_CPP_P
15853  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15854      if test -z "$SED"; then
15855    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15856  fi
15857  if test -z "$GREP"; then
15858    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15859  fi
15860
15861  tmp_exp=""
15862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863/* end confdefs.h.  */
15864
15865
15866#ifdef __DECC_VER
15867CURL_DEF_TOKEN __DECC_VER
15868#endif
15869
15870
15871_ACEOF
15872if ac_fn_c_try_cpp "$LINENO"; then :
15873
15874    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15875      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15876      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15877      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15878    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15879      tmp_exp=""
15880    fi
15881
15882fi
15883rm -f conftest.err conftest.i conftest.$ac_ext
15884  if test -z "$tmp_exp"; then
15885    curl_cv_have_def___DECC_VER=no
15886
15887  else
15888    curl_cv_have_def___DECC_VER=yes
15889    curl_cv_def___DECC_VER=$tmp_exp
15890
15891  fi
15892      CPPFLAGS=$OLDCPPFLAGS
15893
15894  if test "$curl_cv_have_def___DECC" = "yes" &&
15895    test "$curl_cv_have_def___DECC_VER" = "yes"; then
15896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15897$as_echo "yes" >&6; }
15898    compiler_id="DEC_C"
15899    flags_dbg_all="-g -g0 -g1 -g2 -g3"
15900    flags_dbg_yes="-g2"
15901    flags_dbg_off=""
15902    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15903    flags_opt_yes="-O1"
15904    flags_opt_off="-O0"
15905  else
15906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15907$as_echo "no" >&6; }
15908  fi
15909
15910
15911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15912$as_echo_n "checking if compiler is HP-UX C... " >&6; }
15913
15914    OLDCPPFLAGS=$CPPFLAGS
15915  # CPPPFLAG comes from CURL_CPP_P
15916  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15917      if test -z "$SED"; then
15918    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15919  fi
15920  if test -z "$GREP"; then
15921    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15922  fi
15923
15924  tmp_exp=""
15925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926/* end confdefs.h.  */
15927
15928
15929#ifdef __HP_cc
15930CURL_DEF_TOKEN __HP_cc
15931#endif
15932
15933
15934_ACEOF
15935if ac_fn_c_try_cpp "$LINENO"; then :
15936
15937    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15938      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15939      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15940      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15941    if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15942      tmp_exp=""
15943    fi
15944
15945fi
15946rm -f conftest.err conftest.i conftest.$ac_ext
15947  if test -z "$tmp_exp"; then
15948    curl_cv_have_def___HP_cc=no
15949
15950  else
15951    curl_cv_have_def___HP_cc=yes
15952    curl_cv_def___HP_cc=$tmp_exp
15953
15954  fi
15955      CPPFLAGS=$OLDCPPFLAGS
15956
15957  if test "$curl_cv_have_def___HP_cc" = "yes"; then
15958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15959$as_echo "yes" >&6; }
15960    compiler_id="HP_UX_C"
15961    flags_dbg_all="-g -s"
15962    flags_dbg_yes="-g"
15963    flags_dbg_off="-s"
15964    flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15965    flags_opt_yes="+O2"
15966    flags_opt_off="+O0"
15967  else
15968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15969$as_echo "no" >&6; }
15970  fi
15971
15972
15973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15974$as_echo_n "checking if compiler is IBM C... " >&6; }
15975
15976    OLDCPPFLAGS=$CPPFLAGS
15977  # CPPPFLAG comes from CURL_CPP_P
15978  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15979      if test -z "$SED"; then
15980    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15981  fi
15982  if test -z "$GREP"; then
15983    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15984  fi
15985
15986  tmp_exp=""
15987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988/* end confdefs.h.  */
15989
15990
15991#ifdef __IBMC__
15992CURL_DEF_TOKEN __IBMC__
15993#endif
15994
15995
15996_ACEOF
15997if ac_fn_c_try_cpp "$LINENO"; then :
15998
15999    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16000      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16001      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16002      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16003    if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16004      tmp_exp=""
16005    fi
16006
16007fi
16008rm -f conftest.err conftest.i conftest.$ac_ext
16009  if test -z "$tmp_exp"; then
16010    curl_cv_have_def___IBMC__=no
16011
16012  else
16013    curl_cv_have_def___IBMC__=yes
16014    curl_cv_def___IBMC__=$tmp_exp
16015
16016  fi
16017      CPPFLAGS=$OLDCPPFLAGS
16018
16019  if test "$curl_cv_have_def___IBMC__" = "yes"; then
16020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16021$as_echo "yes" >&6; }
16022    compiler_id="IBM_C"
16023    flags_dbg_all="-g -g0 -g1 -g2 -g3"
16024    flags_dbg_yes="-g"
16025    flags_dbg_off=""
16026    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16027    flags_opt_all="$flags_opt_all -qnooptimize"
16028    flags_opt_all="$flags_opt_all -qoptimize=0"
16029    flags_opt_all="$flags_opt_all -qoptimize=1"
16030    flags_opt_all="$flags_opt_all -qoptimize=2"
16031    flags_opt_all="$flags_opt_all -qoptimize=3"
16032    flags_opt_all="$flags_opt_all -qoptimize=4"
16033    flags_opt_all="$flags_opt_all -qoptimize=5"
16034    flags_opt_yes="-O2"
16035    flags_opt_off="-qnooptimize"
16036    flags_prefer_cppflags="yes"
16037  else
16038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039$as_echo "no" >&6; }
16040  fi
16041
16042
16043    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16044$as_echo_n "checking if compiler is Intel C... " >&6; }
16045
16046    OLDCPPFLAGS=$CPPFLAGS
16047  # CPPPFLAG comes from CURL_CPP_P
16048  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16049      if test -z "$SED"; then
16050    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16051  fi
16052  if test -z "$GREP"; then
16053    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16054  fi
16055
16056  tmp_exp=""
16057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058/* end confdefs.h.  */
16059
16060
16061#ifdef __INTEL_COMPILER
16062CURL_DEF_TOKEN __INTEL_COMPILER
16063#endif
16064
16065
16066_ACEOF
16067if ac_fn_c_try_cpp "$LINENO"; then :
16068
16069    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16070      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16071      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16072      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16073    if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16074      tmp_exp=""
16075    fi
16076
16077fi
16078rm -f conftest.err conftest.i conftest.$ac_ext
16079  if test -z "$tmp_exp"; then
16080    curl_cv_have_def___INTEL_COMPILER=no
16081
16082  else
16083    curl_cv_have_def___INTEL_COMPILER=yes
16084    curl_cv_def___INTEL_COMPILER=$tmp_exp
16085
16086  fi
16087      CPPFLAGS=$OLDCPPFLAGS
16088
16089  if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16091$as_echo "yes" >&6; }
16092    compiler_num="$curl_cv_def___INTEL_COMPILER"
16093
16094    OLDCPPFLAGS=$CPPFLAGS
16095  # CPPPFLAG comes from CURL_CPP_P
16096  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16097      if test -z "$SED"; then
16098    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16099  fi
16100  if test -z "$GREP"; then
16101    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16102  fi
16103
16104  tmp_exp=""
16105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106/* end confdefs.h.  */
16107
16108
16109#ifdef __unix__
16110CURL_DEF_TOKEN __unix__
16111#endif
16112
16113
16114_ACEOF
16115if ac_fn_c_try_cpp "$LINENO"; then :
16116
16117    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16118      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16119      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16120      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16121    if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16122      tmp_exp=""
16123    fi
16124
16125fi
16126rm -f conftest.err conftest.i conftest.$ac_ext
16127  if test -z "$tmp_exp"; then
16128    curl_cv_have_def___unix__=no
16129
16130  else
16131    curl_cv_have_def___unix__=yes
16132    curl_cv_def___unix__=$tmp_exp
16133
16134  fi
16135      CPPFLAGS=$OLDCPPFLAGS
16136
16137    if test "$curl_cv_have_def___unix__" = "yes"; then
16138      compiler_id="INTEL_UNIX_C"
16139      flags_dbg_all="-g -g0"
16140      flags_dbg_yes="-g"
16141      flags_dbg_off=""
16142      flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16143      flags_opt_yes="-O2"
16144      flags_opt_off="-O0"
16145    else
16146      compiler_id="INTEL_WINDOWS_C"
16147      flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16148      flags_dbg_all="$flags_dbg_all /debug"
16149      flags_dbg_all="$flags_dbg_all /debug:none"
16150      flags_dbg_all="$flags_dbg_all /debug:minimal"
16151      flags_dbg_all="$flags_dbg_all /debug:partial"
16152      flags_dbg_all="$flags_dbg_all /debug:full"
16153      flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16154      flags_dbg_all="$flags_dbg_all /debug:extended"
16155      flags_dbg_yes="/Zi /Oy-"
16156      flags_dbg_off="/debug:none /Oy-"
16157      flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16158      flags_opt_yes="/O2"
16159      flags_opt_off="/Od"
16160    fi
16161  else
16162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163$as_echo "no" >&6; }
16164  fi
16165
16166
16167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16168$as_echo_n "checking if compiler is clang... " >&6; }
16169
16170    OLDCPPFLAGS=$CPPFLAGS
16171  # CPPPFLAG comes from CURL_CPP_P
16172  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16173      if test -z "$SED"; then
16174    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16175  fi
16176  if test -z "$GREP"; then
16177    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16178  fi
16179
16180  tmp_exp=""
16181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182/* end confdefs.h.  */
16183
16184
16185#ifdef __clang__
16186CURL_DEF_TOKEN __clang__
16187#endif
16188
16189
16190_ACEOF
16191if ac_fn_c_try_cpp "$LINENO"; then :
16192
16193    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16194      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16195      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16196      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16197    if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16198      tmp_exp=""
16199    fi
16200
16201fi
16202rm -f conftest.err conftest.i conftest.$ac_ext
16203  if test -z "$tmp_exp"; then
16204    curl_cv_have_def___clang__=no
16205
16206  else
16207    curl_cv_have_def___clang__=yes
16208    curl_cv_def___clang__=$tmp_exp
16209
16210  fi
16211      CPPFLAGS=$OLDCPPFLAGS
16212
16213  if test "$curl_cv_have_def___clang__" = "yes"; then
16214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215$as_echo "yes" >&6; }
16216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16217$as_echo_n "checking if compiler is xlclang... " >&6; }
16218
16219    OLDCPPFLAGS=$CPPFLAGS
16220  # CPPPFLAG comes from CURL_CPP_P
16221  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16222      if test -z "$SED"; then
16223    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16224  fi
16225  if test -z "$GREP"; then
16226    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16227  fi
16228
16229  tmp_exp=""
16230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231/* end confdefs.h.  */
16232
16233
16234#ifdef __ibmxl__
16235CURL_DEF_TOKEN __ibmxl__
16236#endif
16237
16238
16239_ACEOF
16240if ac_fn_c_try_cpp "$LINENO"; then :
16241
16242    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16243      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16244      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16245      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16246    if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
16247      tmp_exp=""
16248    fi
16249
16250fi
16251rm -f conftest.err conftest.i conftest.$ac_ext
16252  if test -z "$tmp_exp"; then
16253    curl_cv_have_def___ibmxl__=no
16254
16255  else
16256    curl_cv_have_def___ibmxl__=yes
16257    curl_cv_def___ibmxl__=$tmp_exp
16258
16259  fi
16260      CPPFLAGS=$OLDCPPFLAGS
16261
16262    if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
16263            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16264$as_echo "yes" >&6; }
16265      compiler_id="XLCLANG"
16266    else
16267      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16268$as_echo "no" >&6; }
16269      compiler_id="CLANG"
16270    fi
16271    fullclangver=`$CC -v 2>&1 | grep version`
16272    clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16273    if test -z "$clangver"; then
16274      if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16275                clangver="3.7"
16276      else
16277        clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16278      fi
16279    fi
16280    clangvhi=`echo $clangver | cut -d . -f1`
16281    clangvlo=`echo $clangver | cut -d . -f2`
16282    compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16283    flags_dbg_all="-g -g0 -g1 -g2 -g3"
16284    flags_dbg_all="$flags_dbg_all -ggdb"
16285    flags_dbg_all="$flags_dbg_all -gstabs"
16286    flags_dbg_all="$flags_dbg_all -gstabs+"
16287    flags_dbg_all="$flags_dbg_all -gcoff"
16288    flags_dbg_all="$flags_dbg_all -gxcoff"
16289    flags_dbg_all="$flags_dbg_all -gdwarf-2"
16290    flags_dbg_all="$flags_dbg_all -gvms"
16291    flags_dbg_yes="-g"
16292    flags_dbg_off=""
16293    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16294    flags_opt_yes="-Os"
16295    flags_opt_off="-O0"
16296  else
16297    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16298$as_echo "no" >&6; }
16299  fi
16300
16301
16302      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16303$as_echo_n "checking if compiler is GNU C... " >&6; }
16304
16305    OLDCPPFLAGS=$CPPFLAGS
16306  # CPPPFLAG comes from CURL_CPP_P
16307  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16308      if test -z "$SED"; then
16309    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16310  fi
16311  if test -z "$GREP"; then
16312    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16313  fi
16314
16315  tmp_exp=""
16316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317/* end confdefs.h.  */
16318
16319
16320#ifdef __GNUC__
16321CURL_DEF_TOKEN __GNUC__
16322#endif
16323
16324
16325_ACEOF
16326if ac_fn_c_try_cpp "$LINENO"; then :
16327
16328    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16329      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16330      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16331      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16332    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16333      tmp_exp=""
16334    fi
16335
16336fi
16337rm -f conftest.err conftest.i conftest.$ac_ext
16338  if test -z "$tmp_exp"; then
16339    curl_cv_have_def___GNUC__=no
16340
16341  else
16342    curl_cv_have_def___GNUC__=yes
16343    curl_cv_def___GNUC__=$tmp_exp
16344
16345  fi
16346      CPPFLAGS=$OLDCPPFLAGS
16347
16348  if test "$curl_cv_have_def___GNUC__" = "yes" &&
16349    test "$compiler_id" = "unknown"; then
16350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16351$as_echo "yes" >&6; }
16352    compiler_id="GNU_C"
16353    gccver=`$CC -dumpversion`
16354    gccvhi=`echo $gccver | cut -d . -f1`
16355    gccvlo=`echo $gccver | cut -d . -f2`
16356    compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16357    flags_dbg_all="-g -g0 -g1 -g2 -g3"
16358    flags_dbg_all="$flags_dbg_all -ggdb"
16359    flags_dbg_all="$flags_dbg_all -gstabs"
16360    flags_dbg_all="$flags_dbg_all -gstabs+"
16361    flags_dbg_all="$flags_dbg_all -gcoff"
16362    flags_dbg_all="$flags_dbg_all -gxcoff"
16363    flags_dbg_all="$flags_dbg_all -gdwarf-2"
16364    flags_dbg_all="$flags_dbg_all -gvms"
16365    flags_dbg_yes="-g"
16366    flags_dbg_off=""
16367    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16368    flags_opt_yes="-O2"
16369    flags_opt_off="-O0"
16370
16371    OLDCPPFLAGS=$CPPFLAGS
16372  # CPPPFLAG comes from CURL_CPP_P
16373  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16374      if test -z "$SED"; then
16375    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16376  fi
16377  if test -z "$GREP"; then
16378    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16379  fi
16380
16381  tmp_exp=""
16382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383/* end confdefs.h.  */
16384
16385
16386#ifdef _WIN32
16387CURL_DEF_TOKEN _WIN32
16388#endif
16389
16390
16391_ACEOF
16392if ac_fn_c_try_cpp "$LINENO"; then :
16393
16394    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16395      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16396      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16397      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16398    if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16399      tmp_exp=""
16400    fi
16401
16402fi
16403rm -f conftest.err conftest.i conftest.$ac_ext
16404  if test -z "$tmp_exp"; then
16405    curl_cv_have_def__WIN32=no
16406
16407  else
16408    curl_cv_have_def__WIN32=yes
16409    curl_cv_def__WIN32=$tmp_exp
16410
16411  fi
16412      CPPFLAGS=$OLDCPPFLAGS
16413
16414  else
16415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16416$as_echo "no" >&6; }
16417  fi
16418
16419
16420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16421$as_echo_n "checking if compiler is LCC... " >&6; }
16422
16423    OLDCPPFLAGS=$CPPFLAGS
16424  # CPPPFLAG comes from CURL_CPP_P
16425  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16426      if test -z "$SED"; then
16427    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16428  fi
16429  if test -z "$GREP"; then
16430    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16431  fi
16432
16433  tmp_exp=""
16434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435/* end confdefs.h.  */
16436
16437
16438#ifdef __LCC__
16439CURL_DEF_TOKEN __LCC__
16440#endif
16441
16442
16443_ACEOF
16444if ac_fn_c_try_cpp "$LINENO"; then :
16445
16446    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16447      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16448      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16449      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16450    if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16451      tmp_exp=""
16452    fi
16453
16454fi
16455rm -f conftest.err conftest.i conftest.$ac_ext
16456  if test -z "$tmp_exp"; then
16457    curl_cv_have_def___LCC__=no
16458
16459  else
16460    curl_cv_have_def___LCC__=yes
16461    curl_cv_def___LCC__=$tmp_exp
16462
16463  fi
16464      CPPFLAGS=$OLDCPPFLAGS
16465
16466  if test "$curl_cv_have_def___LCC__" = "yes"; then
16467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16468$as_echo "yes" >&6; }
16469    compiler_id="LCC"
16470    flags_dbg_all="-g"
16471    flags_dbg_yes="-g"
16472    flags_dbg_off=""
16473    flags_opt_all=""
16474    flags_opt_yes=""
16475    flags_opt_off=""
16476  else
16477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478$as_echo "no" >&6; }
16479  fi
16480
16481
16482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16483$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16484
16485    OLDCPPFLAGS=$CPPFLAGS
16486  # CPPPFLAG comes from CURL_CPP_P
16487  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16488      if test -z "$SED"; then
16489    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16490  fi
16491  if test -z "$GREP"; then
16492    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16493  fi
16494
16495  tmp_exp=""
16496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497/* end confdefs.h.  */
16498
16499
16500#ifdef __GNUC__
16501CURL_DEF_TOKEN __GNUC__
16502#endif
16503
16504
16505_ACEOF
16506if ac_fn_c_try_cpp "$LINENO"; then :
16507
16508    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16509      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16510      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16511      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16512    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16513      tmp_exp=""
16514    fi
16515
16516fi
16517rm -f conftest.err conftest.i conftest.$ac_ext
16518  if test -z "$tmp_exp"; then
16519    curl_cv_have_def___GNUC__=no
16520
16521  else
16522    curl_cv_have_def___GNUC__=yes
16523    curl_cv_def___GNUC__=$tmp_exp
16524
16525  fi
16526      CPPFLAGS=$OLDCPPFLAGS
16527
16528
16529    OLDCPPFLAGS=$CPPFLAGS
16530  # CPPPFLAG comes from CURL_CPP_P
16531  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16532      if test -z "$SED"; then
16533    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16534  fi
16535  if test -z "$GREP"; then
16536    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16537  fi
16538
16539  tmp_exp=""
16540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541/* end confdefs.h.  */
16542
16543
16544#ifdef _COMPILER_VERSION
16545CURL_DEF_TOKEN _COMPILER_VERSION
16546#endif
16547
16548
16549_ACEOF
16550if ac_fn_c_try_cpp "$LINENO"; then :
16551
16552    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16553      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16554      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16555      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16556    if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16557      tmp_exp=""
16558    fi
16559
16560fi
16561rm -f conftest.err conftest.i conftest.$ac_ext
16562  if test -z "$tmp_exp"; then
16563    curl_cv_have_def__COMPILER_VERSION=no
16564
16565  else
16566    curl_cv_have_def__COMPILER_VERSION=yes
16567    curl_cv_def__COMPILER_VERSION=$tmp_exp
16568
16569  fi
16570      CPPFLAGS=$OLDCPPFLAGS
16571
16572
16573    OLDCPPFLAGS=$CPPFLAGS
16574  # CPPPFLAG comes from CURL_CPP_P
16575  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16576      if test -z "$SED"; then
16577    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16578  fi
16579  if test -z "$GREP"; then
16580    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16581  fi
16582
16583  tmp_exp=""
16584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585/* end confdefs.h.  */
16586
16587
16588#ifdef _SGI_COMPILER_VERSION
16589CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16590#endif
16591
16592
16593_ACEOF
16594if ac_fn_c_try_cpp "$LINENO"; then :
16595
16596    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16597      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16598      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16599      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16600    if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16601      tmp_exp=""
16602    fi
16603
16604fi
16605rm -f conftest.err conftest.i conftest.$ac_ext
16606  if test -z "$tmp_exp"; then
16607    curl_cv_have_def__SGI_COMPILER_VERSION=no
16608
16609  else
16610    curl_cv_have_def__SGI_COMPILER_VERSION=yes
16611    curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16612
16613  fi
16614      CPPFLAGS=$OLDCPPFLAGS
16615
16616  if test "$curl_cv_have_def___GNUC__" = "no" &&
16617    (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16618     test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16620$as_echo "yes" >&6; }
16621    compiler_id="SGI_MIPSPRO_C"
16622    flags_dbg_all="-g -g0 -g1 -g2 -g3"
16623    flags_dbg_yes="-g"
16624    flags_dbg_off=""
16625    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16626    flags_opt_yes="-O2"
16627    flags_opt_off="-O0"
16628  else
16629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630$as_echo "no" >&6; }
16631  fi
16632
16633
16634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16635$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16636
16637    OLDCPPFLAGS=$CPPFLAGS
16638  # CPPPFLAG comes from CURL_CPP_P
16639  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16640      if test -z "$SED"; then
16641    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16642  fi
16643  if test -z "$GREP"; then
16644    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16645  fi
16646
16647  tmp_exp=""
16648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649/* end confdefs.h.  */
16650
16651
16652#ifdef __GNUC__
16653CURL_DEF_TOKEN __GNUC__
16654#endif
16655
16656
16657_ACEOF
16658if ac_fn_c_try_cpp "$LINENO"; then :
16659
16660    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16661      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16662      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16663      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16664    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16665      tmp_exp=""
16666    fi
16667
16668fi
16669rm -f conftest.err conftest.i conftest.$ac_ext
16670  if test -z "$tmp_exp"; then
16671    curl_cv_have_def___GNUC__=no
16672
16673  else
16674    curl_cv_have_def___GNUC__=yes
16675    curl_cv_def___GNUC__=$tmp_exp
16676
16677  fi
16678      CPPFLAGS=$OLDCPPFLAGS
16679
16680
16681    OLDCPPFLAGS=$CPPFLAGS
16682  # CPPPFLAG comes from CURL_CPP_P
16683  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16684      if test -z "$SED"; then
16685    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16686  fi
16687  if test -z "$GREP"; then
16688    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16689  fi
16690
16691  tmp_exp=""
16692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693/* end confdefs.h.  */
16694
16695
16696#ifdef __sgi
16697CURL_DEF_TOKEN __sgi
16698#endif
16699
16700
16701_ACEOF
16702if ac_fn_c_try_cpp "$LINENO"; then :
16703
16704    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16705      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16706      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16707      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16708    if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16709      tmp_exp=""
16710    fi
16711
16712fi
16713rm -f conftest.err conftest.i conftest.$ac_ext
16714  if test -z "$tmp_exp"; then
16715    curl_cv_have_def___sgi=no
16716
16717  else
16718    curl_cv_have_def___sgi=yes
16719    curl_cv_def___sgi=$tmp_exp
16720
16721  fi
16722      CPPFLAGS=$OLDCPPFLAGS
16723
16724  if test "$curl_cv_have_def___GNUC__" = "no" &&
16725    test "$curl_cv_have_def___sgi" = "yes" &&
16726    test "$compiler_id" = "unknown"; then
16727    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16728$as_echo "yes" >&6; }
16729    compiler_id="SGI_MIPS_C"
16730    flags_dbg_all="-g -g0 -g1 -g2 -g3"
16731    flags_dbg_yes="-g"
16732    flags_dbg_off=""
16733    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16734    flags_opt_yes="-O2"
16735    flags_opt_off="-O0"
16736  else
16737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16738$as_echo "no" >&6; }
16739  fi
16740
16741
16742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16743$as_echo_n "checking if compiler is SunPro C... " >&6; }
16744
16745    OLDCPPFLAGS=$CPPFLAGS
16746  # CPPPFLAG comes from CURL_CPP_P
16747  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16748      if test -z "$SED"; then
16749    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16750  fi
16751  if test -z "$GREP"; then
16752    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16753  fi
16754
16755  tmp_exp=""
16756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h.  */
16758
16759
16760#ifdef __SUNPRO_C
16761CURL_DEF_TOKEN __SUNPRO_C
16762#endif
16763
16764
16765_ACEOF
16766if ac_fn_c_try_cpp "$LINENO"; then :
16767
16768    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16769      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16770      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16771      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16772    if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16773      tmp_exp=""
16774    fi
16775
16776fi
16777rm -f conftest.err conftest.i conftest.$ac_ext
16778  if test -z "$tmp_exp"; then
16779    curl_cv_have_def___SUNPRO_C=no
16780
16781  else
16782    curl_cv_have_def___SUNPRO_C=yes
16783    curl_cv_def___SUNPRO_C=$tmp_exp
16784
16785  fi
16786      CPPFLAGS=$OLDCPPFLAGS
16787
16788  if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16789    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790$as_echo "yes" >&6; }
16791    compiler_id="SUNPRO_C"
16792    flags_dbg_all="-g -s"
16793    flags_dbg_yes="-g"
16794    flags_dbg_off="-s"
16795    flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16796    flags_opt_yes="-xO2"
16797    flags_opt_off=""
16798  else
16799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800$as_echo "no" >&6; }
16801  fi
16802
16803
16804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16805$as_echo_n "checking if compiler is Tiny C... " >&6; }
16806
16807    OLDCPPFLAGS=$CPPFLAGS
16808  # CPPPFLAG comes from CURL_CPP_P
16809  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16810      if test -z "$SED"; then
16811    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16812  fi
16813  if test -z "$GREP"; then
16814    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16815  fi
16816
16817  tmp_exp=""
16818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819/* end confdefs.h.  */
16820
16821
16822#ifdef __TINYC__
16823CURL_DEF_TOKEN __TINYC__
16824#endif
16825
16826
16827_ACEOF
16828if ac_fn_c_try_cpp "$LINENO"; then :
16829
16830    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16831      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16832      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16833      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16834    if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16835      tmp_exp=""
16836    fi
16837
16838fi
16839rm -f conftest.err conftest.i conftest.$ac_ext
16840  if test -z "$tmp_exp"; then
16841    curl_cv_have_def___TINYC__=no
16842
16843  else
16844    curl_cv_have_def___TINYC__=yes
16845    curl_cv_def___TINYC__=$tmp_exp
16846
16847  fi
16848      CPPFLAGS=$OLDCPPFLAGS
16849
16850  if test "$curl_cv_have_def___TINYC__" = "yes"; then
16851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16852$as_echo "yes" >&6; }
16853    compiler_id="TINY_C"
16854    flags_dbg_all="-g -b"
16855    flags_dbg_yes="-g"
16856    flags_dbg_off=""
16857    flags_opt_all=""
16858    flags_opt_yes=""
16859    flags_opt_off=""
16860  else
16861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16862$as_echo "no" >&6; }
16863  fi
16864
16865
16866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16867$as_echo_n "checking if compiler is Watcom C... " >&6; }
16868
16869    OLDCPPFLAGS=$CPPFLAGS
16870  # CPPPFLAG comes from CURL_CPP_P
16871  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16872      if test -z "$SED"; then
16873    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16874  fi
16875  if test -z "$GREP"; then
16876    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16877  fi
16878
16879  tmp_exp=""
16880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881/* end confdefs.h.  */
16882
16883
16884#ifdef __WATCOMC__
16885CURL_DEF_TOKEN __WATCOMC__
16886#endif
16887
16888
16889_ACEOF
16890if ac_fn_c_try_cpp "$LINENO"; then :
16891
16892    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16893      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16894      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16895      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16896    if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16897      tmp_exp=""
16898    fi
16899
16900fi
16901rm -f conftest.err conftest.i conftest.$ac_ext
16902  if test -z "$tmp_exp"; then
16903    curl_cv_have_def___WATCOMC__=no
16904
16905  else
16906    curl_cv_have_def___WATCOMC__=yes
16907    curl_cv_def___WATCOMC__=$tmp_exp
16908
16909  fi
16910      CPPFLAGS=$OLDCPPFLAGS
16911
16912  if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16914$as_echo "yes" >&6; }
16915
16916    OLDCPPFLAGS=$CPPFLAGS
16917  # CPPPFLAG comes from CURL_CPP_P
16918  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16919      if test -z "$SED"; then
16920    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16921  fi
16922  if test -z "$GREP"; then
16923    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16924  fi
16925
16926  tmp_exp=""
16927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928/* end confdefs.h.  */
16929
16930
16931#ifdef __UNIX__
16932CURL_DEF_TOKEN __UNIX__
16933#endif
16934
16935
16936_ACEOF
16937if ac_fn_c_try_cpp "$LINENO"; then :
16938
16939    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16940      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16941      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16942      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16943    if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16944      tmp_exp=""
16945    fi
16946
16947fi
16948rm -f conftest.err conftest.i conftest.$ac_ext
16949  if test -z "$tmp_exp"; then
16950    curl_cv_have_def___UNIX__=no
16951
16952  else
16953    curl_cv_have_def___UNIX__=yes
16954    curl_cv_def___UNIX__=$tmp_exp
16955
16956  fi
16957      CPPFLAGS=$OLDCPPFLAGS
16958
16959    if test "$curl_cv_have_def___UNIX__" = "yes"; then
16960      compiler_id="WATCOM_UNIX_C"
16961      flags_dbg_all="-g1 -g1+ -g2 -g3"
16962      flags_dbg_yes="-g2"
16963      flags_dbg_off=""
16964      flags_opt_all="-O0 -O1 -O2 -O3"
16965      flags_opt_yes="-O2"
16966      flags_opt_off="-O0"
16967    else
16968      compiler_id="WATCOM_WINDOWS_C"
16969      flags_dbg_all=""
16970      flags_dbg_yes=""
16971      flags_dbg_off=""
16972      flags_opt_all=""
16973      flags_opt_yes=""
16974      flags_opt_off=""
16975    fi
16976  else
16977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16978$as_echo "no" >&6; }
16979  fi
16980
16981  #
16982  if test "$compiler_id" = "unknown"; then
16983  cat <<_EOF 1>&2
16984***
16985*** Warning: This configure script does not have information about the
16986*** compiler you are using, relative to the flags required to enable or
16987*** disable generation of debug info, optimization options or warnings.
16988***
16989*** Whatever settings are present in CFLAGS will be used for this run.
16990***
16991*** If you wish to help the curl project to better support your compiler
16992*** you can report this and the required info on the libcurl development
16993*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
16994***
16995_EOF
16996  fi
16997
16998
16999squeeze() {
17000  _sqz_result=""
17001  eval _sqz_input=\$$1
17002  for _sqz_token in $_sqz_input; do
17003    if test -z "$_sqz_result"; then
17004      _sqz_result="$_sqz_token"
17005    else
17006      _sqz_result="$_sqz_result $_sqz_token"
17007    fi
17008  done
17009  eval $1=\$_sqz_result
17010  return 0
17011}
17012
17013
17014      #
17015  if test "$compiler_id" != "unknown"; then
17016    #
17017    tmp_save_CPPFLAGS="$CPPFLAGS"
17018    tmp_save_CFLAGS="$CFLAGS"
17019    tmp_CPPFLAGS=""
17020    tmp_CFLAGS=""
17021    #
17022    case "$compiler_id" in
17023        #
17024      CLANG)
17025        #
17026                                tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17027        ;;
17028        #
17029      DEC_C)
17030        #
17031                tmp_CFLAGS="$tmp_CFLAGS -std1"
17032                tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17033                tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17034                tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17035        ;;
17036        #
17037      GNU_C)
17038        #
17039                        if test "$compiler_num" -ge "295"; then
17040          tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17041        fi
17042        ;;
17043        #
17044      HP_UX_C)
17045        #
17046                tmp_CFLAGS="$tmp_CFLAGS -z"
17047                                tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17048        ;;
17049        #
17050      IBM_C)
17051        #
17052                tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17053                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17054                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17055        ;;
17056        #
17057      INTEL_UNIX_C)
17058        #
17059                        tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17060                                                tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17061                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17062        ;;
17063        #
17064      INTEL_WINDOWS_C)
17065        #
17066                tmp_CFLAGS="$tmp_CFLAGS"
17067        ;;
17068        #
17069      LCC)
17070        #
17071                tmp_CFLAGS="$tmp_CFLAGS -n"
17072        ;;
17073        #
17074      SGI_MIPS_C)
17075        #
17076                tmp_CFLAGS="$tmp_CFLAGS"
17077        ;;
17078        #
17079      SGI_MIPSPRO_C)
17080        #
17081                tmp_CFLAGS="$tmp_CFLAGS"
17082        ;;
17083        #
17084      SUNPRO_C)
17085        #
17086                tmp_CFLAGS="$tmp_CFLAGS"
17087        ;;
17088        #
17089      TINY_C)
17090        #
17091                tmp_CFLAGS="$tmp_CFLAGS"
17092        ;;
17093        #
17094      WATCOM_UNIX_C)
17095        #
17096                tmp_CFLAGS="$tmp_CFLAGS"
17097        ;;
17098        #
17099      WATCOM_WINDOWS_C)
17100        #
17101                tmp_CFLAGS="$tmp_CFLAGS"
17102        ;;
17103        #
17104    esac
17105    #
17106    squeeze tmp_CPPFLAGS
17107    squeeze tmp_CFLAGS
17108    #
17109    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17110      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17111$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17112      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17113      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17114      squeeze CPPFLAGS
17115      squeeze CFLAGS
17116
17117    tmp_compiler_works="unknown"
17118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h.  */
17120
17121
17122
17123int main (void)
17124{
17125
17126      int i = 1;
17127      return i;
17128
17129 ;
17130 return 0;
17131}
17132
17133_ACEOF
17134if ac_fn_c_try_compile "$LINENO"; then :
17135
17136    tmp_compiler_works="yes"
17137
17138else
17139
17140    tmp_compiler_works="no"
17141    echo " " >&6
17142    sed 's/^/cc-fail: /' conftest.err >&6
17143    echo " " >&6
17144
17145fi
17146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147    if test "$tmp_compiler_works" = "yes"; then
17148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149/* end confdefs.h.  */
17150
17151
17152
17153int main (void)
17154{
17155
17156        int i = 1;
17157        return i;
17158
17159 ;
17160 return 0;
17161}
17162
17163_ACEOF
17164if ac_fn_c_try_link "$LINENO"; then :
17165
17166      tmp_compiler_works="yes"
17167
17168else
17169
17170      tmp_compiler_works="no"
17171      echo " " >&6
17172      sed 's/^/link-fail: /' conftest.err >&6
17173      echo " " >&6
17174
17175fi
17176rm -f core conftest.err conftest.$ac_objext \
17177    conftest$ac_exeext conftest.$ac_ext
17178  fi
17179    if test "x$cross_compiling" != "xyes" &&
17180    test "$tmp_compiler_works" = "yes"; then
17181
17182   old=$LD_LIBRARY_PATH
17183   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17184   export LD_LIBRARY_PATH
17185   if test "$cross_compiling" = yes; then :
17186  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17188as_fn_error $? "cannot run test program while cross compiling
17189See \`config.log' for more details" "$LINENO" 5; }
17190else
17191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192/* end confdefs.h.  */
17193
17194
17195#       ifdef __STDC__
17196#         include <stdlib.h>
17197#       endif
17198
17199int main (void)
17200{
17201
17202        int i = 0;
17203        exit(i);
17204
17205 ;
17206 return 0;
17207}
17208
17209_ACEOF
17210if ac_fn_c_try_run "$LINENO"; then :
17211  tmp_compiler_works="yes"
17212
17213else
17214  tmp_compiler_works="no"
17215      echo " " >&6
17216      echo "run-fail: test program exited with status $ac_status" >&6
17217      echo " " >&6
17218
17219fi
17220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17221  conftest.$ac_objext conftest.beam conftest.$ac_ext
17222fi
17223
17224   LD_LIBRARY_PATH=$old # restore
17225
17226  fi
17227    if test "$tmp_compiler_works" = "yes"; then
17228
17229        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17230$as_echo "yes" >&6; }
17231        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17232$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17233
17234  else
17235
17236        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17237$as_echo "no" >&6; }
17238        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17239$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17240                CPPFLAGS="$tmp_save_CPPFLAGS"
17241        CFLAGS="$tmp_save_CFLAGS"
17242
17243  fi
17244
17245    fi
17246    #
17247  fi
17248
17249
17250        #
17251  if test "$compiler_id" != "unknown"; then
17252    #
17253    tmp_save_CFLAGS="$CFLAGS"
17254    tmp_save_CPPFLAGS="$CPPFLAGS"
17255    #
17256    tmp_options=""
17257    tmp_CFLAGS="$CFLAGS"
17258    tmp_CPPFLAGS="$CPPFLAGS"
17259
17260    ac_var_stripped=""
17261  for word1 in $tmp_CFLAGS; do
17262    ac_var_strip_word="no"
17263    for word2 in $flags_dbg_all; do
17264      if test "$word1" = "$word2"; then
17265        ac_var_strip_word="yes"
17266      fi
17267    done
17268    if test "$ac_var_strip_word" = "no"; then
17269      ac_var_stripped="$ac_var_stripped $word1"
17270    fi
17271  done
17272    tmp_CFLAGS="$ac_var_stripped"
17273  squeeze tmp_CFLAGS
17274
17275
17276    ac_var_stripped=""
17277  for word1 in $tmp_CPPFLAGS; do
17278    ac_var_strip_word="no"
17279    for word2 in $flags_dbg_all; do
17280      if test "$word1" = "$word2"; then
17281        ac_var_strip_word="yes"
17282      fi
17283    done
17284    if test "$ac_var_strip_word" = "no"; then
17285      ac_var_stripped="$ac_var_stripped $word1"
17286    fi
17287  done
17288    tmp_CPPFLAGS="$ac_var_stripped"
17289  squeeze tmp_CPPFLAGS
17290
17291    #
17292    if test "$want_debug" = "yes"; then
17293      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17294$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17295      tmp_options="$flags_dbg_yes"
17296    fi
17297    if test "$want_debug" = "no"; then
17298      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17299$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17300      tmp_options="$flags_dbg_off"
17301    fi
17302    #
17303    if test "$flags_prefer_cppflags" = "yes"; then
17304      CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17305      CFLAGS="$tmp_CFLAGS"
17306    else
17307      CPPFLAGS="$tmp_CPPFLAGS"
17308      CFLAGS="$tmp_CFLAGS $tmp_options"
17309    fi
17310    squeeze CPPFLAGS
17311    squeeze CFLAGS
17312
17313    tmp_compiler_works="unknown"
17314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315/* end confdefs.h.  */
17316
17317
17318
17319int main (void)
17320{
17321
17322      int i = 1;
17323      return i;
17324
17325 ;
17326 return 0;
17327}
17328
17329_ACEOF
17330if ac_fn_c_try_compile "$LINENO"; then :
17331
17332    tmp_compiler_works="yes"
17333
17334else
17335
17336    tmp_compiler_works="no"
17337    echo " " >&6
17338    sed 's/^/cc-fail: /' conftest.err >&6
17339    echo " " >&6
17340
17341fi
17342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343    if test "$tmp_compiler_works" = "yes"; then
17344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345/* end confdefs.h.  */
17346
17347
17348
17349int main (void)
17350{
17351
17352        int i = 1;
17353        return i;
17354
17355 ;
17356 return 0;
17357}
17358
17359_ACEOF
17360if ac_fn_c_try_link "$LINENO"; then :
17361
17362      tmp_compiler_works="yes"
17363
17364else
17365
17366      tmp_compiler_works="no"
17367      echo " " >&6
17368      sed 's/^/link-fail: /' conftest.err >&6
17369      echo " " >&6
17370
17371fi
17372rm -f core conftest.err conftest.$ac_objext \
17373    conftest$ac_exeext conftest.$ac_ext
17374  fi
17375    if test "x$cross_compiling" != "xyes" &&
17376    test "$tmp_compiler_works" = "yes"; then
17377
17378   old=$LD_LIBRARY_PATH
17379   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17380   export LD_LIBRARY_PATH
17381   if test "$cross_compiling" = yes; then :
17382  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17384as_fn_error $? "cannot run test program while cross compiling
17385See \`config.log' for more details" "$LINENO" 5; }
17386else
17387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388/* end confdefs.h.  */
17389
17390
17391#       ifdef __STDC__
17392#         include <stdlib.h>
17393#       endif
17394
17395int main (void)
17396{
17397
17398        int i = 0;
17399        exit(i);
17400
17401 ;
17402 return 0;
17403}
17404
17405_ACEOF
17406if ac_fn_c_try_run "$LINENO"; then :
17407  tmp_compiler_works="yes"
17408
17409else
17410  tmp_compiler_works="no"
17411      echo " " >&6
17412      echo "run-fail: test program exited with status $ac_status" >&6
17413      echo " " >&6
17414
17415fi
17416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17417  conftest.$ac_objext conftest.beam conftest.$ac_ext
17418fi
17419
17420   LD_LIBRARY_PATH=$old # restore
17421
17422  fi
17423    if test "$tmp_compiler_works" = "yes"; then
17424
17425      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17426$as_echo "yes" >&6; }
17427      { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17428$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17429
17430  else
17431
17432      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17433$as_echo "no" >&6; }
17434      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17435$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17436            CPPFLAGS="$tmp_save_CPPFLAGS"
17437      CFLAGS="$tmp_save_CFLAGS"
17438
17439  fi
17440
17441    #
17442  fi
17443
17444
17445        #
17446  if test "$compiler_id" != "unknown"; then
17447    #
17448    tmp_save_CFLAGS="$CFLAGS"
17449    tmp_save_CPPFLAGS="$CPPFLAGS"
17450    #
17451    tmp_options=""
17452    tmp_CFLAGS="$CFLAGS"
17453    tmp_CPPFLAGS="$CPPFLAGS"
17454    honor_optimize_option="yes"
17455    #
17456                        #
17457    if test "$want_optimize" = "assume_no" ||
17458       test "$want_optimize" = "assume_yes"; then
17459      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17460$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17461
17462
17463  ac_var_match_word="no"
17464  for word1 in $tmp_CFLAGS; do
17465    for word2 in $flags_opt_all; do
17466      if test "$word1" = "$word2"; then
17467        ac_var_match_word="yes"
17468      fi
17469    done
17470  done
17471
17472  if test "$ac_var_match_word" = "yes"; then
17473
17474        honor_optimize_option="no"
17475
17476
17477  fi
17478
17479
17480
17481  ac_var_match_word="no"
17482  for word1 in $tmp_CPPFLAGS; do
17483    for word2 in $flags_opt_all; do
17484      if test "$word1" = "$word2"; then
17485        ac_var_match_word="yes"
17486      fi
17487    done
17488  done
17489
17490  if test "$ac_var_match_word" = "yes"; then
17491
17492        honor_optimize_option="no"
17493
17494
17495  fi
17496
17497      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17498$as_echo "$honor_optimize_option" >&6; }
17499      if test "$honor_optimize_option" = "yes"; then
17500        if test "$want_optimize" = "assume_yes"; then
17501          want_optimize="yes"
17502        fi
17503        if test "$want_optimize" = "assume_no"; then
17504          want_optimize="no"
17505        fi
17506      fi
17507    fi
17508    #
17509    if test "$honor_optimize_option" = "yes"; then
17510
17511    ac_var_stripped=""
17512  for word1 in $tmp_CFLAGS; do
17513    ac_var_strip_word="no"
17514    for word2 in $flags_opt_all; do
17515      if test "$word1" = "$word2"; then
17516        ac_var_strip_word="yes"
17517      fi
17518    done
17519    if test "$ac_var_strip_word" = "no"; then
17520      ac_var_stripped="$ac_var_stripped $word1"
17521    fi
17522  done
17523    tmp_CFLAGS="$ac_var_stripped"
17524  squeeze tmp_CFLAGS
17525
17526
17527    ac_var_stripped=""
17528  for word1 in $tmp_CPPFLAGS; do
17529    ac_var_strip_word="no"
17530    for word2 in $flags_opt_all; do
17531      if test "$word1" = "$word2"; then
17532        ac_var_strip_word="yes"
17533      fi
17534    done
17535    if test "$ac_var_strip_word" = "no"; then
17536      ac_var_stripped="$ac_var_stripped $word1"
17537    fi
17538  done
17539    tmp_CPPFLAGS="$ac_var_stripped"
17540  squeeze tmp_CPPFLAGS
17541
17542      if test "$want_optimize" = "yes"; then
17543        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17544$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17545        tmp_options="$flags_opt_yes"
17546      fi
17547      if test "$want_optimize" = "no"; then
17548        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17549$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17550        tmp_options="$flags_opt_off"
17551      fi
17552      if test "$flags_prefer_cppflags" = "yes"; then
17553        CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17554        CFLAGS="$tmp_CFLAGS"
17555      else
17556        CPPFLAGS="$tmp_CPPFLAGS"
17557        CFLAGS="$tmp_CFLAGS $tmp_options"
17558      fi
17559      squeeze CPPFLAGS
17560      squeeze CFLAGS
17561
17562    tmp_compiler_works="unknown"
17563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564/* end confdefs.h.  */
17565
17566
17567
17568int main (void)
17569{
17570
17571      int i = 1;
17572      return i;
17573
17574 ;
17575 return 0;
17576}
17577
17578_ACEOF
17579if ac_fn_c_try_compile "$LINENO"; then :
17580
17581    tmp_compiler_works="yes"
17582
17583else
17584
17585    tmp_compiler_works="no"
17586    echo " " >&6
17587    sed 's/^/cc-fail: /' conftest.err >&6
17588    echo " " >&6
17589
17590fi
17591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592    if test "$tmp_compiler_works" = "yes"; then
17593    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594/* end confdefs.h.  */
17595
17596
17597
17598int main (void)
17599{
17600
17601        int i = 1;
17602        return i;
17603
17604 ;
17605 return 0;
17606}
17607
17608_ACEOF
17609if ac_fn_c_try_link "$LINENO"; then :
17610
17611      tmp_compiler_works="yes"
17612
17613else
17614
17615      tmp_compiler_works="no"
17616      echo " " >&6
17617      sed 's/^/link-fail: /' conftest.err >&6
17618      echo " " >&6
17619
17620fi
17621rm -f core conftest.err conftest.$ac_objext \
17622    conftest$ac_exeext conftest.$ac_ext
17623  fi
17624    if test "x$cross_compiling" != "xyes" &&
17625    test "$tmp_compiler_works" = "yes"; then
17626
17627   old=$LD_LIBRARY_PATH
17628   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17629   export LD_LIBRARY_PATH
17630   if test "$cross_compiling" = yes; then :
17631  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17633as_fn_error $? "cannot run test program while cross compiling
17634See \`config.log' for more details" "$LINENO" 5; }
17635else
17636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637/* end confdefs.h.  */
17638
17639
17640#       ifdef __STDC__
17641#         include <stdlib.h>
17642#       endif
17643
17644int main (void)
17645{
17646
17647        int i = 0;
17648        exit(i);
17649
17650 ;
17651 return 0;
17652}
17653
17654_ACEOF
17655if ac_fn_c_try_run "$LINENO"; then :
17656  tmp_compiler_works="yes"
17657
17658else
17659  tmp_compiler_works="no"
17660      echo " " >&6
17661      echo "run-fail: test program exited with status $ac_status" >&6
17662      echo " " >&6
17663
17664fi
17665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17666  conftest.$ac_objext conftest.beam conftest.$ac_ext
17667fi
17668
17669   LD_LIBRARY_PATH=$old # restore
17670
17671  fi
17672    if test "$tmp_compiler_works" = "yes"; then
17673
17674        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17675$as_echo "yes" >&6; }
17676        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17677$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17678
17679  else
17680
17681        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17682$as_echo "no" >&6; }
17683        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17684$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17685                CPPFLAGS="$tmp_save_CPPFLAGS"
17686        CFLAGS="$tmp_save_CFLAGS"
17687
17688  fi
17689
17690    fi
17691    #
17692  fi
17693
17694
17695        #
17696  if test "$compiler_id" != "unknown"; then
17697    #
17698    tmp_save_CPPFLAGS="$CPPFLAGS"
17699    tmp_save_CFLAGS="$CFLAGS"
17700    tmp_CPPFLAGS=""
17701    tmp_CFLAGS=""
17702    #
17703    case "$compiler_id" in
17704        #
17705      CLANG)
17706        #
17707        if test "$want_warnings" = "yes"; then
17708          tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17709
17710    ac_var_added_warnings=""
17711  for warning in all extra; do
17712
17713  ac_var_match_word="no"
17714  for word1 in $CFLAGS; do
17715    for word2 in -Wno-$warning -W$warning; do
17716      if test "$word1" = "$word2"; then
17717        ac_var_match_word="yes"
17718      fi
17719    done
17720  done
17721
17722    if test "$ac_var_match_word" = "no"; then
17723      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17724    fi
17725  done
17726    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17727  squeeze tmp_CFLAGS
17728
17729
17730    ac_var_added_warnings=""
17731  for warning in pointer-arith write-strings; do
17732
17733  ac_var_match_word="no"
17734  for word1 in $CFLAGS; do
17735    for word2 in -Wno-$warning -W$warning; do
17736      if test "$word1" = "$word2"; then
17737        ac_var_match_word="yes"
17738      fi
17739    done
17740  done
17741
17742    if test "$ac_var_match_word" = "no"; then
17743      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17744    fi
17745  done
17746    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17747  squeeze tmp_CFLAGS
17748
17749
17750    ac_var_added_warnings=""
17751  for warning in shadow; do
17752
17753  ac_var_match_word="no"
17754  for word1 in $CFLAGS; do
17755    for word2 in -Wno-$warning -W$warning; do
17756      if test "$word1" = "$word2"; then
17757        ac_var_match_word="yes"
17758      fi
17759    done
17760  done
17761
17762    if test "$ac_var_match_word" = "no"; then
17763      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17764    fi
17765  done
17766    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17767  squeeze tmp_CFLAGS
17768
17769
17770    ac_var_added_warnings=""
17771  for warning in inline nested-externs; do
17772
17773  ac_var_match_word="no"
17774  for word1 in $CFLAGS; do
17775    for word2 in -Wno-$warning -W$warning; do
17776      if test "$word1" = "$word2"; then
17777        ac_var_match_word="yes"
17778      fi
17779    done
17780  done
17781
17782    if test "$ac_var_match_word" = "no"; then
17783      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17784    fi
17785  done
17786    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17787  squeeze tmp_CFLAGS
17788
17789
17790    ac_var_added_warnings=""
17791  for warning in missing-declarations; do
17792
17793  ac_var_match_word="no"
17794  for word1 in $CFLAGS; do
17795    for word2 in -Wno-$warning -W$warning; do
17796      if test "$word1" = "$word2"; then
17797        ac_var_match_word="yes"
17798      fi
17799    done
17800  done
17801
17802    if test "$ac_var_match_word" = "no"; then
17803      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17804    fi
17805  done
17806    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17807  squeeze tmp_CFLAGS
17808
17809
17810    ac_var_added_warnings=""
17811  for warning in missing-prototypes; do
17812
17813  ac_var_match_word="no"
17814  for word1 in $CFLAGS; do
17815    for word2 in -Wno-$warning -W$warning; do
17816      if test "$word1" = "$word2"; then
17817        ac_var_match_word="yes"
17818      fi
17819    done
17820  done
17821
17822    if test "$ac_var_match_word" = "no"; then
17823      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17824    fi
17825  done
17826    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17827  squeeze tmp_CFLAGS
17828
17829          tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17830
17831    ac_var_added_warnings=""
17832  for warning in float-equal; do
17833
17834  ac_var_match_word="no"
17835  for word1 in $CFLAGS; do
17836    for word2 in -Wno-$warning -W$warning; do
17837      if test "$word1" = "$word2"; then
17838        ac_var_match_word="yes"
17839      fi
17840    done
17841  done
17842
17843    if test "$ac_var_match_word" = "no"; then
17844      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17845    fi
17846  done
17847    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17848  squeeze tmp_CFLAGS
17849
17850
17851    ac_var_added_warnings=""
17852  for warning in no-multichar sign-compare; do
17853
17854  ac_var_match_word="no"
17855  for word1 in $CFLAGS; do
17856    for word2 in -Wno-$warning -W$warning; do
17857      if test "$word1" = "$word2"; then
17858        ac_var_match_word="yes"
17859      fi
17860    done
17861  done
17862
17863    if test "$ac_var_match_word" = "no"; then
17864      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17865    fi
17866  done
17867    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17868  squeeze tmp_CFLAGS
17869
17870
17871    ac_var_added_warnings=""
17872  for warning in undef; do
17873
17874  ac_var_match_word="no"
17875  for word1 in $CFLAGS; do
17876    for word2 in -Wno-$warning -W$warning; do
17877      if test "$word1" = "$word2"; then
17878        ac_var_match_word="yes"
17879      fi
17880    done
17881  done
17882
17883    if test "$ac_var_match_word" = "no"; then
17884      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17885    fi
17886  done
17887    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17888  squeeze tmp_CFLAGS
17889
17890          tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17891
17892    ac_var_added_warnings=""
17893  for warning in endif-labels strict-prototypes; do
17894
17895  ac_var_match_word="no"
17896  for word1 in $CFLAGS; do
17897    for word2 in -Wno-$warning -W$warning; do
17898      if test "$word1" = "$word2"; then
17899        ac_var_match_word="yes"
17900      fi
17901    done
17902  done
17903
17904    if test "$ac_var_match_word" = "no"; then
17905      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17906    fi
17907  done
17908    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17909  squeeze tmp_CFLAGS
17910
17911
17912    ac_var_added_warnings=""
17913  for warning in declaration-after-statement; do
17914
17915  ac_var_match_word="no"
17916  for word1 in $CFLAGS; do
17917    for word2 in -Wno-$warning -W$warning; do
17918      if test "$word1" = "$word2"; then
17919        ac_var_match_word="yes"
17920      fi
17921    done
17922  done
17923
17924    if test "$ac_var_match_word" = "no"; then
17925      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17926    fi
17927  done
17928    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17929  squeeze tmp_CFLAGS
17930
17931
17932    ac_var_added_warnings=""
17933  for warning in cast-align; do
17934
17935  ac_var_match_word="no"
17936  for word1 in $CFLAGS; do
17937    for word2 in -Wno-$warning -W$warning; do
17938      if test "$word1" = "$word2"; then
17939        ac_var_match_word="yes"
17940      fi
17941    done
17942  done
17943
17944    if test "$ac_var_match_word" = "no"; then
17945      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17946    fi
17947  done
17948    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17949  squeeze tmp_CFLAGS
17950
17951          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17952
17953    ac_var_added_warnings=""
17954  for warning in shorten-64-to-32; do
17955
17956  ac_var_match_word="no"
17957  for word1 in $CFLAGS; do
17958    for word2 in -Wno-$warning -W$warning; do
17959      if test "$word1" = "$word2"; then
17960        ac_var_match_word="yes"
17961      fi
17962    done
17963  done
17964
17965    if test "$ac_var_match_word" = "no"; then
17966      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17967    fi
17968  done
17969    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17970  squeeze tmp_CFLAGS
17971
17972          #
17973                    if test "$compiler_num" -ge "101"; then
17974
17975    ac_var_added_warnings=""
17976  for warning in unused; do
17977
17978  ac_var_match_word="no"
17979  for word1 in $CFLAGS; do
17980    for word2 in -Wno-$warning -W$warning; do
17981      if test "$word1" = "$word2"; then
17982        ac_var_match_word="yes"
17983      fi
17984    done
17985  done
17986
17987    if test "$ac_var_match_word" = "no"; then
17988      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17989    fi
17990  done
17991    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17992  squeeze tmp_CFLAGS
17993
17994          fi
17995          #
17996                    if test "$compiler_num" -ge "208"; then
17997
17998    ac_var_added_warnings=""
17999  for warning in vla; do
18000
18001  ac_var_match_word="no"
18002  for word1 in $CFLAGS; do
18003    for word2 in -Wno-$warning -W$warning; do
18004      if test "$word1" = "$word2"; then
18005        ac_var_match_word="yes"
18006      fi
18007    done
18008  done
18009
18010    if test "$ac_var_match_word" = "no"; then
18011      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18012    fi
18013  done
18014    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18015  squeeze tmp_CFLAGS
18016
18017          fi
18018          #
18019                    if test "$compiler_num" -ge "209"; then
18020
18021    ac_var_added_warnings=""
18022  for warning in shift-sign-overflow; do
18023
18024  ac_var_match_word="no"
18025  for word1 in $CFLAGS; do
18026    for word2 in -Wno-$warning -W$warning; do
18027      if test "$word1" = "$word2"; then
18028        ac_var_match_word="yes"
18029      fi
18030    done
18031  done
18032
18033    if test "$ac_var_match_word" = "no"; then
18034      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18035    fi
18036  done
18037    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18038  squeeze tmp_CFLAGS
18039
18040          fi
18041          #
18042                    if test "$compiler_num" -ge "302"; then
18043            case $host_os in
18044            cygwin* | mingw*)
18045                                          ;;
18046            *)
18047
18048    ac_var_added_warnings=""
18049  for warning in missing-variable-declarations; do
18050
18051  ac_var_match_word="no"
18052  for word1 in $CFLAGS; do
18053    for word2 in -Wno-$warning -W$warning; do
18054      if test "$word1" = "$word2"; then
18055        ac_var_match_word="yes"
18056      fi
18057    done
18058  done
18059
18060    if test "$ac_var_match_word" = "no"; then
18061      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18062    fi
18063  done
18064    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18065  squeeze tmp_CFLAGS
18066
18067              ;;
18068            esac
18069          fi
18070          #
18071                    if test "$compiler_num" -ge "306"; then
18072
18073    ac_var_added_warnings=""
18074  for warning in double-promotion; do
18075
18076  ac_var_match_word="no"
18077  for word1 in $CFLAGS; do
18078    for word2 in -Wno-$warning -W$warning; do
18079      if test "$word1" = "$word2"; then
18080        ac_var_match_word="yes"
18081      fi
18082    done
18083  done
18084
18085    if test "$ac_var_match_word" = "no"; then
18086      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18087    fi
18088  done
18089    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18090  squeeze tmp_CFLAGS
18091
18092          fi
18093          #
18094                    if test "$compiler_num" -ge "309"; then
18095
18096    ac_var_added_warnings=""
18097  for warning in comma; do
18098
18099  ac_var_match_word="no"
18100  for word1 in $CFLAGS; do
18101    for word2 in -Wno-$warning -W$warning; do
18102      if test "$word1" = "$word2"; then
18103        ac_var_match_word="yes"
18104      fi
18105    done
18106  done
18107
18108    if test "$ac_var_match_word" = "no"; then
18109      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18110    fi
18111  done
18112    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18113  squeeze tmp_CFLAGS
18114
18115            # avoid the varargs warning, fixed in 4.0
18116            # https://bugs.llvm.org/show_bug.cgi?id=29140
18117            if test "$compiler_num" -lt "400"; then
18118              tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
18119            fi
18120          fi
18121                    if test "$compiler_num" -ge "700"; then
18122
18123    ac_var_added_warnings=""
18124  for warning in assign-enum; do
18125
18126  ac_var_match_word="no"
18127  for word1 in $CFLAGS; do
18128    for word2 in -Wno-$warning -W$warning; do
18129      if test "$word1" = "$word2"; then
18130        ac_var_match_word="yes"
18131      fi
18132    done
18133  done
18134
18135    if test "$ac_var_match_word" = "no"; then
18136      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18137    fi
18138  done
18139    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18140  squeeze tmp_CFLAGS
18141
18142          fi
18143        fi
18144        ;;
18145        #
18146      DEC_C)
18147        #
18148        if test "$want_warnings" = "yes"; then
18149                    tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18150        fi
18151        ;;
18152        #
18153      GNU_C)
18154        #
18155        if test "$want_warnings" = "yes"; then
18156          #
18157                              if test "x$cross_compiling" != "xyes" ||
18158            test "$compiler_num" -ge "300"; then
18159            tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18160          fi
18161          #
18162
18163    ac_var_added_warnings=""
18164  for warning in all; do
18165
18166  ac_var_match_word="no"
18167  for word1 in $CFLAGS; do
18168    for word2 in -Wno-$warning -W$warning; do
18169      if test "$word1" = "$word2"; then
18170        ac_var_match_word="yes"
18171      fi
18172    done
18173  done
18174
18175    if test "$ac_var_match_word" = "no"; then
18176      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18177    fi
18178  done
18179    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18180  squeeze tmp_CFLAGS
18181
18182          tmp_CFLAGS="$tmp_CFLAGS -W"
18183          #
18184                    if test "$compiler_num" -ge "104"; then
18185
18186    ac_var_added_warnings=""
18187  for warning in pointer-arith write-strings; do
18188
18189  ac_var_match_word="no"
18190  for word1 in $CFLAGS; do
18191    for word2 in -Wno-$warning -W$warning; do
18192      if test "$word1" = "$word2"; then
18193        ac_var_match_word="yes"
18194      fi
18195    done
18196  done
18197
18198    if test "$ac_var_match_word" = "no"; then
18199      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18200    fi
18201  done
18202    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18203  squeeze tmp_CFLAGS
18204
18205                        if test "x$cross_compiling" != "xyes" ||
18206              test "$compiler_num" -ge "300"; then
18207
18208    ac_var_added_warnings=""
18209  for warning in unused shadow; do
18210
18211  ac_var_match_word="no"
18212  for word1 in $CFLAGS; do
18213    for word2 in -Wno-$warning -W$warning; do
18214      if test "$word1" = "$word2"; then
18215        ac_var_match_word="yes"
18216      fi
18217    done
18218  done
18219
18220    if test "$ac_var_match_word" = "no"; then
18221      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18222    fi
18223  done
18224    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18225  squeeze tmp_CFLAGS
18226
18227            fi
18228          fi
18229          #
18230                    if test "$compiler_num" -ge "207"; then
18231
18232    ac_var_added_warnings=""
18233  for warning in inline nested-externs; do
18234
18235  ac_var_match_word="no"
18236  for word1 in $CFLAGS; do
18237    for word2 in -Wno-$warning -W$warning; do
18238      if test "$word1" = "$word2"; then
18239        ac_var_match_word="yes"
18240      fi
18241    done
18242  done
18243
18244    if test "$ac_var_match_word" = "no"; then
18245      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18246    fi
18247  done
18248    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18249  squeeze tmp_CFLAGS
18250
18251                        if test "x$cross_compiling" != "xyes" ||
18252              test "$compiler_num" -ge "300"; then
18253
18254    ac_var_added_warnings=""
18255  for warning in missing-declarations; do
18256
18257  ac_var_match_word="no"
18258  for word1 in $CFLAGS; do
18259    for word2 in -Wno-$warning -W$warning; do
18260      if test "$word1" = "$word2"; then
18261        ac_var_match_word="yes"
18262      fi
18263    done
18264  done
18265
18266    if test "$ac_var_match_word" = "no"; then
18267      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18268    fi
18269  done
18270    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18271  squeeze tmp_CFLAGS
18272
18273
18274    ac_var_added_warnings=""
18275  for warning in missing-prototypes; do
18276
18277  ac_var_match_word="no"
18278  for word1 in $CFLAGS; do
18279    for word2 in -Wno-$warning -W$warning; do
18280      if test "$word1" = "$word2"; then
18281        ac_var_match_word="yes"
18282      fi
18283    done
18284  done
18285
18286    if test "$ac_var_match_word" = "no"; then
18287      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18288    fi
18289  done
18290    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18291  squeeze tmp_CFLAGS
18292
18293            fi
18294          fi
18295          #
18296                    if test "$compiler_num" -ge "295"; then
18297            tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18298
18299    ac_var_added_warnings=""
18300  for warning in bad-function-cast; do
18301
18302  ac_var_match_word="no"
18303  for word1 in $CFLAGS; do
18304    for word2 in -Wno-$warning -W$warning; do
18305      if test "$word1" = "$word2"; then
18306        ac_var_match_word="yes"
18307      fi
18308    done
18309  done
18310
18311    if test "$ac_var_match_word" = "no"; then
18312      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18313    fi
18314  done
18315    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18316  squeeze tmp_CFLAGS
18317
18318          fi
18319          #
18320                    if test "$compiler_num" -ge "296"; then
18321
18322    ac_var_added_warnings=""
18323  for warning in float-equal; do
18324
18325  ac_var_match_word="no"
18326  for word1 in $CFLAGS; do
18327    for word2 in -Wno-$warning -W$warning; do
18328      if test "$word1" = "$word2"; then
18329        ac_var_match_word="yes"
18330      fi
18331    done
18332  done
18333
18334    if test "$ac_var_match_word" = "no"; then
18335      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18336    fi
18337  done
18338    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18339  squeeze tmp_CFLAGS
18340
18341            tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
18342
18343    ac_var_added_warnings=""
18344  for warning in sign-compare; do
18345
18346  ac_var_match_word="no"
18347  for word1 in $CFLAGS; do
18348    for word2 in -Wno-$warning -W$warning; do
18349      if test "$word1" = "$word2"; then
18350        ac_var_match_word="yes"
18351      fi
18352    done
18353  done
18354
18355    if test "$ac_var_match_word" = "no"; then
18356      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18357    fi
18358  done
18359    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18360  squeeze tmp_CFLAGS
18361
18362
18363    ac_var_added_warnings=""
18364  for warning in undef; do
18365
18366  ac_var_match_word="no"
18367  for word1 in $CFLAGS; do
18368    for word2 in -Wno-$warning -W$warning; do
18369      if test "$word1" = "$word2"; then
18370        ac_var_match_word="yes"
18371      fi
18372    done
18373  done
18374
18375    if test "$ac_var_match_word" = "no"; then
18376      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18377    fi
18378  done
18379    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18380  squeeze tmp_CFLAGS
18381
18382          fi
18383          #
18384                    if test "$compiler_num" -ge "297"; then
18385            tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18386          fi
18387          #
18388                    if test "$compiler_num" -ge "300"; then
18389                                                            tmp_CFLAGS="$tmp_CFLAGS"
18390          fi
18391          #
18392                    if test "$compiler_num" -ge "303"; then
18393
18394    ac_var_added_warnings=""
18395  for warning in endif-labels strict-prototypes; do
18396
18397  ac_var_match_word="no"
18398  for word1 in $CFLAGS; do
18399    for word2 in -Wno-$warning -W$warning; do
18400      if test "$word1" = "$word2"; then
18401        ac_var_match_word="yes"
18402      fi
18403    done
18404  done
18405
18406    if test "$ac_var_match_word" = "no"; then
18407      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18408    fi
18409  done
18410    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18411  squeeze tmp_CFLAGS
18412
18413          fi
18414          #
18415                    if test "$compiler_num" -ge "304"; then
18416
18417    ac_var_added_warnings=""
18418  for warning in declaration-after-statement; do
18419
18420  ac_var_match_word="no"
18421  for word1 in $CFLAGS; do
18422    for word2 in -Wno-$warning -W$warning; do
18423      if test "$word1" = "$word2"; then
18424        ac_var_match_word="yes"
18425      fi
18426    done
18427  done
18428
18429    if test "$ac_var_match_word" = "no"; then
18430      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18431    fi
18432  done
18433    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18434  squeeze tmp_CFLAGS
18435
18436
18437    ac_var_added_warnings=""
18438  for warning in old-style-definition; do
18439
18440  ac_var_match_word="no"
18441  for word1 in $CFLAGS; do
18442    for word2 in -Wno-$warning -W$warning; do
18443      if test "$word1" = "$word2"; then
18444        ac_var_match_word="yes"
18445      fi
18446    done
18447  done
18448
18449    if test "$ac_var_match_word" = "no"; then
18450      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18451    fi
18452  done
18453    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18454  squeeze tmp_CFLAGS
18455
18456          fi
18457          #
18458                    if test "$compiler_num" -ge "400"; then
18459            tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18460          fi
18461          #
18462                    if test "$compiler_num" -ge "402"; then
18463
18464    ac_var_added_warnings=""
18465  for warning in cast-align; do
18466
18467  ac_var_match_word="no"
18468  for word1 in $CFLAGS; do
18469    for word2 in -Wno-$warning -W$warning; do
18470      if test "$word1" = "$word2"; then
18471        ac_var_match_word="yes"
18472      fi
18473    done
18474  done
18475
18476    if test "$ac_var_match_word" = "no"; then
18477      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18478    fi
18479  done
18480    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18481  squeeze tmp_CFLAGS
18482
18483          fi
18484          #
18485                    if test "$compiler_num" -ge "403"; then
18486
18487    ac_var_added_warnings=""
18488  for warning in type-limits old-style-declaration; do
18489
18490  ac_var_match_word="no"
18491  for word1 in $CFLAGS; do
18492    for word2 in -Wno-$warning -W$warning; do
18493      if test "$word1" = "$word2"; then
18494        ac_var_match_word="yes"
18495      fi
18496    done
18497  done
18498
18499    if test "$ac_var_match_word" = "no"; then
18500      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18501    fi
18502  done
18503    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18504  squeeze tmp_CFLAGS
18505
18506
18507    ac_var_added_warnings=""
18508  for warning in missing-parameter-type empty-body; do
18509
18510  ac_var_match_word="no"
18511  for word1 in $CFLAGS; do
18512    for word2 in -Wno-$warning -W$warning; do
18513      if test "$word1" = "$word2"; then
18514        ac_var_match_word="yes"
18515      fi
18516    done
18517  done
18518
18519    if test "$ac_var_match_word" = "no"; then
18520      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18521    fi
18522  done
18523    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18524  squeeze tmp_CFLAGS
18525
18526
18527    ac_var_added_warnings=""
18528  for warning in clobbered ignored-qualifiers; do
18529
18530  ac_var_match_word="no"
18531  for word1 in $CFLAGS; do
18532    for word2 in -Wno-$warning -W$warning; do
18533      if test "$word1" = "$word2"; then
18534        ac_var_match_word="yes"
18535      fi
18536    done
18537  done
18538
18539    if test "$ac_var_match_word" = "no"; then
18540      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18541    fi
18542  done
18543    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18544  squeeze tmp_CFLAGS
18545
18546
18547    ac_var_added_warnings=""
18548  for warning in conversion; do
18549
18550  ac_var_match_word="no"
18551  for word1 in $CFLAGS; do
18552    for word2 in -Wno-$warning -W$warning; do
18553      if test "$word1" = "$word2"; then
18554        ac_var_match_word="yes"
18555      fi
18556    done
18557  done
18558
18559    if test "$ac_var_match_word" = "no"; then
18560      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18561    fi
18562  done
18563    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18564  squeeze tmp_CFLAGS
18565
18566            tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
18567
18568    ac_var_added_warnings=""
18569  for warning in vla; do
18570
18571  ac_var_match_word="no"
18572  for word1 in $CFLAGS; do
18573    for word2 in -Wno-$warning -W$warning; do
18574      if test "$word1" = "$word2"; then
18575        ac_var_match_word="yes"
18576      fi
18577    done
18578  done
18579
18580    if test "$ac_var_match_word" = "no"; then
18581      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18582    fi
18583  done
18584    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18585  squeeze tmp_CFLAGS
18586
18587                        tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
18588          fi
18589          #
18590                    if test "$compiler_num" -ge "405"; then
18591                        if test "$curl_cv_have_def__WIN32" = "yes"; then
18592              tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18593            fi
18594          fi
18595          #
18596                    if test "$compiler_num" -ge "406"; then
18597
18598    ac_var_added_warnings=""
18599  for warning in double-promotion; do
18600
18601  ac_var_match_word="no"
18602  for word1 in $CFLAGS; do
18603    for word2 in -Wno-$warning -W$warning; do
18604      if test "$word1" = "$word2"; then
18605        ac_var_match_word="yes"
18606      fi
18607    done
18608  done
18609
18610    if test "$ac_var_match_word" = "no"; then
18611      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18612    fi
18613  done
18614    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18615  squeeze tmp_CFLAGS
18616
18617          fi
18618          #
18619                    if test "$compiler_num" -ge "408"; then
18620            tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
18621          fi
18622          #
18623                    if test "$compiler_num" -ge "500"; then
18624            tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
18625          fi
18626          #
18627                    if test "$compiler_num" -ge "600"; then
18628
18629    ac_var_added_warnings=""
18630  for warning in shift-negative-value; do
18631
18632  ac_var_match_word="no"
18633  for word1 in $CFLAGS; do
18634    for word2 in -Wno-$warning -W$warning; do
18635      if test "$word1" = "$word2"; then
18636        ac_var_match_word="yes"
18637      fi
18638    done
18639  done
18640
18641    if test "$ac_var_match_word" = "no"; then
18642      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18643    fi
18644  done
18645    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18646  squeeze tmp_CFLAGS
18647
18648            tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
18649
18650    ac_var_added_warnings=""
18651  for warning in null-dereference; do
18652
18653  ac_var_match_word="no"
18654  for word1 in $CFLAGS; do
18655    for word2 in -Wno-$warning -W$warning; do
18656      if test "$word1" = "$word2"; then
18657        ac_var_match_word="yes"
18658      fi
18659    done
18660  done
18661
18662    if test "$ac_var_match_word" = "no"; then
18663      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18664    fi
18665  done
18666    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18667  squeeze tmp_CFLAGS
18668
18669            tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
18670
18671    ac_var_added_warnings=""
18672  for warning in duplicated-cond; do
18673
18674  ac_var_match_word="no"
18675  for word1 in $CFLAGS; do
18676    for word2 in -Wno-$warning -W$warning; do
18677      if test "$word1" = "$word2"; then
18678        ac_var_match_word="yes"
18679      fi
18680    done
18681  done
18682
18683    if test "$ac_var_match_word" = "no"; then
18684      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18685    fi
18686  done
18687    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18688  squeeze tmp_CFLAGS
18689
18690
18691    ac_var_added_warnings=""
18692  for warning in unused-const-variable; do
18693
18694  ac_var_match_word="no"
18695  for word1 in $CFLAGS; do
18696    for word2 in -Wno-$warning -W$warning; do
18697      if test "$word1" = "$word2"; then
18698        ac_var_match_word="yes"
18699      fi
18700    done
18701  done
18702
18703    if test "$ac_var_match_word" = "no"; then
18704      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18705    fi
18706  done
18707    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18708  squeeze tmp_CFLAGS
18709
18710          fi
18711          #
18712                    if test "$compiler_num" -ge "700"; then
18713
18714    ac_var_added_warnings=""
18715  for warning in duplicated-branches; do
18716
18717  ac_var_match_word="no"
18718  for word1 in $CFLAGS; do
18719    for word2 in -Wno-$warning -W$warning; do
18720      if test "$word1" = "$word2"; then
18721        ac_var_match_word="yes"
18722      fi
18723    done
18724  done
18725
18726    if test "$ac_var_match_word" = "no"; then
18727      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18728    fi
18729  done
18730    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18731  squeeze tmp_CFLAGS
18732
18733
18734    ac_var_added_warnings=""
18735  for warning in restrict; do
18736
18737  ac_var_match_word="no"
18738  for word1 in $CFLAGS; do
18739    for word2 in -Wno-$warning -W$warning; do
18740      if test "$word1" = "$word2"; then
18741        ac_var_match_word="yes"
18742      fi
18743    done
18744  done
18745
18746    if test "$ac_var_match_word" = "no"; then
18747      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18748    fi
18749  done
18750    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18751  squeeze tmp_CFLAGS
18752
18753
18754    ac_var_added_warnings=""
18755  for warning in alloc-zero; do
18756
18757  ac_var_match_word="no"
18758  for word1 in $CFLAGS; do
18759    for word2 in -Wno-$warning -W$warning; do
18760      if test "$word1" = "$word2"; then
18761        ac_var_match_word="yes"
18762      fi
18763    done
18764  done
18765
18766    if test "$ac_var_match_word" = "no"; then
18767      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18768    fi
18769  done
18770    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18771  squeeze tmp_CFLAGS
18772
18773            tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
18774            tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
18775            tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
18776          fi
18777          #
18778        fi
18779        #
18780                if test "$compiler_num" -ge "300"; then
18781          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18782        else
18783                              if test "x$cross_compiling" = "xyes"; then
18784            if test "$compiler_num" -ge "104"; then
18785                            tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18786            fi
18787            if test "$compiler_num" -ge "207"; then
18788                            tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18789              tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18790            fi
18791          fi
18792        fi
18793                if test "$compiler_num" -ge "1000"; then
18794
18795    ac_var_added_warnings=""
18796  for warning in enum-conversion; do
18797
18798  ac_var_match_word="no"
18799  for word1 in $CFLAGS; do
18800    for word2 in -Wno-$warning -W$warning; do
18801      if test "$word1" = "$word2"; then
18802        ac_var_match_word="yes"
18803      fi
18804    done
18805  done
18806
18807    if test "$ac_var_match_word" = "no"; then
18808      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18809    fi
18810  done
18811    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18812  squeeze tmp_CFLAGS
18813
18814        fi
18815        ;;
18816        #
18817      HP_UX_C)
18818        #
18819        if test "$want_warnings" = "yes"; then
18820                    tmp_CFLAGS="$tmp_CFLAGS +w1"
18821        fi
18822        ;;
18823        #
18824      IBM_C)
18825        #
18826                tmp_CFLAGS="$tmp_CFLAGS"
18827        ;;
18828        #
18829      INTEL_UNIX_C)
18830        #
18831        if test "$want_warnings" = "yes"; then
18832          if test "$compiler_num" -gt "600"; then
18833                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18834                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18835                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18836                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18837                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18838                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18839                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18840                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18841                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18842                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18843                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18844          fi
18845        fi
18846                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18847                tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18848                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18849        ;;
18850        #
18851      INTEL_WINDOWS_C)
18852        #
18853                tmp_CFLAGS="$tmp_CFLAGS"
18854        ;;
18855        #
18856      LCC)
18857        #
18858        if test "$want_warnings" = "yes"; then
18859                                                  tmp_CFLAGS="$tmp_CFLAGS"
18860        fi
18861        ;;
18862        #
18863      SGI_MIPS_C)
18864        #
18865        if test "$want_warnings" = "yes"; then
18866                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18867        fi
18868        ;;
18869        #
18870      SGI_MIPSPRO_C)
18871        #
18872        if test "$want_warnings" = "yes"; then
18873                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18874                              tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18875        fi
18876        ;;
18877        #
18878      SUNPRO_C)
18879        #
18880        if test "$want_warnings" = "yes"; then
18881                    tmp_CFLAGS="$tmp_CFLAGS -v"
18882        fi
18883        ;;
18884        #
18885      TINY_C)
18886        #
18887        if test "$want_warnings" = "yes"; then
18888
18889    ac_var_added_warnings=""
18890  for warning in all; do
18891
18892  ac_var_match_word="no"
18893  for word1 in $CFLAGS; do
18894    for word2 in -Wno-$warning -W$warning; do
18895      if test "$word1" = "$word2"; then
18896        ac_var_match_word="yes"
18897      fi
18898    done
18899  done
18900
18901    if test "$ac_var_match_word" = "no"; then
18902      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18903    fi
18904  done
18905    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18906  squeeze tmp_CFLAGS
18907
18908
18909    ac_var_added_warnings=""
18910  for warning in write-strings; do
18911
18912  ac_var_match_word="no"
18913  for word1 in $CFLAGS; do
18914    for word2 in -Wno-$warning -W$warning; do
18915      if test "$word1" = "$word2"; then
18916        ac_var_match_word="yes"
18917      fi
18918    done
18919  done
18920
18921    if test "$ac_var_match_word" = "no"; then
18922      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18923    fi
18924  done
18925    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18926  squeeze tmp_CFLAGS
18927
18928
18929    ac_var_added_warnings=""
18930  for warning in unsupported; do
18931
18932  ac_var_match_word="no"
18933  for word1 in $CFLAGS; do
18934    for word2 in -Wno-$warning -W$warning; do
18935      if test "$word1" = "$word2"; then
18936        ac_var_match_word="yes"
18937      fi
18938    done
18939  done
18940
18941    if test "$ac_var_match_word" = "no"; then
18942      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18943    fi
18944  done
18945    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18946  squeeze tmp_CFLAGS
18947
18948        fi
18949        ;;
18950        #
18951      WATCOM_UNIX_C)
18952        #
18953        if test "$want_warnings" = "yes"; then
18954                    tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18955        fi
18956        ;;
18957        #
18958      WATCOM_WINDOWS_C)
18959        #
18960                tmp_CFLAGS="$tmp_CFLAGS"
18961        ;;
18962        #
18963    esac
18964    #
18965    squeeze tmp_CPPFLAGS
18966    squeeze tmp_CFLAGS
18967    #
18968    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18969      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18970$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18971      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18972      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18973      squeeze CPPFLAGS
18974      squeeze CFLAGS
18975
18976    tmp_compiler_works="unknown"
18977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978/* end confdefs.h.  */
18979
18980
18981
18982int main (void)
18983{
18984
18985      int i = 1;
18986      return i;
18987
18988 ;
18989 return 0;
18990}
18991
18992_ACEOF
18993if ac_fn_c_try_compile "$LINENO"; then :
18994
18995    tmp_compiler_works="yes"
18996
18997else
18998
18999    tmp_compiler_works="no"
19000    echo " " >&6
19001    sed 's/^/cc-fail: /' conftest.err >&6
19002    echo " " >&6
19003
19004fi
19005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19006    if test "$tmp_compiler_works" = "yes"; then
19007    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008/* end confdefs.h.  */
19009
19010
19011
19012int main (void)
19013{
19014
19015        int i = 1;
19016        return i;
19017
19018 ;
19019 return 0;
19020}
19021
19022_ACEOF
19023if ac_fn_c_try_link "$LINENO"; then :
19024
19025      tmp_compiler_works="yes"
19026
19027else
19028
19029      tmp_compiler_works="no"
19030      echo " " >&6
19031      sed 's/^/link-fail: /' conftest.err >&6
19032      echo " " >&6
19033
19034fi
19035rm -f core conftest.err conftest.$ac_objext \
19036    conftest$ac_exeext conftest.$ac_ext
19037  fi
19038    if test "x$cross_compiling" != "xyes" &&
19039    test "$tmp_compiler_works" = "yes"; then
19040
19041   old=$LD_LIBRARY_PATH
19042   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
19043   export LD_LIBRARY_PATH
19044   if test "$cross_compiling" = yes; then :
19045  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19047as_fn_error $? "cannot run test program while cross compiling
19048See \`config.log' for more details" "$LINENO" 5; }
19049else
19050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051/* end confdefs.h.  */
19052
19053
19054#       ifdef __STDC__
19055#         include <stdlib.h>
19056#       endif
19057
19058int main (void)
19059{
19060
19061        int i = 0;
19062        exit(i);
19063
19064 ;
19065 return 0;
19066}
19067
19068_ACEOF
19069if ac_fn_c_try_run "$LINENO"; then :
19070  tmp_compiler_works="yes"
19071
19072else
19073  tmp_compiler_works="no"
19074      echo " " >&6
19075      echo "run-fail: test program exited with status $ac_status" >&6
19076      echo " " >&6
19077
19078fi
19079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19080  conftest.$ac_objext conftest.beam conftest.$ac_ext
19081fi
19082
19083   LD_LIBRARY_PATH=$old # restore
19084
19085  fi
19086    if test "$tmp_compiler_works" = "yes"; then
19087
19088        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19089$as_echo "yes" >&6; }
19090        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
19091$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
19092
19093  else
19094
19095        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096$as_echo "no" >&6; }
19097        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
19098$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
19099                CPPFLAGS="$tmp_save_CPPFLAGS"
19100        CFLAGS="$tmp_save_CFLAGS"
19101
19102  fi
19103
19104    fi
19105    #
19106  fi
19107
19108
19109if test "$compiler_id" = "INTEL_UNIX_C"; then
19110  #
19111  if test "$compiler_num" -ge "1000"; then
19112        CFLAGS="$CFLAGS -shared-intel"
19113  elif test "$compiler_num" -ge "900"; then
19114        CFLAGS="$CFLAGS -i-dynamic"
19115  fi
19116  #
19117fi
19118
19119CURL_CFLAG_EXTRAS=""
19120if test X"$want_werror" = Xyes; then
19121  CURL_CFLAG_EXTRAS="-Werror"
19122  if test "$compiler_id" = "GNU_C"; then
19123            if test "$compiler_num" -ge "500"; then
19124      CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
19125    fi
19126  fi
19127fi
19128
19129
19130
19131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
19132$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
19133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134/* end confdefs.h.  */
19135
19136
19137
19138int main (void)
19139{
19140
19141      force compilation error
19142
19143 ;
19144 return 0;
19145}
19146
19147_ACEOF
19148if ac_fn_c_try_compile "$LINENO"; then :
19149
19150    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19151$as_echo "no" >&6; }
19152    as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
19153
19154else
19155
19156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19157$as_echo "yes" >&6; }
19158
19159fi
19160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161
19162
19163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
19164$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
19165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166/* end confdefs.h.  */
19167
19168
19169      typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
19170
19171int main (void)
19172{
19173
19174      bad_t dummy;
19175
19176 ;
19177 return 0;
19178}
19179
19180_ACEOF
19181if ac_fn_c_try_compile "$LINENO"; then :
19182
19183    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19184$as_echo "no" >&6; }
19185    as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
19186
19187else
19188
19189    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19190$as_echo "yes" >&6; }
19191
19192fi
19193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19194
19195
19196    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
19197$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
19198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199/* end confdefs.h.  */
19200
19201
19202#     include <stdlib.h>
19203      int rand(int n);
19204      int rand(int n)
19205      {
19206        if(n)
19207          return ++n;
19208        else
19209          return n;
19210      }
19211
19212int main (void)
19213{
19214
19215      int i[2]={0,0};
19216      int j = rand(i[0]);
19217      if(j)
19218        return j;
19219
19220 ;
19221 return 0;
19222}
19223
19224_ACEOF
19225if ac_fn_c_try_compile "$LINENO"; then :
19226
19227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228$as_echo "no" >&6; }
19229    as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
19230
19231else
19232
19233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19234$as_echo "yes" >&6; }
19235
19236fi
19237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19238
19239
19240      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
19241$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
19242  supports_symbol_hiding="no"
19243  symbol_hiding_CFLAGS=""
19244  symbol_hiding_EXTERN=""
19245  tmp_CFLAGS=""
19246  tmp_EXTERN=""
19247  case "$compiler_id" in
19248    CLANG)
19249            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19250      tmp_CFLAGS="-fvisibility=hidden"
19251      supports_symbol_hiding="yes"
19252      ;;
19253    GNU_C)
19254            if test "$compiler_num" -ge "304"; then
19255        if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
19256          tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19257          tmp_CFLAGS="-fvisibility=hidden"
19258          supports_symbol_hiding="yes"
19259        fi
19260      fi
19261      ;;
19262    INTEL_UNIX_C)
19263            if test "$compiler_num" -ge "900"; then
19264        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
19265          tmp_save_CFLAGS="$CFLAGS"
19266          CFLAGS="$CFLAGS -fvisibility=hidden"
19267          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268/* end confdefs.h.  */
19269
19270
19271#             include <stdio.h>
19272
19273int main (void)
19274{
19275
19276              printf("icc fvisibility bug test");
19277
19278 ;
19279 return 0;
19280}
19281
19282_ACEOF
19283if ac_fn_c_try_link "$LINENO"; then :
19284
19285            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19286            tmp_CFLAGS="-fvisibility=hidden"
19287            supports_symbol_hiding="yes"
19288
19289fi
19290rm -f core conftest.err conftest.$ac_objext \
19291    conftest$ac_exeext conftest.$ac_ext
19292          CFLAGS="$tmp_save_CFLAGS"
19293        fi
19294      fi
19295      ;;
19296    SUNPRO_C)
19297      if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
19298        tmp_EXTERN="__global"
19299        tmp_CFLAGS="-xldscope=hidden"
19300        supports_symbol_hiding="yes"
19301      fi
19302      ;;
19303  esac
19304  if test "$supports_symbol_hiding" = "yes"; then
19305    tmp_save_CFLAGS="$CFLAGS"
19306    CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19307    squeeze CFLAGS
19308    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309/* end confdefs.h.  */
19310
19311
19312        $tmp_EXTERN char *dummy(char *buff);
19313        char *dummy(char *buff)
19314        {
19315         if(buff)
19316           return ++buff;
19317         else
19318           return buff;
19319        }
19320
19321int main (void)
19322{
19323
19324        char b[16];
19325        char *r = dummy(&b[0]);
19326        if(r)
19327          return (int)*r;
19328
19329 ;
19330 return 0;
19331}
19332
19333_ACEOF
19334if ac_fn_c_try_compile "$LINENO"; then :
19335
19336      supports_symbol_hiding="yes"
19337      if test -f conftest.err; then
19338        grep 'visibility' conftest.err >/dev/null
19339        if test "$?" -eq "0"; then
19340          supports_symbol_hiding="no"
19341        fi
19342      fi
19343
19344else
19345
19346      supports_symbol_hiding="no"
19347      echo " " >&6
19348      sed 's/^/cc-src: /' conftest.$ac_ext >&6
19349      sed 's/^/cc-err: /' conftest.err >&6
19350      echo " " >&6
19351
19352fi
19353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354    CFLAGS="$tmp_save_CFLAGS"
19355  fi
19356  if test "$supports_symbol_hiding" = "yes"; then
19357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19358$as_echo "yes" >&6; }
19359    symbol_hiding_CFLAGS="$tmp_CFLAGS"
19360    symbol_hiding_EXTERN="$tmp_EXTERN"
19361  else
19362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19363$as_echo "no" >&6; }
19364  fi
19365
19366
19367
19368      supports_curldebug="unknown"
19369  if test "$want_curldebug" = "yes"; then
19370    if test "x$enable_shared" != "xno" &&
19371      test "x$enable_shared" != "xyes"; then
19372      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
19373$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
19374      supports_curldebug="no"
19375    fi
19376    if test "x$enable_static" != "xno" &&
19377      test "x$enable_static" != "xyes"; then
19378      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
19379$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
19380      supports_curldebug="no"
19381    fi
19382    if test "$supports_curldebug" != "no"; then
19383      if test "$enable_shared" = "yes" &&
19384        test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
19385        supports_curldebug="no"
19386        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
19387$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
19388      fi
19389    fi
19390  fi
19391  #
19392  if test "$want_curldebug" = "yes"; then
19393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
19394$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
19395    test "$supports_curldebug" = "no" || supports_curldebug="yes"
19396    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
19397$as_echo "$supports_curldebug" >&6; }
19398    if test "$supports_curldebug" = "no"; then
19399      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
19400$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
19401      want_curldebug="no"
19402    fi
19403  fi
19404
19405 if test x$want_curldebug = xyes; then
19406  CURLDEBUG_TRUE=
19407  CURLDEBUG_FALSE='#'
19408else
19409  CURLDEBUG_TRUE='#'
19410  CURLDEBUG_FALSE=
19411fi
19412
19413
19414supports_unittests=yes
19415# cross-compilation of unit tests static library/programs fails when
19416# libcurl shared library is built. This might be due to a libtool or
19417# automake issue. In this case we disable unit tests.
19418if test "x$cross_compiling" != "xno" &&
19419   test "x$enable_shared" != "xno"; then
19420  supports_unittests=no
19421fi
19422
19423# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
19424# a problem related with OpenSSL headers and library versions not matching.
19425# Disable unit tests while time to further investigate this is found.
19426case $host in
19427  mips-sgi-irix6.5)
19428    if test "$compiler_id" = "GNU_C"; then
19429      supports_unittests=no
19430    fi
19431    ;;
19432esac
19433
19434# All AIX autobuilds fails unit tests linking against unittests library
19435# due to unittests library being built with no symbols or members. Libtool ?
19436# Disable unit tests while time to further investigate this is found.
19437case $host_os in
19438  aix*)
19439    supports_unittests=no
19440    ;;
19441esac
19442
19443if test "x$want_debug" = "xyes" &&
19444   test "x$supports_unittests" = "xyes"; then
19445  want_unittests=yes
19446else
19447  want_unittests=no
19448fi
19449 if test x$want_unittests = xyes; then
19450  BUILD_UNITTESTS_TRUE=
19451  BUILD_UNITTESTS_FALSE='#'
19452else
19453  BUILD_UNITTESTS_TRUE='#'
19454  BUILD_UNITTESTS_FALSE=
19455fi
19456
19457
19458
19459
19460
19461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19462$as_echo_n "checking for windows.h... " >&6; }
19463if ${curl_cv_header_windows_h+:} false; then :
19464  $as_echo_n "(cached) " >&6
19465else
19466
19467    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19468/* end confdefs.h.  */
19469
19470
19471#undef inline
19472#ifndef WIN32_LEAN_AND_MEAN
19473#define WIN32_LEAN_AND_MEAN
19474#endif
19475#include <windows.h>
19476
19477int main (void)
19478{
19479
19480#if defined(__CYGWIN__) || defined(__CEGCC__)
19481        HAVE_WINDOWS_H shall not be defined.
19482#else
19483        int dummy=2*WINVER;
19484#endif
19485
19486 ;
19487 return 0;
19488}
19489
19490_ACEOF
19491if ac_fn_c_try_compile "$LINENO"; then :
19492
19493      curl_cv_header_windows_h="yes"
19494
19495else
19496
19497      curl_cv_header_windows_h="no"
19498
19499fi
19500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501
19502fi
19503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
19504$as_echo "$curl_cv_header_windows_h" >&6; }
19505  case "$curl_cv_header_windows_h" in
19506    yes)
19507
19508cat >>confdefs.h <<_ACEOF
19509#define HAVE_WINDOWS_H 1
19510_ACEOF
19511
19512      ;;
19513  esac
19514
19515
19516    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
19517$as_echo_n "checking whether build target is a native Windows one... " >&6; }
19518if ${curl_cv_native_windows+:} false; then :
19519  $as_echo_n "(cached) " >&6
19520else
19521
19522    if test "$curl_cv_header_windows_h" = "no"; then
19523      curl_cv_native_windows="no"
19524    else
19525      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526/* end confdefs.h.  */
19527
19528
19529
19530int main (void)
19531{
19532
19533#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
19534   (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
19535          int dummy=1;
19536#else
19537          Not a native Windows build target.
19538#endif
19539
19540 ;
19541 return 0;
19542}
19543
19544_ACEOF
19545if ac_fn_c_try_compile "$LINENO"; then :
19546
19547        curl_cv_native_windows="yes"
19548
19549else
19550
19551        curl_cv_native_windows="no"
19552
19553fi
19554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19555    fi
19556
19557fi
19558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
19559$as_echo "$curl_cv_native_windows" >&6; }
19560   if test "x$curl_cv_native_windows" = xyes; then
19561  DOING_NATIVE_WINDOWS_TRUE=
19562  DOING_NATIVE_WINDOWS_FALSE='#'
19563else
19564  DOING_NATIVE_WINDOWS_TRUE='#'
19565  DOING_NATIVE_WINDOWS_FALSE=
19566fi
19567
19568
19569case X-"$curl_cv_native_windows" in
19570  X-yes)
19571
19572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19573$as_echo_n "checking for winsock.h... " >&6; }
19574if ${curl_cv_header_winsock_h+:} false; then :
19575  $as_echo_n "(cached) " >&6
19576else
19577
19578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579/* end confdefs.h.  */
19580
19581
19582#undef inline
19583#ifndef WIN32_LEAN_AND_MEAN
19584#define WIN32_LEAN_AND_MEAN
19585#endif
19586#include <windows.h>
19587#include <winsock.h>
19588
19589int main (void)
19590{
19591
19592#if defined(__CYGWIN__) || defined(__CEGCC__)
19593        HAVE_WINSOCK_H shall not be defined.
19594#else
19595        int dummy=WSACleanup();
19596#endif
19597
19598 ;
19599 return 0;
19600}
19601
19602_ACEOF
19603if ac_fn_c_try_compile "$LINENO"; then :
19604
19605      curl_cv_header_winsock_h="yes"
19606
19607else
19608
19609      curl_cv_header_winsock_h="no"
19610
19611fi
19612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613
19614fi
19615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
19616$as_echo "$curl_cv_header_winsock_h" >&6; }
19617  case "$curl_cv_header_winsock_h" in
19618    yes)
19619
19620cat >>confdefs.h <<_ACEOF
19621#define HAVE_WINSOCK_H 1
19622_ACEOF
19623
19624      ;;
19625  esac
19626
19627
19628    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19629$as_echo_n "checking for winsock2.h... " >&6; }
19630if ${curl_cv_header_winsock2_h+:} false; then :
19631  $as_echo_n "(cached) " >&6
19632else
19633
19634    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19635/* end confdefs.h.  */
19636
19637
19638#undef inline
19639#ifndef WIN32_LEAN_AND_MEAN
19640#define WIN32_LEAN_AND_MEAN
19641#endif
19642#include <windows.h>
19643#include <winsock2.h>
19644
19645int main (void)
19646{
19647
19648#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19649        HAVE_WINSOCK2_H shall not be defined.
19650#else
19651        int dummy=2*IPPROTO_ESP;
19652#endif
19653
19654 ;
19655 return 0;
19656}
19657
19658_ACEOF
19659if ac_fn_c_try_compile "$LINENO"; then :
19660
19661      curl_cv_header_winsock2_h="yes"
19662
19663else
19664
19665      curl_cv_header_winsock2_h="no"
19666
19667fi
19668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19669
19670fi
19671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
19672$as_echo "$curl_cv_header_winsock2_h" >&6; }
19673  case "$curl_cv_header_winsock2_h" in
19674    yes)
19675
19676cat >>confdefs.h <<_ACEOF
19677#define HAVE_WINSOCK2_H 1
19678_ACEOF
19679
19680      ;;
19681  esac
19682
19683
19684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
19685$as_echo_n "checking for ws2tcpip.h... " >&6; }
19686if ${curl_cv_header_ws2tcpip_h+:} false; then :
19687  $as_echo_n "(cached) " >&6
19688else
19689
19690    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691/* end confdefs.h.  */
19692
19693
19694#undef inline
19695#ifndef WIN32_LEAN_AND_MEAN
19696#define WIN32_LEAN_AND_MEAN
19697#endif
19698#include <windows.h>
19699#include <winsock2.h>
19700#include <ws2tcpip.h>
19701
19702int main (void)
19703{
19704
19705#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19706        HAVE_WS2TCPIP_H shall not be defined.
19707#else
19708        int dummy=2*IP_PKTINFO;
19709#endif
19710
19711 ;
19712 return 0;
19713}
19714
19715_ACEOF
19716if ac_fn_c_try_compile "$LINENO"; then :
19717
19718      curl_cv_header_ws2tcpip_h="yes"
19719
19720else
19721
19722      curl_cv_header_ws2tcpip_h="no"
19723
19724fi
19725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19726
19727fi
19728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
19729$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
19730  case "$curl_cv_header_ws2tcpip_h" in
19731    yes)
19732
19733cat >>confdefs.h <<_ACEOF
19734#define HAVE_WS2TCPIP_H 1
19735_ACEOF
19736
19737      ;;
19738  esac
19739
19740
19741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
19742$as_echo_n "checking for winldap.h... " >&6; }
19743if ${curl_cv_header_winldap_h+:} false; then :
19744  $as_echo_n "(cached) " >&6
19745else
19746
19747    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19748/* end confdefs.h.  */
19749
19750
19751#undef inline
19752#ifdef HAVE_WINDOWS_H
19753#ifndef WIN32_LEAN_AND_MEAN
19754#define WIN32_LEAN_AND_MEAN
19755#endif
19756#include <windows.h>
19757#endif
19758#include <winldap.h>
19759
19760int main (void)
19761{
19762
19763#if defined(__CYGWIN__) || defined(__CEGCC__)
19764        HAVE_WINLDAP_H shall not be defined.
19765#else
19766        LDAP *ldp = ldap_init("dummy", LDAP_PORT);
19767        ULONG res = ldap_unbind(ldp);
19768#endif
19769
19770 ;
19771 return 0;
19772}
19773
19774_ACEOF
19775if ac_fn_c_try_compile "$LINENO"; then :
19776
19777      curl_cv_header_winldap_h="yes"
19778
19779else
19780
19781      curl_cv_header_winldap_h="no"
19782
19783fi
19784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19785
19786fi
19787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
19788$as_echo "$curl_cv_header_winldap_h" >&6; }
19789  case "$curl_cv_header_winldap_h" in
19790    yes)
19791
19792cat >>confdefs.h <<_ACEOF
19793#define HAVE_WINLDAP_H 1
19794_ACEOF
19795
19796      ;;
19797  esac
19798
19799
19800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19801$as_echo_n "checking for winber.h... " >&6; }
19802if ${curl_cv_header_winber_h+:} false; then :
19803  $as_echo_n "(cached) " >&6
19804else
19805
19806    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807/* end confdefs.h.  */
19808
19809
19810#undef inline
19811#ifdef HAVE_WINDOWS_H
19812#ifndef WIN32_LEAN_AND_MEAN
19813#define WIN32_LEAN_AND_MEAN
19814#endif
19815#include <windows.h>
19816#endif
19817#include <winldap.h>
19818#include <winber.h>
19819
19820int main (void)
19821{
19822
19823#if defined(__CYGWIN__) || defined(__CEGCC__)
19824        HAVE_WINBER_H shall not be defined.
19825#else
19826        BERVAL *bvp = NULL;
19827        BerElement *bep = ber_init(bvp);
19828        ber_free(bep, 1);
19829#endif
19830
19831 ;
19832 return 0;
19833}
19834
19835_ACEOF
19836if ac_fn_c_try_compile "$LINENO"; then :
19837
19838      curl_cv_header_winber_h="yes"
19839
19840else
19841
19842      curl_cv_header_winber_h="no"
19843
19844fi
19845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19846
19847fi
19848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19849$as_echo "$curl_cv_header_winber_h" >&6; }
19850  case "$curl_cv_header_winber_h" in
19851    yes)
19852
19853cat >>confdefs.h <<_ACEOF
19854#define HAVE_WINBER_H 1
19855_ACEOF
19856
19857      ;;
19858  esac
19859
19860    ;;
19861  *)
19862    curl_cv_header_winsock_h="no"
19863    curl_cv_header_winsock2_h="no"
19864    curl_cv_header_ws2tcpip_h="no"
19865    curl_cv_header_winldap_h="no"
19866    curl_cv_header_winber_h="no"
19867    ;;
19868esac
19869
19870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19871$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19872  curl_win32_file_api="no"
19873  if test "$curl_cv_header_windows_h" = "yes"; then
19874    if test x"$enable_largefile" != "xno"; then
19875      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19876/* end confdefs.h.  */
19877
19878
19879
19880int main (void)
19881{
19882
19883#if !defined(_WIN32_WCE) && \
19884    (defined(__MINGW32__) || \
19885    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19886          int dummy=1;
19887#else
19888          WIN32 large file API not supported.
19889#endif
19890
19891 ;
19892 return 0;
19893}
19894
19895_ACEOF
19896if ac_fn_c_try_compile "$LINENO"; then :
19897
19898        curl_win32_file_api="win32_large_files"
19899
19900fi
19901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19902    fi
19903    if test "$curl_win32_file_api" = "no"; then
19904      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905/* end confdefs.h.  */
19906
19907
19908
19909int main (void)
19910{
19911
19912#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19913          int dummy=1;
19914#else
19915          WIN32 small file API not supported.
19916#endif
19917
19918 ;
19919 return 0;
19920}
19921
19922_ACEOF
19923if ac_fn_c_try_compile "$LINENO"; then :
19924
19925        curl_win32_file_api="win32_small_files"
19926
19927fi
19928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929    fi
19930  fi
19931  case "$curl_win32_file_api" in
19932    win32_large_files)
19933      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19934$as_echo "yes (large file enabled)" >&6; }
19935
19936cat >>confdefs.h <<_ACEOF
19937#define USE_WIN32_LARGE_FILES 1
19938_ACEOF
19939
19940      ;;
19941    win32_small_files)
19942      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19943$as_echo "yes (large file disabled)" >&6; }
19944
19945cat >>confdefs.h <<_ACEOF
19946#define USE_WIN32_SMALL_FILES 1
19947_ACEOF
19948
19949      ;;
19950    *)
19951      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19952$as_echo "no" >&6; }
19953      ;;
19954  esac
19955
19956
19957
19958
19959  tst_cflags="no"
19960  case $host_os in
19961    darwin*)
19962      tst_cflags="yes"
19963      ;;
19964  esac
19965
19966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19967$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19969$as_echo "$tst_cflags" >&6; };
19970
19971  if test "$tst_cflags" = "yes"; then
19972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19973$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19974    min=""
19975    if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19976      min="-mmacosx-version-min=10.8"
19977      CFLAGS="$CFLAGS $min"
19978    fi
19979    if test -z "$min"; then
19980      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19981$as_echo "set by user" >&6; }
19982    else
19983      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19984$as_echo "$min set" >&6; }
19985    fi
19986
19987    old_CFLAGS=$CFLAGS
19988    CFLAGS="$CFLAGS -Werror=partial-availability"
19989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19990$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19991    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992/* end confdefs.h.  */
19993
19994int main (void)
19995{
19996
19997 ;
19998 return 0;
19999}
20000_ACEOF
20001if ac_fn_c_try_compile "$LINENO"; then :
20002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20003$as_echo "yes" >&6; }
20004else
20005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20006$as_echo "no" >&6; }
20007      CFLAGS=$old_CFLAGS
20008fi
20009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010  fi
20011
20012
20013
20014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
20015$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
20016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017/* end confdefs.h.  */
20018
20019
20020#include <stdlib.h>
20021
20022int main (void)
20023{
20024
20025      if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
20026
20027 ;
20028 return 0;
20029}
20030
20031_ACEOF
20032if ac_fn_c_try_compile "$LINENO"; then :
20033
20034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20035$as_echo "yes" >&6; }
20036
20037cat >>confdefs.h <<_ACEOF
20038#define HAVE_BUILTIN_AVAILABLE 1
20039_ACEOF
20040
20041
20042else
20043
20044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045$as_echo "no" >&6; }
20046
20047fi
20048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20049
20050
20051
20052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
20053$as_echo_n "checking whether to support http... " >&6; }
20054# Check whether --enable-http was given.
20055if test "${enable_http+set}" = set; then :
20056  enableval=$enable_http;  case "$enableval" in
20057  no)
20058       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20059$as_echo "no" >&6; }
20060
20061$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
20062
20063       disable_http="yes"
20064       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
20065$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
20066       CURL_DISABLE_HTTP=1
20067
20068
20069$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
20070
20071       CURL_DISABLE_RTSP=1
20072
20073       ;;
20074  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20075$as_echo "yes" >&6; }
20076       ;;
20077  esac
20078else
20079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20080$as_echo "yes" >&6; }
20081
20082fi
20083
20084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
20085$as_echo_n "checking whether to support ftp... " >&6; }
20086# Check whether --enable-ftp was given.
20087if test "${enable_ftp+set}" = set; then :
20088  enableval=$enable_ftp;  case "$enableval" in
20089  no)
20090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20091$as_echo "no" >&6; }
20092
20093$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
20094
20095       CURL_DISABLE_FTP=1
20096
20097       ;;
20098  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20099$as_echo "yes" >&6; }
20100       ;;
20101  esac
20102else
20103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20104$as_echo "yes" >&6; }
20105
20106fi
20107
20108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
20109$as_echo_n "checking whether to support file... " >&6; }
20110# Check whether --enable-file was given.
20111if test "${enable_file+set}" = set; then :
20112  enableval=$enable_file;  case "$enableval" in
20113  no)
20114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20115$as_echo "no" >&6; }
20116
20117$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
20118
20119       CURL_DISABLE_FILE=1
20120
20121       ;;
20122  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20123$as_echo "yes" >&6; }
20124       ;;
20125  esac
20126else
20127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20128$as_echo "yes" >&6; }
20129
20130fi
20131
20132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
20133$as_echo_n "checking whether to support ldap... " >&6; }
20134# Check whether --enable-ldap was given.
20135if test "${enable_ldap+set}" = set; then :
20136  enableval=$enable_ldap;  case "$enableval" in
20137  no)
20138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20139$as_echo "no" >&6; }
20140
20141$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20142
20143       CURL_DISABLE_LDAP=1
20144
20145       ;;
20146  *)
20147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20148$as_echo "yes" >&6; }
20149       ;;
20150  esac
20151else
20152
20153       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20154$as_echo "yes" >&6; }
20155
20156fi
20157
20158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
20159$as_echo_n "checking whether to support ldaps... " >&6; }
20160# Check whether --enable-ldaps was given.
20161if test "${enable_ldaps+set}" = set; then :
20162  enableval=$enable_ldaps;  case "$enableval" in
20163  no)
20164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165$as_echo "no" >&6; }
20166
20167$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20168
20169       CURL_DISABLE_LDAPS=1
20170
20171       ;;
20172  *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
20173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
20174$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
20175
20176$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20177
20178         CURL_DISABLE_LDAPS=1
20179
20180       else
20181         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20182$as_echo "yes" >&6; }
20183
20184$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
20185
20186         HAVE_LDAP_SSL=1
20187
20188       fi
20189       ;;
20190  esac
20191else
20192
20193       if test "x$CURL_DISABLE_LDAP" = "x1" ; then
20194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20195$as_echo "no" >&6; }
20196
20197$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20198
20199         CURL_DISABLE_LDAPS=1
20200
20201       else
20202         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20203$as_echo "yes" >&6; }
20204
20205$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
20206
20207         HAVE_LDAP_SSL=1
20208
20209       fi
20210
20211fi
20212
20213
20214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
20215$as_echo_n "checking whether to support rtsp... " >&6; }
20216# Check whether --enable-rtsp was given.
20217if test "${enable_rtsp+set}" = set; then :
20218  enableval=$enable_rtsp;  case "$enableval" in
20219  no)
20220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20221$as_echo "no" >&6; }
20222
20223$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
20224
20225       CURL_DISABLE_RTSP=1
20226
20227       ;;
20228  *)   if test x$CURL_DISABLE_HTTP = x1 ; then
20229          as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
20230       else
20231          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20232$as_echo "yes" >&6; }
20233          curl_rtsp_msg="enabled"
20234       fi
20235       ;;
20236  esac
20237else
20238  if test "x$CURL_DISABLE_HTTP" != "x1"; then
20239          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20240$as_echo "yes" >&6; }
20241          curl_rtsp_msg="enabled"
20242       else
20243          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244$as_echo "no" >&6; }
20245       fi
20246
20247fi
20248
20249
20250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
20251$as_echo_n "checking whether to support proxies... " >&6; }
20252# Check whether --enable-proxy was given.
20253if test "${enable_proxy+set}" = set; then :
20254  enableval=$enable_proxy;  case "$enableval" in
20255  no)
20256       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20257$as_echo "no" >&6; }
20258
20259$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
20260
20261       CURL_DISABLE_PROXY=1
20262
20263       https_proxy="no"
20264       ;;
20265  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20266$as_echo "yes" >&6; }
20267       ;;
20268  esac
20269else
20270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20271$as_echo "yes" >&6; }
20272
20273fi
20274
20275
20276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
20277$as_echo_n "checking whether to support dict... " >&6; }
20278# Check whether --enable-dict was given.
20279if test "${enable_dict+set}" = set; then :
20280  enableval=$enable_dict;  case "$enableval" in
20281  no)
20282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283$as_echo "no" >&6; }
20284
20285$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
20286
20287       CURL_DISABLE_DICT=1
20288
20289       ;;
20290  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20291$as_echo "yes" >&6; }
20292       ;;
20293  esac
20294else
20295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20296$as_echo "yes" >&6; }
20297
20298fi
20299
20300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
20301$as_echo_n "checking whether to support telnet... " >&6; }
20302# Check whether --enable-telnet was given.
20303if test "${enable_telnet+set}" = set; then :
20304  enableval=$enable_telnet;  case "$enableval" in
20305  no)
20306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20307$as_echo "no" >&6; }
20308
20309$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
20310
20311       CURL_DISABLE_TELNET=1
20312
20313       ;;
20314  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20315$as_echo "yes" >&6; }
20316       ;;
20317  esac
20318else
20319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20320$as_echo "yes" >&6; }
20321
20322fi
20323
20324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
20325$as_echo_n "checking whether to support tftp... " >&6; }
20326# Check whether --enable-tftp was given.
20327if test "${enable_tftp+set}" = set; then :
20328  enableval=$enable_tftp;  case "$enableval" in
20329  no)
20330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20331$as_echo "no" >&6; }
20332
20333$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
20334
20335       CURL_DISABLE_TFTP=1
20336
20337       ;;
20338  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20339$as_echo "yes" >&6; }
20340       ;;
20341  esac
20342else
20343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20344$as_echo "yes" >&6; }
20345
20346fi
20347
20348
20349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
20350$as_echo_n "checking whether to support pop3... " >&6; }
20351# Check whether --enable-pop3 was given.
20352if test "${enable_pop3+set}" = set; then :
20353  enableval=$enable_pop3;  case "$enableval" in
20354  no)
20355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20356$as_echo "no" >&6; }
20357
20358$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
20359
20360       CURL_DISABLE_POP3=1
20361
20362       ;;
20363  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20364$as_echo "yes" >&6; }
20365       ;;
20366  esac
20367else
20368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20369$as_echo "yes" >&6; }
20370
20371fi
20372
20373
20374
20375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
20376$as_echo_n "checking whether to support imap... " >&6; }
20377# Check whether --enable-imap was given.
20378if test "${enable_imap+set}" = set; then :
20379  enableval=$enable_imap;  case "$enableval" in
20380  no)
20381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20382$as_echo "no" >&6; }
20383
20384$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
20385
20386       CURL_DISABLE_IMAP=1
20387
20388       ;;
20389  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20390$as_echo "yes" >&6; }
20391       ;;
20392  esac
20393else
20394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20395$as_echo "yes" >&6; }
20396
20397fi
20398
20399
20400
20401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
20402$as_echo_n "checking whether to support smb... " >&6; }
20403# Check whether --enable-smb was given.
20404if test "${enable_smb+set}" = set; then :
20405  enableval=$enable_smb;  case "$enableval" in
20406  no)
20407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20408$as_echo "no" >&6; }
20409
20410$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
20411
20412       CURL_DISABLE_SMB=1
20413
20414       ;;
20415  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20416$as_echo "yes" >&6; }
20417       ;;
20418  esac
20419else
20420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20421$as_echo "yes" >&6; }
20422
20423fi
20424
20425
20426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
20427$as_echo_n "checking whether to support smtp... " >&6; }
20428# Check whether --enable-smtp was given.
20429if test "${enable_smtp+set}" = set; then :
20430  enableval=$enable_smtp;  case "$enableval" in
20431  no)
20432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433$as_echo "no" >&6; }
20434
20435$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
20436
20437       CURL_DISABLE_SMTP=1
20438
20439       ;;
20440  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20441$as_echo "yes" >&6; }
20442       ;;
20443  esac
20444else
20445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20446$as_echo "yes" >&6; }
20447
20448fi
20449
20450
20451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
20452$as_echo_n "checking whether to support gopher... " >&6; }
20453# Check whether --enable-gopher was given.
20454if test "${enable_gopher+set}" = set; then :
20455  enableval=$enable_gopher;  case "$enableval" in
20456  no)
20457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20458$as_echo "no" >&6; }
20459
20460$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
20461
20462       CURL_DISABLE_GOPHER=1
20463
20464       ;;
20465  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20466$as_echo "yes" >&6; }
20467       ;;
20468  esac
20469else
20470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20471$as_echo "yes" >&6; }
20472
20473fi
20474
20475
20476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
20477$as_echo_n "checking whether to support mqtt... " >&6; }
20478# Check whether --enable-mqtt was given.
20479if test "${enable_mqtt+set}" = set; then :
20480  enableval=$enable_mqtt;  case "$enableval" in
20481  no)
20482       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20483$as_echo "no" >&6; }
20484
20485$as_echo "#define CURL_DISABLE_MQTT 1" >>confdefs.h
20486
20487       CURL_DISABLE_MQTT=1
20488
20489       ;;
20490  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20491$as_echo "yes" >&6; }
20492       ;;
20493  esac
20494else
20495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20496$as_echo "no" >&6; }
20497
20498fi
20499
20500
20501
20502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
20503$as_echo_n "checking whether to provide built-in manual... " >&6; }
20504# Check whether --enable-manual was given.
20505if test "${enable_manual+set}" = set; then :
20506  enableval=$enable_manual;  case "$enableval" in
20507  no)
20508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20509$as_echo "no" >&6; }
20510       ;;
20511  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20512$as_echo "yes" >&6; }
20513       USE_MANUAL="1"
20514       ;;
20515  esac
20516else
20517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20518$as_echo "yes" >&6; }
20519       USE_MANUAL="1"
20520
20521fi
20522
20523
20524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
20525$as_echo_n "checking whether to enable generation of C code... " >&6; }
20526# Check whether --enable-libcurl_option was given.
20527if test "${enable_libcurl_option+set}" = set; then :
20528  enableval=$enable_libcurl_option;  case "$enableval" in
20529  no)
20530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20531$as_echo "no" >&6; }
20532
20533$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
20534
20535       curl_libcurl_msg="no"
20536       ;;
20537  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20538$as_echo "yes" >&6; }
20539       ;;
20540  esac
20541else
20542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20543$as_echo "yes" >&6; }
20544
20545fi
20546
20547
20548
20549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
20550$as_echo_n "checking whether to use libgcc... " >&6; }
20551# Check whether --enable-libgcc was given.
20552if test "${enable_libgcc+set}" = set; then :
20553  enableval=$enable_libgcc;  case "$enableval" in
20554  yes)
20555       LIBS="-lgcc $LIBS"
20556       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20557$as_echo "yes" >&6; }
20558       ;;
20559  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20560$as_echo "no" >&6; }
20561       ;;
20562  esac
20563else
20564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20565$as_echo "no" >&6; }
20566
20567fi
20568
20569
20570
20571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
20572$as_echo_n "checking if X/Open network library is required... " >&6; }
20573  tst_lib_xnet_required="no"
20574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575/* end confdefs.h.  */
20576
20577
20578int main (void)
20579{
20580#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
20581  return 0;
20582#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
20583  return 0;
20584#else
20585  force compilation error
20586#endif
20587}
20588
20589
20590_ACEOF
20591if ac_fn_c_try_compile "$LINENO"; then :
20592
20593    tst_lib_xnet_required="yes"
20594    LIBS="-lxnet $LIBS"
20595
20596fi
20597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
20599$as_echo "$tst_lib_xnet_required" >&6; }
20600
20601
20602ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20603if test "x$ac_cv_func_gethostbyname" = xyes; then :
20604  HAVE_GETHOSTBYNAME="1"
20605
20606else
20607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20608$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20609if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20610  $as_echo_n "(cached) " >&6
20611else
20612  ac_check_lib_save_LIBS=$LIBS
20613LIBS="-lnsl  $LIBS"
20614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20615/* end confdefs.h.  */
20616
20617
20618#ifdef __cplusplus
20619extern "C"
20620#endif
20621char gethostbyname ();
20622int main (void)
20623{
20624return gethostbyname ();
20625 ;
20626 return 0;
20627}
20628_ACEOF
20629if ac_fn_c_try_link "$LINENO"; then :
20630  ac_cv_lib_nsl_gethostbyname=yes
20631else
20632  ac_cv_lib_nsl_gethostbyname=no
20633fi
20634rm -f core conftest.err conftest.$ac_objext \
20635    conftest$ac_exeext conftest.$ac_ext
20636LIBS=$ac_check_lib_save_LIBS
20637fi
20638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20639$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20640if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20641  HAVE_GETHOSTBYNAME="1"
20642                             LIBS="-lnsl $LIBS"
20643
20644fi
20645
20646
20647fi
20648
20649
20650if test "$HAVE_GETHOSTBYNAME" != "1"
20651then
20652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
20653$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
20654if ${ac_cv_lib_socket_gethostbyname+:} false; then :
20655  $as_echo_n "(cached) " >&6
20656else
20657  ac_check_lib_save_LIBS=$LIBS
20658LIBS="-lsocket  $LIBS"
20659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20660/* end confdefs.h.  */
20661
20662
20663#ifdef __cplusplus
20664extern "C"
20665#endif
20666char gethostbyname ();
20667int main (void)
20668{
20669return gethostbyname ();
20670 ;
20671 return 0;
20672}
20673_ACEOF
20674if ac_fn_c_try_link "$LINENO"; then :
20675  ac_cv_lib_socket_gethostbyname=yes
20676else
20677  ac_cv_lib_socket_gethostbyname=no
20678fi
20679rm -f core conftest.err conftest.$ac_objext \
20680    conftest$ac_exeext conftest.$ac_ext
20681LIBS=$ac_check_lib_save_LIBS
20682fi
20683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
20684$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
20685if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
20686  HAVE_GETHOSTBYNAME="1"
20687               LIBS="-lsocket $LIBS"
20688
20689fi
20690
20691fi
20692
20693if test "$HAVE_GETHOSTBYNAME" != "1"
20694then
20695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
20696$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
20697if ${ac_cv_lib_watt_gethostbyname+:} false; then :
20698  $as_echo_n "(cached) " >&6
20699else
20700  ac_check_lib_save_LIBS=$LIBS
20701LIBS="-lwatt  $LIBS"
20702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703/* end confdefs.h.  */
20704
20705
20706#ifdef __cplusplus
20707extern "C"
20708#endif
20709char gethostbyname ();
20710int main (void)
20711{
20712return gethostbyname ();
20713 ;
20714 return 0;
20715}
20716_ACEOF
20717if ac_fn_c_try_link "$LINENO"; then :
20718  ac_cv_lib_watt_gethostbyname=yes
20719else
20720  ac_cv_lib_watt_gethostbyname=no
20721fi
20722rm -f core conftest.err conftest.$ac_objext \
20723    conftest$ac_exeext conftest.$ac_ext
20724LIBS=$ac_check_lib_save_LIBS
20725fi
20726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
20727$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
20728if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
20729  HAVE_GETHOSTBYNAME="1"
20730               CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
20731               LDFLAGS="-L/dev/env/WATT_ROOT/lib"
20732               LIBS="-lwatt $LIBS"
20733
20734fi
20735
20736fi
20737
20738if test "$HAVE_GETHOSTBYNAME" != "1"
20739then
20740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
20741$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
20742  my_ac_save_LIBS=$LIBS
20743  LIBS="-lnsl -lsocket $LIBS"
20744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745/* end confdefs.h.  */
20746
20747
20748
20749int main (void)
20750{
20751
20752      gethostbyname();
20753
20754 ;
20755 return 0;
20756}
20757
20758_ACEOF
20759if ac_fn_c_try_link "$LINENO"; then :
20760
20761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20762$as_echo "yes" >&6; }
20763    HAVE_GETHOSTBYNAME="1"
20764
20765else
20766
20767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20768$as_echo "no" >&6; }
20769    LIBS=$my_ac_save_LIBS
20770
20771fi
20772rm -f core conftest.err conftest.$ac_objext \
20773    conftest$ac_exeext conftest.$ac_ext
20774fi
20775
20776if test "$HAVE_GETHOSTBYNAME" != "1"
20777then
20778    if test "$curl_cv_header_windows_h" = "yes"; then
20779    if test "$curl_cv_header_winsock_h" = "yes"; then
20780      case $host in
20781        *-*-mingw32ce*)
20782          winsock_LIB="-lwinsock"
20783          ;;
20784        *)
20785          winsock_LIB="-lwsock32"
20786          ;;
20787      esac
20788    fi
20789    if test "$curl_cv_header_winsock2_h" = "yes"; then
20790      winsock_LIB="-lws2_32"
20791    fi
20792    if test ! -z "$winsock_LIB"; then
20793      my_ac_save_LIBS=$LIBS
20794      LIBS="$winsock_LIB $LIBS"
20795      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
20796$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
20797      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798/* end confdefs.h.  */
20799
20800
20801#ifdef HAVE_WINDOWS_H
20802#ifndef WIN32_LEAN_AND_MEAN
20803#define WIN32_LEAN_AND_MEAN
20804#endif
20805#include <windows.h>
20806#ifdef HAVE_WINSOCK2_H
20807#include <winsock2.h>
20808#else
20809#ifdef HAVE_WINSOCK_H
20810#include <winsock.h>
20811#endif
20812#endif
20813#endif
20814
20815int main (void)
20816{
20817
20818          gethostbyname("www.dummysite.com");
20819
20820 ;
20821 return 0;
20822}
20823
20824_ACEOF
20825if ac_fn_c_try_link "$LINENO"; then :
20826
20827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20828$as_echo "yes" >&6; }
20829        HAVE_GETHOSTBYNAME="1"
20830
20831else
20832
20833        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20834$as_echo "no" >&6; }
20835        winsock_LIB=""
20836        LIBS=$my_ac_save_LIBS
20837
20838fi
20839rm -f core conftest.err conftest.$ac_objext \
20840    conftest$ac_exeext conftest.$ac_ext
20841    fi
20842  fi
20843fi
20844
20845if test "$HAVE_GETHOSTBYNAME" != "1"
20846then
20847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20848$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20850/* end confdefs.h.  */
20851
20852
20853/* Older Minix versions may need <net/gen/netdb.h> here instead */
20854#include <netdb.h>
20855
20856int main (void)
20857{
20858
20859      gethostbyname("www.dummysite.com");
20860
20861 ;
20862 return 0;
20863}
20864
20865_ACEOF
20866if ac_fn_c_try_link "$LINENO"; then :
20867
20868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20869$as_echo "yes" >&6; }
20870    HAVE_GETHOSTBYNAME="1"
20871
20872else
20873
20874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20875$as_echo "no" >&6; }
20876
20877fi
20878rm -f core conftest.err conftest.$ac_objext \
20879    conftest$ac_exeext conftest.$ac_ext
20880fi
20881
20882if test "$HAVE_GETHOSTBYNAME" != "1"
20883then
20884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20885$as_echo_n "checking for gethostbyname for eCos... " >&6; }
20886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20887/* end confdefs.h.  */
20888
20889
20890#include <stdio.h>
20891#include <netdb.h>
20892
20893int main (void)
20894{
20895
20896      gethostbyname("www.dummysite.com");
20897
20898 ;
20899 return 0;
20900}
20901
20902_ACEOF
20903if ac_fn_c_try_link "$LINENO"; then :
20904
20905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20906$as_echo "yes" >&6; }
20907    HAVE_GETHOSTBYNAME="1"
20908
20909else
20910
20911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20912$as_echo "no" >&6; }
20913
20914fi
20915rm -f core conftest.err conftest.$ac_objext \
20916    conftest$ac_exeext conftest.$ac_ext
20917fi
20918
20919if test "$HAVE_GETHOSTBYNAME" != "1"
20920then
20921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
20922$as_echo_n "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
20923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924/* end confdefs.h.  */
20925
20926
20927#include <proto/bsdsocket.h>
20928struct Library *SocketBase = NULL;
20929
20930int main (void)
20931{
20932
20933      gethostbyname("www.dummysite.com");
20934
20935 ;
20936 return 0;
20937}
20938
20939_ACEOF
20940if ac_fn_c_try_link "$LINENO"; then :
20941
20942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20943$as_echo "yes" >&6; }
20944    HAVE_GETHOSTBYNAME="1"
20945    HAVE_PROTO_BSDSOCKET_H="1"
20946
20947$as_echo "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
20948
20949    HAVE_PROTO_BSDSOCKET_H=1
20950
20951
20952else
20953
20954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20955$as_echo "no" >&6; }
20956
20957fi
20958rm -f core conftest.err conftest.$ac_objext \
20959    conftest$ac_exeext conftest.$ac_ext
20960fi
20961
20962if test "$HAVE_GETHOSTBYNAME" != "1"
20963then
20964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20965$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20966if ${ac_cv_lib_network_gethostbyname+:} false; then :
20967  $as_echo_n "(cached) " >&6
20968else
20969  ac_check_lib_save_LIBS=$LIBS
20970LIBS="-lnetwork  $LIBS"
20971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20972/* end confdefs.h.  */
20973
20974
20975#ifdef __cplusplus
20976extern "C"
20977#endif
20978char gethostbyname ();
20979int main (void)
20980{
20981return gethostbyname ();
20982 ;
20983 return 0;
20984}
20985_ACEOF
20986if ac_fn_c_try_link "$LINENO"; then :
20987  ac_cv_lib_network_gethostbyname=yes
20988else
20989  ac_cv_lib_network_gethostbyname=no
20990fi
20991rm -f core conftest.err conftest.$ac_objext \
20992    conftest$ac_exeext conftest.$ac_ext
20993LIBS=$ac_check_lib_save_LIBS
20994fi
20995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20996$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20997if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20998  HAVE_GETHOSTBYNAME="1"
20999               LIBS="-lnetwork $LIBS"
21000
21001fi
21002
21003fi
21004
21005if test "$HAVE_GETHOSTBYNAME" != "1"
21006then
21007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
21008$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
21009if ${ac_cv_lib_net_gethostbyname+:} false; then :
21010  $as_echo_n "(cached) " >&6
21011else
21012  ac_check_lib_save_LIBS=$LIBS
21013LIBS="-lnet  $LIBS"
21014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015/* end confdefs.h.  */
21016
21017
21018#ifdef __cplusplus
21019extern "C"
21020#endif
21021char gethostbyname ();
21022int main (void)
21023{
21024return gethostbyname ();
21025 ;
21026 return 0;
21027}
21028_ACEOF
21029if ac_fn_c_try_link "$LINENO"; then :
21030  ac_cv_lib_net_gethostbyname=yes
21031else
21032  ac_cv_lib_net_gethostbyname=no
21033fi
21034rm -f core conftest.err conftest.$ac_objext \
21035    conftest$ac_exeext conftest.$ac_ext
21036LIBS=$ac_check_lib_save_LIBS
21037fi
21038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
21039$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
21040if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
21041  HAVE_GETHOSTBYNAME="1"
21042               LIBS="-lnet $LIBS"
21043
21044fi
21045
21046fi
21047
21048
21049if test "$HAVE_GETHOSTBYNAME" != "1"; then
21050  as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
21051fi
21052
21053
21054curl_includes_winsock2="\
21055/* includes start */
21056#ifdef HAVE_WINDOWS_H
21057#  ifndef WIN32_LEAN_AND_MEAN
21058#    define WIN32_LEAN_AND_MEAN
21059#  endif
21060#  include <windows.h>
21061#  ifdef HAVE_WINSOCK2_H
21062#    include <winsock2.h>
21063#  else
21064#    ifdef HAVE_WINSOCK_H
21065#      include <winsock.h>
21066#    endif
21067#  endif
21068#endif
21069/* includes end */"
21070
21071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21072$as_echo_n "checking for windows.h... " >&6; }
21073if ${curl_cv_header_windows_h+:} false; then :
21074  $as_echo_n "(cached) " >&6
21075else
21076
21077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21078/* end confdefs.h.  */
21079
21080
21081#undef inline
21082#ifndef WIN32_LEAN_AND_MEAN
21083#define WIN32_LEAN_AND_MEAN
21084#endif
21085#include <windows.h>
21086
21087int main (void)
21088{
21089
21090#if defined(__CYGWIN__) || defined(__CEGCC__)
21091        HAVE_WINDOWS_H shall not be defined.
21092#else
21093        int dummy=2*WINVER;
21094#endif
21095
21096 ;
21097 return 0;
21098}
21099
21100_ACEOF
21101if ac_fn_c_try_compile "$LINENO"; then :
21102
21103      curl_cv_header_windows_h="yes"
21104
21105else
21106
21107      curl_cv_header_windows_h="no"
21108
21109fi
21110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111
21112fi
21113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
21114$as_echo "$curl_cv_header_windows_h" >&6; }
21115  case "$curl_cv_header_windows_h" in
21116    yes)
21117
21118cat >>confdefs.h <<_ACEOF
21119#define HAVE_WINDOWS_H 1
21120_ACEOF
21121
21122      ;;
21123  esac
21124
21125
21126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
21127$as_echo_n "checking for winsock.h... " >&6; }
21128if ${curl_cv_header_winsock_h+:} false; then :
21129  $as_echo_n "(cached) " >&6
21130else
21131
21132    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21133/* end confdefs.h.  */
21134
21135
21136#undef inline
21137#ifndef WIN32_LEAN_AND_MEAN
21138#define WIN32_LEAN_AND_MEAN
21139#endif
21140#include <windows.h>
21141#include <winsock.h>
21142
21143int main (void)
21144{
21145
21146#if defined(__CYGWIN__) || defined(__CEGCC__)
21147        HAVE_WINSOCK_H shall not be defined.
21148#else
21149        int dummy=WSACleanup();
21150#endif
21151
21152 ;
21153 return 0;
21154}
21155
21156_ACEOF
21157if ac_fn_c_try_compile "$LINENO"; then :
21158
21159      curl_cv_header_winsock_h="yes"
21160
21161else
21162
21163      curl_cv_header_winsock_h="no"
21164
21165fi
21166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167
21168fi
21169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
21170$as_echo "$curl_cv_header_winsock_h" >&6; }
21171  case "$curl_cv_header_winsock_h" in
21172    yes)
21173
21174cat >>confdefs.h <<_ACEOF
21175#define HAVE_WINSOCK_H 1
21176_ACEOF
21177
21178      ;;
21179  esac
21180
21181
21182    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21183$as_echo_n "checking for winsock2.h... " >&6; }
21184if ${curl_cv_header_winsock2_h+:} false; then :
21185  $as_echo_n "(cached) " >&6
21186else
21187
21188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21189/* end confdefs.h.  */
21190
21191
21192#undef inline
21193#ifndef WIN32_LEAN_AND_MEAN
21194#define WIN32_LEAN_AND_MEAN
21195#endif
21196#include <windows.h>
21197#include <winsock2.h>
21198
21199int main (void)
21200{
21201
21202#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21203        HAVE_WINSOCK2_H shall not be defined.
21204#else
21205        int dummy=2*IPPROTO_ESP;
21206#endif
21207
21208 ;
21209 return 0;
21210}
21211
21212_ACEOF
21213if ac_fn_c_try_compile "$LINENO"; then :
21214
21215      curl_cv_header_winsock2_h="yes"
21216
21217else
21218
21219      curl_cv_header_winsock2_h="no"
21220
21221fi
21222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223
21224fi
21225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
21226$as_echo "$curl_cv_header_winsock2_h" >&6; }
21227  case "$curl_cv_header_winsock2_h" in
21228    yes)
21229
21230cat >>confdefs.h <<_ACEOF
21231#define HAVE_WINSOCK2_H 1
21232_ACEOF
21233
21234      ;;
21235  esac
21236
21237
21238
21239curl_includes_bsdsocket="\
21240/* includes start */
21241#ifdef HAVE_PROTO_BSDSOCKET_H
21242#  include <proto/bsdsocket.h>
21243  struct Library *SocketBase = NULL;
21244#endif
21245/* includes end */"
21246  for ac_header in proto/bsdsocket.h
21247do :
21248  ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "      $curl_includes_bsdsocket
21249"
21250if test "x$ac_cv_header_proto_bsdsocket_h" = xyes; then :
21251  cat >>confdefs.h <<_ACEOF
21252#define HAVE_PROTO_BSDSOCKET_H 1
21253_ACEOF
21254
21255fi
21256
21257done
21258
21259
21260
21261      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
21262$as_echo_n "checking for connect in libraries... " >&6; }
21263  tst_connect_save_LIBS="$LIBS"
21264  tst_connect_need_LIBS="unknown"
21265  for tst_lib in '' '-lsocket' ; do
21266    if test "$tst_connect_need_LIBS" = "unknown"; then
21267      LIBS="$tst_lib $tst_connect_save_LIBS"
21268      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269/* end confdefs.h.  */
21270
21271
21272          $curl_includes_winsock2
21273          $curl_includes_bsdsocket
21274          #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
21275            int connect(int, void*, int);
21276          #endif
21277
21278int main (void)
21279{
21280
21281          if(0 != connect(0, 0, 0))
21282            return 1;
21283
21284 ;
21285 return 0;
21286}
21287
21288_ACEOF
21289if ac_fn_c_try_link "$LINENO"; then :
21290
21291        tst_connect_need_LIBS="$tst_lib"
21292
21293fi
21294rm -f core conftest.err conftest.$ac_objext \
21295    conftest$ac_exeext conftest.$ac_ext
21296    fi
21297  done
21298  LIBS="$tst_connect_save_LIBS"
21299  #
21300  case X-"$tst_connect_need_LIBS" in
21301    X-unknown)
21302      { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
21303$as_echo "cannot find connect" >&6; }
21304      as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
21305      ;;
21306    X-)
21307      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21308$as_echo "yes" >&6; }
21309      ;;
21310    *)
21311      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
21312$as_echo "$tst_connect_need_LIBS" >&6; }
21313      LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
21314      ;;
21315  esac
21316
21317
21318CURL_NETWORK_LIBS=$LIBS
21319
21320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21321$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21322if ${ac_cv_header_time+:} false; then :
21323  $as_echo_n "(cached) " >&6
21324else
21325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326/* end confdefs.h.  */
21327#include <sys/types.h>
21328#include <sys/time.h>
21329#include <time.h>
21330
21331int main (void)
21332{
21333if ((struct tm *) 0)
21334return 0;
21335 ;
21336 return 0;
21337}
21338_ACEOF
21339if ac_fn_c_try_compile "$LINENO"; then :
21340  ac_cv_header_time=yes
21341else
21342  ac_cv_header_time=no
21343fi
21344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345fi
21346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21347$as_echo "$ac_cv_header_time" >&6; }
21348if test $ac_cv_header_time = yes; then
21349
21350$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21351
21352fi
21353
21354
21355    for ac_header in sys/types.h sys/time.h time.h
21356do :
21357  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21358ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21360  cat >>confdefs.h <<_ACEOF
21361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21362_ACEOF
21363
21364fi
21365
21366done
21367
21368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
21369$as_echo_n "checking for monotonic clock_gettime... " >&6; }
21370  #
21371  if test "x$dontwant_rt" = "xno" ; then
21372    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21373/* end confdefs.h.  */
21374
21375
21376#ifdef HAVE_SYS_TYPES_H
21377#include <sys/types.h>
21378#endif
21379#ifdef HAVE_SYS_TIME_H
21380#include <sys/time.h>
21381#ifdef TIME_WITH_SYS_TIME
21382#include <time.h>
21383#endif
21384#else
21385#ifdef HAVE_TIME_H
21386#include <time.h>
21387#endif
21388#endif
21389
21390int main (void)
21391{
21392
21393        struct timespec ts;
21394        (void)clock_gettime(CLOCK_MONOTONIC, &ts);
21395
21396 ;
21397 return 0;
21398}
21399
21400_ACEOF
21401if ac_fn_c_try_compile "$LINENO"; then :
21402
21403      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21404$as_echo "yes" >&6; }
21405      curl_func_clock_gettime="yes"
21406
21407else
21408
21409      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21410$as_echo "no" >&6; }
21411      curl_func_clock_gettime="no"
21412
21413fi
21414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415  fi
21416
21417
21418    #
21419  if test "$curl_func_clock_gettime" = "yes"; then
21420    #
21421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
21422$as_echo_n "checking for clock_gettime in libraries... " >&6; }
21423    #
21424    curl_cv_save_LIBS="$LIBS"
21425    curl_cv_gclk_LIBS="unknown"
21426    #
21427    for x_xlibs in '' '-lrt' '-lposix4' ; do
21428      if test "$curl_cv_gclk_LIBS" = "unknown"; then
21429        if test -z "$x_xlibs"; then
21430          LIBS="$curl_cv_save_LIBS"
21431        else
21432          LIBS="$x_xlibs $curl_cv_save_LIBS"
21433        fi
21434        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21435/* end confdefs.h.  */
21436
21437
21438#ifdef HAVE_SYS_TYPES_H
21439#include <sys/types.h>
21440#endif
21441#ifdef HAVE_SYS_TIME_H
21442#include <sys/time.h>
21443#ifdef TIME_WITH_SYS_TIME
21444#include <time.h>
21445#endif
21446#else
21447#ifdef HAVE_TIME_H
21448#include <time.h>
21449#endif
21450#endif
21451
21452int main (void)
21453{
21454
21455            struct timespec ts;
21456            (void)clock_gettime(CLOCK_MONOTONIC, &ts);
21457
21458 ;
21459 return 0;
21460}
21461
21462_ACEOF
21463if ac_fn_c_try_link "$LINENO"; then :
21464
21465          curl_cv_gclk_LIBS="$x_xlibs"
21466
21467fi
21468rm -f core conftest.err conftest.$ac_objext \
21469    conftest$ac_exeext conftest.$ac_ext
21470      fi
21471    done
21472    #
21473    LIBS="$curl_cv_save_LIBS"
21474    #
21475    case X-"$curl_cv_gclk_LIBS" in
21476      X-unknown)
21477        { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
21478$as_echo "cannot find clock_gettime" >&6; }
21479        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
21480$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
21481        curl_func_clock_gettime="no"
21482        ;;
21483      X-)
21484        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21485$as_echo "no additional lib required" >&6; }
21486        curl_func_clock_gettime="yes"
21487        ;;
21488      *)
21489        if test -z "$curl_cv_save_LIBS"; then
21490          LIBS="$curl_cv_gclk_LIBS"
21491        else
21492          LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
21493        fi
21494        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
21495$as_echo "$curl_cv_gclk_LIBS" >&6; }
21496        curl_func_clock_gettime="yes"
21497        ;;
21498    esac
21499    #
21500        if test "x$cross_compiling" != "xyes" &&
21501      test "$curl_func_clock_gettime" = "yes"; then
21502      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
21503$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
21504
21505   old=$LD_LIBRARY_PATH
21506   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21507   export LD_LIBRARY_PATH
21508   if test "$cross_compiling" = yes; then :
21509  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21511as_fn_error $? "cannot run test program while cross compiling
21512See \`config.log' for more details" "$LINENO" 5; }
21513else
21514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21515/* end confdefs.h.  */
21516
21517
21518#ifdef HAVE_STDLIB_H
21519#include <stdlib.h>
21520#endif
21521#ifdef HAVE_SYS_TYPES_H
21522#include <sys/types.h>
21523#endif
21524#ifdef HAVE_SYS_TIME_H
21525#include <sys/time.h>
21526#ifdef TIME_WITH_SYS_TIME
21527#include <time.h>
21528#endif
21529#else
21530#ifdef HAVE_TIME_H
21531#include <time.h>
21532#endif
21533#endif
21534
21535int main (void)
21536{
21537
21538          struct timespec ts;
21539          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
21540            exit(0);
21541          else
21542            exit(1);
21543
21544 ;
21545 return 0;
21546}
21547
21548_ACEOF
21549if ac_fn_c_try_run "$LINENO"; then :
21550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21551$as_echo "yes" >&6; }
21552
21553else
21554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21555$as_echo "no" >&6; }
21556        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
21557$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
21558        curl_func_clock_gettime="no"
21559        LIBS="$curl_cv_save_LIBS"
21560
21561fi
21562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21563  conftest.$ac_objext conftest.beam conftest.$ac_ext
21564fi
21565
21566   LD_LIBRARY_PATH=$old # restore
21567
21568    fi
21569    #
21570    case "$curl_func_clock_gettime" in
21571      yes)
21572
21573cat >>confdefs.h <<_ACEOF
21574#define HAVE_CLOCK_GETTIME_MONOTONIC 1
21575_ACEOF
21576
21577        ;;
21578    esac
21579    #
21580  fi
21581  #
21582
21583
21584CURL_NETWORK_AND_TIME_LIBS=$LIBS
21585
21586
21587
21588clean_CPPFLAGS=$CPPFLAGS
21589clean_LDFLAGS=$LDFLAGS
21590clean_LIBS=$LIBS
21591ZLIB_LIBS=""
21592
21593# Check whether --with-zlib was given.
21594if test "${with_zlib+set}" = set; then :
21595  withval=$with_zlib; OPT_ZLIB="$withval"
21596fi
21597
21598
21599if test "$OPT_ZLIB" = "no" ; then
21600    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
21601$as_echo "$as_me: WARNING: zlib disabled" >&2;}
21602else
21603  if test "$OPT_ZLIB" = "yes" ; then
21604    OPT_ZLIB=""
21605  fi
21606
21607  if test -z "$OPT_ZLIB" ; then
21608
21609    if test -n "$PKG_CONFIG"; then
21610      PKGCONFIG="$PKG_CONFIG"
21611    else
21612      if test -n "$ac_tool_prefix"; then
21613  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21614set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21616$as_echo_n "checking for $ac_word... " >&6; }
21617if ${ac_cv_path_PKGCONFIG+:} false; then :
21618  $as_echo_n "(cached) " >&6
21619else
21620  case $PKGCONFIG in
21621  [\\/]* | ?:[\\/]*)
21622  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21623  ;;
21624  *)
21625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21626as_dummy="$PATH:/usr/bin:/usr/local/bin"
21627for as_dir in $as_dummy
21628do
21629  IFS=$as_save_IFS
21630  test -z "$as_dir" && as_dir=.
21631    for ac_exec_ext in '' $ac_executable_extensions; do
21632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21633    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21635    break 2
21636  fi
21637done
21638  done
21639IFS=$as_save_IFS
21640
21641  ;;
21642esac
21643fi
21644PKGCONFIG=$ac_cv_path_PKGCONFIG
21645if test -n "$PKGCONFIG"; then
21646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21647$as_echo "$PKGCONFIG" >&6; }
21648else
21649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21650$as_echo "no" >&6; }
21651fi
21652
21653
21654fi
21655if test -z "$ac_cv_path_PKGCONFIG"; then
21656  ac_pt_PKGCONFIG=$PKGCONFIG
21657  # Extract the first word of "pkg-config", so it can be a program name with args.
21658set dummy pkg-config; ac_word=$2
21659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21660$as_echo_n "checking for $ac_word... " >&6; }
21661if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21662  $as_echo_n "(cached) " >&6
21663else
21664  case $ac_pt_PKGCONFIG in
21665  [\\/]* | ?:[\\/]*)
21666  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21667  ;;
21668  *)
21669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21670as_dummy="$PATH:/usr/bin:/usr/local/bin"
21671for as_dir in $as_dummy
21672do
21673  IFS=$as_save_IFS
21674  test -z "$as_dir" && as_dir=.
21675    for ac_exec_ext in '' $ac_executable_extensions; do
21676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21677    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21679    break 2
21680  fi
21681done
21682  done
21683IFS=$as_save_IFS
21684
21685  ;;
21686esac
21687fi
21688ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21689if test -n "$ac_pt_PKGCONFIG"; then
21690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21691$as_echo "$ac_pt_PKGCONFIG" >&6; }
21692else
21693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21694$as_echo "no" >&6; }
21695fi
21696
21697  if test "x$ac_pt_PKGCONFIG" = x; then
21698    PKGCONFIG="no"
21699  else
21700    case $cross_compiling:$ac_tool_warned in
21701yes:)
21702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21704ac_tool_warned=yes ;;
21705esac
21706    PKGCONFIG=$ac_pt_PKGCONFIG
21707  fi
21708else
21709  PKGCONFIG="$ac_cv_path_PKGCONFIG"
21710fi
21711
21712    fi
21713
21714    if test "x$PKGCONFIG" != "xno"; then
21715      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
21716$as_echo_n "checking for zlib options with pkg-config... " >&6; }
21717            itexists=`
21718    if test -n ""; then
21719      PKG_CONFIG_LIBDIR=""
21720      export PKG_CONFIG_LIBDIR
21721    fi
21722         $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
21723
21724      if test -z "$itexists"; then
21725                        PKGCONFIG="no"
21726        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21727$as_echo "no" >&6; }
21728      else
21729        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21730$as_echo "found" >&6; }
21731      fi
21732    fi
21733
21734
21735    if test "$PKGCONFIG" != "no" ; then
21736      LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
21737      LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
21738      CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
21739      OPT_ZLIB=""
21740      HAVE_LIBZ="1"
21741    fi
21742
21743    if test -z "$HAVE_LIBZ"; then
21744
21745
21746      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
21747$as_echo_n "checking for inflateEnd in -lz... " >&6; }
21748if ${ac_cv_lib_z_inflateEnd+:} false; then :
21749  $as_echo_n "(cached) " >&6
21750else
21751  ac_check_lib_save_LIBS=$LIBS
21752LIBS="-lz  $LIBS"
21753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754/* end confdefs.h.  */
21755
21756
21757#ifdef __cplusplus
21758extern "C"
21759#endif
21760char inflateEnd ();
21761int main (void)
21762{
21763return inflateEnd ();
21764 ;
21765 return 0;
21766}
21767_ACEOF
21768if ac_fn_c_try_link "$LINENO"; then :
21769  ac_cv_lib_z_inflateEnd=yes
21770else
21771  ac_cv_lib_z_inflateEnd=no
21772fi
21773rm -f core conftest.err conftest.$ac_objext \
21774    conftest$ac_exeext conftest.$ac_ext
21775LIBS=$ac_check_lib_save_LIBS
21776fi
21777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
21778$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
21779if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
21780                     HAVE_LIBZ="1"
21781                    LIBS="-lz $LIBS"
21782else
21783                     OPT_ZLIB="/usr/local"
21784fi
21785
21786    fi
21787  fi
21788
21789    if test -n "$OPT_ZLIB"; then
21790     CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
21791     LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
21792  fi
21793
21794  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21795if test "x$ac_cv_header_zlib_h" = xyes; then :
21796
21797        HAVE_ZLIB_H="1"
21798        if test "$HAVE_LIBZ" != "1"; then
21799      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
21800$as_echo_n "checking for gzread in -lz... " >&6; }
21801if ${ac_cv_lib_z_gzread+:} false; then :
21802  $as_echo_n "(cached) " >&6
21803else
21804  ac_check_lib_save_LIBS=$LIBS
21805LIBS="-lz  $LIBS"
21806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21807/* end confdefs.h.  */
21808
21809
21810#ifdef __cplusplus
21811extern "C"
21812#endif
21813char gzread ();
21814int main (void)
21815{
21816return gzread ();
21817 ;
21818 return 0;
21819}
21820_ACEOF
21821if ac_fn_c_try_link "$LINENO"; then :
21822  ac_cv_lib_z_gzread=yes
21823else
21824  ac_cv_lib_z_gzread=no
21825fi
21826rm -f core conftest.err conftest.$ac_objext \
21827    conftest$ac_exeext conftest.$ac_ext
21828LIBS=$ac_check_lib_save_LIBS
21829fi
21830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
21831$as_echo "$ac_cv_lib_z_gzread" >&6; }
21832if test "x$ac_cv_lib_z_gzread" = xyes; then :
21833
21834                                      HAVE_LIBZ="1"
21835                   LIBS="-lz $LIBS"
21836
21837else
21838   CPPFLAGS=$clean_CPPFLAGS
21839                   LDFLAGS=$clean_LDFLAGS
21840fi
21841
21842    fi
21843
21844else
21845
21846            CPPFLAGS=$clean_CPPFLAGS
21847      LDFLAGS=$clean_LDFLAGS
21848
21849fi
21850
21851
21852
21853  if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
21854  then
21855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
21856$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
21857    HAVE_LIBZ=""
21858    CPPFLAGS=$clean_CPPFLAGS
21859    LDFLAGS=$clean_LDFLAGS
21860    LIBS=$clean_LIBS
21861  elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
21862  then
21863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
21864$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
21865    CPPFLAGS=$clean_CPPFLAGS
21866    LDFLAGS=$clean_LDFLAGS
21867    LIBS=$clean_LIBS
21868  elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
21869  then
21870
21871
21872$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
21873
21874
21875$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
21876
21877
21878    ZLIB_LIBS="-lz"
21879    LIBS="-lz $clean_LIBS"
21880
21881        AMFIXLIB="1"
21882    { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
21883$as_echo "$as_me: found both libz and libz.h header" >&6;}
21884    curl_zlib_msg="enabled"
21885  fi
21886fi
21887
21888 if test x"$AMFIXLIB" = x1; then
21889  HAVE_LIBZ_TRUE=
21890  HAVE_LIBZ_FALSE='#'
21891else
21892  HAVE_LIBZ_TRUE='#'
21893  HAVE_LIBZ_FALSE=
21894fi
21895
21896
21897
21898
21899
21900OPT_BROTLI=off
21901
21902# Check whether --with-brotli was given.
21903if test "${with_brotli+set}" = set; then :
21904  withval=$with_brotli; OPT_BROTLI=$withval
21905fi
21906
21907
21908if test X"$OPT_BROTLI" != Xno; then
21909    CLEANLDFLAGS="$LDFLAGS"
21910  CLEANCPPFLAGS="$CPPFLAGS"
21911  CLEANLIBS="$LIBS"
21912
21913  case "$OPT_BROTLI" in
21914  yes)
21915
21916    if test -n "$PKG_CONFIG"; then
21917      PKGCONFIG="$PKG_CONFIG"
21918    else
21919      if test -n "$ac_tool_prefix"; then
21920  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21921set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21923$as_echo_n "checking for $ac_word... " >&6; }
21924if ${ac_cv_path_PKGCONFIG+:} false; then :
21925  $as_echo_n "(cached) " >&6
21926else
21927  case $PKGCONFIG in
21928  [\\/]* | ?:[\\/]*)
21929  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21930  ;;
21931  *)
21932  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21933as_dummy="$PATH:/usr/bin:/usr/local/bin"
21934for as_dir in $as_dummy
21935do
21936  IFS=$as_save_IFS
21937  test -z "$as_dir" && as_dir=.
21938    for ac_exec_ext in '' $ac_executable_extensions; do
21939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21940    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21942    break 2
21943  fi
21944done
21945  done
21946IFS=$as_save_IFS
21947
21948  ;;
21949esac
21950fi
21951PKGCONFIG=$ac_cv_path_PKGCONFIG
21952if test -n "$PKGCONFIG"; then
21953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21954$as_echo "$PKGCONFIG" >&6; }
21955else
21956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21957$as_echo "no" >&6; }
21958fi
21959
21960
21961fi
21962if test -z "$ac_cv_path_PKGCONFIG"; then
21963  ac_pt_PKGCONFIG=$PKGCONFIG
21964  # Extract the first word of "pkg-config", so it can be a program name with args.
21965set dummy pkg-config; ac_word=$2
21966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21967$as_echo_n "checking for $ac_word... " >&6; }
21968if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21969  $as_echo_n "(cached) " >&6
21970else
21971  case $ac_pt_PKGCONFIG in
21972  [\\/]* | ?:[\\/]*)
21973  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21974  ;;
21975  *)
21976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21977as_dummy="$PATH:/usr/bin:/usr/local/bin"
21978for as_dir in $as_dummy
21979do
21980  IFS=$as_save_IFS
21981  test -z "$as_dir" && as_dir=.
21982    for ac_exec_ext in '' $ac_executable_extensions; do
21983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21984    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21986    break 2
21987  fi
21988done
21989  done
21990IFS=$as_save_IFS
21991
21992  ;;
21993esac
21994fi
21995ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21996if test -n "$ac_pt_PKGCONFIG"; then
21997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21998$as_echo "$ac_pt_PKGCONFIG" >&6; }
21999else
22000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22001$as_echo "no" >&6; }
22002fi
22003
22004  if test "x$ac_pt_PKGCONFIG" = x; then
22005    PKGCONFIG="no"
22006  else
22007    case $cross_compiling:$ac_tool_warned in
22008yes:)
22009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22011ac_tool_warned=yes ;;
22012esac
22013    PKGCONFIG=$ac_pt_PKGCONFIG
22014  fi
22015else
22016  PKGCONFIG="$ac_cv_path_PKGCONFIG"
22017fi
22018
22019    fi
22020
22021    if test "x$PKGCONFIG" != "xno"; then
22022      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
22023$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
22024            itexists=`
22025    if test -n ""; then
22026      PKG_CONFIG_LIBDIR=""
22027      export PKG_CONFIG_LIBDIR
22028    fi
22029         $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
22030
22031      if test -z "$itexists"; then
22032                        PKGCONFIG="no"
22033        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034$as_echo "no" >&6; }
22035      else
22036        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22037$as_echo "found" >&6; }
22038      fi
22039    fi
22040
22041
22042    if test "$PKGCONFIG" != "no" ; then
22043      LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
22044      LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
22045      CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
22046      version=`$PKGCONFIG --modversion libbrotlidec`
22047      DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
22048    fi
22049
22050    ;;
22051  off)
22052        ;;
22053  *)
22054        PREFIX_BROTLI=$OPT_BROTLI
22055    ;;
22056  esac
22057
22058    if test -n "$PREFIX_BROTLI"; then
22059    LIB_BROTLI="-lbrotlidec"
22060    LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
22061    CPP_BROTLI=-I${PREFIX_BROTLI}/include
22062    DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
22063  fi
22064
22065  LDFLAGS="$LDFLAGS $LD_BROTLI"
22066  CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
22067  LIBS="$LIB_BROTLI $LIBS"
22068
22069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
22070$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
22071if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
22072  $as_echo_n "(cached) " >&6
22073else
22074  ac_check_lib_save_LIBS=$LIBS
22075LIBS="-lbrotlidec  $LIBS"
22076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077/* end confdefs.h.  */
22078
22079
22080#ifdef __cplusplus
22081extern "C"
22082#endif
22083char BrotliDecoderDecompress ();
22084int main (void)
22085{
22086return BrotliDecoderDecompress ();
22087 ;
22088 return 0;
22089}
22090_ACEOF
22091if ac_fn_c_try_link "$LINENO"; then :
22092  ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
22093else
22094  ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
22095fi
22096rm -f core conftest.err conftest.$ac_objext \
22097    conftest$ac_exeext conftest.$ac_ext
22098LIBS=$ac_check_lib_save_LIBS
22099fi
22100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
22101$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
22102if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
22103  cat >>confdefs.h <<_ACEOF
22104#define HAVE_LIBBROTLIDEC 1
22105_ACEOF
22106
22107  LIBS="-lbrotlidec $LIBS"
22108
22109fi
22110
22111
22112  for ac_header in brotli/decode.h
22113do :
22114  ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
22115if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
22116  cat >>confdefs.h <<_ACEOF
22117#define HAVE_BROTLI_DECODE_H 1
22118_ACEOF
22119 curl_brotli_msg="enabled (libbrotlidec)"
22120    HAVE_BROTLI=1
22121
22122$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
22123
22124    HAVE_BROTLI=1
22125
22126
22127fi
22128
22129done
22130
22131
22132  if test X"$OPT_BROTLI" != Xoff &&
22133     test "$HAVE_BROTLI" != "1"; then
22134    as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
22135  fi
22136
22137  if test "$HAVE_BROTLI" = "1"; then
22138    if test -n "$DIR_BROTLI"; then
22139
22140       if test "x$cross_compiling" != "xyes"; then
22141         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
22142         export CURL_LIBRARY_PATH
22143         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
22144$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
22145       fi
22146    fi
22147  else
22148        LDFLAGS=$CLEANLDFLAGS
22149    CPPFLAGS=$CLEANCPPFLAGS
22150    LIBS=$CLEANLIBS
22151  fi
22152fi
22153
22154
22155OPT_ZSTD=off
22156
22157# Check whether --with-zstd was given.
22158if test "${with_zstd+set}" = set; then :
22159  withval=$with_zstd; OPT_ZSTD=$withval
22160fi
22161
22162
22163if test X"$OPT_ZSTD" != Xno; then
22164    CLEANLDFLAGS="$LDFLAGS"
22165  CLEANCPPFLAGS="$CPPFLAGS"
22166  CLEANLIBS="$LIBS"
22167
22168  case "$OPT_ZSTD" in
22169  yes)
22170
22171    if test -n "$PKG_CONFIG"; then
22172      PKGCONFIG="$PKG_CONFIG"
22173    else
22174      if test -n "$ac_tool_prefix"; then
22175  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22176set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22178$as_echo_n "checking for $ac_word... " >&6; }
22179if ${ac_cv_path_PKGCONFIG+:} false; then :
22180  $as_echo_n "(cached) " >&6
22181else
22182  case $PKGCONFIG in
22183  [\\/]* | ?:[\\/]*)
22184  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22185  ;;
22186  *)
22187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22188as_dummy="$PATH:/usr/bin:/usr/local/bin"
22189for as_dir in $as_dummy
22190do
22191  IFS=$as_save_IFS
22192  test -z "$as_dir" && as_dir=.
22193    for ac_exec_ext in '' $ac_executable_extensions; do
22194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22195    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22197    break 2
22198  fi
22199done
22200  done
22201IFS=$as_save_IFS
22202
22203  ;;
22204esac
22205fi
22206PKGCONFIG=$ac_cv_path_PKGCONFIG
22207if test -n "$PKGCONFIG"; then
22208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22209$as_echo "$PKGCONFIG" >&6; }
22210else
22211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22212$as_echo "no" >&6; }
22213fi
22214
22215
22216fi
22217if test -z "$ac_cv_path_PKGCONFIG"; then
22218  ac_pt_PKGCONFIG=$PKGCONFIG
22219  # Extract the first word of "pkg-config", so it can be a program name with args.
22220set dummy pkg-config; ac_word=$2
22221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22222$as_echo_n "checking for $ac_word... " >&6; }
22223if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22224  $as_echo_n "(cached) " >&6
22225else
22226  case $ac_pt_PKGCONFIG in
22227  [\\/]* | ?:[\\/]*)
22228  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22229  ;;
22230  *)
22231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232as_dummy="$PATH:/usr/bin:/usr/local/bin"
22233for as_dir in $as_dummy
22234do
22235  IFS=$as_save_IFS
22236  test -z "$as_dir" && as_dir=.
22237    for ac_exec_ext in '' $ac_executable_extensions; do
22238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22239    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22241    break 2
22242  fi
22243done
22244  done
22245IFS=$as_save_IFS
22246
22247  ;;
22248esac
22249fi
22250ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22251if test -n "$ac_pt_PKGCONFIG"; then
22252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22253$as_echo "$ac_pt_PKGCONFIG" >&6; }
22254else
22255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22256$as_echo "no" >&6; }
22257fi
22258
22259  if test "x$ac_pt_PKGCONFIG" = x; then
22260    PKGCONFIG="no"
22261  else
22262    case $cross_compiling:$ac_tool_warned in
22263yes:)
22264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22266ac_tool_warned=yes ;;
22267esac
22268    PKGCONFIG=$ac_pt_PKGCONFIG
22269  fi
22270else
22271  PKGCONFIG="$ac_cv_path_PKGCONFIG"
22272fi
22273
22274    fi
22275
22276    if test "x$PKGCONFIG" != "xno"; then
22277      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
22278$as_echo_n "checking for libzstd options with pkg-config... " >&6; }
22279            itexists=`
22280    if test -n ""; then
22281      PKG_CONFIG_LIBDIR=""
22282      export PKG_CONFIG_LIBDIR
22283    fi
22284         $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
22285
22286      if test -z "$itexists"; then
22287                        PKGCONFIG="no"
22288        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22289$as_echo "no" >&6; }
22290      else
22291        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22292$as_echo "found" >&6; }
22293      fi
22294    fi
22295
22296
22297    if test "$PKGCONFIG" != "no" ; then
22298      LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
22299      LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
22300      CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
22301      version=`$PKGCONFIG --modversion libzstd`
22302      DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
22303    fi
22304
22305    ;;
22306  off)
22307        ;;
22308  *)
22309        PREFIX_ZSTD=$OPT_ZSTD
22310    ;;
22311  esac
22312
22313    if test -n "$PREFIX_ZSTD"; then
22314    LIB_ZSTD="-lzstd"
22315    LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
22316    CPP_ZSTD=-I${PREFIX_ZSTD}/include
22317    DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
22318  fi
22319
22320  LDFLAGS="$LDFLAGS $LD_ZSTD"
22321  CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
22322  LIBS="$LIB_ZSTD $LIBS"
22323
22324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
22325$as_echo_n "checking for ZSTD_createDStream in -lzstd... " >&6; }
22326if ${ac_cv_lib_zstd_ZSTD_createDStream+:} false; then :
22327  $as_echo_n "(cached) " >&6
22328else
22329  ac_check_lib_save_LIBS=$LIBS
22330LIBS="-lzstd  $LIBS"
22331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332/* end confdefs.h.  */
22333
22334
22335#ifdef __cplusplus
22336extern "C"
22337#endif
22338char ZSTD_createDStream ();
22339int main (void)
22340{
22341return ZSTD_createDStream ();
22342 ;
22343 return 0;
22344}
22345_ACEOF
22346if ac_fn_c_try_link "$LINENO"; then :
22347  ac_cv_lib_zstd_ZSTD_createDStream=yes
22348else
22349  ac_cv_lib_zstd_ZSTD_createDStream=no
22350fi
22351rm -f core conftest.err conftest.$ac_objext \
22352    conftest$ac_exeext conftest.$ac_ext
22353LIBS=$ac_check_lib_save_LIBS
22354fi
22355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
22356$as_echo "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
22357if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes; then :
22358  cat >>confdefs.h <<_ACEOF
22359#define HAVE_LIBZSTD 1
22360_ACEOF
22361
22362  LIBS="-lzstd $LIBS"
22363
22364fi
22365
22366
22367  for ac_header in zstd.h
22368do :
22369  ac_fn_c_check_header_mongrel "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
22370if test "x$ac_cv_header_zstd_h" = xyes; then :
22371  cat >>confdefs.h <<_ACEOF
22372#define HAVE_ZSTD_H 1
22373_ACEOF
22374 curl_zstd_msg="enabled (libzstd)"
22375    HAVE_ZSTD=1
22376
22377$as_echo "#define HAVE_ZSTD 1" >>confdefs.h
22378
22379    HAVE_ZSTD=1
22380
22381
22382fi
22383
22384done
22385
22386
22387  if test X"$OPT_ZSTD" != Xoff &&
22388     test "$HAVE_ZSTD" != "1"; then
22389    as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
22390  fi
22391
22392  if test "$HAVE_ZSTD" = "1"; then
22393    if test -n "$DIR_ZSTD"; then
22394
22395       if test "x$cross_compiling" != "xyes"; then
22396         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
22397         export CURL_LIBRARY_PATH
22398         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
22399$as_echo "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
22400       fi
22401    fi
22402  else
22403        LDFLAGS=$CLEANLDFLAGS
22404    CPPFLAGS=$CLEANCPPFLAGS
22405    LIBS=$CLEANLIBS
22406  fi
22407fi
22408
22409
22410LDAPLIBNAME=""
22411
22412# Check whether --with-ldap-lib was given.
22413if test "${with_ldap_lib+set}" = set; then :
22414  withval=$with_ldap_lib; LDAPLIBNAME="$withval"
22415fi
22416
22417
22418LBERLIBNAME=""
22419
22420# Check whether --with-lber-lib was given.
22421if test "${with_lber_lib+set}" = set; then :
22422  withval=$with_lber_lib; LBERLIBNAME="$withval"
22423fi
22424
22425
22426if test x$CURL_DISABLE_LDAP != x1 ; then
22427
22428
22429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
22430$as_echo_n "checking for lber.h... " >&6; }
22431if ${curl_cv_header_lber_h+:} false; then :
22432  $as_echo_n "(cached) " >&6
22433else
22434
22435    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22436/* end confdefs.h.  */
22437
22438
22439#undef inline
22440#ifdef HAVE_WINDOWS_H
22441#ifndef WIN32_LEAN_AND_MEAN
22442#define WIN32_LEAN_AND_MEAN
22443#endif
22444#include <windows.h>
22445#else
22446#ifdef HAVE_SYS_TYPES_H
22447#include <sys/types.h>
22448#endif
22449#endif
22450#ifndef NULL
22451#define NULL (void *)0
22452#endif
22453#include <lber.h>
22454
22455int main (void)
22456{
22457
22458        BerValue *bvp = NULL;
22459        BerElement *bep = ber_init(bvp);
22460        ber_free(bep, 1);
22461
22462 ;
22463 return 0;
22464}
22465
22466_ACEOF
22467if ac_fn_c_try_compile "$LINENO"; then :
22468
22469      curl_cv_header_lber_h="yes"
22470
22471else
22472
22473      curl_cv_header_lber_h="no"
22474
22475fi
22476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22477
22478fi
22479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
22480$as_echo "$curl_cv_header_lber_h" >&6; }
22481  if test "$curl_cv_header_lber_h" = "yes"; then
22482
22483cat >>confdefs.h <<_ACEOF
22484#define HAVE_LBER_H 1
22485_ACEOF
22486
22487    #
22488    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489/* end confdefs.h.  */
22490
22491
22492#undef inline
22493#ifdef HAVE_WINDOWS_H
22494#ifndef WIN32_LEAN_AND_MEAN
22495#define WIN32_LEAN_AND_MEAN
22496#endif
22497#include <windows.h>
22498#else
22499#ifdef HAVE_SYS_TYPES_H
22500#include <sys/types.h>
22501#endif
22502#endif
22503#ifndef NULL
22504#define NULL (void *)0
22505#endif
22506#ifndef LDAP_DEPRECATED
22507#define LDAP_DEPRECATED 1
22508#endif
22509#include <ldap.h>
22510
22511int main (void)
22512{
22513
22514        BerValue *bvp = NULL;
22515        BerElement *bep = ber_init(bvp);
22516        ber_free(bep, 1);
22517
22518 ;
22519 return 0;
22520}
22521
22522_ACEOF
22523if ac_fn_c_try_compile "$LINENO"; then :
22524
22525      curl_cv_need_header_lber_h="no"
22526
22527else
22528
22529      curl_cv_need_header_lber_h="yes"
22530
22531fi
22532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533    #
22534    case "$curl_cv_need_header_lber_h" in
22535      yes)
22536
22537cat >>confdefs.h <<_ACEOF
22538#define NEED_LBER_H 1
22539_ACEOF
22540
22541        ;;
22542    esac
22543  fi
22544
22545
22546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
22547$as_echo_n "checking for ldap.h... " >&6; }
22548if ${curl_cv_header_ldap_h+:} false; then :
22549  $as_echo_n "(cached) " >&6
22550else
22551
22552    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553/* end confdefs.h.  */
22554
22555
22556#undef inline
22557#ifdef HAVE_WINDOWS_H
22558#ifndef WIN32_LEAN_AND_MEAN
22559#define WIN32_LEAN_AND_MEAN
22560#endif
22561#include <windows.h>
22562#else
22563#ifdef HAVE_SYS_TYPES_H
22564#include <sys/types.h>
22565#endif
22566#endif
22567#ifndef LDAP_DEPRECATED
22568#define LDAP_DEPRECATED 1
22569#endif
22570#ifdef NEED_LBER_H
22571#include <lber.h>
22572#endif
22573#include <ldap.h>
22574
22575int main (void)
22576{
22577
22578        LDAP *ldp = ldap_init("dummy", LDAP_PORT);
22579        int res = ldap_unbind(ldp);
22580
22581 ;
22582 return 0;
22583}
22584
22585_ACEOF
22586if ac_fn_c_try_compile "$LINENO"; then :
22587
22588      curl_cv_header_ldap_h="yes"
22589
22590else
22591
22592      curl_cv_header_ldap_h="no"
22593
22594fi
22595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22596
22597fi
22598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
22599$as_echo "$curl_cv_header_ldap_h" >&6; }
22600  case "$curl_cv_header_ldap_h" in
22601    yes)
22602
22603cat >>confdefs.h <<_ACEOF
22604#define HAVE_LDAP_H 1
22605_ACEOF
22606
22607      ;;
22608  esac
22609
22610
22611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
22612$as_echo_n "checking for ldapssl.h... " >&6; }
22613if ${curl_cv_header_ldapssl_h+:} false; then :
22614  $as_echo_n "(cached) " >&6
22615else
22616
22617    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22618/* end confdefs.h.  */
22619
22620
22621#undef inline
22622#ifdef HAVE_WINDOWS_H
22623#ifndef WIN32_LEAN_AND_MEAN
22624#define WIN32_LEAN_AND_MEAN
22625#endif
22626#include <windows.h>
22627#else
22628#ifdef HAVE_SYS_TYPES_H
22629#include <sys/types.h>
22630#endif
22631#endif
22632#ifndef NULL
22633#define NULL (void *)0
22634#endif
22635#ifndef LDAP_DEPRECATED
22636#define LDAP_DEPRECATED 1
22637#endif
22638#ifdef NEED_LBER_H
22639#include <lber.h>
22640#endif
22641#ifdef HAVE_LDAP_H
22642#include <ldap.h>
22643#endif
22644#include <ldapssl.h>
22645
22646int main (void)
22647{
22648
22649        char *cert_label = NULL;
22650        LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
22651
22652 ;
22653 return 0;
22654}
22655
22656_ACEOF
22657if ac_fn_c_try_compile "$LINENO"; then :
22658
22659      curl_cv_header_ldapssl_h="yes"
22660
22661else
22662
22663      curl_cv_header_ldapssl_h="no"
22664
22665fi
22666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667
22668fi
22669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
22670$as_echo "$curl_cv_header_ldapssl_h" >&6; }
22671  case "$curl_cv_header_ldapssl_h" in
22672    yes)
22673
22674cat >>confdefs.h <<_ACEOF
22675#define HAVE_LDAPSSL_H 1
22676_ACEOF
22677
22678      ;;
22679  esac
22680
22681
22682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
22683$as_echo_n "checking for ldap_ssl.h... " >&6; }
22684if ${curl_cv_header_ldap_ssl_h+:} false; then :
22685  $as_echo_n "(cached) " >&6
22686else
22687
22688    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689/* end confdefs.h.  */
22690
22691
22692#undef inline
22693#ifdef HAVE_WINDOWS_H
22694#ifndef WIN32_LEAN_AND_MEAN
22695#define WIN32_LEAN_AND_MEAN
22696#endif
22697#include <windows.h>
22698#else
22699#ifdef HAVE_SYS_TYPES_H
22700#include <sys/types.h>
22701#endif
22702#endif
22703#ifndef LDAP_DEPRECATED
22704#define LDAP_DEPRECATED 1
22705#endif
22706#ifdef NEED_LBER_H
22707#include <lber.h>
22708#endif
22709#ifdef HAVE_LDAP_H
22710#include <ldap.h>
22711#endif
22712#include <ldap_ssl.h>
22713
22714int main (void)
22715{
22716
22717        LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
22718
22719 ;
22720 return 0;
22721}
22722
22723_ACEOF
22724if ac_fn_c_try_compile "$LINENO"; then :
22725
22726      curl_cv_header_ldap_ssl_h="yes"
22727
22728else
22729
22730      curl_cv_header_ldap_ssl_h="no"
22731
22732fi
22733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22734
22735fi
22736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
22737$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
22738  case "$curl_cv_header_ldap_ssl_h" in
22739    yes)
22740
22741cat >>confdefs.h <<_ACEOF
22742#define HAVE_LDAP_SSL_H 1
22743_ACEOF
22744
22745      ;;
22746  esac
22747
22748
22749  if test -z "$LDAPLIBNAME" ; then
22750    if test "$curl_cv_native_windows" = "yes"; then
22751            LDAPLIBNAME="wldap32"
22752      LBERLIBNAME="no"
22753    fi
22754  fi
22755
22756  if test "$LDAPLIBNAME" ; then
22757    as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
22758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
22759$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
22760if eval \${$as_ac_Lib+:} false; then :
22761  $as_echo_n "(cached) " >&6
22762else
22763  ac_check_lib_save_LIBS=$LIBS
22764LIBS="-l"$LDAPLIBNAME"  $LIBS"
22765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22766/* end confdefs.h.  */
22767
22768
22769#ifdef __cplusplus
22770extern "C"
22771#endif
22772char ldap_init ();
22773int main (void)
22774{
22775return ldap_init ();
22776 ;
22777 return 0;
22778}
22779_ACEOF
22780if ac_fn_c_try_link "$LINENO"; then :
22781  eval "$as_ac_Lib=yes"
22782else
22783  eval "$as_ac_Lib=no"
22784fi
22785rm -f core conftest.err conftest.$ac_objext \
22786    conftest$ac_exeext conftest.$ac_ext
22787LIBS=$ac_check_lib_save_LIBS
22788fi
22789eval ac_res=\$$as_ac_Lib
22790	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22791$as_echo "$ac_res" >&6; }
22792if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
22793  cat >>confdefs.h <<_ACEOF
22794#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
22795_ACEOF
22796
22797  LIBS="-l"$LDAPLIBNAME" $LIBS"
22798
22799else
22800
22801      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
22802$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
22803
22804$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22805
22806      CURL_DISABLE_LDAP=1
22807
22808
22809$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22810
22811      CURL_DISABLE_LDAPS=1
22812
22813fi
22814
22815  else
22816
22817    #
22818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
22819$as_echo_n "checking for LDAP libraries... " >&6; }
22820  #
22821  u_libs=""
22822  #
22823
22824  #
22825  curl_cv_save_LIBS="$LIBS"
22826  curl_cv_ldap_LIBS="unknown"
22827  #
22828  for x_nlibs in '' "$u_libs" \
22829    '-lldap' \
22830    '-lldap -llber' \
22831    '-llber -lldap' \
22832    '-lldapssl -lldapx -lldapsdk' \
22833    '-lldapsdk -lldapx -lldapssl' \
22834    '-lldap -llber -lssl -lcrypto' ; do
22835
22836    if test "$curl_cv_ldap_LIBS" = "unknown"; then
22837      if test -z "$x_nlibs"; then
22838        LIBS="$curl_cv_save_LIBS"
22839      else
22840        LIBS="$x_nlibs $curl_cv_save_LIBS"
22841      fi
22842      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843/* end confdefs.h.  */
22844
22845
22846#undef inline
22847#ifdef HAVE_WINDOWS_H
22848#ifndef WIN32_LEAN_AND_MEAN
22849#define WIN32_LEAN_AND_MEAN
22850#endif
22851#include <windows.h>
22852#else
22853#ifdef HAVE_SYS_TYPES_H
22854#include <sys/types.h>
22855#endif
22856#endif
22857#ifndef NULL
22858#define NULL (void *)0
22859#endif
22860#ifndef LDAP_DEPRECATED
22861#define LDAP_DEPRECATED 1
22862#endif
22863#ifdef NEED_LBER_H
22864#include <lber.h>
22865#endif
22866#ifdef HAVE_LDAP_H
22867#include <ldap.h>
22868#endif
22869
22870int main (void)
22871{
22872
22873          BerValue *bvp = NULL;
22874          BerElement *bep = ber_init(bvp);
22875          LDAP *ldp = ldap_init("dummy", LDAP_PORT);
22876          int res = ldap_unbind(ldp);
22877          ber_free(bep, 1);
22878
22879 ;
22880 return 0;
22881}
22882
22883_ACEOF
22884if ac_fn_c_try_link "$LINENO"; then :
22885
22886        curl_cv_ldap_LIBS="$x_nlibs"
22887
22888fi
22889rm -f core conftest.err conftest.$ac_objext \
22890    conftest$ac_exeext conftest.$ac_ext
22891    fi
22892  done
22893  #
22894  LIBS="$curl_cv_save_LIBS"
22895  #
22896  case X-"$curl_cv_ldap_LIBS" in
22897    X-unknown)
22898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
22899$as_echo "cannot find LDAP libraries" >&6; }
22900      ;;
22901    X-)
22902      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
22903$as_echo "no additional lib required" >&6; }
22904      ;;
22905    *)
22906      if test -z "$curl_cv_save_LIBS"; then
22907        LIBS="$curl_cv_ldap_LIBS"
22908      else
22909        LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
22910      fi
22911      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
22912$as_echo "$curl_cv_ldap_LIBS" >&6; }
22913      ;;
22914  esac
22915  #
22916
22917    case X-"$curl_cv_ldap_LIBS" in
22918      X-unknown)
22919        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
22920$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
22921
22922$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22923
22924        CURL_DISABLE_LDAP=1
22925
22926
22927$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22928
22929        CURL_DISABLE_LDAPS=1
22930
22931        ;;
22932    esac
22933  fi
22934fi
22935
22936if test x$CURL_DISABLE_LDAP != x1 ; then
22937
22938  if test "$LBERLIBNAME" ; then
22939            if test "$LBERLIBNAME" != "no" ; then
22940      as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
22941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
22942$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
22943if eval \${$as_ac_Lib+:} false; then :
22944  $as_echo_n "(cached) " >&6
22945else
22946  ac_check_lib_save_LIBS=$LIBS
22947LIBS="-l"$LBERLIBNAME"  $LIBS"
22948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22949/* end confdefs.h.  */
22950
22951
22952#ifdef __cplusplus
22953extern "C"
22954#endif
22955char ber_free ();
22956int main (void)
22957{
22958return ber_free ();
22959 ;
22960 return 0;
22961}
22962_ACEOF
22963if ac_fn_c_try_link "$LINENO"; then :
22964  eval "$as_ac_Lib=yes"
22965else
22966  eval "$as_ac_Lib=no"
22967fi
22968rm -f core conftest.err conftest.$ac_objext \
22969    conftest$ac_exeext conftest.$ac_ext
22970LIBS=$ac_check_lib_save_LIBS
22971fi
22972eval ac_res=\$$as_ac_Lib
22973	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22974$as_echo "$ac_res" >&6; }
22975if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
22976  cat >>confdefs.h <<_ACEOF
22977#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
22978_ACEOF
22979
22980  LIBS="-l"$LBERLIBNAME" $LIBS"
22981
22982else
22983
22984        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
22985$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
22986
22987$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22988
22989        CURL_DISABLE_LDAP=1
22990
22991
22992$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22993
22994        CURL_DISABLE_LDAPS=1
22995
22996fi
22997
22998    fi
22999  fi
23000fi
23001
23002if test x$CURL_DISABLE_LDAP != x1 ; then
23003  for ac_func in ldap_url_parse ldap_init_fd
23004do :
23005  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23006ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23007if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23008  cat >>confdefs.h <<_ACEOF
23009#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23010_ACEOF
23011
23012fi
23013done
23014
23015
23016  if test "$LDAPLIBNAME" = "wldap32"; then
23017    curl_ldap_msg="enabled (winldap)"
23018
23019$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
23020
23021  else
23022    curl_ldap_msg="enabled (OpenLDAP)"
23023    if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
23024
23025$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
23026
23027      USE_OPENLDAP=1
23028
23029    fi
23030  fi
23031fi
23032
23033if test x$CURL_DISABLE_LDAPS != x1 ; then
23034    curl_ldaps_msg="enabled"
23035fi
23036
23037
23038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
23039$as_echo_n "checking whether to enable IPv6... " >&6; }
23040# Check whether --enable-ipv6 was given.
23041if test "${enable_ipv6+set}" = set; then :
23042  enableval=$enable_ipv6;  case "$enableval" in
23043  no)
23044       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23045$as_echo "no" >&6; }
23046       ipv6=no
23047       ;;
23048  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23049$as_echo "yes" >&6; }
23050       ipv6=yes
23051       ;;
23052  esac
23053else
23054  if test "$cross_compiling" = yes; then :
23055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23056$as_echo "yes" >&6; }
23057  ipv6=yes
23058
23059else
23060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061/* end confdefs.h.  */
23062 /* are AF_INET6 and sockaddr_in6 available? */
23063#include <sys/types.h>
23064#ifdef HAVE_WINSOCK2_H
23065#include <winsock2.h>
23066#include <ws2tcpip.h>
23067#else
23068#include <sys/socket.h>
23069#include <netinet/in.h>
23070#if defined (__TANDEM)
23071# include <netinet/in6.h>
23072#endif
23073#endif
23074#include <stdlib.h> /* for exit() */
23075main()
23076{
23077 struct sockaddr_in6 s;
23078 (void)s;
23079 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
23080   exit(1);
23081 else
23082   exit(0);
23083}
23084
23085_ACEOF
23086if ac_fn_c_try_run "$LINENO"; then :
23087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23088$as_echo "yes" >&6; }
23089  ipv6=yes
23090else
23091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23092$as_echo "no" >&6; }
23093  ipv6=no
23094fi
23095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23096  conftest.$ac_objext conftest.beam conftest.$ac_ext
23097fi
23098
23099fi
23100
23101
23102if test "$ipv6" = yes; then
23103  curl_ipv6_msg="enabled"
23104
23105$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
23106
23107  IPV6_ENABLED=1
23108
23109
23110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
23111$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
23112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23113/* end confdefs.h.  */
23114
23115#include <sys/types.h>
23116#ifdef HAVE_WINSOCK2_H
23117#include <winsock2.h>
23118#include <ws2tcpip.h>
23119#else
23120#include <netinet/in.h>
23121#if defined (__TANDEM)
23122# include <netinet/in6.h>
23123#endif
23124#endif
23125int main (void)
23126{
23127struct sockaddr_in6 s; s.sin6_scope_id = 0;
23128 ;
23129 return 0;
23130}
23131_ACEOF
23132if ac_fn_c_try_compile "$LINENO"; then :
23133  have_sin6_scope_id=yes
23134fi
23135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23136  if test "$have_sin6_scope_id" = yes; then
23137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23138$as_echo "yes" >&6; }
23139
23140$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
23141
23142  else
23143    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23144$as_echo "no" >&6; }
23145  fi
23146fi
23147
23148
23149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
23150$as_echo_n "checking if argv can be written to... " >&6; }
23151
23152   old=$LD_LIBRARY_PATH
23153   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
23154   export LD_LIBRARY_PATH
23155   if test "$cross_compiling" = yes; then :
23156  curl_cv_writable_argv=cross
23157
23158else
23159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23160/* end confdefs.h.  */
23161
23162int main(int argc, char **argv)
23163{
23164  (void)argc;
23165  argv[0][0] = ' ';
23166  return (argv[0][0] == ' ')?0:1;
23167}
23168
23169_ACEOF
23170if ac_fn_c_try_run "$LINENO"; then :
23171  curl_cv_writable_argv=yes
23172
23173else
23174  curl_cv_writable_argv=no
23175
23176fi
23177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23178  conftest.$ac_objext conftest.beam conftest.$ac_ext
23179fi
23180
23181   LD_LIBRARY_PATH=$old # restore
23182
23183case $curl_cv_writable_argv in
23184yes)
23185
23186$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
23187
23188        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23189$as_echo "yes" >&6; }
23190        ;;
23191no)
23192        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23193$as_echo "no" >&6; }
23194        ;;
23195*)
23196        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23197$as_echo "no" >&6; }
23198        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
23199$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
23200        ;;
23201esac
23202
23203
23204
23205GSSAPI_ROOT="/usr"
23206
23207# Check whether --with-gssapi-includes was given.
23208if test "${with_gssapi_includes+set}" = set; then :
23209  withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
23210    want_gss="yes"
23211
23212fi
23213
23214
23215
23216# Check whether --with-gssapi-libs was given.
23217if test "${with_gssapi_libs+set}" = set; then :
23218  withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
23219    want_gss="yes"
23220
23221fi
23222
23223
23224
23225# Check whether --with-gssapi was given.
23226if test "${with_gssapi+set}" = set; then :
23227  withval=$with_gssapi;
23228  GSSAPI_ROOT="$withval"
23229  if test x"$GSSAPI_ROOT" != xno; then
23230    want_gss="yes"
23231    if test x"$GSSAPI_ROOT" = xyes; then
23232            GSSAPI_ROOT="/usr"
23233    fi
23234  fi
23235
23236fi
23237
23238
23239: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
23240
23241save_CPPFLAGS="$CPPFLAGS"
23242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
23243$as_echo_n "checking if GSS-API support is requested... " >&6; }
23244if test x"$want_gss" = xyes; then
23245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23246$as_echo "yes" >&6; }
23247
23248  if test -z "$GSSAPI_INCS"; then
23249     if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
23250        GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
23251     elif test -f "$KRB5CONFIG"; then
23252        GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
23253     elif test "$GSSAPI_ROOT" != "yes"; then
23254        GSSAPI_INCS="-I$GSSAPI_ROOT/include"
23255     fi
23256  fi
23257
23258  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
23259
23260  ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
23261if test "x$ac_cv_header_gss_h" = xyes; then :
23262
23263
23264$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
23265
23266      gnu_gss=yes
23267
23268else
23269
23270            for ac_header in gssapi/gssapi.h
23271do :
23272  ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
23273if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
23274  cat >>confdefs.h <<_ACEOF
23275#define HAVE_GSSAPI_GSSAPI_H 1
23276_ACEOF
23277
23278else
23279  not_mit=1
23280fi
23281
23282done
23283
23284      for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
23285do :
23286  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23287ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23288$ac_includes_default
23289#ifdef HAVE_GSSAPI_GSSAPI_H
23290#include <gssapi/gssapi.h>
23291#endif
23292
23293"
23294if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23295  cat >>confdefs.h <<_ACEOF
23296#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23297_ACEOF
23298
23299else
23300  not_mit=1
23301fi
23302
23303done
23304
23305      if test "x$not_mit" = "x1"; then
23306                ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
23307if test "x$ac_cv_header_gssapi_h" = xyes; then :
23308
23309
23310$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
23311
23312
23313else
23314
23315                            want_gss=no
23316              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
23317$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
23318
23319
23320fi
23321
23322
23323      else
23324
23325$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
23326
23327                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
23328$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
23329        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330/* end confdefs.h.  */
23331
23332
23333#include <gssapi/gssapi.h>
23334#include <gssapi/gssapi_generic.h>
23335#include <gssapi/gssapi_krb5.h>
23336
23337int main (void)
23338{
23339
23340            gss_import_name(
23341                            (OM_uint32 *)0,
23342                            (gss_buffer_t)0,
23343                            GSS_C_NT_HOSTBASED_SERVICE,
23344                            (gss_name_t *)0);
23345
23346 ;
23347 return 0;
23348}
23349
23350_ACEOF
23351if ac_fn_c_try_compile "$LINENO"; then :
23352
23353          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23354$as_echo "yes" >&6; }
23355
23356else
23357
23358          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23359$as_echo "no" >&6; }
23360
23361$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
23362
23363
23364fi
23365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366      fi
23367
23368
23369fi
23370
23371
23372else
23373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23374$as_echo "no" >&6; }
23375fi
23376if test x"$want_gss" = xyes; then
23377
23378$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
23379
23380  HAVE_GSSAPI=1
23381  curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
23382
23383  if test -n "$gnu_gss"; then
23384    curl_gss_msg="enabled (GNU GSS)"
23385    LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
23386    LIBS="-lgss $LIBS"
23387  elif test -z "$GSSAPI_LIB_DIR"; then
23388     case $host in
23389     *-*-darwin*)
23390        LIBS="-lgssapi_krb5 -lresolv $LIBS"
23391        ;;
23392     *)
23393        if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
23394                                 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
23395           LIBS="$gss_libs $LIBS"
23396        elif test -f "$KRB5CONFIG"; then
23397                                 gss_libs=`$KRB5CONFIG --libs gssapi`
23398           LIBS="$gss_libs $LIBS"
23399        else
23400           case $host in
23401           *-hp-hpux*)
23402              gss_libname="gss"
23403              ;;
23404           *)
23405              gss_libname="gssapi"
23406              ;;
23407           esac
23408
23409           if test "$GSSAPI_ROOT" != "yes"; then
23410              LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
23411              LIBS="-l$gss_libname $LIBS"
23412           else
23413              LIBS="-l$gss_libname $LIBS"
23414           fi
23415        fi
23416        ;;
23417     esac
23418  else
23419     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
23420     case $host in
23421     *-hp-hpux*)
23422        LIBS="-lgss $LIBS"
23423        ;;
23424     *)
23425        LIBS="-lgssapi $LIBS"
23426        ;;
23427     esac
23428  fi
23429else
23430  CPPFLAGS="$save_CPPFLAGS"
23431fi
23432
23433build_libstubgss=no
23434if test x"$want_gss" = "xyes"; then
23435  build_libstubgss=yes
23436fi
23437
23438 if test "x$build_libstubgss" = "xyes"; then
23439  BUILD_STUB_GSS_TRUE=
23440  BUILD_STUB_GSS_FALSE='#'
23441else
23442  BUILD_STUB_GSS_TRUE='#'
23443  BUILD_STUB_GSS_FALSE=
23444fi
23445
23446
23447
23448DEFAULT_SSL_BACKEND=no
23449VALID_DEFAULT_SSL_BACKEND=
23450
23451# Check whether --with-default-ssl-backend was given.
23452if test "${with_default_ssl_backend+set}" = set; then :
23453  withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
23454fi
23455
23456case "$DEFAULT_SSL_BACKEND" in
23457  no)
23458        ;;
23459  default|yes)
23460        as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
23461    ;;
23462  *)
23463
23464        VALID_DEFAULT_SSL_BACKEND=no
23465    ;;
23466esac
23467
23468
23469
23470OPT_SCHANNEL=no
23471
23472# Check whether --with-winssl was given.
23473if test "${with_winssl+set}" = set; then :
23474  withval=$with_winssl; OPT_SCHANNEL=$withval
23475fi
23476
23477
23478
23479# Check whether --with-schannel was given.
23480if test "${with_schannel+set}" = set; then :
23481  withval=$with_schannel; OPT_SCHANNEL=$withval
23482fi
23483
23484
23485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
23486$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
23487if test -z "$ssl_backends" -o "x$OPT_SCHANNEL" != xno; then
23488  ssl_msg=
23489  if test "x$OPT_SCHANNEL" != "xno"  &&
23490     test "x$curl_cv_native_windows" = "xyes"; then
23491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23492$as_echo "yes" >&6; }
23493
23494$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
23495
23496    USE_SCHANNEL=1
23497
23498    ssl_msg="Windows-native"
23499    test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
23500    SCHANNEL_ENABLED=1
23501    # --with-schannel implies --enable-sspi
23502
23503$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
23504
23505    USE_WINDOWS_SSPI=1
23506
23507    curl_sspi_msg="enabled"
23508    LIBS="-lcrypt32 $LIBS"
23509  else
23510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23511$as_echo "no" >&6; }
23512  fi
23513  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23514else
23515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23516$as_echo "no" >&6; }
23517fi
23518
23519OPT_SECURETRANSPORT=no
23520
23521# Check whether --with-darwinssl was given.
23522if test "${with_darwinssl+set}" = set; then :
23523  withval=$with_darwinssl; OPT_SECURETRANSPORT=$withval
23524fi
23525
23526
23527
23528# Check whether --with-secure-transport was given.
23529if test "${with_secure_transport+set}" = set; then :
23530  withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
23531fi
23532
23533
23534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
23535$as_echo_n "checking whether to enable Secure Transport... " >&6; }
23536if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then
23537  if test "x$OPT_SECURETRANSPORT" != "xno" &&
23538     (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
23539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23540$as_echo "yes" >&6; }
23541
23542$as_echo "#define USE_SECTRANSP 1" >>confdefs.h
23543
23544    USE_SECTRANSP=1
23545
23546    ssl_msg="Secure Transport"
23547    test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
23548    SECURETRANSPORT_ENABLED=1
23549    LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
23550  else
23551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23552$as_echo "no" >&6; }
23553  fi
23554  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23555else
23556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23557$as_echo "no" >&6; }
23558fi
23559
23560OPT_AMISSL=no
23561
23562# Check whether --with-amissl was given.
23563if test "${with_amissl+set}" = set; then :
23564  withval=$with_amissl; OPT_AMISSL=$withval
23565fi
23566
23567
23568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
23569$as_echo_n "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
23570if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
23571  if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then
23572    ssl_msg=
23573    if test "x$OPT_AMISSL" != "xno"; then
23574      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23575$as_echo "yes" >&6; }
23576      ssl_msg="AmiSSL"
23577      test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
23578      AMISSL_ENABLED=1
23579      LIBS="-lamisslauto $LIBS"
23580
23581$as_echo "#define USE_AMISSL 1" >>confdefs.h
23582
23583
23584$as_echo "#define USE_OPENSSL 1" >>confdefs.h
23585
23586    else
23587      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23588$as_echo "no" >&6; }
23589    fi
23590    test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23591  else
23592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23593$as_echo "no" >&6; }
23594  fi
23595else
23596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23597$as_echo "no" >&6; }
23598fi
23599
23600
23601OPT_SSL=off
23602ca="no"
23603
23604# Check whether --with-ssl was given.
23605if test "${with_ssl+set}" = set; then :
23606  withval=$with_ssl; OPT_SSL=$withval
23607fi
23608
23609
23610if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
23611   test X"$OPT_SSL" != Xno; then
23612  ssl_msg=
23613
23614    CLEANLDFLAGS="$LDFLAGS"
23615  CLEANCPPFLAGS="$CPPFLAGS"
23616  CLEANLIBS="$LIBS"
23617
23618    case $host in
23619    *-*-msys* | *-*-mingw*)
23620      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
23621$as_echo_n "checking for gdi32... " >&6; }
23622      my_ac_save_LIBS=$LIBS
23623      LIBS="-lgdi32 $LIBS"
23624      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23625/* end confdefs.h.  */
23626#include <windef.h>
23627                   #include <wingdi.h>
23628int main (void)
23629{
23630GdiFlush();
23631 ;
23632 return 0;
23633}
23634_ACEOF
23635if ac_fn_c_try_link "$LINENO"; then :
23636                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23637$as_echo "yes" >&6; }
23638else
23639                      LIBS=$my_ac_save_LIBS
23640                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23641$as_echo "no" >&6; }
23642
23643fi
23644rm -f core conftest.err conftest.$ac_objext \
23645    conftest$ac_exeext conftest.$ac_ext
23646      ;;
23647  esac
23648
23649  case "$OPT_SSL" in
23650  yes)
23651        if test x$cross_compiling != xyes; then
23652            PKGTEST="yes"
23653    fi
23654    PREFIX_OPENSSL=/usr/local/ssl
23655    LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
23656    ;;
23657  off)
23658        if test x$cross_compiling != xyes; then
23659            PKGTEST="yes"
23660    fi
23661    PREFIX_OPENSSL=
23662    ;;
23663  *)
23664        PKGTEST="no"
23665    PREFIX_OPENSSL=$OPT_SSL
23666
23667                OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
23668    if test -f "$OPENSSL_PCDIR/openssl.pc"; then
23669      { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
23670$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
23671      PKGTEST="yes"
23672    elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
23673      as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
23674    fi
23675
23676            LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
23677    if test "$PREFIX_OPENSSL" != "/usr" ; then
23678      SSL_LDFLAGS="-L$LIB_OPENSSL"
23679      SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
23680    fi
23681    SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
23682    ;;
23683  esac
23684
23685  if test "$PKGTEST" = "yes"; then
23686
23687
23688    if test -n "$PKG_CONFIG"; then
23689      PKGCONFIG="$PKG_CONFIG"
23690    else
23691      if test -n "$ac_tool_prefix"; then
23692  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23693set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23695$as_echo_n "checking for $ac_word... " >&6; }
23696if ${ac_cv_path_PKGCONFIG+:} false; then :
23697  $as_echo_n "(cached) " >&6
23698else
23699  case $PKGCONFIG in
23700  [\\/]* | ?:[\\/]*)
23701  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23702  ;;
23703  *)
23704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23705as_dummy="$PATH:/usr/bin:/usr/local/bin"
23706for as_dir in $as_dummy
23707do
23708  IFS=$as_save_IFS
23709  test -z "$as_dir" && as_dir=.
23710    for ac_exec_ext in '' $ac_executable_extensions; do
23711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23712    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23714    break 2
23715  fi
23716done
23717  done
23718IFS=$as_save_IFS
23719
23720  ;;
23721esac
23722fi
23723PKGCONFIG=$ac_cv_path_PKGCONFIG
23724if test -n "$PKGCONFIG"; then
23725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23726$as_echo "$PKGCONFIG" >&6; }
23727else
23728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23729$as_echo "no" >&6; }
23730fi
23731
23732
23733fi
23734if test -z "$ac_cv_path_PKGCONFIG"; then
23735  ac_pt_PKGCONFIG=$PKGCONFIG
23736  # Extract the first word of "pkg-config", so it can be a program name with args.
23737set dummy pkg-config; ac_word=$2
23738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23739$as_echo_n "checking for $ac_word... " >&6; }
23740if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23741  $as_echo_n "(cached) " >&6
23742else
23743  case $ac_pt_PKGCONFIG in
23744  [\\/]* | ?:[\\/]*)
23745  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23746  ;;
23747  *)
23748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23749as_dummy="$PATH:/usr/bin:/usr/local/bin"
23750for as_dir in $as_dummy
23751do
23752  IFS=$as_save_IFS
23753  test -z "$as_dir" && as_dir=.
23754    for ac_exec_ext in '' $ac_executable_extensions; do
23755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23756    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23758    break 2
23759  fi
23760done
23761  done
23762IFS=$as_save_IFS
23763
23764  ;;
23765esac
23766fi
23767ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23768if test -n "$ac_pt_PKGCONFIG"; then
23769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23770$as_echo "$ac_pt_PKGCONFIG" >&6; }
23771else
23772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23773$as_echo "no" >&6; }
23774fi
23775
23776  if test "x$ac_pt_PKGCONFIG" = x; then
23777    PKGCONFIG="no"
23778  else
23779    case $cross_compiling:$ac_tool_warned in
23780yes:)
23781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23783ac_tool_warned=yes ;;
23784esac
23785    PKGCONFIG=$ac_pt_PKGCONFIG
23786  fi
23787else
23788  PKGCONFIG="$ac_cv_path_PKGCONFIG"
23789fi
23790
23791    fi
23792
23793    if test "x$PKGCONFIG" != "xno"; then
23794      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
23795$as_echo_n "checking for openssl options with pkg-config... " >&6; }
23796            itexists=`
23797    if test -n "$OPENSSL_PCDIR"; then
23798      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
23799      export PKG_CONFIG_LIBDIR
23800    fi
23801         $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
23802
23803      if test -z "$itexists"; then
23804                        PKGCONFIG="no"
23805        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23806$as_echo "no" >&6; }
23807      else
23808        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23809$as_echo "found" >&6; }
23810      fi
23811    fi
23812
23813
23814    if test "$PKGCONFIG" != "no" ; then
23815      SSL_LIBS=`
23816    if test -n "$OPENSSL_PCDIR"; then
23817      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
23818      export PKG_CONFIG_LIBDIR
23819    fi
23820         $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
23821
23822      SSL_LDFLAGS=`
23823    if test -n "$OPENSSL_PCDIR"; then
23824      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
23825      export PKG_CONFIG_LIBDIR
23826    fi
23827         $PKGCONFIG --libs-only-L openssl 2>/dev/null`
23828
23829      SSL_CPPFLAGS=`
23830    if test -n "$OPENSSL_PCDIR"; then
23831      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
23832      export PKG_CONFIG_LIBDIR
23833    fi
23834         $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
23835
23836
23837      { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
23838$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
23839      { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
23840$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
23841      { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
23842$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
23843
23844      LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
23845
23846                                          LIBS="$SSL_LIBS $LIBS"
23847    fi
23848  fi
23849
23850    CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
23851  LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
23852
23853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
23854$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
23855if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
23856  $as_echo_n "(cached) " >&6
23857else
23858  ac_check_lib_save_LIBS=$LIBS
23859LIBS="-lcrypto  $LIBS"
23860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861/* end confdefs.h.  */
23862
23863
23864#ifdef __cplusplus
23865extern "C"
23866#endif
23867char HMAC_Update ();
23868int main (void)
23869{
23870return HMAC_Update ();
23871 ;
23872 return 0;
23873}
23874_ACEOF
23875if ac_fn_c_try_link "$LINENO"; then :
23876  ac_cv_lib_crypto_HMAC_Update=yes
23877else
23878  ac_cv_lib_crypto_HMAC_Update=no
23879fi
23880rm -f core conftest.err conftest.$ac_objext \
23881    conftest$ac_exeext conftest.$ac_ext
23882LIBS=$ac_check_lib_save_LIBS
23883fi
23884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
23885$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
23886if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
23887
23888     HAVECRYPTO="yes"
23889     LIBS="-lcrypto $LIBS"
23890
23891else
23892
23893     LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
23894     if test "$PKGCONFIG" = "no" ; then
23895       # only set this if pkg-config wasn't used
23896       CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
23897     fi
23898     # Linking previously failed, try extra paths from --with-ssl or pkg-config.
23899     # Use a different function name to avoid reusing the earlier cached result.
23900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
23901$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
23902if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
23903  $as_echo_n "(cached) " >&6
23904else
23905  ac_check_lib_save_LIBS=$LIBS
23906LIBS="-lcrypto  $LIBS"
23907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908/* end confdefs.h.  */
23909
23910
23911#ifdef __cplusplus
23912extern "C"
23913#endif
23914char HMAC_Init_ex ();
23915int main (void)
23916{
23917return HMAC_Init_ex ();
23918 ;
23919 return 0;
23920}
23921_ACEOF
23922if ac_fn_c_try_link "$LINENO"; then :
23923  ac_cv_lib_crypto_HMAC_Init_ex=yes
23924else
23925  ac_cv_lib_crypto_HMAC_Init_ex=no
23926fi
23927rm -f core conftest.err conftest.$ac_objext \
23928    conftest$ac_exeext conftest.$ac_ext
23929LIBS=$ac_check_lib_save_LIBS
23930fi
23931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
23932$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
23933if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
23934
23935       HAVECRYPTO="yes"
23936       LIBS="-lcrypto $LIBS"
23937else
23938
23939
23940              { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
23941$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
23942       LIBS="$CLEANLIBS -lcrypto -ldl"
23943       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23944/* end confdefs.h.  */
23945
23946         #include <openssl/err.h>
23947
23948int main (void)
23949{
23950
23951         ERR_clear_error();
23952
23953 ;
23954 return 0;
23955}
23956_ACEOF
23957if ac_fn_c_try_link "$LINENO"; then :
23958
23959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23960$as_echo "yes" >&6; }
23961         HAVECRYPTO="yes"
23962
23963else
23964
23965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23966$as_echo "no" >&6; }
23967
23968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
23969$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
23970         LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
23971         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972/* end confdefs.h.  */
23973
23974           #include <openssl/err.h>
23975
23976int main (void)
23977{
23978
23979           ERR_clear_error();
23980
23981 ;
23982 return 0;
23983}
23984_ACEOF
23985if ac_fn_c_try_link "$LINENO"; then :
23986
23987           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23988$as_echo "yes" >&6; }
23989           HAVECRYPTO="yes"
23990
23991else
23992
23993           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23994$as_echo "no" >&6; }
23995           LDFLAGS="$CLEANLDFLAGS"
23996           CPPFLAGS="$CLEANCPPFLAGS"
23997           LIBS="$CLEANLIBS"
23998
23999
24000fi
24001rm -f core conftest.err conftest.$ac_objext \
24002    conftest$ac_exeext conftest.$ac_ext
24003
24004
24005fi
24006rm -f core conftest.err conftest.$ac_objext \
24007    conftest$ac_exeext conftest.$ac_ext
24008
24009
24010fi
24011
24012
24013fi
24014
24015
24016  if test X"$HAVECRYPTO" = X"yes"; then
24017
24018    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
24019$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
24020if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
24021  $as_echo_n "(cached) " >&6
24022else
24023  ac_check_lib_save_LIBS=$LIBS
24024LIBS="-lssl  $LIBS"
24025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24026/* end confdefs.h.  */
24027
24028
24029#ifdef __cplusplus
24030extern "C"
24031#endif
24032char SSL_connect ();
24033int main (void)
24034{
24035return SSL_connect ();
24036 ;
24037 return 0;
24038}
24039_ACEOF
24040if ac_fn_c_try_link "$LINENO"; then :
24041  ac_cv_lib_ssl_SSL_connect=yes
24042else
24043  ac_cv_lib_ssl_SSL_connect=no
24044fi
24045rm -f core conftest.err conftest.$ac_objext \
24046    conftest$ac_exeext conftest.$ac_ext
24047LIBS=$ac_check_lib_save_LIBS
24048fi
24049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
24050$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
24051if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
24052  cat >>confdefs.h <<_ACEOF
24053#define HAVE_LIBSSL 1
24054_ACEOF
24055
24056  LIBS="-lssl $LIBS"
24057
24058fi
24059
24060
24061    if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24062                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
24063$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
24064        OLIBS=$LIBS
24065        LIBS="-lRSAglue -lrsaref $LIBS"
24066        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
24067$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
24068if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
24069  $as_echo_n "(cached) " >&6
24070else
24071  ac_check_lib_save_LIBS=$LIBS
24072LIBS="-lssl  $LIBS"
24073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24074/* end confdefs.h.  */
24075
24076
24077#ifdef __cplusplus
24078extern "C"
24079#endif
24080char SSL_connect ();
24081int main (void)
24082{
24083return SSL_connect ();
24084 ;
24085 return 0;
24086}
24087_ACEOF
24088if ac_fn_c_try_link "$LINENO"; then :
24089  ac_cv_lib_ssl_SSL_connect=yes
24090else
24091  ac_cv_lib_ssl_SSL_connect=no
24092fi
24093rm -f core conftest.err conftest.$ac_objext \
24094    conftest$ac_exeext conftest.$ac_ext
24095LIBS=$ac_check_lib_save_LIBS
24096fi
24097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
24098$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
24099if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
24100  cat >>confdefs.h <<_ACEOF
24101#define HAVE_LIBSSL 1
24102_ACEOF
24103
24104  LIBS="-lssl $LIBS"
24105
24106fi
24107
24108        if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24109                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24110$as_echo "no" >&6; }
24111            LIBS=$OLIBS
24112        else
24113            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24114$as_echo "yes" >&6; }
24115        fi
24116
24117    else
24118
24119            for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
24120                       openssl/pem.h openssl/ssl.h openssl/err.h
24121do :
24122  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24123ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24124if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24125  cat >>confdefs.h <<_ACEOF
24126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24127_ACEOF
24128 ssl_msg="OpenSSL"
24129	test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24130        OPENSSL_ENABLED=1
24131
24132$as_echo "#define USE_OPENSSL 1" >>confdefs.h
24133
24134fi
24135
24136done
24137
24138
24139      if test $ac_cv_header_openssl_x509_h = no; then
24140                                for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
24141do :
24142  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24143ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24145  cat >>confdefs.h <<_ACEOF
24146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24147_ACEOF
24148
24149fi
24150
24151done
24152
24153
24154        if test $ac_cv_header_x509_h = yes &&
24155           test $ac_cv_header_crypto_h = yes &&
24156           test $ac_cv_header_ssl_h = yes; then
24157                    ssl_msg="OpenSSL"
24158          OPENSSL_ENABLED=1
24159        fi
24160      fi
24161    fi
24162
24163    if test X"$OPENSSL_ENABLED" != X"1"; then
24164       LIBS="$CLEANLIBS"
24165    fi
24166
24167    if test X"$OPT_SSL" != Xoff &&
24168       test "$OPENSSL_ENABLED" != "1"; then
24169      as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
24170    fi
24171  fi
24172
24173  if test X"$OPENSSL_ENABLED" = X"1"; then
24174
24175    for ac_func in RAND_egd \
24176                    SSLv2_client_method \
24177                    OpenSSL_version
24178do :
24179  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24180ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24181if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24182  cat >>confdefs.h <<_ACEOF
24183#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24184_ACEOF
24185
24186fi
24187done
24188
24189
24190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
24191$as_echo_n "checking for BoringSSL... " >&6; }
24192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193/* end confdefs.h.  */
24194
24195
24196                #include <openssl/base.h>
24197
24198int main (void)
24199{
24200
24201                #ifndef OPENSSL_IS_BORINGSSL
24202                #error not boringssl
24203                #endif
24204
24205 ;
24206 return 0;
24207}
24208
24209_ACEOF
24210if ac_fn_c_try_compile "$LINENO"; then :
24211
24212        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24213$as_echo "yes" >&6; }
24214
24215cat >>confdefs.h <<_ACEOF
24216#define HAVE_BORINGSSL 1
24217_ACEOF
24218
24219        ssl_msg="BoringSSL"
24220
24221else
24222
24223        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24224$as_echo "no" >&6; }
24225
24226fi
24227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228
24229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
24230$as_echo_n "checking for libressl... " >&6; }
24231    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24232/* end confdefs.h.  */
24233
24234
24235#include <openssl/opensslv.h>
24236
24237int main (void)
24238{
24239
24240        int dummy = LIBRESSL_VERSION_NUMBER;
24241
24242 ;
24243 return 0;
24244}
24245
24246_ACEOF
24247if ac_fn_c_try_compile "$LINENO"; then :
24248
24249      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24250$as_echo "yes" >&6; }
24251
24252cat >>confdefs.h <<_ACEOF
24253#define HAVE_LIBRESSL 1
24254_ACEOF
24255
24256      ssl_msg="libressl"
24257
24258else
24259
24260      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24261$as_echo "no" >&6; }
24262
24263fi
24264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24265
24266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
24267$as_echo_n "checking for OpenSSL >= v3... " >&6; }
24268    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24269/* end confdefs.h.  */
24270
24271
24272#include <openssl/opensslv.h>
24273
24274int main (void)
24275{
24276
24277        #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
24278        return 0;
24279        #else
24280        #error older than 3
24281        #endif
24282
24283 ;
24284 return 0;
24285}
24286
24287_ACEOF
24288if ac_fn_c_try_compile "$LINENO"; then :
24289
24290      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24291$as_echo "yes" >&6; }
24292
24293cat >>confdefs.h <<_ACEOF
24294#define HAVE_OPENSSL3 1
24295_ACEOF
24296
24297                              CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
24298      ssl_msg="OpenSSL v3+"
24299
24300else
24301
24302      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24303$as_echo "no" >&6; }
24304
24305fi
24306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24307  fi
24308
24309  if test "$OPENSSL_ENABLED" = "1"; then
24310    if test -n "$LIB_OPENSSL"; then
24311                            if test "x$cross_compiling" != "xyes"; then
24312         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
24313         export CURL_LIBRARY_PATH
24314         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
24315$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
24316       fi
24317    fi
24318
24319  #
24320
24321  #
24322  tst_api="unknown"
24323  #
24324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
24325$as_echo_n "checking for OpenSSL headers version... " >&6; }
24326
24327    OLDCPPFLAGS=$CPPFLAGS
24328  # CPPPFLAG comes from CURL_CPP_P
24329  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
24330      if test -z "$SED"; then
24331    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
24332  fi
24333  if test -z "$GREP"; then
24334    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
24335  fi
24336
24337  tmp_exp=""
24338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24339/* end confdefs.h.  */
24340
24341
24342#   ifdef USE_OPENSSL
24343#     include <openssl/crypto.h>
24344#   else
24345#     include <crypto.h>
24346#   endif
24347
24348#ifdef OPENSSL_VERSION_NUMBER
24349CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
24350#endif
24351
24352
24353_ACEOF
24354if ac_fn_c_try_cpp "$LINENO"; then :
24355
24356    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
24357      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
24358      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
24359      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
24360    if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
24361      tmp_exp=""
24362    fi
24363
24364fi
24365rm -f conftest.err conftest.i conftest.$ac_ext
24366  if test -z "$tmp_exp"; then
24367    curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
24368
24369  else
24370    curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
24371    curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
24372
24373  fi
24374      CPPFLAGS=$OLDCPPFLAGS
24375
24376  if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
24377    tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
24378    case "x$tst_verlen" in
24379      x6)
24380        tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
24381        tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
24382        tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
24383        tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
24384        ;;
24385      x11|x10)
24386        tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
24387        tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
24388        tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
24389        tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
24390        ;;
24391      *)
24392        tst_api="unknown"
24393        ;;
24394    esac
24395    case $tst_api in
24396      0x111) tst_show="1.1.1" ;;
24397      0x110) tst_show="1.1.0" ;;
24398      0x102) tst_show="1.0.2" ;;
24399      0x101) tst_show="1.0.1" ;;
24400      0x100) tst_show="1.0.0" ;;
24401      0x099) tst_show="0.9.9" ;;
24402      0x098) tst_show="0.9.8" ;;
24403      0x097) tst_show="0.9.7" ;;
24404      0x096) tst_show="0.9.6" ;;
24405      0x095) tst_show="0.9.5" ;;
24406      0x094) tst_show="0.9.4" ;;
24407      0x093) tst_show="0.9.3" ;;
24408      0x092) tst_show="0.9.2" ;;
24409      0x091) tst_show="0.9.1" ;;
24410      *)     tst_show="unknown" ;;
24411    esac
24412    tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
24413  else
24414    tst_show="unknown"
24415  fi
24416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
24417$as_echo "$tst_show" >&6; }
24418  #
24419  curl_openssl_api_headers=$tst_api
24420
24421
24422  #
24423  tst_api="unknown"
24424  #
24425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
24426$as_echo_n "checking for OpenSSL library version... " >&6; }
24427  if test "$tst_api" = "unknown"; then
24428    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24429/* end confdefs.h.  */
24430
24431
24432#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
24433#ifdef __STDC__
24434# include <limits.h>
24435#else
24436# include <assert.h>
24437#endif
24438#undef ERR_clear_last_mark
24439#ifdef __cplusplus
24440extern "C"
24441#endif
24442char ERR_clear_last_mark ();
24443#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
24444choke me
24445#endif
24446
24447int main (void)
24448{
24449return ERR_clear_last_mark ();
24450 ;
24451 return 0;
24452}
24453
24454_ACEOF
24455if ac_fn_c_try_link "$LINENO"; then :
24456
24457      tst_api="0x111"
24458
24459fi
24460rm -f core conftest.err conftest.$ac_objext \
24461    conftest$ac_exeext conftest.$ac_ext
24462  fi
24463  if test "$tst_api" = "unknown"; then
24464    case $host in
24465      *-*-vms*)
24466        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24467/* end confdefs.h.  */
24468
24469
24470#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
24471#ifdef __STDC__
24472# include <limits.h>
24473#else
24474# include <assert.h>
24475#endif
24476#undef SSL_CTX_set_not_resumbl_sess_cb
24477#ifdef __cplusplus
24478extern "C"
24479#endif
24480char SSL_CTX_set_not_resumbl_sess_cb ();
24481#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
24482choke me
24483#endif
24484
24485int main (void)
24486{
24487return SSL_CTX_set_not_resumbl_sess_cb ();
24488 ;
24489 return 0;
24490}
24491
24492_ACEOF
24493if ac_fn_c_try_link "$LINENO"; then :
24494
24495          tst_api="0x110"
24496
24497fi
24498rm -f core conftest.err conftest.$ac_objext \
24499    conftest$ac_exeext conftest.$ac_ext
24500        ;;
24501      *)
24502        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24503/* end confdefs.h.  */
24504
24505
24506#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
24507#ifdef __STDC__
24508# include <limits.h>
24509#else
24510# include <assert.h>
24511#endif
24512#undef SSL_CTX_set_not_resumable_session_callback
24513#ifdef __cplusplus
24514extern "C"
24515#endif
24516char SSL_CTX_set_not_resumable_session_callback ();
24517#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
24518choke me
24519#endif
24520
24521int main (void)
24522{
24523return SSL_CTX_set_not_resumable_session_callback ();
24524 ;
24525 return 0;
24526}
24527
24528_ACEOF
24529if ac_fn_c_try_link "$LINENO"; then :
24530
24531          tst_api="0x110"
24532
24533fi
24534rm -f core conftest.err conftest.$ac_objext \
24535    conftest$ac_exeext conftest.$ac_ext
24536        ;;
24537    esac
24538  fi
24539  if test "$tst_api" = "unknown"; then
24540    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24541/* end confdefs.h.  */
24542
24543
24544#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
24545#ifdef __STDC__
24546# include <limits.h>
24547#else
24548# include <assert.h>
24549#endif
24550#undef SSL_CONF_CTX_new
24551#ifdef __cplusplus
24552extern "C"
24553#endif
24554char SSL_CONF_CTX_new ();
24555#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
24556choke me
24557#endif
24558
24559int main (void)
24560{
24561return SSL_CONF_CTX_new ();
24562 ;
24563 return 0;
24564}
24565
24566_ACEOF
24567if ac_fn_c_try_link "$LINENO"; then :
24568
24569      tst_api="0x102"
24570
24571fi
24572rm -f core conftest.err conftest.$ac_objext \
24573    conftest$ac_exeext conftest.$ac_ext
24574  fi
24575  if test "$tst_api" = "unknown"; then
24576    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24577/* end confdefs.h.  */
24578
24579
24580#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
24581#ifdef __STDC__
24582# include <limits.h>
24583#else
24584# include <assert.h>
24585#endif
24586#undef SSL_renegotiate_abbreviated
24587#ifdef __cplusplus
24588extern "C"
24589#endif
24590char SSL_renegotiate_abbreviated ();
24591#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
24592choke me
24593#endif
24594
24595int main (void)
24596{
24597return SSL_renegotiate_abbreviated ();
24598 ;
24599 return 0;
24600}
24601
24602_ACEOF
24603if ac_fn_c_try_link "$LINENO"; then :
24604
24605      tst_api="0x101"
24606
24607fi
24608rm -f core conftest.err conftest.$ac_objext \
24609    conftest$ac_exeext conftest.$ac_ext
24610  fi
24611  if test "$tst_api" = "unknown"; then
24612    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24613/* end confdefs.h.  */
24614
24615
24616#define OBJ_add_sigid innocuous_OBJ_add_sigid
24617#ifdef __STDC__
24618# include <limits.h>
24619#else
24620# include <assert.h>
24621#endif
24622#undef OBJ_add_sigid
24623#ifdef __cplusplus
24624extern "C"
24625#endif
24626char OBJ_add_sigid ();
24627#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
24628choke me
24629#endif
24630
24631int main (void)
24632{
24633return OBJ_add_sigid ();
24634 ;
24635 return 0;
24636}
24637
24638_ACEOF
24639if ac_fn_c_try_link "$LINENO"; then :
24640
24641      tst_api="0x100"
24642
24643fi
24644rm -f core conftest.err conftest.$ac_objext \
24645    conftest$ac_exeext conftest.$ac_ext
24646  fi
24647  if test "$tst_api" = "unknown"; then
24648    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649/* end confdefs.h.  */
24650
24651
24652#define ERR_set_mark innocuous_ERR_set_mark
24653#ifdef __STDC__
24654# include <limits.h>
24655#else
24656# include <assert.h>
24657#endif
24658#undef ERR_set_mark
24659#ifdef __cplusplus
24660extern "C"
24661#endif
24662char ERR_set_mark ();
24663#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
24664choke me
24665#endif
24666
24667int main (void)
24668{
24669return ERR_set_mark ();
24670 ;
24671 return 0;
24672}
24673
24674_ACEOF
24675if ac_fn_c_try_link "$LINENO"; then :
24676
24677      tst_api="0x098"
24678
24679fi
24680rm -f core conftest.err conftest.$ac_objext \
24681    conftest$ac_exeext conftest.$ac_ext
24682  fi
24683  if test "$tst_api" = "unknown"; then
24684    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24685/* end confdefs.h.  */
24686
24687
24688#define ERR_peek_last_error innocuous_ERR_peek_last_error
24689#ifdef __STDC__
24690# include <limits.h>
24691#else
24692# include <assert.h>
24693#endif
24694#undef ERR_peek_last_error
24695#ifdef __cplusplus
24696extern "C"
24697#endif
24698char ERR_peek_last_error ();
24699#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
24700choke me
24701#endif
24702
24703int main (void)
24704{
24705return ERR_peek_last_error ();
24706 ;
24707 return 0;
24708}
24709
24710_ACEOF
24711if ac_fn_c_try_link "$LINENO"; then :
24712
24713      tst_api="0x097"
24714
24715fi
24716rm -f core conftest.err conftest.$ac_objext \
24717    conftest$ac_exeext conftest.$ac_ext
24718  fi
24719  if test "$tst_api" = "unknown"; then
24720    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24721/* end confdefs.h.  */
24722
24723
24724#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
24725#ifdef __STDC__
24726# include <limits.h>
24727#else
24728# include <assert.h>
24729#endif
24730#undef c2i_ASN1_OBJECT
24731#ifdef __cplusplus
24732extern "C"
24733#endif
24734char c2i_ASN1_OBJECT ();
24735#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
24736choke me
24737#endif
24738
24739int main (void)
24740{
24741return c2i_ASN1_OBJECT ();
24742 ;
24743 return 0;
24744}
24745
24746_ACEOF
24747if ac_fn_c_try_link "$LINENO"; then :
24748
24749      tst_api="0x096"
24750
24751fi
24752rm -f core conftest.err conftest.$ac_objext \
24753    conftest$ac_exeext conftest.$ac_ext
24754  fi
24755  if test "$tst_api" = "unknown"; then
24756    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757/* end confdefs.h.  */
24758
24759
24760#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
24761#ifdef __STDC__
24762# include <limits.h>
24763#else
24764# include <assert.h>
24765#endif
24766#undef SSL_CTX_set_purpose
24767#ifdef __cplusplus
24768extern "C"
24769#endif
24770char SSL_CTX_set_purpose ();
24771#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
24772choke me
24773#endif
24774
24775int main (void)
24776{
24777return SSL_CTX_set_purpose ();
24778 ;
24779 return 0;
24780}
24781
24782_ACEOF
24783if ac_fn_c_try_link "$LINENO"; then :
24784
24785      tst_api="0x095"
24786
24787fi
24788rm -f core conftest.err conftest.$ac_objext \
24789    conftest$ac_exeext conftest.$ac_ext
24790  fi
24791  if test "$tst_api" = "unknown"; then
24792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24793/* end confdefs.h.  */
24794
24795
24796#define OBJ_obj2txt innocuous_OBJ_obj2txt
24797#ifdef __STDC__
24798# include <limits.h>
24799#else
24800# include <assert.h>
24801#endif
24802#undef OBJ_obj2txt
24803#ifdef __cplusplus
24804extern "C"
24805#endif
24806char OBJ_obj2txt ();
24807#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
24808choke me
24809#endif
24810
24811int main (void)
24812{
24813return OBJ_obj2txt ();
24814 ;
24815 return 0;
24816}
24817
24818_ACEOF
24819if ac_fn_c_try_link "$LINENO"; then :
24820
24821      tst_api="0x094"
24822
24823fi
24824rm -f core conftest.err conftest.$ac_objext \
24825    conftest$ac_exeext conftest.$ac_ext
24826  fi
24827  if test "$tst_api" = "unknown"; then
24828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24829/* end confdefs.h.  */
24830
24831
24832#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
24833#ifdef __STDC__
24834# include <limits.h>
24835#else
24836# include <assert.h>
24837#endif
24838#undef SSL_get_verify_depth
24839#ifdef __cplusplus
24840extern "C"
24841#endif
24842char SSL_get_verify_depth ();
24843#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
24844choke me
24845#endif
24846
24847int main (void)
24848{
24849return SSL_get_verify_depth ();
24850 ;
24851 return 0;
24852}
24853
24854_ACEOF
24855if ac_fn_c_try_link "$LINENO"; then :
24856
24857      tst_api="0x093"
24858
24859fi
24860rm -f core conftest.err conftest.$ac_objext \
24861    conftest$ac_exeext conftest.$ac_ext
24862  fi
24863  if test "$tst_api" = "unknown"; then
24864    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24865/* end confdefs.h.  */
24866
24867
24868#define SSL_library_init innocuous_SSL_library_init
24869#ifdef __STDC__
24870# include <limits.h>
24871#else
24872# include <assert.h>
24873#endif
24874#undef SSL_library_init
24875#ifdef __cplusplus
24876extern "C"
24877#endif
24878char SSL_library_init ();
24879#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
24880choke me
24881#endif
24882
24883int main (void)
24884{
24885return SSL_library_init ();
24886 ;
24887 return 0;
24888}
24889
24890_ACEOF
24891if ac_fn_c_try_link "$LINENO"; then :
24892
24893      tst_api="0x092"
24894
24895fi
24896rm -f core conftest.err conftest.$ac_objext \
24897    conftest$ac_exeext conftest.$ac_ext
24898  fi
24899  if test "$tst_api" = "unknown"; then
24900    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24901/* end confdefs.h.  */
24902
24903
24904#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
24905#ifdef __STDC__
24906# include <limits.h>
24907#else
24908# include <assert.h>
24909#endif
24910#undef SSL_CTX_set_cipher_list
24911#ifdef __cplusplus
24912extern "C"
24913#endif
24914char SSL_CTX_set_cipher_list ();
24915#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
24916choke me
24917#endif
24918
24919int main (void)
24920{
24921return SSL_CTX_set_cipher_list ();
24922 ;
24923 return 0;
24924}
24925
24926_ACEOF
24927if ac_fn_c_try_link "$LINENO"; then :
24928
24929      tst_api="0x091"
24930
24931fi
24932rm -f core conftest.err conftest.$ac_objext \
24933    conftest$ac_exeext conftest.$ac_ext
24934  fi
24935  case $tst_api in
24936    0x111) tst_show="1.1.1" ;;
24937    0x110) tst_show="1.1.0" ;;
24938    0x102) tst_show="1.0.2" ;;
24939    0x101) tst_show="1.0.1" ;;
24940    0x100) tst_show="1.0.0" ;;
24941    0x099) tst_show="0.9.9" ;;
24942    0x098) tst_show="0.9.8" ;;
24943    0x097) tst_show="0.9.7" ;;
24944    0x096) tst_show="0.9.6" ;;
24945    0x095) tst_show="0.9.5" ;;
24946    0x094) tst_show="0.9.4" ;;
24947    0x093) tst_show="0.9.3" ;;
24948    0x092) tst_show="0.9.2" ;;
24949    0x091) tst_show="0.9.1" ;;
24950    *)     tst_show="unknown" ;;
24951  esac
24952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
24953$as_echo "$tst_show" >&6; }
24954  #
24955  curl_openssl_api_library=$tst_api
24956
24957  #
24958  tst_match="yes"
24959  #
24960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
24961$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
24962  if test "$curl_openssl_api_headers" = "unknown" ||
24963    test "$curl_openssl_api_library" = "unknown"; then
24964    tst_match="fail"
24965    tst_warns="Can not compare OpenSSL headers and library versions."
24966  elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
24967    tst_match="no"
24968    tst_warns="OpenSSL headers and library versions do not match."
24969  fi
24970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
24971$as_echo "$tst_match" >&6; }
24972  if test "$tst_match" != "yes"; then
24973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
24974$as_echo "$as_me: WARNING: $tst_warns" >&2;}
24975  fi
24976
24977    check_for_ca_bundle=1
24978  fi
24979
24980  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24981fi
24982
24983if test X"$OPT_SSL" != Xoff &&
24984  test X"$OPT_SSL" != Xno &&
24985  test "$OPENSSL_ENABLED" != "1"; then
24986  { $as_echo "$as_me:${as_lineno-$LINENO}: OPT_SSL: $OPT_SSL" >&5
24987$as_echo "$as_me: OPT_SSL: $OPT_SSL" >&6;}
24988  { $as_echo "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
24989$as_echo "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
24990  as_fn_error $? "--with-ssl was given but OpenSSL could not be detected" "$LINENO" 5
24991fi
24992
24993
24994if test X"$OPENSSL_ENABLED" = X"1"; then
24995
24996# Check whether --with-egd-socket was given.
24997if test "${with_egd_socket+set}" = set; then :
24998  withval=$with_egd_socket;  EGD_SOCKET="$withval"
24999
25000fi
25001
25002  if test -n "$EGD_SOCKET" ; then
25003
25004cat >>confdefs.h <<_ACEOF
25005#define EGD_SOCKET "$EGD_SOCKET"
25006_ACEOF
25007
25008  fi
25009
25010
25011# Check whether --with-random was given.
25012if test "${with_random+set}" = set; then :
25013  withval=$with_random;  RANDOM_FILE="$withval"
25014else
25015
25016          if test x$cross_compiling != xyes; then
25017                        as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
25018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
25019$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
25020if eval \${$as_ac_File+:} false; then :
25021  $as_echo_n "(cached) " >&6
25022else
25023  test "$cross_compiling" = yes &&
25024  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
25025if test -r ""/dev/urandom""; then
25026  eval "$as_ac_File=yes"
25027else
25028  eval "$as_ac_File=no"
25029fi
25030fi
25031eval ac_res=\$$as_ac_File
25032	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25033$as_echo "$ac_res" >&6; }
25034if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
25035   RANDOM_FILE="/dev/urandom"
25036fi
25037
25038          else
25039            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
25040$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
25041          fi
25042
25043
25044fi
25045
25046  if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
25047
25048
25049cat >>confdefs.h <<_ACEOF
25050#define RANDOM_FILE "$RANDOM_FILE"
25051_ACEOF
25052
25053  fi
25054fi
25055
25056if test "$OPENSSL_ENABLED" = "1"; then
25057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
25058$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
25059if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
25060  $as_echo_n "(cached) " >&6
25061else
25062  ac_check_lib_save_LIBS=$LIBS
25063LIBS="-lcrypto  $LIBS"
25064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065/* end confdefs.h.  */
25066
25067
25068#ifdef __cplusplus
25069extern "C"
25070#endif
25071char SRP_Calc_client_key ();
25072int main (void)
25073{
25074return SRP_Calc_client_key ();
25075 ;
25076 return 0;
25077}
25078_ACEOF
25079if ac_fn_c_try_link "$LINENO"; then :
25080  ac_cv_lib_crypto_SRP_Calc_client_key=yes
25081else
25082  ac_cv_lib_crypto_SRP_Calc_client_key=no
25083fi
25084rm -f core conftest.err conftest.$ac_objext \
25085    conftest$ac_exeext conftest.$ac_ext
25086LIBS=$ac_check_lib_save_LIBS
25087fi
25088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
25089$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
25090if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
25091
25092
25093$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
25094
25095     HAVE_OPENSSL_SRP=1
25096
25097
25098fi
25099
25100fi
25101
25102if test X"$OPENSSL_ENABLED" = X"1"; then
25103# Check whether --enable-openssl-auto-load-config was given.
25104if test "${enable_openssl_auto_load_config+set}" = set; then :
25105  enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
25106    { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
25107$as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
25108
25109$as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
25110
25111  fi
25112
25113fi
25114
25115fi
25116
25117
25118OPT_GNUTLS=no
25119
25120
25121# Check whether --with-gnutls was given.
25122if test "${with_gnutls+set}" = set; then :
25123  withval=$with_gnutls; OPT_GNUTLS=$withval
25124fi
25125
25126
25127if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
25128  ssl_msg=
25129
25130  if test X"$OPT_GNUTLS" != Xno; then
25131
25132    addld=""
25133    addlib=""
25134    gtlslib=""
25135    version=""
25136    addcflags=""
25137
25138    if test "x$OPT_GNUTLS" = "xyes"; then
25139
25140    if test -n "$PKG_CONFIG"; then
25141      PKGCONFIG="$PKG_CONFIG"
25142    else
25143      if test -n "$ac_tool_prefix"; then
25144  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25145set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25147$as_echo_n "checking for $ac_word... " >&6; }
25148if ${ac_cv_path_PKGCONFIG+:} false; then :
25149  $as_echo_n "(cached) " >&6
25150else
25151  case $PKGCONFIG in
25152  [\\/]* | ?:[\\/]*)
25153  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25154  ;;
25155  *)
25156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25157as_dummy="$PATH:/usr/bin:/usr/local/bin"
25158for as_dir in $as_dummy
25159do
25160  IFS=$as_save_IFS
25161  test -z "$as_dir" && as_dir=.
25162    for ac_exec_ext in '' $ac_executable_extensions; do
25163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25164    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25166    break 2
25167  fi
25168done
25169  done
25170IFS=$as_save_IFS
25171
25172  ;;
25173esac
25174fi
25175PKGCONFIG=$ac_cv_path_PKGCONFIG
25176if test -n "$PKGCONFIG"; then
25177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25178$as_echo "$PKGCONFIG" >&6; }
25179else
25180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25181$as_echo "no" >&6; }
25182fi
25183
25184
25185fi
25186if test -z "$ac_cv_path_PKGCONFIG"; then
25187  ac_pt_PKGCONFIG=$PKGCONFIG
25188  # Extract the first word of "pkg-config", so it can be a program name with args.
25189set dummy pkg-config; ac_word=$2
25190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25191$as_echo_n "checking for $ac_word... " >&6; }
25192if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25193  $as_echo_n "(cached) " >&6
25194else
25195  case $ac_pt_PKGCONFIG in
25196  [\\/]* | ?:[\\/]*)
25197  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25198  ;;
25199  *)
25200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25201as_dummy="$PATH:/usr/bin:/usr/local/bin"
25202for as_dir in $as_dummy
25203do
25204  IFS=$as_save_IFS
25205  test -z "$as_dir" && as_dir=.
25206    for ac_exec_ext in '' $ac_executable_extensions; do
25207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25208    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25210    break 2
25211  fi
25212done
25213  done
25214IFS=$as_save_IFS
25215
25216  ;;
25217esac
25218fi
25219ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25220if test -n "$ac_pt_PKGCONFIG"; then
25221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25222$as_echo "$ac_pt_PKGCONFIG" >&6; }
25223else
25224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225$as_echo "no" >&6; }
25226fi
25227
25228  if test "x$ac_pt_PKGCONFIG" = x; then
25229    PKGCONFIG="no"
25230  else
25231    case $cross_compiling:$ac_tool_warned in
25232yes:)
25233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25235ac_tool_warned=yes ;;
25236esac
25237    PKGCONFIG=$ac_pt_PKGCONFIG
25238  fi
25239else
25240  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25241fi
25242
25243    fi
25244
25245    if test "x$PKGCONFIG" != "xno"; then
25246      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
25247$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
25248            itexists=`
25249    if test -n ""; then
25250      PKG_CONFIG_LIBDIR=""
25251      export PKG_CONFIG_LIBDIR
25252    fi
25253         $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
25254
25255      if test -z "$itexists"; then
25256                        PKGCONFIG="no"
25257        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25258$as_echo "no" >&6; }
25259      else
25260        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25261$as_echo "found" >&6; }
25262      fi
25263    fi
25264
25265
25266      if test "$PKGCONFIG" != "no" ; then
25267        addlib=`$PKGCONFIG --libs-only-l gnutls`
25268        addld=`$PKGCONFIG --libs-only-L gnutls`
25269        addcflags=`$PKGCONFIG --cflags-only-I gnutls`
25270        version=`$PKGCONFIG --modversion gnutls`
25271        gtlslib=`echo $addld | $SED -e 's/^-L//'`
25272      else
25273                        check=`libgnutls-config --version 2>/dev/null`
25274        if test -n "$check"; then
25275          addlib=`libgnutls-config --libs`
25276          addcflags=`libgnutls-config --cflags`
25277          version=`libgnutls-config --version`
25278          gtlslib=`libgnutls-config --prefix`/lib$libsuff
25279        fi
25280      fi
25281    else
25282                  cfg=$OPT_GNUTLS/bin/libgnutls-config
25283      check=`$cfg --version 2>/dev/null`
25284      if test -n "$check"; then
25285        addlib=`$cfg --libs`
25286        addcflags=`$cfg --cflags`
25287        version=`$cfg --version`
25288        gtlslib=`$cfg --prefix`/lib$libsuff
25289      else
25290                addlib=-lgnutls
25291        addld=-L$OPT_GNUTLS/lib$libsuff
25292        addcflags=-I$OPT_GNUTLS/include
25293        version="" # we just don't know
25294        gtlslib=$OPT_GNUTLS/lib$libsuff
25295      fi
25296    fi
25297
25298    if test -z "$version"; then
25299            version="unknown"
25300    fi
25301
25302    if test -n "$addlib"; then
25303
25304      CLEANLIBS="$LIBS"
25305      CLEANCPPFLAGS="$CPPFLAGS"
25306      CLEANLDFLAGS="$LDFLAGS"
25307
25308      LIBS="$addlib $LIBS"
25309      LDFLAGS="$LDFLAGS $addld"
25310      if test "$addcflags" != "-I/usr/include"; then
25311         CPPFLAGS="$CPPFLAGS $addcflags"
25312      fi
25313
25314            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
25315$as_echo_n "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
25316if ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+:} false; then :
25317  $as_echo_n "(cached) " >&6
25318else
25319  ac_check_lib_save_LIBS=$LIBS
25320LIBS="-lgnutls  $LIBS"
25321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25322/* end confdefs.h.  */
25323
25324
25325#ifdef __cplusplus
25326extern "C"
25327#endif
25328char gnutls_x509_crt_get_dn2 ();
25329int main (void)
25330{
25331return gnutls_x509_crt_get_dn2 ();
25332 ;
25333 return 0;
25334}
25335_ACEOF
25336if ac_fn_c_try_link "$LINENO"; then :
25337  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
25338else
25339  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
25340fi
25341rm -f core conftest.err conftest.$ac_objext \
25342    conftest$ac_exeext conftest.$ac_ext
25343LIBS=$ac_check_lib_save_LIBS
25344fi
25345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
25346$as_echo "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
25347if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes; then :
25348
25349
25350$as_echo "#define USE_GNUTLS 1" >>confdefs.h
25351
25352       USE_GNUTLS=1
25353
25354       GNUTLS_ENABLED=1
25355       USE_GNUTLS="yes"
25356       ssl_msg="GnuTLS"
25357       test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25358
25359else
25360
25361         LIBS="$CLEANLIBS"
25362         CPPFLAGS="$CLEANCPPFLAGS"
25363
25364fi
25365
25366
25367      if test "x$USE_GNUTLS" = "xyes"; then
25368        { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
25369$as_echo "$as_me: detected GnuTLS version $version" >&6;}
25370        check_for_ca_bundle=1
25371        if test -n "$gtlslib"; then
25372                                                  if test "x$cross_compiling" != "xyes"; then
25373            CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
25374            export CURL_LIBRARY_PATH
25375            { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
25376$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
25377          fi
25378        fi
25379      fi
25380
25381    fi
25382
25383  fi
25384  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25385fi
25386
25387
25388if test "$GNUTLS_ENABLED" = "1"; then
25389  USE_GNUTLS_NETTLE=
25390  # First check if we can detect either crypto library via transitive linking
25391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
25392$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
25393if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
25394  $as_echo_n "(cached) " >&6
25395else
25396  ac_check_lib_save_LIBS=$LIBS
25397LIBS="-lgnutls  $LIBS"
25398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25399/* end confdefs.h.  */
25400
25401
25402#ifdef __cplusplus
25403extern "C"
25404#endif
25405char nettle_MD5Init ();
25406int main (void)
25407{
25408return nettle_MD5Init ();
25409 ;
25410 return 0;
25411}
25412_ACEOF
25413if ac_fn_c_try_link "$LINENO"; then :
25414  ac_cv_lib_gnutls_nettle_MD5Init=yes
25415else
25416  ac_cv_lib_gnutls_nettle_MD5Init=no
25417fi
25418rm -f core conftest.err conftest.$ac_objext \
25419    conftest$ac_exeext conftest.$ac_ext
25420LIBS=$ac_check_lib_save_LIBS
25421fi
25422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
25423$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
25424if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
25425   USE_GNUTLS_NETTLE=1
25426fi
25427
25428  if test "$USE_GNUTLS_NETTLE" = ""; then
25429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
25430$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
25431if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
25432  $as_echo_n "(cached) " >&6
25433else
25434  ac_check_lib_save_LIBS=$LIBS
25435LIBS="-lgnutls  $LIBS"
25436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25437/* end confdefs.h.  */
25438
25439
25440#ifdef __cplusplus
25441extern "C"
25442#endif
25443char gcry_control ();
25444int main (void)
25445{
25446return gcry_control ();
25447 ;
25448 return 0;
25449}
25450_ACEOF
25451if ac_fn_c_try_link "$LINENO"; then :
25452  ac_cv_lib_gnutls_gcry_control=yes
25453else
25454  ac_cv_lib_gnutls_gcry_control=no
25455fi
25456rm -f core conftest.err conftest.$ac_objext \
25457    conftest$ac_exeext conftest.$ac_ext
25458LIBS=$ac_check_lib_save_LIBS
25459fi
25460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
25461$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
25462if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
25463   USE_GNUTLS_NETTLE=0
25464fi
25465
25466  fi
25467  # If not, try linking directly to both of them to see if they are available
25468  if test "$USE_GNUTLS_NETTLE" = ""; then
25469    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
25470$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
25471if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
25472  $as_echo_n "(cached) " >&6
25473else
25474  ac_check_lib_save_LIBS=$LIBS
25475LIBS="-lnettle  $LIBS"
25476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25477/* end confdefs.h.  */
25478
25479
25480#ifdef __cplusplus
25481extern "C"
25482#endif
25483char nettle_MD5Init ();
25484int main (void)
25485{
25486return nettle_MD5Init ();
25487 ;
25488 return 0;
25489}
25490_ACEOF
25491if ac_fn_c_try_link "$LINENO"; then :
25492  ac_cv_lib_nettle_nettle_MD5Init=yes
25493else
25494  ac_cv_lib_nettle_nettle_MD5Init=no
25495fi
25496rm -f core conftest.err conftest.$ac_objext \
25497    conftest$ac_exeext conftest.$ac_ext
25498LIBS=$ac_check_lib_save_LIBS
25499fi
25500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
25501$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
25502if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
25503   USE_GNUTLS_NETTLE=1
25504fi
25505
25506  fi
25507  if test "$USE_GNUTLS_NETTLE" = ""; then
25508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
25509$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
25510if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
25511  $as_echo_n "(cached) " >&6
25512else
25513  ac_check_lib_save_LIBS=$LIBS
25514LIBS="-lgcrypt  $LIBS"
25515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25516/* end confdefs.h.  */
25517
25518
25519#ifdef __cplusplus
25520extern "C"
25521#endif
25522char gcry_control ();
25523int main (void)
25524{
25525return gcry_control ();
25526 ;
25527 return 0;
25528}
25529_ACEOF
25530if ac_fn_c_try_link "$LINENO"; then :
25531  ac_cv_lib_gcrypt_gcry_control=yes
25532else
25533  ac_cv_lib_gcrypt_gcry_control=no
25534fi
25535rm -f core conftest.err conftest.$ac_objext \
25536    conftest$ac_exeext conftest.$ac_ext
25537LIBS=$ac_check_lib_save_LIBS
25538fi
25539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
25540$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
25541if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
25542   USE_GNUTLS_NETTLE=0
25543fi
25544
25545  fi
25546  if test "$USE_GNUTLS_NETTLE" = ""; then
25547    as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
25548  fi
25549  if test "$USE_GNUTLS_NETTLE" = "1"; then
25550
25551$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
25552
25553    USE_GNUTLS_NETTLE=1
25554
25555    LIBS="-lnettle $LIBS"
25556  else
25557    LIBS="-lgcrypt $LIBS"
25558  fi
25559fi
25560
25561if test "$GNUTLS_ENABLED" = "1"; then
25562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
25563$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
25564if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
25565  $as_echo_n "(cached) " >&6
25566else
25567  ac_check_lib_save_LIBS=$LIBS
25568LIBS="-lgnutls  $LIBS"
25569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25570/* end confdefs.h.  */
25571
25572
25573#ifdef __cplusplus
25574extern "C"
25575#endif
25576char gnutls_srp_verifier ();
25577int main (void)
25578{
25579return gnutls_srp_verifier ();
25580 ;
25581 return 0;
25582}
25583_ACEOF
25584if ac_fn_c_try_link "$LINENO"; then :
25585  ac_cv_lib_gnutls_gnutls_srp_verifier=yes
25586else
25587  ac_cv_lib_gnutls_gnutls_srp_verifier=no
25588fi
25589rm -f core conftest.err conftest.$ac_objext \
25590    conftest$ac_exeext conftest.$ac_ext
25591LIBS=$ac_check_lib_save_LIBS
25592fi
25593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
25594$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
25595if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
25596
25597
25598$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
25599
25600     HAVE_GNUTLS_SRP=1
25601
25602
25603fi
25604
25605fi
25606
25607
25608OPT_MBEDTLS=no
25609
25610_cppflags=$CPPFLAGS
25611_ldflags=$LDFLAGS
25612
25613# Check whether --with-mbedtls was given.
25614if test "${with_mbedtls+set}" = set; then :
25615  withval=$with_mbedtls; OPT_MBEDTLS=$withval
25616fi
25617
25618
25619if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
25620  ssl_msg=
25621
25622  if test X"$OPT_MBEDTLS" != Xno; then
25623
25624    if test "$OPT_MBEDTLS" = "yes"; then
25625      OPT_MBEDTLS=""
25626    fi
25627
25628    if test -z "$OPT_MBEDTLS" ; then
25629
25630      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
25631$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
25632if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
25633  $as_echo_n "(cached) " >&6
25634else
25635  ac_check_lib_save_LIBS=$LIBS
25636LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
25637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25638/* end confdefs.h.  */
25639
25640
25641#ifdef __cplusplus
25642extern "C"
25643#endif
25644char mbedtls_havege_init ();
25645int main (void)
25646{
25647return mbedtls_havege_init ();
25648 ;
25649 return 0;
25650}
25651_ACEOF
25652if ac_fn_c_try_link "$LINENO"; then :
25653  ac_cv_lib_mbedtls_mbedtls_havege_init=yes
25654else
25655  ac_cv_lib_mbedtls_mbedtls_havege_init=no
25656fi
25657rm -f core conftest.err conftest.$ac_objext \
25658    conftest$ac_exeext conftest.$ac_ext
25659LIBS=$ac_check_lib_save_LIBS
25660fi
25661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
25662$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
25663if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
25664
25665
25666$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
25667
25668         USE_MBEDTLS=1
25669
25670         MBEDTLS_ENABLED=1
25671         USE_MBEDTLS="yes"
25672         ssl_msg="mbedTLS"
25673	 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25674
25675fi
25676
25677    fi
25678
25679    addld=""
25680    addlib=""
25681    addcflags=""
25682    mbedtlslib=""
25683
25684    if test "x$USE_MBEDTLS" != "xyes"; then
25685            addld=-L$OPT_MBEDTLS/lib$libsuff
25686      addcflags=-I$OPT_MBEDTLS/include
25687      mbedtlslib=$OPT_MBEDTLS/lib$libsuff
25688
25689      LDFLAGS="$LDFLAGS $addld"
25690      if test "$addcflags" != "-I/usr/include"; then
25691         CPPFLAGS="$CPPFLAGS $addcflags"
25692      fi
25693
25694      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
25695$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
25696if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
25697  $as_echo_n "(cached) " >&6
25698else
25699  ac_check_lib_save_LIBS=$LIBS
25700LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
25701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702/* end confdefs.h.  */
25703
25704
25705#ifdef __cplusplus
25706extern "C"
25707#endif
25708char mbedtls_ssl_init ();
25709int main (void)
25710{
25711return mbedtls_ssl_init ();
25712 ;
25713 return 0;
25714}
25715_ACEOF
25716if ac_fn_c_try_link "$LINENO"; then :
25717  ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
25718else
25719  ac_cv_lib_mbedtls_mbedtls_ssl_init=no
25720fi
25721rm -f core conftest.err conftest.$ac_objext \
25722    conftest$ac_exeext conftest.$ac_ext
25723LIBS=$ac_check_lib_save_LIBS
25724fi
25725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
25726$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
25727if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
25728
25729
25730$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
25731
25732       USE_MBEDTLS=1
25733
25734       MBEDTLS_ENABLED=1
25735       USE_MBEDTLS="yes"
25736       ssl_msg="mbedTLS"
25737       test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25738
25739else
25740
25741         CPPFLAGS=$_cppflags
25742         LDFLAGS=$_ldflags
25743
25744fi
25745
25746    fi
25747
25748    if test "x$USE_MBEDTLS" = "xyes"; then
25749      { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
25750$as_echo "$as_me: detected mbedTLS" >&6;}
25751      check_for_ca_bundle=1
25752
25753      LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
25754
25755      if test -n "$mbedtlslib"; then
25756                                        if test "x$cross_compiling" != "xyes"; then
25757          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
25758          export CURL_LIBRARY_PATH
25759          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
25760$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
25761        fi
25762      fi
25763    fi
25764
25765  fi
25766  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25767fi
25768
25769
25770OPT_WOLFSSL=no
25771
25772_cppflags=$CPPFLAGS
25773_ldflags=$LDFLAGS
25774
25775
25776# Check whether --with-wolfssl was given.
25777if test "${with_wolfssl+set}" = set; then :
25778  withval=$with_wolfssl; OPT_WOLFSSL=$withval
25779fi
25780
25781
25782case "$OPT_WOLFSSL" in
25783  yes|no)
25784    wolfpkg=""
25785    ;;
25786  *)
25787    wolfpkg="$withval/lib/pkgconfig"
25788    ;;
25789esac
25790
25791if test -z "$ssl_backends" -o "x$OPT_WOLFSSL" != xno; then
25792  ssl_msg=
25793
25794  if test X"$OPT_WOLFSSL" != Xno; then
25795
25796    if test "$OPT_WOLFSSL" = "yes"; then
25797      OPT_WOLFSSL=""
25798    fi
25799
25800
25801    if test -n "$PKG_CONFIG"; then
25802      PKGCONFIG="$PKG_CONFIG"
25803    else
25804      if test -n "$ac_tool_prefix"; then
25805  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25806set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25808$as_echo_n "checking for $ac_word... " >&6; }
25809if ${ac_cv_path_PKGCONFIG+:} false; then :
25810  $as_echo_n "(cached) " >&6
25811else
25812  case $PKGCONFIG in
25813  [\\/]* | ?:[\\/]*)
25814  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25815  ;;
25816  *)
25817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25818as_dummy="$PATH:/usr/bin:/usr/local/bin"
25819for as_dir in $as_dummy
25820do
25821  IFS=$as_save_IFS
25822  test -z "$as_dir" && as_dir=.
25823    for ac_exec_ext in '' $ac_executable_extensions; do
25824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25825    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25827    break 2
25828  fi
25829done
25830  done
25831IFS=$as_save_IFS
25832
25833  ;;
25834esac
25835fi
25836PKGCONFIG=$ac_cv_path_PKGCONFIG
25837if test -n "$PKGCONFIG"; then
25838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25839$as_echo "$PKGCONFIG" >&6; }
25840else
25841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25842$as_echo "no" >&6; }
25843fi
25844
25845
25846fi
25847if test -z "$ac_cv_path_PKGCONFIG"; then
25848  ac_pt_PKGCONFIG=$PKGCONFIG
25849  # Extract the first word of "pkg-config", so it can be a program name with args.
25850set dummy pkg-config; ac_word=$2
25851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25852$as_echo_n "checking for $ac_word... " >&6; }
25853if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25854  $as_echo_n "(cached) " >&6
25855else
25856  case $ac_pt_PKGCONFIG in
25857  [\\/]* | ?:[\\/]*)
25858  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25859  ;;
25860  *)
25861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25862as_dummy="$PATH:/usr/bin:/usr/local/bin"
25863for as_dir in $as_dummy
25864do
25865  IFS=$as_save_IFS
25866  test -z "$as_dir" && as_dir=.
25867    for ac_exec_ext in '' $ac_executable_extensions; do
25868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25869    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25871    break 2
25872  fi
25873done
25874  done
25875IFS=$as_save_IFS
25876
25877  ;;
25878esac
25879fi
25880ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25881if test -n "$ac_pt_PKGCONFIG"; then
25882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25883$as_echo "$ac_pt_PKGCONFIG" >&6; }
25884else
25885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25886$as_echo "no" >&6; }
25887fi
25888
25889  if test "x$ac_pt_PKGCONFIG" = x; then
25890    PKGCONFIG="no"
25891  else
25892    case $cross_compiling:$ac_tool_warned in
25893yes:)
25894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25896ac_tool_warned=yes ;;
25897esac
25898    PKGCONFIG=$ac_pt_PKGCONFIG
25899  fi
25900else
25901  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25902fi
25903
25904    fi
25905
25906    if test "x$PKGCONFIG" != "xno"; then
25907      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
25908$as_echo_n "checking for wolfssl options with pkg-config... " >&6; }
25909            itexists=`
25910    if test -n "$wolfpkg"; then
25911      PKG_CONFIG_LIBDIR="$wolfpkg"
25912      export PKG_CONFIG_LIBDIR
25913    fi
25914         $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
25915
25916      if test -z "$itexists"; then
25917                        PKGCONFIG="no"
25918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25919$as_echo "no" >&6; }
25920      else
25921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25922$as_echo "found" >&6; }
25923      fi
25924    fi
25925
25926    { $as_echo "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
25927$as_echo "$as_me: Check dir $wolfpkg" >&6;}
25928
25929    addld=""
25930    addlib=""
25931    addcflags=""
25932    if test "$PKGCONFIG" != "no" ; then
25933      addlib=`
25934    if test -n "$wolfpkg"; then
25935      PKG_CONFIG_LIBDIR="$wolfpkg"
25936      export PKG_CONFIG_LIBDIR
25937    fi
25938
25939        $PKGCONFIG --libs-only-l wolfssl`
25940      addld=`
25941    if test -n "$wolfpkg"; then
25942      PKG_CONFIG_LIBDIR="$wolfpkg"
25943      export PKG_CONFIG_LIBDIR
25944    fi
25945
25946        $PKGCONFIG --libs-only-L wolfssl`
25947      addcflags=`
25948    if test -n "$wolfpkg"; then
25949      PKG_CONFIG_LIBDIR="$wolfpkg"
25950      export PKG_CONFIG_LIBDIR
25951    fi
25952
25953        $PKGCONFIG --cflags-only-I wolfssl`
25954      version=`
25955    if test -n "$wolfpkg"; then
25956      PKG_CONFIG_LIBDIR="$wolfpkg"
25957      export PKG_CONFIG_LIBDIR
25958    fi
25959
25960        $PKGCONFIG --modversion wolfssl`
25961      wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
25962    else
25963      addlib=-lwolfssl
25964            if test -n "$OPT_WOLFSSL"; then
25965        addld=-L$OPT_WOLFSSL/lib$libsuff
25966        addcflags=-I$OPT_WOLFSSL/include
25967        wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
25968      fi
25969    fi
25970
25971    if test "x$USE_WOLFSSL" != "xyes"; then
25972
25973      LDFLAGS="$LDFLAGS $addld"
25974      { $as_echo "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
25975$as_echo "$as_me: Add $addld to LDFLAGS" >&6;}
25976      if test "$addcflags" != "-I/usr/include"; then
25977         CPPFLAGS="$CPPFLAGS $addcflags"
25978         { $as_echo "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
25979$as_echo "$as_me: Add $addcflags to CPPFLAGS" >&6;}
25980      fi
25981
25982      my_ac_save_LIBS="$LIBS"
25983      LIBS="$addlib $LIBS"
25984      { $as_echo "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
25985$as_echo "$as_me: Add $addlib to LIBS" >&6;}
25986
25987      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
25988$as_echo_n "checking for wolfSSL_Init in -lwolfssl... " >&6; }
25989      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25990/* end confdefs.h.  */
25991
25992
25993/* These aren't needed for detection and confuse WolfSSL.
25994   They are set up properly later if it is detected.  */
25995#undef SIZEOF_LONG
25996#undef SIZEOF_LONG_LONG
25997#include <wolfssl/ssl.h>
25998
25999int main (void)
26000{
26001
26002	  return wolfSSL_Init();
26003
26004 ;
26005 return 0;
26006}
26007
26008_ACEOF
26009if ac_fn_c_try_link "$LINENO"; then :
26010
26011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26012$as_echo "yes" >&6; }
26013
26014$as_echo "#define USE_WOLFSSL 1" >>confdefs.h
26015
26016         USE_WOLFSSL=1
26017
26018         WOLFSSL_ENABLED=1
26019         USE_WOLFSSL="yes"
26020         ssl_msg="WolfSSL"
26021	 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26022
26023else
26024
26025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26026$as_echo "no" >&6; }
26027         CPPFLAGS=$_cppflags
26028         LDFLAGS=$_ldflags
26029         wolfssllibpath=""
26030
26031fi
26032rm -f core conftest.err conftest.$ac_objext \
26033    conftest$ac_exeext conftest.$ac_ext
26034      LIBS="$my_ac_save_LIBS"
26035    fi
26036
26037    if test "x$USE_WOLFSSL" = "xyes"; then
26038      { $as_echo "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
26039$as_echo "$as_me: detected wolfSSL" >&6;}
26040      check_for_ca_bundle=1
26041
26042            { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
26043$as_echo_n "checking size of long long... " >&6; }
26044if ${ac_cv_sizeof_long_long+:} false; then :
26045  $as_echo_n "(cached) " >&6
26046else
26047  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
26048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26049/* end confdefs.h.  */
26050
26051#include <sys/types.h>
26052
26053
26054int main (void)
26055{
26056switch (0) case 0: case (sizeof (long long) == $ac_size):;
26057 ;
26058 return 0;
26059}
26060_ACEOF
26061if ac_fn_c_try_compile "$LINENO"; then :
26062  ac_cv_sizeof_long_long=$ac_size
26063fi
26064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26065  if test x$ac_cv_sizeof_long_long != x ; then break; fi
26066done
26067
26068fi
26069
26070if test x$ac_cv_sizeof_long_long = x ; then
26071  as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
26072fi
26073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
26074$as_echo "$ac_cv_sizeof_long_long" >&6; }
26075
26076cat >>confdefs.h <<_ACEOF
26077#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
26078_ACEOF
26079
26080
26081
26082      LIBS="$addlib -lm $LIBS"
26083
26084                              for ac_func in wolfSSLv3_client_method \
26085                     wolfSSL_get_peer_certificate \
26086                     wolfSSL_UseALPN
26087do :
26088  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26089ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26090if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26091  cat >>confdefs.h <<_ACEOF
26092#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26093_ACEOF
26094
26095fi
26096done
26097
26098
26099                  ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
26100if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes; then :
26101
26102
26103$as_echo "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
26104
26105            if test -n "$addcflags"; then
26106                            for f in $addcflags; do
26107                CPPFLAGS="$f/wolfssl $CPPFLAGS"
26108                { $as_echo "$as_me:${as_lineno-$LINENO}: Add $f/wolfssl to CPPFLAGS" >&5
26109$as_echo "$as_me: Add $f/wolfssl to CPPFLAGS" >&6;}
26110                break
26111              done
26112            else
26113                                          CPPFLAGS="-I$includedir/wolfssl $CPPFLAGS"
26114              { $as_echo "$as_me:${as_lineno-$LINENO}: Add $includedir/wolfssl to CPPFLAGS" >&5
26115$as_echo "$as_me: Add $includedir/wolfssl to CPPFLAGS" >&6;}
26116            fi
26117            WOLFSSL_NTLM=1
26118
26119
26120fi
26121
26122
26123      if test -n "$wolfssllibpath"; then
26124                                        if test "x$cross_compiling" != "xyes"; then
26125          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
26126          export CURL_LIBRARY_PATH
26127          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
26128$as_echo "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
26129        fi
26130      fi
26131
26132    fi
26133
26134  fi
26135  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26136fi
26137
26138
26139OPT_MESALINK=no
26140
26141_cppflags=$CPPFLAGS
26142_ldflags=$LDFLAGS
26143
26144# Check whether --with-mesalink was given.
26145if test "${with_mesalink+set}" = set; then :
26146  withval=$with_mesalink; OPT_MESALINK=$withval
26147fi
26148
26149
26150if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
26151  ssl_msg=
26152
26153  if test X"$OPT_MESALINK" != Xno; then
26154
26155    if test "$OPT_MESALINK" = "yes"; then
26156      OPT_MESALINK=""
26157    fi
26158
26159    if test -z "$OPT_MESALINK" ; then
26160
26161      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
26162$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
26163if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
26164  $as_echo_n "(cached) " >&6
26165else
26166  ac_check_lib_save_LIBS=$LIBS
26167LIBS="-lmesalink  $LIBS"
26168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26169/* end confdefs.h.  */
26170
26171
26172#ifdef __cplusplus
26173extern "C"
26174#endif
26175char mesalink_library_init ();
26176int main (void)
26177{
26178return mesalink_library_init ();
26179 ;
26180 return 0;
26181}
26182_ACEOF
26183if ac_fn_c_try_link "$LINENO"; then :
26184  ac_cv_lib_mesalink_mesalink_library_init=yes
26185else
26186  ac_cv_lib_mesalink_mesalink_library_init=no
26187fi
26188rm -f core conftest.err conftest.$ac_objext \
26189    conftest$ac_exeext conftest.$ac_ext
26190LIBS=$ac_check_lib_save_LIBS
26191fi
26192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
26193$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
26194if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
26195
26196
26197$as_echo "#define USE_MESALINK 1" >>confdefs.h
26198
26199         USE_MESALINK=1
26200
26201         MESALINK_ENABLED=1
26202         USE_MESALINK="yes"
26203         ssl_msg="MesaLink"
26204	 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26205
26206fi
26207
26208    fi
26209
26210    addld=""
26211    addlib=""
26212    addcflags=""
26213    mesalinklib=""
26214
26215    if test "x$USE_MESALINK" != "xyes"; then
26216            addld=-L$OPT_MESALINK/lib$libsuff
26217      addcflags=-I$OPT_MESALINK/include
26218      mesalinklib=$OPT_MESALINK/lib$libsuff
26219
26220      LDFLAGS="$LDFLAGS $addld"
26221      if test "$addcflags" != "-I/usr/include"; then
26222         CPPFLAGS="$CPPFLAGS $addcflags"
26223      fi
26224
26225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
26226$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
26227if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
26228  $as_echo_n "(cached) " >&6
26229else
26230  ac_check_lib_save_LIBS=$LIBS
26231LIBS="-lmesalink  $LIBS"
26232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26233/* end confdefs.h.  */
26234
26235
26236#ifdef __cplusplus
26237extern "C"
26238#endif
26239char mesalink_library_init ();
26240int main (void)
26241{
26242return mesalink_library_init ();
26243 ;
26244 return 0;
26245}
26246_ACEOF
26247if ac_fn_c_try_link "$LINENO"; then :
26248  ac_cv_lib_mesalink_mesalink_library_init=yes
26249else
26250  ac_cv_lib_mesalink_mesalink_library_init=no
26251fi
26252rm -f core conftest.err conftest.$ac_objext \
26253    conftest$ac_exeext conftest.$ac_ext
26254LIBS=$ac_check_lib_save_LIBS
26255fi
26256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
26257$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
26258if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
26259
26260
26261$as_echo "#define USE_MESALINK 1" >>confdefs.h
26262
26263       USE_MESALINK=1
26264
26265       MESALINK_ENABLED=1
26266       USE_MESALINK="yes"
26267       ssl_msg="MesaLink"
26268       test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26269
26270else
26271
26272         CPPFLAGS=$_cppflags
26273         LDFLAGS=$_ldflags
26274
26275fi
26276
26277    fi
26278
26279    if test "x$USE_MESALINK" = "xyes"; then
26280      { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
26281$as_echo "$as_me: detected MesaLink" >&6;}
26282
26283      LIBS="-lmesalink $LIBS"
26284
26285      if test -n "$mesalinklib"; then
26286                                        if test "x$cross_compiling" != "xyes"; then
26287          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
26288          export LD_LIBRARY_PATH
26289          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
26290$as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
26291        fi
26292      fi
26293    fi
26294
26295  fi
26296  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26297fi
26298
26299
26300OPT_BEARSSL=no
26301
26302_cppflags=$CPPFLAGS
26303_ldflags=$LDFLAGS
26304
26305# Check whether --with-bearssl was given.
26306if test "${with_bearssl+set}" = set; then :
26307  withval=$with_bearssl; OPT_BEARSSL=$withval
26308fi
26309
26310
26311if test -z "$ssl_backends" -o "x$OPT_BEARSSL" != xno; then
26312  ssl_msg=
26313
26314  if test X"$OPT_BEARSSL" != Xno; then
26315
26316    if test "$OPT_BEARSSL" = "yes"; then
26317      OPT_BEARSSL=""
26318    fi
26319
26320    if test -z "$OPT_BEARSSL" ; then
26321
26322      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
26323$as_echo_n "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
26324if ${ac_cv_lib_bearssl_br_ssl_client_init_full+:} false; then :
26325  $as_echo_n "(cached) " >&6
26326else
26327  ac_check_lib_save_LIBS=$LIBS
26328LIBS="-lbearssl -lbearssl $LIBS"
26329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26330/* end confdefs.h.  */
26331
26332
26333#ifdef __cplusplus
26334extern "C"
26335#endif
26336char br_ssl_client_init_full ();
26337int main (void)
26338{
26339return br_ssl_client_init_full ();
26340 ;
26341 return 0;
26342}
26343_ACEOF
26344if ac_fn_c_try_link "$LINENO"; then :
26345  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
26346else
26347  ac_cv_lib_bearssl_br_ssl_client_init_full=no
26348fi
26349rm -f core conftest.err conftest.$ac_objext \
26350    conftest$ac_exeext conftest.$ac_ext
26351LIBS=$ac_check_lib_save_LIBS
26352fi
26353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
26354$as_echo "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
26355if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes; then :
26356
26357
26358$as_echo "#define USE_BEARSSL 1" >>confdefs.h
26359
26360         USE_BEARSSL=1
26361
26362         BEARSSL_ENABLED=1
26363         USE_BEARSSL="yes"
26364         ssl_msg="BearSSL"
26365	 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26366
26367fi
26368
26369    fi
26370
26371    addld=""
26372    addlib=""
26373    addcflags=""
26374    bearssllib=""
26375
26376    if test "x$USE_BEARSSL" != "xyes"; then
26377            addld=-L$OPT_BEARSSL/lib$libsuff
26378      addcflags=-I$OPT_BEARSSL/include
26379      bearssllib=$OPT_BEARSSL/lib$libsuff
26380
26381      LDFLAGS="$LDFLAGS $addld"
26382      if test "$addcflags" != "-I/usr/include"; then
26383         CPPFLAGS="$CPPFLAGS $addcflags"
26384      fi
26385
26386      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
26387$as_echo_n "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
26388if ${ac_cv_lib_bearssl_br_ssl_client_init_full+:} false; then :
26389  $as_echo_n "(cached) " >&6
26390else
26391  ac_check_lib_save_LIBS=$LIBS
26392LIBS="-lbearssl -lbearssl $LIBS"
26393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26394/* end confdefs.h.  */
26395
26396
26397#ifdef __cplusplus
26398extern "C"
26399#endif
26400char br_ssl_client_init_full ();
26401int main (void)
26402{
26403return br_ssl_client_init_full ();
26404 ;
26405 return 0;
26406}
26407_ACEOF
26408if ac_fn_c_try_link "$LINENO"; then :
26409  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
26410else
26411  ac_cv_lib_bearssl_br_ssl_client_init_full=no
26412fi
26413rm -f core conftest.err conftest.$ac_objext \
26414    conftest$ac_exeext conftest.$ac_ext
26415LIBS=$ac_check_lib_save_LIBS
26416fi
26417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
26418$as_echo "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
26419if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes; then :
26420
26421
26422$as_echo "#define USE_BEARSSL 1" >>confdefs.h
26423
26424       USE_BEARSSL=1
26425
26426       BEARSSL_ENABLED=1
26427       USE_BEARSSL="yes"
26428       ssl_msg="BearSSL"
26429       test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26430
26431else
26432
26433         CPPFLAGS=$_cppflags
26434         LDFLAGS=$_ldflags
26435
26436fi
26437
26438    fi
26439
26440    if test "x$USE_BEARSSL" = "xyes"; then
26441      { $as_echo "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
26442$as_echo "$as_me: detected BearSSL" >&6;}
26443      check_for_ca_bundle=1
26444
26445      LIBS="-lbearssl $LIBS"
26446
26447      if test -n "$bearssllib"; then
26448                                        if test "x$cross_compiling" != "xyes"; then
26449          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
26450          export CURL_LIBRARY_PATH
26451          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
26452$as_echo "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
26453        fi
26454      fi
26455    fi
26456
26457  fi
26458  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26459fi
26460
26461
26462OPT_NSS=no
26463
26464
26465# Check whether --with-nss was given.
26466if test "${with_nss+set}" = set; then :
26467  withval=$with_nss; OPT_NSS=$withval
26468fi
26469
26470
26471if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
26472  ssl_msg=
26473
26474  if test X"$OPT_NSS" != Xno; then
26475
26476    addld=""
26477    addlib=""
26478    addcflags=""
26479    nssprefix=""
26480    version=""
26481
26482    if test "x$OPT_NSS" = "xyes"; then
26483
26484
26485    if test -n "$PKG_CONFIG"; then
26486      PKGCONFIG="$PKG_CONFIG"
26487    else
26488      if test -n "$ac_tool_prefix"; then
26489  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26490set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26492$as_echo_n "checking for $ac_word... " >&6; }
26493if ${ac_cv_path_PKGCONFIG+:} false; then :
26494  $as_echo_n "(cached) " >&6
26495else
26496  case $PKGCONFIG in
26497  [\\/]* | ?:[\\/]*)
26498  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26499  ;;
26500  *)
26501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26502as_dummy="$PATH:/usr/bin:/usr/local/bin"
26503for as_dir in $as_dummy
26504do
26505  IFS=$as_save_IFS
26506  test -z "$as_dir" && as_dir=.
26507    for ac_exec_ext in '' $ac_executable_extensions; do
26508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26509    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26511    break 2
26512  fi
26513done
26514  done
26515IFS=$as_save_IFS
26516
26517  ;;
26518esac
26519fi
26520PKGCONFIG=$ac_cv_path_PKGCONFIG
26521if test -n "$PKGCONFIG"; then
26522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26523$as_echo "$PKGCONFIG" >&6; }
26524else
26525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26526$as_echo "no" >&6; }
26527fi
26528
26529
26530fi
26531if test -z "$ac_cv_path_PKGCONFIG"; then
26532  ac_pt_PKGCONFIG=$PKGCONFIG
26533  # Extract the first word of "pkg-config", so it can be a program name with args.
26534set dummy pkg-config; ac_word=$2
26535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26536$as_echo_n "checking for $ac_word... " >&6; }
26537if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26538  $as_echo_n "(cached) " >&6
26539else
26540  case $ac_pt_PKGCONFIG in
26541  [\\/]* | ?:[\\/]*)
26542  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26543  ;;
26544  *)
26545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26546as_dummy="$PATH:/usr/bin:/usr/local/bin"
26547for as_dir in $as_dummy
26548do
26549  IFS=$as_save_IFS
26550  test -z "$as_dir" && as_dir=.
26551    for ac_exec_ext in '' $ac_executable_extensions; do
26552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26553    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26555    break 2
26556  fi
26557done
26558  done
26559IFS=$as_save_IFS
26560
26561  ;;
26562esac
26563fi
26564ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26565if test -n "$ac_pt_PKGCONFIG"; then
26566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26567$as_echo "$ac_pt_PKGCONFIG" >&6; }
26568else
26569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26570$as_echo "no" >&6; }
26571fi
26572
26573  if test "x$ac_pt_PKGCONFIG" = x; then
26574    PKGCONFIG="no"
26575  else
26576    case $cross_compiling:$ac_tool_warned in
26577yes:)
26578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26580ac_tool_warned=yes ;;
26581esac
26582    PKGCONFIG=$ac_pt_PKGCONFIG
26583  fi
26584else
26585  PKGCONFIG="$ac_cv_path_PKGCONFIG"
26586fi
26587
26588    fi
26589
26590    if test "x$PKGCONFIG" != "xno"; then
26591      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
26592$as_echo_n "checking for nss options with pkg-config... " >&6; }
26593            itexists=`
26594    if test -n ""; then
26595      PKG_CONFIG_LIBDIR=""
26596      export PKG_CONFIG_LIBDIR
26597    fi
26598         $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
26599
26600      if test -z "$itexists"; then
26601                        PKGCONFIG="no"
26602        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26603$as_echo "no" >&6; }
26604      else
26605        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26606$as_echo "found" >&6; }
26607      fi
26608    fi
26609
26610
26611      if test "$PKGCONFIG" != "no" ; then
26612        addlib=`$PKGCONFIG --libs nss`
26613        addcflags=`$PKGCONFIG --cflags nss`
26614        version=`$PKGCONFIG --modversion nss`
26615        nssprefix=`$PKGCONFIG --variable=prefix nss`
26616      else
26617
26618        check=`nss-config --version 2>/dev/null`
26619        if test -n "$check"; then
26620          addlib=`nss-config --libs`
26621          addcflags=`nss-config --cflags`
26622          version=`nss-config --version`
26623          nssprefix=`nss-config --prefix`
26624        else
26625          addlib="-lnss3"
26626          addcflags=""
26627          version="unknown"
26628        fi
26629      fi
26630    else
26631      NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
26632      if test -f "$NSS_PCDIR/nss.pc"; then
26633
26634    if test -n "$PKG_CONFIG"; then
26635      PKGCONFIG="$PKG_CONFIG"
26636    else
26637      if test -n "$ac_tool_prefix"; then
26638  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26639set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26641$as_echo_n "checking for $ac_word... " >&6; }
26642if ${ac_cv_path_PKGCONFIG+:} false; then :
26643  $as_echo_n "(cached) " >&6
26644else
26645  case $PKGCONFIG in
26646  [\\/]* | ?:[\\/]*)
26647  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26648  ;;
26649  *)
26650  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26651as_dummy="$PATH:/usr/bin:/usr/local/bin"
26652for as_dir in $as_dummy
26653do
26654  IFS=$as_save_IFS
26655  test -z "$as_dir" && as_dir=.
26656    for ac_exec_ext in '' $ac_executable_extensions; do
26657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26658    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26660    break 2
26661  fi
26662done
26663  done
26664IFS=$as_save_IFS
26665
26666  ;;
26667esac
26668fi
26669PKGCONFIG=$ac_cv_path_PKGCONFIG
26670if test -n "$PKGCONFIG"; then
26671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26672$as_echo "$PKGCONFIG" >&6; }
26673else
26674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26675$as_echo "no" >&6; }
26676fi
26677
26678
26679fi
26680if test -z "$ac_cv_path_PKGCONFIG"; then
26681  ac_pt_PKGCONFIG=$PKGCONFIG
26682  # Extract the first word of "pkg-config", so it can be a program name with args.
26683set dummy pkg-config; ac_word=$2
26684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26685$as_echo_n "checking for $ac_word... " >&6; }
26686if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26687  $as_echo_n "(cached) " >&6
26688else
26689  case $ac_pt_PKGCONFIG in
26690  [\\/]* | ?:[\\/]*)
26691  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26692  ;;
26693  *)
26694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26695as_dummy="$PATH:/usr/bin:/usr/local/bin"
26696for as_dir in $as_dummy
26697do
26698  IFS=$as_save_IFS
26699  test -z "$as_dir" && as_dir=.
26700    for ac_exec_ext in '' $ac_executable_extensions; do
26701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26702    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26704    break 2
26705  fi
26706done
26707  done
26708IFS=$as_save_IFS
26709
26710  ;;
26711esac
26712fi
26713ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26714if test -n "$ac_pt_PKGCONFIG"; then
26715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26716$as_echo "$ac_pt_PKGCONFIG" >&6; }
26717else
26718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26719$as_echo "no" >&6; }
26720fi
26721
26722  if test "x$ac_pt_PKGCONFIG" = x; then
26723    PKGCONFIG="no"
26724  else
26725    case $cross_compiling:$ac_tool_warned in
26726yes:)
26727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26729ac_tool_warned=yes ;;
26730esac
26731    PKGCONFIG=$ac_pt_PKGCONFIG
26732  fi
26733else
26734  PKGCONFIG="$ac_cv_path_PKGCONFIG"
26735fi
26736
26737    fi
26738
26739    if test "x$PKGCONFIG" != "xno"; then
26740      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
26741$as_echo_n "checking for nss options with pkg-config... " >&6; }
26742            itexists=`
26743    if test -n "$NSS_PCDIR"; then
26744      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26745      export PKG_CONFIG_LIBDIR
26746    fi
26747         $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
26748
26749      if test -z "$itexists"; then
26750                        PKGCONFIG="no"
26751        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26752$as_echo "no" >&6; }
26753      else
26754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26755$as_echo "found" >&6; }
26756      fi
26757    fi
26758
26759        if test "$PKGCONFIG" != "no" ; then
26760          addld=`
26761    if test -n "$NSS_PCDIR"; then
26762      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26763      export PKG_CONFIG_LIBDIR
26764    fi
26765 $PKGCONFIG --libs-only-L nss`
26766          addlib=`
26767    if test -n "$NSS_PCDIR"; then
26768      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26769      export PKG_CONFIG_LIBDIR
26770    fi
26771 $PKGCONFIG --libs-only-l nss`
26772          addcflags=`
26773    if test -n "$NSS_PCDIR"; then
26774      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26775      export PKG_CONFIG_LIBDIR
26776    fi
26777 $PKGCONFIG --cflags nss`
26778          version=`
26779    if test -n "$NSS_PCDIR"; then
26780      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26781      export PKG_CONFIG_LIBDIR
26782    fi
26783 $PKGCONFIG --modversion nss`
26784          nssprefix=`
26785    if test -n "$NSS_PCDIR"; then
26786      PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26787      export PKG_CONFIG_LIBDIR
26788    fi
26789 $PKGCONFIG --variable=prefix nss`
26790        fi
26791      fi
26792    fi
26793
26794    if test -z "$addlib"; then
26795      # Without pkg-config, we'll kludge in some defaults
26796      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
26797$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
26798      addld="-L$OPT_NSS/lib"
26799      addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
26800      addcflags="-I$OPT_NSS/include"
26801      version="unknown"
26802      nssprefix=$OPT_NSS
26803    fi
26804
26805    CLEANLDFLAGS="$LDFLAGS"
26806    CLEANLIBS="$LIBS"
26807    CLEANCPPFLAGS="$CPPFLAGS"
26808
26809    LDFLAGS="$addld $LDFLAGS"
26810    LIBS="$addlib $LIBS"
26811    if test "$addcflags" != "-I/usr/include"; then
26812       CPPFLAGS="$CPPFLAGS $addcflags"
26813    fi
26814
26815        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
26816$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
26817if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
26818  $as_echo_n "(cached) " >&6
26819else
26820  ac_check_lib_save_LIBS=$LIBS
26821LIBS="-lnss3  $LIBS"
26822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26823/* end confdefs.h.  */
26824
26825
26826#ifdef __cplusplus
26827extern "C"
26828#endif
26829char SSL_VersionRangeSet ();
26830int main (void)
26831{
26832return SSL_VersionRangeSet ();
26833 ;
26834 return 0;
26835}
26836_ACEOF
26837if ac_fn_c_try_link "$LINENO"; then :
26838  ac_cv_lib_nss3_SSL_VersionRangeSet=yes
26839else
26840  ac_cv_lib_nss3_SSL_VersionRangeSet=no
26841fi
26842rm -f core conftest.err conftest.$ac_objext \
26843    conftest$ac_exeext conftest.$ac_ext
26844LIBS=$ac_check_lib_save_LIBS
26845fi
26846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
26847$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
26848if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
26849
26850
26851$as_echo "#define USE_NSS 1" >>confdefs.h
26852
26853     USE_NSS=1
26854
26855     USE_NSS="yes"
26856     NSS_ENABLED=1
26857     ssl_msg="NSS"
26858     test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26859
26860else
26861
26862       LDFLAGS="$CLEANLDFLAGS"
26863       LIBS="$CLEANLIBS"
26864       CPPFLAGS="$CLEANCPPFLAGS"
26865
26866fi
26867
26868
26869    if test "x$USE_NSS" = "xyes"; then
26870      { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
26871$as_echo "$as_me: detected NSS version $version" >&6;}
26872
26873                        ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
26874if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
26875
26876
26877$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
26878
26879
26880fi
26881
26882
26883            NSS_LIBS=$addlib
26884
26885
26886                              if test "x$cross_compiling" != "xyes"; then
26887        CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
26888        export CURL_LIBRARY_PATH
26889        { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
26890$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
26891      fi
26892
26893    fi
26894  fi
26895  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26896fi
26897
26898case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$BEARSSL_ENABLED$AMISSL_ENABLED" in
26899x)
26900  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
26901$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
26902  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl or --with-bearssl to address this." >&5
26903$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl or --with-bearssl to address this." >&2;}
26904  ;;
26905x1)
26906  # one SSL backend is enabled
26907
26908  SSL_ENABLED="1"
26909  { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
26910$as_echo "$as_me: built with one SSL backend" >&6;}
26911  ;;
26912*)
26913  # more than one SSL backend is enabled
26914
26915  SSL_ENABLED="1"
26916
26917  CURL_WITH_MULTI_SSL="1"
26918
26919$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
26920
26921  { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
26922$as_echo "$as_me: built with multiple SSL backends" >&6;}
26923  ;;
26924esac
26925
26926if test -n "$ssl_backends"; then
26927  curl_ssl_msg="enabled ($ssl_backends)"
26928fi
26929
26930if test no = "$VALID_DEFAULT_SSL_BACKEND"
26931then
26932  if test -n "$SSL_ENABLED"
26933  then
26934    as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
26935  else
26936    as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
26937  fi
26938elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
26939then
26940
26941cat >>confdefs.h <<_ACEOF
26942#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
26943_ACEOF
26944
26945fi
26946
26947
26948if test -n "$check_for_ca_bundle"; then
26949
26950
26951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
26952$as_echo_n "checking default CA cert bundle/path... " >&6; }
26953
26954
26955# Check whether --with-ca-bundle was given.
26956if test "${with_ca_bundle+set}" = set; then :
26957  withval=$with_ca_bundle;
26958    want_ca="$withval"
26959    if test "x$want_ca" = "xyes"; then
26960      as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
26961    fi
26962
26963else
26964   want_ca="unset"
26965fi
26966
26967
26968# Check whether --with-ca-path was given.
26969if test "${with_ca_path+set}" = set; then :
26970  withval=$with_ca_path;
26971    want_capath="$withval"
26972    if test "x$want_capath" = "xyes"; then
26973      as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
26974    fi
26975
26976else
26977   want_capath="unset"
26978fi
26979
26980
26981  ca_warning="   (warning: certs not found)"
26982  capath_warning="   (warning: certs not found)"
26983  check_capath=""
26984
26985  if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
26986          "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
26987        ca="$want_ca"
26988    capath="$want_capath"
26989  elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
26990        ca="$want_ca"
26991    capath="no"
26992  elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
26993        if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
26994      as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
26995    fi
26996    capath="$want_capath"
26997    ca="no"
26998  else
26999            ca="no"
27000    capath="no"
27001    if test "x$cross_compiling" != "xyes"; then
27002                  if test "x$want_ca" = "xunset"; then
27003                                if test "x$prefix" != xNONE; then
27004          cac="${prefix}/share/curl/curl-ca-bundle.crt"
27005        else
27006          cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
27007        fi
27008
27009        for a in /etc/ssl/certs/ca-certificates.crt \
27010                 /etc/pki/tls/certs/ca-bundle.crt \
27011                 /usr/share/ssl/certs/ca-bundle.crt \
27012                 /usr/local/share/certs/ca-root-nss.crt \
27013                 /etc/ssl/cert.pem \
27014                 "$cac"; do
27015          if test -f "$a"; then
27016            ca="$a"
27017            break
27018          fi
27019        done
27020      fi
27021      if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
27022              "x$OPENSSL_ENABLED" = "x1"; then
27023        check_capath="/etc/ssl/certs/"
27024      fi
27025    else
27026            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
27027$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
27028    fi
27029  fi
27030
27031  if test "x$ca" = "xno" || test -f "$ca"; then
27032    ca_warning=""
27033  fi
27034
27035  if test "x$capath" != "xno"; then
27036    check_capath="$capath"
27037  fi
27038
27039  if test ! -z "$check_capath"; then
27040    for a in "$check_capath"; do
27041      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
27042        if test "x$capath" = "xno"; then
27043          capath="$a"
27044        fi
27045        capath_warning=""
27046        break
27047      fi
27048    done
27049  fi
27050
27051  if test "x$capath" = "xno"; then
27052    capath_warning=""
27053  fi
27054
27055  if test "x$ca" != "xno"; then
27056    CURL_CA_BUNDLE='"'$ca'"'
27057
27058cat >>confdefs.h <<_ACEOF
27059#define CURL_CA_BUNDLE "$ca"
27060_ACEOF
27061
27062
27063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
27064$as_echo "$ca" >&6; }
27065  fi
27066  if test "x$capath" != "xno"; then
27067    CURL_CA_PATH="\"$capath\""
27068
27069cat >>confdefs.h <<_ACEOF
27070#define CURL_CA_PATH "$capath"
27071_ACEOF
27072
27073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
27074$as_echo "$capath (capath)" >&6; }
27075  fi
27076  if test "x$ca" = "xno" && test "x$capath" = "xno"; then
27077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27078$as_echo "no" >&6; }
27079  fi
27080
27081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
27082$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
27083
27084# Check whether --with-ca-fallback was given.
27085if test "${with_ca_fallback+set}" = set; then :
27086  withval=$with_ca_fallback;
27087    if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
27088      as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
27089    fi
27090
27091else
27092   with_ca_fallback="no"
27093fi
27094
27095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
27096$as_echo "$with_ca_fallback" >&6; }
27097  if test "x$with_ca_fallback" = "xyes"; then
27098    if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
27099      as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
27100    fi
27101
27102cat >>confdefs.h <<_ACEOF
27103#define CURL_CA_FALLBACK 1
27104_ACEOF
27105
27106  fi
27107
27108fi
27109
27110
27111
27112# Check whether --with-libpsl was given.
27113if test "${with_libpsl+set}" = set; then :
27114  withval=$with_libpsl; with_libpsl=$withval
27115else
27116  with_libpsl=yes
27117fi
27118
27119if test $with_libpsl != "no"; then
27120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
27121$as_echo_n "checking for library containing psl_builtin... " >&6; }
27122if ${ac_cv_search_psl_builtin+:} false; then :
27123  $as_echo_n "(cached) " >&6
27124else
27125  ac_func_search_save_LIBS=$LIBS
27126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27127/* end confdefs.h.  */
27128
27129
27130#ifdef __cplusplus
27131extern "C"
27132#endif
27133char psl_builtin ();
27134int main (void)
27135{
27136return psl_builtin ();
27137 ;
27138 return 0;
27139}
27140_ACEOF
27141for ac_lib in '' psl; do
27142  if test -z "$ac_lib"; then
27143    ac_res="none required"
27144  else
27145    ac_res=-l$ac_lib
27146    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27147  fi
27148  if ac_fn_c_try_link "$LINENO"; then :
27149  ac_cv_search_psl_builtin=$ac_res
27150fi
27151rm -f core conftest.err conftest.$ac_objext \
27152    conftest$ac_exeext
27153  if ${ac_cv_search_psl_builtin+:} false; then :
27154  break
27155fi
27156done
27157if ${ac_cv_search_psl_builtin+:} false; then :
27158
27159else
27160  ac_cv_search_psl_builtin=no
27161fi
27162rm conftest.$ac_ext
27163LIBS=$ac_func_search_save_LIBS
27164fi
27165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
27166$as_echo "$ac_cv_search_psl_builtin" >&6; }
27167ac_res=$ac_cv_search_psl_builtin
27168if test "$ac_res" != no; then :
27169  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27170  curl_psl_msg="enabled";
27171
27172$as_echo "#define USE_LIBPSL 1" >>confdefs.h
27173
27174
27175else
27176  curl_psl_msg="no      (libpsl not found)";
27177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
27178$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
27179
27180
27181fi
27182
27183fi
27184 if test "$curl_psl_msg" = "enabled"; then
27185  USE_LIBPSL_TRUE=
27186  USE_LIBPSL_FALSE='#'
27187else
27188  USE_LIBPSL_TRUE='#'
27189  USE_LIBPSL_FALSE=
27190fi
27191
27192
27193
27194OPT_LIBMETALINK=no
27195
27196
27197# Check whether --with-libmetalink was given.
27198if test "${with_libmetalink+set}" = set; then :
27199  withval=$with_libmetalink; OPT_LIBMETALINK=$withval
27200fi
27201
27202
27203if test X"$OPT_LIBMETALINK" != Xno; then
27204
27205  addld=""
27206  addlib=""
27207  addcflags=""
27208  version=""
27209  libmetalinklib=""
27210
27211  PKGTEST="no"
27212  if test "x$OPT_LIBMETALINK" = "xyes"; then
27213        PKGTEST="yes"
27214
27215    if test -n "$PKG_CONFIG"; then
27216      PKGCONFIG="$PKG_CONFIG"
27217    else
27218      if test -n "$ac_tool_prefix"; then
27219  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27220set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27222$as_echo_n "checking for $ac_word... " >&6; }
27223if ${ac_cv_path_PKGCONFIG+:} false; then :
27224  $as_echo_n "(cached) " >&6
27225else
27226  case $PKGCONFIG in
27227  [\\/]* | ?:[\\/]*)
27228  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27229  ;;
27230  *)
27231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27232as_dummy="$PATH:/usr/bin:/usr/local/bin"
27233for as_dir in $as_dummy
27234do
27235  IFS=$as_save_IFS
27236  test -z "$as_dir" && as_dir=.
27237    for ac_exec_ext in '' $ac_executable_extensions; do
27238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27239    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27241    break 2
27242  fi
27243done
27244  done
27245IFS=$as_save_IFS
27246
27247  ;;
27248esac
27249fi
27250PKGCONFIG=$ac_cv_path_PKGCONFIG
27251if test -n "$PKGCONFIG"; then
27252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27253$as_echo "$PKGCONFIG" >&6; }
27254else
27255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27256$as_echo "no" >&6; }
27257fi
27258
27259
27260fi
27261if test -z "$ac_cv_path_PKGCONFIG"; then
27262  ac_pt_PKGCONFIG=$PKGCONFIG
27263  # Extract the first word of "pkg-config", so it can be a program name with args.
27264set dummy pkg-config; ac_word=$2
27265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27266$as_echo_n "checking for $ac_word... " >&6; }
27267if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27268  $as_echo_n "(cached) " >&6
27269else
27270  case $ac_pt_PKGCONFIG in
27271  [\\/]* | ?:[\\/]*)
27272  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27273  ;;
27274  *)
27275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27276as_dummy="$PATH:/usr/bin:/usr/local/bin"
27277for as_dir in $as_dummy
27278do
27279  IFS=$as_save_IFS
27280  test -z "$as_dir" && as_dir=.
27281    for ac_exec_ext in '' $ac_executable_extensions; do
27282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27283    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27285    break 2
27286  fi
27287done
27288  done
27289IFS=$as_save_IFS
27290
27291  ;;
27292esac
27293fi
27294ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27295if test -n "$ac_pt_PKGCONFIG"; then
27296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27297$as_echo "$ac_pt_PKGCONFIG" >&6; }
27298else
27299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27300$as_echo "no" >&6; }
27301fi
27302
27303  if test "x$ac_pt_PKGCONFIG" = x; then
27304    PKGCONFIG="no"
27305  else
27306    case $cross_compiling:$ac_tool_warned in
27307yes:)
27308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27310ac_tool_warned=yes ;;
27311esac
27312    PKGCONFIG=$ac_pt_PKGCONFIG
27313  fi
27314else
27315  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27316fi
27317
27318    fi
27319
27320    if test "x$PKGCONFIG" != "xno"; then
27321      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
27322$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
27323            itexists=`
27324    if test -n ""; then
27325      PKG_CONFIG_LIBDIR=""
27326      export PKG_CONFIG_LIBDIR
27327    fi
27328         $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
27329
27330      if test -z "$itexists"; then
27331                        PKGCONFIG="no"
27332        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27333$as_echo "no" >&6; }
27334      else
27335        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27336$as_echo "found" >&6; }
27337      fi
27338    fi
27339
27340  else
27341        LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
27342    { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
27343$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
27344    if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
27345      PKGTEST="yes"
27346    fi
27347    if test "$PKGTEST" = "yes"; then
27348
27349    if test -n "$PKG_CONFIG"; then
27350      PKGCONFIG="$PKG_CONFIG"
27351    else
27352      if test -n "$ac_tool_prefix"; then
27353  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27354set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27356$as_echo_n "checking for $ac_word... " >&6; }
27357if ${ac_cv_path_PKGCONFIG+:} false; then :
27358  $as_echo_n "(cached) " >&6
27359else
27360  case $PKGCONFIG in
27361  [\\/]* | ?:[\\/]*)
27362  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27363  ;;
27364  *)
27365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27366as_dummy="$PATH:/usr/bin:/usr/local/bin"
27367for as_dir in $as_dummy
27368do
27369  IFS=$as_save_IFS
27370  test -z "$as_dir" && as_dir=.
27371    for ac_exec_ext in '' $ac_executable_extensions; do
27372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27373    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27375    break 2
27376  fi
27377done
27378  done
27379IFS=$as_save_IFS
27380
27381  ;;
27382esac
27383fi
27384PKGCONFIG=$ac_cv_path_PKGCONFIG
27385if test -n "$PKGCONFIG"; then
27386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27387$as_echo "$PKGCONFIG" >&6; }
27388else
27389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27390$as_echo "no" >&6; }
27391fi
27392
27393
27394fi
27395if test -z "$ac_cv_path_PKGCONFIG"; then
27396  ac_pt_PKGCONFIG=$PKGCONFIG
27397  # Extract the first word of "pkg-config", so it can be a program name with args.
27398set dummy pkg-config; ac_word=$2
27399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27400$as_echo_n "checking for $ac_word... " >&6; }
27401if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27402  $as_echo_n "(cached) " >&6
27403else
27404  case $ac_pt_PKGCONFIG in
27405  [\\/]* | ?:[\\/]*)
27406  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27407  ;;
27408  *)
27409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27410as_dummy="$PATH:/usr/bin:/usr/local/bin"
27411for as_dir in $as_dummy
27412do
27413  IFS=$as_save_IFS
27414  test -z "$as_dir" && as_dir=.
27415    for ac_exec_ext in '' $ac_executable_extensions; do
27416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27417    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27419    break 2
27420  fi
27421done
27422  done
27423IFS=$as_save_IFS
27424
27425  ;;
27426esac
27427fi
27428ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27429if test -n "$ac_pt_PKGCONFIG"; then
27430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27431$as_echo "$ac_pt_PKGCONFIG" >&6; }
27432else
27433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27434$as_echo "no" >&6; }
27435fi
27436
27437  if test "x$ac_pt_PKGCONFIG" = x; then
27438    PKGCONFIG="no"
27439  else
27440    case $cross_compiling:$ac_tool_warned in
27441yes:)
27442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27444ac_tool_warned=yes ;;
27445esac
27446    PKGCONFIG=$ac_pt_PKGCONFIG
27447  fi
27448else
27449  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27450fi
27451
27452    fi
27453
27454    if test "x$PKGCONFIG" != "xno"; then
27455      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
27456$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
27457            itexists=`
27458    if test -n "$LIBMETALINK_PCDIR"; then
27459      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27460      export PKG_CONFIG_LIBDIR
27461    fi
27462         $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
27463
27464      if test -z "$itexists"; then
27465                        PKGCONFIG="no"
27466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27467$as_echo "no" >&6; }
27468      else
27469        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27470$as_echo "found" >&6; }
27471      fi
27472    fi
27473
27474    fi
27475  fi
27476  if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
27477    addlib=`
27478    if test -n "$LIBMETALINK_PCDIR"; then
27479      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27480      export PKG_CONFIG_LIBDIR
27481    fi
27482       $PKGCONFIG --libs-only-l libmetalink`
27483    addld=`
27484    if test -n "$LIBMETALINK_PCDIR"; then
27485      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27486      export PKG_CONFIG_LIBDIR
27487    fi
27488       $PKGCONFIG --libs-only-L libmetalink`
27489    addcflags=`
27490    if test -n "$LIBMETALINK_PCDIR"; then
27491      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27492      export PKG_CONFIG_LIBDIR
27493    fi
27494       $PKGCONFIG --cflags-only-I libmetalink`
27495    version=`
27496    if test -n "$LIBMETALINK_PCDIR"; then
27497      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27498      export PKG_CONFIG_LIBDIR
27499    fi
27500       $PKGCONFIG --modversion libmetalink`
27501    libmetalinklib=`echo $addld | $SED -e 's/^-L//'`
27502  fi
27503  if test -n "$addlib"; then
27504
27505    clean_CPPFLAGS="$CPPFLAGS"
27506    clean_LDFLAGS="$LDFLAGS"
27507    clean_LIBS="$LIBS"
27508    CPPFLAGS="$clean_CPPFLAGS $addcflags"
27509    LDFLAGS="$clean_LDFLAGS $addld"
27510    LIBS="$addlib $clean_LIBS"
27511    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
27512$as_echo_n "checking if libmetalink is recent enough... " >&6; }
27513    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27514/* end confdefs.h.  */
27515
27516
27517#       include <metalink/metalink.h>
27518
27519int main (void)
27520{
27521
27522        if(0 != metalink_strerror(0)) /* added in 0.1.0 */
27523          return 1;
27524
27525 ;
27526 return 0;
27527}
27528
27529_ACEOF
27530if ac_fn_c_try_link "$LINENO"; then :
27531
27532      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
27533$as_echo "yes ($version)" >&6; }
27534      want_metalink="yes"
27535
27536else
27537
27538      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
27539$as_echo "no ($version)" >&6; }
27540      { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
27541$as_echo "$as_me: libmetalink library defective or too old" >&6;}
27542      want_metalink="no"
27543
27544fi
27545rm -f core conftest.err conftest.$ac_objext \
27546    conftest$ac_exeext conftest.$ac_ext
27547    if test "x$OPENSSL_ENABLED" != "x1" -a "x$USE_WINDOWS_SSPI" != "x1" \
27548        -a "x$GNUTLS_ENABLED" != "x1" -a "x$NSS_ENABLED" != "x1" \
27549        -a "x$SECURETRANSPORT_ENABLED" != "x1"; then
27550      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: metalink support requires a compatible SSL/TLS backend" >&5
27551$as_echo "$as_me: WARNING: metalink support requires a compatible SSL/TLS backend" >&2;}
27552      want_metalink="no"
27553    fi
27554    CPPFLAGS="$clean_CPPFLAGS"
27555    LDFLAGS="$clean_LDFLAGS"
27556    LIBS="$clean_LIBS"
27557    if test "$want_metalink" = "yes"; then
27558
27559$as_echo "#define USE_METALINK 1" >>confdefs.h
27560
27561      LIBMETALINK_LIBS=$addlib
27562      LIBMETALINK_LDFLAGS=$addld
27563      LIBMETALINK_CPPFLAGS=$addcflags
27564
27565
27566
27567      curl_mtlnk_msg="enabled"
27568    fi
27569
27570  fi
27571fi
27572
27573
27574OPT_LIBSSH2=off
27575
27576# Check whether --with-libssh2 was given.
27577if test "${with_libssh2+set}" = set; then :
27578  withval=$with_libssh2; OPT_LIBSSH2=$withval
27579else
27580  OPT_LIBSSH2=no
27581fi
27582
27583
27584
27585OPT_LIBSSH=off
27586
27587# Check whether --with-libssh was given.
27588if test "${with_libssh+set}" = set; then :
27589  withval=$with_libssh; OPT_LIBSSH=$withval
27590else
27591  OPT_LIBSSH=no
27592fi
27593
27594
27595OPT_WOLFSSH=off
27596
27597# Check whether --with-wolfssh was given.
27598if test "${with_wolfssh+set}" = set; then :
27599  withval=$with_wolfssh; OPT_WOLFSSH=$withval
27600else
27601  OPT_WOLFSSH=no
27602fi
27603
27604
27605if test X"$OPT_LIBSSH2" != Xno; then
27606    CLEANLDFLAGS="$LDFLAGS"
27607  CLEANCPPFLAGS="$CPPFLAGS"
27608  CLEANLIBS="$LIBS"
27609
27610  case "$OPT_LIBSSH2" in
27611  yes)
27612
27613    if test -n "$PKG_CONFIG"; then
27614      PKGCONFIG="$PKG_CONFIG"
27615    else
27616      if test -n "$ac_tool_prefix"; then
27617  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27618set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27620$as_echo_n "checking for $ac_word... " >&6; }
27621if ${ac_cv_path_PKGCONFIG+:} false; then :
27622  $as_echo_n "(cached) " >&6
27623else
27624  case $PKGCONFIG in
27625  [\\/]* | ?:[\\/]*)
27626  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27627  ;;
27628  *)
27629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27630as_dummy="$PATH:/usr/bin:/usr/local/bin"
27631for as_dir in $as_dummy
27632do
27633  IFS=$as_save_IFS
27634  test -z "$as_dir" && as_dir=.
27635    for ac_exec_ext in '' $ac_executable_extensions; do
27636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27637    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27639    break 2
27640  fi
27641done
27642  done
27643IFS=$as_save_IFS
27644
27645  ;;
27646esac
27647fi
27648PKGCONFIG=$ac_cv_path_PKGCONFIG
27649if test -n "$PKGCONFIG"; then
27650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27651$as_echo "$PKGCONFIG" >&6; }
27652else
27653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27654$as_echo "no" >&6; }
27655fi
27656
27657
27658fi
27659if test -z "$ac_cv_path_PKGCONFIG"; then
27660  ac_pt_PKGCONFIG=$PKGCONFIG
27661  # Extract the first word of "pkg-config", so it can be a program name with args.
27662set dummy pkg-config; ac_word=$2
27663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27664$as_echo_n "checking for $ac_word... " >&6; }
27665if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27666  $as_echo_n "(cached) " >&6
27667else
27668  case $ac_pt_PKGCONFIG in
27669  [\\/]* | ?:[\\/]*)
27670  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27671  ;;
27672  *)
27673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27674as_dummy="$PATH:/usr/bin:/usr/local/bin"
27675for as_dir in $as_dummy
27676do
27677  IFS=$as_save_IFS
27678  test -z "$as_dir" && as_dir=.
27679    for ac_exec_ext in '' $ac_executable_extensions; do
27680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27681    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27683    break 2
27684  fi
27685done
27686  done
27687IFS=$as_save_IFS
27688
27689  ;;
27690esac
27691fi
27692ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27693if test -n "$ac_pt_PKGCONFIG"; then
27694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27695$as_echo "$ac_pt_PKGCONFIG" >&6; }
27696else
27697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27698$as_echo "no" >&6; }
27699fi
27700
27701  if test "x$ac_pt_PKGCONFIG" = x; then
27702    PKGCONFIG="no"
27703  else
27704    case $cross_compiling:$ac_tool_warned in
27705yes:)
27706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27708ac_tool_warned=yes ;;
27709esac
27710    PKGCONFIG=$ac_pt_PKGCONFIG
27711  fi
27712else
27713  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27714fi
27715
27716    fi
27717
27718    if test "x$PKGCONFIG" != "xno"; then
27719      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
27720$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
27721            itexists=`
27722    if test -n ""; then
27723      PKG_CONFIG_LIBDIR=""
27724      export PKG_CONFIG_LIBDIR
27725    fi
27726         $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
27727
27728      if test -z "$itexists"; then
27729                        PKGCONFIG="no"
27730        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27731$as_echo "no" >&6; }
27732      else
27733        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27734$as_echo "found" >&6; }
27735      fi
27736    fi
27737
27738
27739    if test "$PKGCONFIG" != "no" ; then
27740      LIB_SSH2=`$PKGCONFIG --libs libssh2`
27741      LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
27742      CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
27743      version=`$PKGCONFIG --modversion libssh2`
27744      DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
27745    fi
27746
27747    ;;
27748  off)
27749        ;;
27750  *)
27751        PREFIX_SSH2=$OPT_LIBSSH2
27752    ;;
27753  esac
27754
27755    if test -n "$PREFIX_SSH2"; then
27756    LIB_SSH2="-lssh2"
27757    LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
27758    CPP_SSH2=-I${PREFIX_SSH2}/include
27759    DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
27760  fi
27761
27762  LDFLAGS="$LDFLAGS $LD_SSH2"
27763  CPPFLAGS="$CPPFLAGS $CPP_SSH2"
27764  LIBS="$LIB_SSH2 $LIBS"
27765
27766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
27767$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
27768if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
27769  $as_echo_n "(cached) " >&6
27770else
27771  ac_check_lib_save_LIBS=$LIBS
27772LIBS="-lssh2  $LIBS"
27773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27774/* end confdefs.h.  */
27775
27776
27777#ifdef __cplusplus
27778extern "C"
27779#endif
27780char libssh2_channel_open_ex ();
27781int main (void)
27782{
27783return libssh2_channel_open_ex ();
27784 ;
27785 return 0;
27786}
27787_ACEOF
27788if ac_fn_c_try_link "$LINENO"; then :
27789  ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
27790else
27791  ac_cv_lib_ssh2_libssh2_channel_open_ex=no
27792fi
27793rm -f core conftest.err conftest.$ac_objext \
27794    conftest$ac_exeext conftest.$ac_ext
27795LIBS=$ac_check_lib_save_LIBS
27796fi
27797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
27798$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
27799if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
27800  cat >>confdefs.h <<_ACEOF
27801#define HAVE_LIBSSH2 1
27802_ACEOF
27803
27804  LIBS="-lssh2 $LIBS"
27805
27806fi
27807
27808
27809  for ac_header in libssh2.h
27810do :
27811  ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
27812if test "x$ac_cv_header_libssh2_h" = xyes; then :
27813  cat >>confdefs.h <<_ACEOF
27814#define HAVE_LIBSSH2_H 1
27815_ACEOF
27816 curl_ssh_msg="enabled (libSSH2)"
27817    LIBSSH2_ENABLED=1
27818
27819$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
27820
27821    USE_LIBSSH2=1
27822
27823
27824fi
27825
27826done
27827
27828
27829  if test X"$OPT_LIBSSH2" != Xoff &&
27830     test "$LIBSSH2_ENABLED" != "1"; then
27831    as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
27832  fi
27833
27834  if test "$LIBSSH2_ENABLED" = "1"; then
27835    if test -n "$DIR_SSH2"; then
27836
27837       if test "x$cross_compiling" != "xyes"; then
27838         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
27839         export CURL_LIBRARY_PATH
27840         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
27841$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
27842       fi
27843    fi
27844  else
27845        LDFLAGS=$CLEANLDFLAGS
27846    CPPFLAGS=$CLEANCPPFLAGS
27847    LIBS=$CLEANLIBS
27848  fi
27849elif test X"$OPT_LIBSSH" != Xno; then
27850    CLEANLDFLAGS="$LDFLAGS"
27851  CLEANCPPFLAGS="$CPPFLAGS"
27852  CLEANLIBS="$LIBS"
27853
27854  case "$OPT_LIBSSH" in
27855  yes)
27856
27857    if test -n "$PKG_CONFIG"; then
27858      PKGCONFIG="$PKG_CONFIG"
27859    else
27860      if test -n "$ac_tool_prefix"; then
27861  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27862set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27864$as_echo_n "checking for $ac_word... " >&6; }
27865if ${ac_cv_path_PKGCONFIG+:} false; then :
27866  $as_echo_n "(cached) " >&6
27867else
27868  case $PKGCONFIG in
27869  [\\/]* | ?:[\\/]*)
27870  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27871  ;;
27872  *)
27873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27874as_dummy="$PATH:/usr/bin:/usr/local/bin"
27875for as_dir in $as_dummy
27876do
27877  IFS=$as_save_IFS
27878  test -z "$as_dir" && as_dir=.
27879    for ac_exec_ext in '' $ac_executable_extensions; do
27880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27881    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27883    break 2
27884  fi
27885done
27886  done
27887IFS=$as_save_IFS
27888
27889  ;;
27890esac
27891fi
27892PKGCONFIG=$ac_cv_path_PKGCONFIG
27893if test -n "$PKGCONFIG"; then
27894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27895$as_echo "$PKGCONFIG" >&6; }
27896else
27897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27898$as_echo "no" >&6; }
27899fi
27900
27901
27902fi
27903if test -z "$ac_cv_path_PKGCONFIG"; then
27904  ac_pt_PKGCONFIG=$PKGCONFIG
27905  # Extract the first word of "pkg-config", so it can be a program name with args.
27906set dummy pkg-config; ac_word=$2
27907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27908$as_echo_n "checking for $ac_word... " >&6; }
27909if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27910  $as_echo_n "(cached) " >&6
27911else
27912  case $ac_pt_PKGCONFIG in
27913  [\\/]* | ?:[\\/]*)
27914  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27915  ;;
27916  *)
27917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27918as_dummy="$PATH:/usr/bin:/usr/local/bin"
27919for as_dir in $as_dummy
27920do
27921  IFS=$as_save_IFS
27922  test -z "$as_dir" && as_dir=.
27923    for ac_exec_ext in '' $ac_executable_extensions; do
27924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27925    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27927    break 2
27928  fi
27929done
27930  done
27931IFS=$as_save_IFS
27932
27933  ;;
27934esac
27935fi
27936ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27937if test -n "$ac_pt_PKGCONFIG"; then
27938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27939$as_echo "$ac_pt_PKGCONFIG" >&6; }
27940else
27941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27942$as_echo "no" >&6; }
27943fi
27944
27945  if test "x$ac_pt_PKGCONFIG" = x; then
27946    PKGCONFIG="no"
27947  else
27948    case $cross_compiling:$ac_tool_warned in
27949yes:)
27950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27952ac_tool_warned=yes ;;
27953esac
27954    PKGCONFIG=$ac_pt_PKGCONFIG
27955  fi
27956else
27957  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27958fi
27959
27960    fi
27961
27962    if test "x$PKGCONFIG" != "xno"; then
27963      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
27964$as_echo_n "checking for libssh options with pkg-config... " >&6; }
27965            itexists=`
27966    if test -n ""; then
27967      PKG_CONFIG_LIBDIR=""
27968      export PKG_CONFIG_LIBDIR
27969    fi
27970         $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
27971
27972      if test -z "$itexists"; then
27973                        PKGCONFIG="no"
27974        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27975$as_echo "no" >&6; }
27976      else
27977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27978$as_echo "found" >&6; }
27979      fi
27980    fi
27981
27982
27983    if test "$PKGCONFIG" != "no" ; then
27984      LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
27985      LD_SSH=`$PKGCONFIG --libs-only-L libssh`
27986      CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
27987      version=`$PKGCONFIG --modversion libssh`
27988      DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
27989    fi
27990
27991    ;;
27992  off)
27993        ;;
27994  *)
27995        PREFIX_SSH=$OPT_LIBSSH
27996    ;;
27997  esac
27998
27999    if test -n "$PREFIX_SSH"; then
28000    LIB_SSH="-lssh"
28001    LD_SSH=-L${PREFIX_SSH}/lib$libsuff
28002    CPP_SSH=-I${PREFIX_SSH}/include
28003    DIR_SSH=${PREFIX_SSH}/lib$libsuff
28004  fi
28005
28006  LDFLAGS="$LDFLAGS $LD_SSH"
28007  CPPFLAGS="$CPPFLAGS $CPP_SSH"
28008  LIBS="$LIB_SSH $LIBS"
28009
28010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
28011$as_echo_n "checking for ssh_new in -lssh... " >&6; }
28012if ${ac_cv_lib_ssh_ssh_new+:} false; then :
28013  $as_echo_n "(cached) " >&6
28014else
28015  ac_check_lib_save_LIBS=$LIBS
28016LIBS="-lssh  $LIBS"
28017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28018/* end confdefs.h.  */
28019
28020
28021#ifdef __cplusplus
28022extern "C"
28023#endif
28024char ssh_new ();
28025int main (void)
28026{
28027return ssh_new ();
28028 ;
28029 return 0;
28030}
28031_ACEOF
28032if ac_fn_c_try_link "$LINENO"; then :
28033  ac_cv_lib_ssh_ssh_new=yes
28034else
28035  ac_cv_lib_ssh_ssh_new=no
28036fi
28037rm -f core conftest.err conftest.$ac_objext \
28038    conftest$ac_exeext conftest.$ac_ext
28039LIBS=$ac_check_lib_save_LIBS
28040fi
28041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
28042$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
28043if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
28044  cat >>confdefs.h <<_ACEOF
28045#define HAVE_LIBSSH 1
28046_ACEOF
28047
28048  LIBS="-lssh $LIBS"
28049
28050fi
28051
28052
28053  for ac_header in libssh/libssh.h
28054do :
28055  ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
28056if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
28057  cat >>confdefs.h <<_ACEOF
28058#define HAVE_LIBSSH_LIBSSH_H 1
28059_ACEOF
28060 curl_ssh_msg="enabled (libSSH)"
28061    LIBSSH_ENABLED=1
28062
28063$as_echo "#define USE_LIBSSH 1" >>confdefs.h
28064
28065    USE_LIBSSH=1
28066
28067
28068fi
28069
28070done
28071
28072
28073  if test X"$OPT_LIBSSH" != Xoff &&
28074     test "$LIBSSH_ENABLED" != "1"; then
28075    as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
28076  fi
28077
28078  if test "$LIBSSH_ENABLED" = "1"; then
28079    if test -n "$DIR_SSH"; then
28080
28081       if test "x$cross_compiling" != "xyes"; then
28082         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
28083         export CURL_LIBRARY_PATH
28084         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
28085$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
28086       fi
28087    fi
28088  else
28089        LDFLAGS=$CLEANLDFLAGS
28090    CPPFLAGS=$CLEANCPPFLAGS
28091    LIBS=$CLEANLIBS
28092  fi
28093elif test X"$OPT_WOLFSSH" != Xno; then
28094    CLEANLDFLAGS="$LDFLAGS"
28095  CLEANCPPFLAGS="$CPPFLAGS"
28096  CLEANLIBS="$LIBS"
28097
28098
28099  if test "$OPT_WOLFSSH" != yes; then
28100     WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
28101     LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
28102     CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
28103  fi
28104
28105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
28106$as_echo_n "checking for wolfSSH_Init in -lwolfssh... " >&6; }
28107if ${ac_cv_lib_wolfssh_wolfSSH_Init+:} false; then :
28108  $as_echo_n "(cached) " >&6
28109else
28110  ac_check_lib_save_LIBS=$LIBS
28111LIBS="-lwolfssh  $LIBS"
28112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28113/* end confdefs.h.  */
28114
28115
28116#ifdef __cplusplus
28117extern "C"
28118#endif
28119char wolfSSH_Init ();
28120int main (void)
28121{
28122return wolfSSH_Init ();
28123 ;
28124 return 0;
28125}
28126_ACEOF
28127if ac_fn_c_try_link "$LINENO"; then :
28128  ac_cv_lib_wolfssh_wolfSSH_Init=yes
28129else
28130  ac_cv_lib_wolfssh_wolfSSH_Init=no
28131fi
28132rm -f core conftest.err conftest.$ac_objext \
28133    conftest$ac_exeext conftest.$ac_ext
28134LIBS=$ac_check_lib_save_LIBS
28135fi
28136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
28137$as_echo "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
28138if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes; then :
28139  cat >>confdefs.h <<_ACEOF
28140#define HAVE_LIBWOLFSSH 1
28141_ACEOF
28142
28143  LIBS="-lwolfssh $LIBS"
28144
28145fi
28146
28147
28148  for ac_header in wolfssh/ssh.h
28149do :
28150  ac_fn_c_check_header_mongrel "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
28151if test "x$ac_cv_header_wolfssh_ssh_h" = xyes; then :
28152  cat >>confdefs.h <<_ACEOF
28153#define HAVE_WOLFSSH_SSH_H 1
28154_ACEOF
28155 curl_ssh_msg="enabled (wolfSSH)"
28156    WOLFSSH_ENABLED=1
28157
28158$as_echo "#define USE_WOLFSSH 1" >>confdefs.h
28159
28160    USE_WOLFSSH=1
28161
28162
28163fi
28164
28165done
28166
28167
28168fi
28169
28170
28171OPT_LIBRTMP=off
28172
28173# Check whether --with-librtmp was given.
28174if test "${with_librtmp+set}" = set; then :
28175  withval=$with_librtmp; OPT_LIBRTMP=$withval
28176fi
28177
28178
28179if test X"$OPT_LIBRTMP" != Xno; then
28180    CLEANLDFLAGS="$LDFLAGS"
28181  CLEANCPPFLAGS="$CPPFLAGS"
28182  CLEANLIBS="$LIBS"
28183
28184  case "$OPT_LIBRTMP" in
28185  yes)
28186
28187    if test -n "$PKG_CONFIG"; then
28188      PKGCONFIG="$PKG_CONFIG"
28189    else
28190      if test -n "$ac_tool_prefix"; then
28191  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28192set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28194$as_echo_n "checking for $ac_word... " >&6; }
28195if ${ac_cv_path_PKGCONFIG+:} false; then :
28196  $as_echo_n "(cached) " >&6
28197else
28198  case $PKGCONFIG in
28199  [\\/]* | ?:[\\/]*)
28200  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28201  ;;
28202  *)
28203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28204as_dummy="$PATH:/usr/bin:/usr/local/bin"
28205for as_dir in $as_dummy
28206do
28207  IFS=$as_save_IFS
28208  test -z "$as_dir" && as_dir=.
28209    for ac_exec_ext in '' $ac_executable_extensions; do
28210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28211    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28213    break 2
28214  fi
28215done
28216  done
28217IFS=$as_save_IFS
28218
28219  ;;
28220esac
28221fi
28222PKGCONFIG=$ac_cv_path_PKGCONFIG
28223if test -n "$PKGCONFIG"; then
28224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28225$as_echo "$PKGCONFIG" >&6; }
28226else
28227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28228$as_echo "no" >&6; }
28229fi
28230
28231
28232fi
28233if test -z "$ac_cv_path_PKGCONFIG"; then
28234  ac_pt_PKGCONFIG=$PKGCONFIG
28235  # Extract the first word of "pkg-config", so it can be a program name with args.
28236set dummy pkg-config; ac_word=$2
28237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28238$as_echo_n "checking for $ac_word... " >&6; }
28239if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28240  $as_echo_n "(cached) " >&6
28241else
28242  case $ac_pt_PKGCONFIG in
28243  [\\/]* | ?:[\\/]*)
28244  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28245  ;;
28246  *)
28247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28248as_dummy="$PATH:/usr/bin:/usr/local/bin"
28249for as_dir in $as_dummy
28250do
28251  IFS=$as_save_IFS
28252  test -z "$as_dir" && as_dir=.
28253    for ac_exec_ext in '' $ac_executable_extensions; do
28254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28255    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28257    break 2
28258  fi
28259done
28260  done
28261IFS=$as_save_IFS
28262
28263  ;;
28264esac
28265fi
28266ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28267if test -n "$ac_pt_PKGCONFIG"; then
28268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28269$as_echo "$ac_pt_PKGCONFIG" >&6; }
28270else
28271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28272$as_echo "no" >&6; }
28273fi
28274
28275  if test "x$ac_pt_PKGCONFIG" = x; then
28276    PKGCONFIG="no"
28277  else
28278    case $cross_compiling:$ac_tool_warned in
28279yes:)
28280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28282ac_tool_warned=yes ;;
28283esac
28284    PKGCONFIG=$ac_pt_PKGCONFIG
28285  fi
28286else
28287  PKGCONFIG="$ac_cv_path_PKGCONFIG"
28288fi
28289
28290    fi
28291
28292    if test "x$PKGCONFIG" != "xno"; then
28293      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
28294$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
28295            itexists=`
28296    if test -n ""; then
28297      PKG_CONFIG_LIBDIR=""
28298      export PKG_CONFIG_LIBDIR
28299    fi
28300         $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
28301
28302      if test -z "$itexists"; then
28303                        PKGCONFIG="no"
28304        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28305$as_echo "no" >&6; }
28306      else
28307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28308$as_echo "found" >&6; }
28309      fi
28310    fi
28311
28312
28313    if test "$PKGCONFIG" != "no" ; then
28314      LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
28315      LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
28316      CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
28317      version=`$PKGCONFIG --modversion librtmp`
28318      DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
28319    else
28320                  as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
28321    fi
28322
28323    ;;
28324  off)
28325        LIB_RTMP="-lrtmp"
28326    ;;
28327  *)
28328        LIB_RTMP="-lrtmp"
28329    PREFIX_RTMP=$OPT_LIBRTMP
28330    ;;
28331  esac
28332
28333    if test -n "$PREFIX_RTMP"; then
28334    LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
28335    CPP_RTMP=-I${PREFIX_RTMP}/include
28336    DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
28337  fi
28338
28339  LDFLAGS="$LDFLAGS $LD_RTMP"
28340  CPPFLAGS="$CPPFLAGS $CPP_RTMP"
28341  LIBS="$LIB_RTMP $LIBS"
28342
28343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
28344$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
28345if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
28346  $as_echo_n "(cached) " >&6
28347else
28348  ac_check_lib_save_LIBS=$LIBS
28349LIBS="-lrtmp  $LIBS"
28350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28351/* end confdefs.h.  */
28352
28353
28354#ifdef __cplusplus
28355extern "C"
28356#endif
28357char RTMP_Init ();
28358int main (void)
28359{
28360return RTMP_Init ();
28361 ;
28362 return 0;
28363}
28364_ACEOF
28365if ac_fn_c_try_link "$LINENO"; then :
28366  ac_cv_lib_rtmp_RTMP_Init=yes
28367else
28368  ac_cv_lib_rtmp_RTMP_Init=no
28369fi
28370rm -f core conftest.err conftest.$ac_objext \
28371    conftest$ac_exeext conftest.$ac_ext
28372LIBS=$ac_check_lib_save_LIBS
28373fi
28374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
28375$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
28376if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
28377
28378     for ac_header in librtmp/rtmp.h
28379do :
28380  ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
28381if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
28382  cat >>confdefs.h <<_ACEOF
28383#define HAVE_LIBRTMP_RTMP_H 1
28384_ACEOF
28385 curl_rtmp_msg="enabled (librtmp)"
28386        LIBRTMP_ENABLED=1
28387
28388$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
28389
28390        USE_LIBRTMP=1
28391
28392
28393fi
28394
28395done
28396
28397
28398else
28399        LDFLAGS=$CLEANLDFLAGS
28400      CPPFLAGS=$CLEANCPPFLAGS
28401      LIBS=$CLEANLIBS
28402
28403fi
28404
28405
28406  if test X"$OPT_LIBRTMP" != Xoff &&
28407     test "$LIBRTMP_ENABLED" != "1"; then
28408    as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
28409  fi
28410
28411fi
28412
28413
28414versioned_symbols_flavour=
28415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
28416$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
28417# Check whether --enable-versioned-symbols was given.
28418if test "${enable_versioned_symbols+set}" = set; then :
28419  enableval=$enable_versioned_symbols;  case "$enableval" in
28420  yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28421$as_echo "yes" >&6; }
28422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
28423$as_echo_n "checking if libraries can be versioned... " >&6; }
28424    GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
28425    if test -z "$GLD"; then
28426        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28427$as_echo "no" >&6; }
28428        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
28429$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
28430    else
28431        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28432$as_echo "yes" >&6; }
28433        if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
28434          versioned_symbols_flavour="MULTISSL_"
28435        elif test "x$OPENSSL_ENABLED" = "x1"; then
28436          versioned_symbols_flavour="OPENSSL_"
28437        elif test "x$GNUTLS_ENABLED" = "x1"; then
28438          versioned_symbols_flavour="GNUTLS_"
28439        elif test "x$NSS_ENABLED" = "x1"; then
28440          versioned_symbols_flavour="NSS_"
28441        elif test "x$WOLFSSL_ENABLED" = "x1"; then
28442          versioned_symbols_flavour="WOLFSSL_"
28443        elif test "x$SCHANNEL_ENABLED" = "x1"; then
28444          versioned_symbols_flavour="SCHANNEL_"
28445        elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
28446          versioned_symbols_flavour="SECURE_TRANSPORT_"
28447        else
28448          versioned_symbols_flavour=""
28449        fi
28450        versioned_symbols="yes"
28451    fi
28452    ;;
28453
28454  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28455$as_echo "no" >&6; }
28456    ;;
28457  esac
28458
28459else
28460
28461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28462$as_echo "no" >&6; }
28463
28464
28465fi
28466
28467
28468CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
28469
28470 if test "x$versioned_symbols" = 'xyes'; then
28471  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
28472  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
28473else
28474  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
28475  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
28476fi
28477
28478
28479
28480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
28481$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
28482OPT_WINIDN="default"
28483
28484# Check whether --with-winidn was given.
28485if test "${with_winidn+set}" = set; then :
28486  withval=$with_winidn; OPT_WINIDN=$withval
28487fi
28488
28489case "$OPT_WINIDN" in
28490  no|default)
28491        want_winidn="no"
28492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28493$as_echo "no" >&6; }
28494    ;;
28495  yes)
28496        want_winidn="yes"
28497    want_winidn_path="default"
28498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28499$as_echo "yes" >&6; }
28500    ;;
28501  *)
28502        want_winidn="yes"
28503    want_winidn_path="$withval"
28504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
28505$as_echo "yes ($withval)" >&6; }
28506    ;;
28507esac
28508
28509if test "$want_winidn" = "yes"; then
28510    clean_CPPFLAGS="$CPPFLAGS"
28511  clean_LDFLAGS="$LDFLAGS"
28512  clean_LIBS="$LIBS"
28513  WINIDN_LIBS="-lnormaliz"
28514  WINIDN_CPPFLAGS="-DWINVER=0x0600"
28515  #
28516  if test "$want_winidn_path" != "default"; then
28517            WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
28518    WINIDN_CPPFLAGS="-I$want_winidn_path/include"
28519    WINIDN_DIR="$want_winidn_path/lib$libsuff"
28520  fi
28521  #
28522  CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
28523  LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
28524  LIBS="$WINIDN_LIBS $LIBS"
28525  #
28526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
28527$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
28528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28529/* end confdefs.h.  */
28530
28531
28532      #include <windows.h>
28533
28534int main (void)
28535{
28536
28537      IdnToUnicode(0, NULL, 0, NULL, 0);
28538
28539 ;
28540 return 0;
28541}
28542
28543_ACEOF
28544if ac_fn_c_try_link "$LINENO"; then :
28545
28546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28547$as_echo "yes" >&6; }
28548    tst_links_winidn="yes"
28549
28550else
28551
28552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28553$as_echo "no" >&6; }
28554    tst_links_winidn="no"
28555
28556fi
28557rm -f core conftest.err conftest.$ac_objext \
28558    conftest$ac_exeext conftest.$ac_ext
28559  #
28560  if test "$tst_links_winidn" = "yes"; then
28561
28562$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
28563
28564
28565$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
28566
28567    IDN_ENABLED=1
28568
28569    curl_idn_msg="enabled (Windows-native)"
28570  else
28571    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
28572$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
28573    CPPFLAGS="$clean_CPPFLAGS"
28574    LDFLAGS="$clean_LDFLAGS"
28575    LIBS="$clean_LIBS"
28576  fi
28577fi
28578
28579
28580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
28581$as_echo_n "checking whether to build with libidn2... " >&6; }
28582OPT_IDN="default"
28583
28584# Check whether --with-libidn2 was given.
28585if test "${with_libidn2+set}" = set; then :
28586  withval=$with_libidn2; OPT_IDN=$withval
28587fi
28588
28589case "$OPT_IDN" in
28590  no)
28591        want_idn="no"
28592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28593$as_echo "no" >&6; }
28594    ;;
28595  default)
28596        want_idn="yes"
28597    want_idn_path="default"
28598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
28599$as_echo "(assumed) yes" >&6; }
28600    ;;
28601  yes)
28602        want_idn="yes"
28603    want_idn_path="default"
28604    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28605$as_echo "yes" >&6; }
28606    ;;
28607  *)
28608        want_idn="yes"
28609    want_idn_path="$withval"
28610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
28611$as_echo "yes ($withval)" >&6; }
28612    ;;
28613esac
28614
28615if test "$want_idn" = "yes"; then
28616    clean_CPPFLAGS="$CPPFLAGS"
28617  clean_LDFLAGS="$LDFLAGS"
28618  clean_LIBS="$LIBS"
28619  PKGCONFIG="no"
28620  #
28621  if test "$want_idn_path" != "default"; then
28622        IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
28623
28624    if test -n "$PKG_CONFIG"; then
28625      PKGCONFIG="$PKG_CONFIG"
28626    else
28627      if test -n "$ac_tool_prefix"; then
28628  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28629set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28631$as_echo_n "checking for $ac_word... " >&6; }
28632if ${ac_cv_path_PKGCONFIG+:} false; then :
28633  $as_echo_n "(cached) " >&6
28634else
28635  case $PKGCONFIG in
28636  [\\/]* | ?:[\\/]*)
28637  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28638  ;;
28639  *)
28640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28641as_dummy="$PATH:/usr/bin:/usr/local/bin"
28642for as_dir in $as_dummy
28643do
28644  IFS=$as_save_IFS
28645  test -z "$as_dir" && as_dir=.
28646    for ac_exec_ext in '' $ac_executable_extensions; do
28647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28648    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28650    break 2
28651  fi
28652done
28653  done
28654IFS=$as_save_IFS
28655
28656  ;;
28657esac
28658fi
28659PKGCONFIG=$ac_cv_path_PKGCONFIG
28660if test -n "$PKGCONFIG"; then
28661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28662$as_echo "$PKGCONFIG" >&6; }
28663else
28664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28665$as_echo "no" >&6; }
28666fi
28667
28668
28669fi
28670if test -z "$ac_cv_path_PKGCONFIG"; then
28671  ac_pt_PKGCONFIG=$PKGCONFIG
28672  # Extract the first word of "pkg-config", so it can be a program name with args.
28673set dummy pkg-config; ac_word=$2
28674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28675$as_echo_n "checking for $ac_word... " >&6; }
28676if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28677  $as_echo_n "(cached) " >&6
28678else
28679  case $ac_pt_PKGCONFIG in
28680  [\\/]* | ?:[\\/]*)
28681  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28682  ;;
28683  *)
28684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28685as_dummy="$PATH:/usr/bin:/usr/local/bin"
28686for as_dir in $as_dummy
28687do
28688  IFS=$as_save_IFS
28689  test -z "$as_dir" && as_dir=.
28690    for ac_exec_ext in '' $ac_executable_extensions; do
28691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28692    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28694    break 2
28695  fi
28696done
28697  done
28698IFS=$as_save_IFS
28699
28700  ;;
28701esac
28702fi
28703ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28704if test -n "$ac_pt_PKGCONFIG"; then
28705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28706$as_echo "$ac_pt_PKGCONFIG" >&6; }
28707else
28708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28709$as_echo "no" >&6; }
28710fi
28711
28712  if test "x$ac_pt_PKGCONFIG" = x; then
28713    PKGCONFIG="no"
28714  else
28715    case $cross_compiling:$ac_tool_warned in
28716yes:)
28717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28719ac_tool_warned=yes ;;
28720esac
28721    PKGCONFIG=$ac_pt_PKGCONFIG
28722  fi
28723else
28724  PKGCONFIG="$ac_cv_path_PKGCONFIG"
28725fi
28726
28727    fi
28728
28729    if test "x$PKGCONFIG" != "xno"; then
28730      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
28731$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
28732            itexists=`
28733    if test -n "$IDN_PCDIR"; then
28734      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
28735      export PKG_CONFIG_LIBDIR
28736    fi
28737         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
28738
28739      if test -z "$itexists"; then
28740                        PKGCONFIG="no"
28741        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28742$as_echo "no" >&6; }
28743      else
28744        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28745$as_echo "found" >&6; }
28746      fi
28747    fi
28748
28749    if test "$PKGCONFIG" != "no"; then
28750      IDN_LIBS=`
28751    if test -n "$IDN_PCDIR"; then
28752      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
28753      export PKG_CONFIG_LIBDIR
28754    fi
28755         $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
28756      IDN_LDFLAGS=`
28757    if test -n "$IDN_PCDIR"; then
28758      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
28759      export PKG_CONFIG_LIBDIR
28760    fi
28761         $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
28762      IDN_CPPFLAGS=`
28763    if test -n "$IDN_PCDIR"; then
28764      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
28765      export PKG_CONFIG_LIBDIR
28766    fi
28767         $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
28768      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
28769    else
28770            IDN_LIBS="-lidn2"
28771      IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
28772      IDN_CPPFLAGS="-I$want_idn_path/include"
28773      IDN_DIR="$want_idn_path/lib$libsuff"
28774    fi
28775  else
28776
28777    if test -n "$PKG_CONFIG"; then
28778      PKGCONFIG="$PKG_CONFIG"
28779    else
28780      if test -n "$ac_tool_prefix"; then
28781  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28782set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28784$as_echo_n "checking for $ac_word... " >&6; }
28785if ${ac_cv_path_PKGCONFIG+:} false; then :
28786  $as_echo_n "(cached) " >&6
28787else
28788  case $PKGCONFIG in
28789  [\\/]* | ?:[\\/]*)
28790  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28791  ;;
28792  *)
28793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28794as_dummy="$PATH:/usr/bin:/usr/local/bin"
28795for as_dir in $as_dummy
28796do
28797  IFS=$as_save_IFS
28798  test -z "$as_dir" && as_dir=.
28799    for ac_exec_ext in '' $ac_executable_extensions; do
28800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28801    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28803    break 2
28804  fi
28805done
28806  done
28807IFS=$as_save_IFS
28808
28809  ;;
28810esac
28811fi
28812PKGCONFIG=$ac_cv_path_PKGCONFIG
28813if test -n "$PKGCONFIG"; then
28814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28815$as_echo "$PKGCONFIG" >&6; }
28816else
28817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28818$as_echo "no" >&6; }
28819fi
28820
28821
28822fi
28823if test -z "$ac_cv_path_PKGCONFIG"; then
28824  ac_pt_PKGCONFIG=$PKGCONFIG
28825  # Extract the first word of "pkg-config", so it can be a program name with args.
28826set dummy pkg-config; ac_word=$2
28827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28828$as_echo_n "checking for $ac_word... " >&6; }
28829if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28830  $as_echo_n "(cached) " >&6
28831else
28832  case $ac_pt_PKGCONFIG in
28833  [\\/]* | ?:[\\/]*)
28834  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28835  ;;
28836  *)
28837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28838as_dummy="$PATH:/usr/bin:/usr/local/bin"
28839for as_dir in $as_dummy
28840do
28841  IFS=$as_save_IFS
28842  test -z "$as_dir" && as_dir=.
28843    for ac_exec_ext in '' $ac_executable_extensions; do
28844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28845    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28847    break 2
28848  fi
28849done
28850  done
28851IFS=$as_save_IFS
28852
28853  ;;
28854esac
28855fi
28856ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28857if test -n "$ac_pt_PKGCONFIG"; then
28858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28859$as_echo "$ac_pt_PKGCONFIG" >&6; }
28860else
28861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28862$as_echo "no" >&6; }
28863fi
28864
28865  if test "x$ac_pt_PKGCONFIG" = x; then
28866    PKGCONFIG="no"
28867  else
28868    case $cross_compiling:$ac_tool_warned in
28869yes:)
28870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28872ac_tool_warned=yes ;;
28873esac
28874    PKGCONFIG=$ac_pt_PKGCONFIG
28875  fi
28876else
28877  PKGCONFIG="$ac_cv_path_PKGCONFIG"
28878fi
28879
28880    fi
28881
28882    if test "x$PKGCONFIG" != "xno"; then
28883      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
28884$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
28885            itexists=`
28886    if test -n ""; then
28887      PKG_CONFIG_LIBDIR=""
28888      export PKG_CONFIG_LIBDIR
28889    fi
28890         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
28891
28892      if test -z "$itexists"; then
28893                        PKGCONFIG="no"
28894        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28895$as_echo "no" >&6; }
28896      else
28897        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28898$as_echo "found" >&6; }
28899      fi
28900    fi
28901
28902    if test "$PKGCONFIG" != "no"; then
28903      IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
28904      IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
28905      IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
28906      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
28907    else
28908            IDN_LIBS="-lidn2"
28909    fi
28910  fi
28911  #
28912  if test "$PKGCONFIG" != "no"; then
28913    { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
28914$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
28915    { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
28916$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
28917    { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
28918$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
28919    { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
28920$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
28921  else
28922    { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
28923$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
28924    { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
28925$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
28926    { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
28927$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
28928    { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
28929$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
28930  fi
28931  #
28932  CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
28933  LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
28934  LIBS="$IDN_LIBS $LIBS"
28935  #
28936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
28937$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
28938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28939/* end confdefs.h.  */
28940
28941
28942#define idn2_lookup_ul innocuous_idn2_lookup_ul
28943#ifdef __STDC__
28944# include <limits.h>
28945#else
28946# include <assert.h>
28947#endif
28948#undef idn2_lookup_ul
28949#ifdef __cplusplus
28950extern "C"
28951#endif
28952char idn2_lookup_ul ();
28953#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
28954choke me
28955#endif
28956
28957int main (void)
28958{
28959return idn2_lookup_ul ();
28960 ;
28961 return 0;
28962}
28963
28964_ACEOF
28965if ac_fn_c_try_link "$LINENO"; then :
28966
28967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28968$as_echo "yes" >&6; }
28969    tst_links_libidn="yes"
28970
28971else
28972
28973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28974$as_echo "no" >&6; }
28975    tst_links_libidn="no"
28976
28977fi
28978rm -f core conftest.err conftest.$ac_objext \
28979    conftest$ac_exeext conftest.$ac_ext
28980  #
28981  for ac_header in idn2.h
28982do :
28983  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28984ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28985if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28986  cat >>confdefs.h <<_ACEOF
28987#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28988_ACEOF
28989
28990fi
28991
28992done
28993
28994
28995  if test "$tst_links_libidn" = "yes"; then
28996
28997$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
28998
28999
29000    IDN_ENABLED=1
29001
29002    curl_idn_msg="enabled (libidn2)"
29003    if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
29004      CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
29005      export CURL_LIBRARY_PATH
29006      { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
29007$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
29008    fi
29009  else
29010    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
29011$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
29012    CPPFLAGS="$clean_CPPFLAGS"
29013    LDFLAGS="$clean_LDFLAGS"
29014    LIBS="$clean_LIBS"
29015  fi
29016fi
29017
29018
29019
29020
29021
29022OPT_H2="yes"
29023
29024if test "x$disable_http" = "xyes"; then
29025  # without HTTP, nghttp2 is no use
29026  OPT_H2="no"
29027fi
29028
29029
29030# Check whether --with-nghttp2 was given.
29031if test "${with_nghttp2+set}" = set; then :
29032  withval=$with_nghttp2; OPT_H2=$withval
29033fi
29034
29035case "$OPT_H2" in
29036  no)
29037        want_h2="no"
29038    ;;
29039  yes)
29040        want_h2="default"
29041    want_h2_path=""
29042    ;;
29043  *)
29044        want_h2="yes"
29045    want_h2_path="$withval/lib/pkgconfig"
29046    ;;
29047esac
29048
29049curl_h2_msg="no      (--with-nghttp2)"
29050if test X"$want_h2" != Xno; then
29051    CLEANLDFLAGS="$LDFLAGS"
29052  CLEANCPPFLAGS="$CPPFLAGS"
29053  CLEANLIBS="$LIBS"
29054
29055
29056    if test -n "$PKG_CONFIG"; then
29057      PKGCONFIG="$PKG_CONFIG"
29058    else
29059      if test -n "$ac_tool_prefix"; then
29060  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29061set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29063$as_echo_n "checking for $ac_word... " >&6; }
29064if ${ac_cv_path_PKGCONFIG+:} false; then :
29065  $as_echo_n "(cached) " >&6
29066else
29067  case $PKGCONFIG in
29068  [\\/]* | ?:[\\/]*)
29069  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29070  ;;
29071  *)
29072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29073as_dummy="$PATH:/usr/bin:/usr/local/bin"
29074for as_dir in $as_dummy
29075do
29076  IFS=$as_save_IFS
29077  test -z "$as_dir" && as_dir=.
29078    for ac_exec_ext in '' $ac_executable_extensions; do
29079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29080    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29082    break 2
29083  fi
29084done
29085  done
29086IFS=$as_save_IFS
29087
29088  ;;
29089esac
29090fi
29091PKGCONFIG=$ac_cv_path_PKGCONFIG
29092if test -n "$PKGCONFIG"; then
29093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29094$as_echo "$PKGCONFIG" >&6; }
29095else
29096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29097$as_echo "no" >&6; }
29098fi
29099
29100
29101fi
29102if test -z "$ac_cv_path_PKGCONFIG"; then
29103  ac_pt_PKGCONFIG=$PKGCONFIG
29104  # Extract the first word of "pkg-config", so it can be a program name with args.
29105set dummy pkg-config; ac_word=$2
29106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29107$as_echo_n "checking for $ac_word... " >&6; }
29108if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
29109  $as_echo_n "(cached) " >&6
29110else
29111  case $ac_pt_PKGCONFIG in
29112  [\\/]* | ?:[\\/]*)
29113  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29114  ;;
29115  *)
29116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29117as_dummy="$PATH:/usr/bin:/usr/local/bin"
29118for as_dir in $as_dummy
29119do
29120  IFS=$as_save_IFS
29121  test -z "$as_dir" && as_dir=.
29122    for ac_exec_ext in '' $ac_executable_extensions; do
29123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29124    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29126    break 2
29127  fi
29128done
29129  done
29130IFS=$as_save_IFS
29131
29132  ;;
29133esac
29134fi
29135ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29136if test -n "$ac_pt_PKGCONFIG"; then
29137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29138$as_echo "$ac_pt_PKGCONFIG" >&6; }
29139else
29140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29141$as_echo "no" >&6; }
29142fi
29143
29144  if test "x$ac_pt_PKGCONFIG" = x; then
29145    PKGCONFIG="no"
29146  else
29147    case $cross_compiling:$ac_tool_warned in
29148yes:)
29149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29151ac_tool_warned=yes ;;
29152esac
29153    PKGCONFIG=$ac_pt_PKGCONFIG
29154  fi
29155else
29156  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29157fi
29158
29159    fi
29160
29161    if test "x$PKGCONFIG" != "xno"; then
29162      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
29163$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
29164            itexists=`
29165    if test -n "$want_h2_path"; then
29166      PKG_CONFIG_LIBDIR="$want_h2_path"
29167      export PKG_CONFIG_LIBDIR
29168    fi
29169         $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
29170
29171      if test -z "$itexists"; then
29172                        PKGCONFIG="no"
29173        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29174$as_echo "no" >&6; }
29175      else
29176        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
29177$as_echo "found" >&6; }
29178      fi
29179    fi
29180
29181
29182  if test "$PKGCONFIG" != "no" ; then
29183    LIB_H2=`
29184    if test -n "$want_h2_path"; then
29185      PKG_CONFIG_LIBDIR="$want_h2_path"
29186      export PKG_CONFIG_LIBDIR
29187    fi
29188
29189      $PKGCONFIG --libs-only-l libnghttp2`
29190    { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
29191$as_echo "$as_me: -l is $LIB_H2" >&6;}
29192
29193    CPP_H2=`
29194    if test -n "$want_h2_path"; then
29195      PKG_CONFIG_LIBDIR="$want_h2_path"
29196      export PKG_CONFIG_LIBDIR
29197    fi
29198       $PKGCONFIG --cflags-only-I libnghttp2`
29199    { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
29200$as_echo "$as_me: -I is $CPP_H2" >&6;}
29201
29202    LD_H2=`
29203    if test -n "$want_h2_path"; then
29204      PKG_CONFIG_LIBDIR="$want_h2_path"
29205      export PKG_CONFIG_LIBDIR
29206    fi
29207
29208      $PKGCONFIG --libs-only-L libnghttp2`
29209    { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
29210$as_echo "$as_me: -L is $LD_H2" >&6;}
29211
29212    LDFLAGS="$LDFLAGS $LD_H2"
29213    CPPFLAGS="$CPPFLAGS $CPP_H2"
29214    LIBS="$LIB_H2 $LIBS"
29215
29216    # use nghttp2_session_set_local_window_size to require nghttp2
29217    # >= 1.12.0
29218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
29219$as_echo_n "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
29220if ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+:} false; then :
29221  $as_echo_n "(cached) " >&6
29222else
29223  ac_check_lib_save_LIBS=$LIBS
29224LIBS="-lnghttp2  $LIBS"
29225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29226/* end confdefs.h.  */
29227
29228
29229#ifdef __cplusplus
29230extern "C"
29231#endif
29232char nghttp2_session_set_local_window_size ();
29233int main (void)
29234{
29235return nghttp2_session_set_local_window_size ();
29236 ;
29237 return 0;
29238}
29239_ACEOF
29240if ac_fn_c_try_link "$LINENO"; then :
29241  ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
29242else
29243  ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
29244fi
29245rm -f core conftest.err conftest.$ac_objext \
29246    conftest$ac_exeext conftest.$ac_ext
29247LIBS=$ac_check_lib_save_LIBS
29248fi
29249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
29250$as_echo "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
29251if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes; then :
29252
29253       for ac_header in nghttp2/nghttp2.h
29254do :
29255  ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
29256if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
29257  cat >>confdefs.h <<_ACEOF
29258#define HAVE_NGHTTP2_NGHTTP2_H 1
29259_ACEOF
29260 curl_h2_msg="enabled (nghttp2)"
29261          NGHTTP2_ENABLED=1
29262
29263$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
29264
29265          USE_NGHTTP2=1
29266
29267
29268fi
29269
29270done
29271
29272
29273else
29274          LDFLAGS=$CLEANLDFLAGS
29275        CPPFLAGS=$CLEANCPPFLAGS
29276        LIBS=$CLEANLIBS
29277
29278fi
29279
29280
29281  else
29282        if test X"$want_h2" != Xdefault; then
29283                  as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
29284    fi
29285  fi
29286
29287fi
29288
29289
29290OPT_TCP2="yes"
29291curl_h3_msg="no      (--with-ngtcp2, --with-quiche)"
29292
29293if test "x$disable_http" = "xyes"; then
29294  # without HTTP, ngtcp2 is no use
29295  OPT_TCP2="no"
29296fi
29297
29298
29299# Check whether --with-ngtcp2 was given.
29300if test "${with_ngtcp2+set}" = set; then :
29301  withval=$with_ngtcp2; OPT_TCP2=$withval
29302fi
29303
29304case "$OPT_TCP2" in
29305  no)
29306        want_tcp2="no"
29307    ;;
29308  yes)
29309        want_tcp2="default"
29310    want_tcp2_path=""
29311    ;;
29312  *)
29313        want_tcp2="yes"
29314    want_tcp2_path="$withval/lib/pkgconfig"
29315    ;;
29316esac
29317
29318curl_tcp2_msg="no      (--with-ngtcp2)"
29319if test X"$want_tcp2" != Xno; then
29320    CLEANLDFLAGS="$LDFLAGS"
29321  CLEANCPPFLAGS="$CPPFLAGS"
29322  CLEANLIBS="$LIBS"
29323
29324
29325    if test -n "$PKG_CONFIG"; then
29326      PKGCONFIG="$PKG_CONFIG"
29327    else
29328      if test -n "$ac_tool_prefix"; then
29329  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29330set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29332$as_echo_n "checking for $ac_word... " >&6; }
29333if ${ac_cv_path_PKGCONFIG+:} false; then :
29334  $as_echo_n "(cached) " >&6
29335else
29336  case $PKGCONFIG in
29337  [\\/]* | ?:[\\/]*)
29338  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29339  ;;
29340  *)
29341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29342as_dummy="$PATH:/usr/bin:/usr/local/bin"
29343for as_dir in $as_dummy
29344do
29345  IFS=$as_save_IFS
29346  test -z "$as_dir" && as_dir=.
29347    for ac_exec_ext in '' $ac_executable_extensions; do
29348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29349    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29351    break 2
29352  fi
29353done
29354  done
29355IFS=$as_save_IFS
29356
29357  ;;
29358esac
29359fi
29360PKGCONFIG=$ac_cv_path_PKGCONFIG
29361if test -n "$PKGCONFIG"; then
29362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29363$as_echo "$PKGCONFIG" >&6; }
29364else
29365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29366$as_echo "no" >&6; }
29367fi
29368
29369
29370fi
29371if test -z "$ac_cv_path_PKGCONFIG"; then
29372  ac_pt_PKGCONFIG=$PKGCONFIG
29373  # Extract the first word of "pkg-config", so it can be a program name with args.
29374set dummy pkg-config; ac_word=$2
29375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29376$as_echo_n "checking for $ac_word... " >&6; }
29377if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
29378  $as_echo_n "(cached) " >&6
29379else
29380  case $ac_pt_PKGCONFIG in
29381  [\\/]* | ?:[\\/]*)
29382  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29383  ;;
29384  *)
29385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29386as_dummy="$PATH:/usr/bin:/usr/local/bin"
29387for as_dir in $as_dummy
29388do
29389  IFS=$as_save_IFS
29390  test -z "$as_dir" && as_dir=.
29391    for ac_exec_ext in '' $ac_executable_extensions; do
29392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29393    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29395    break 2
29396  fi
29397done
29398  done
29399IFS=$as_save_IFS
29400
29401  ;;
29402esac
29403fi
29404ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29405if test -n "$ac_pt_PKGCONFIG"; then
29406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29407$as_echo "$ac_pt_PKGCONFIG" >&6; }
29408else
29409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29410$as_echo "no" >&6; }
29411fi
29412
29413  if test "x$ac_pt_PKGCONFIG" = x; then
29414    PKGCONFIG="no"
29415  else
29416    case $cross_compiling:$ac_tool_warned in
29417yes:)
29418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29420ac_tool_warned=yes ;;
29421esac
29422    PKGCONFIG=$ac_pt_PKGCONFIG
29423  fi
29424else
29425  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29426fi
29427
29428    fi
29429
29430    if test "x$PKGCONFIG" != "xno"; then
29431      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
29432$as_echo_n "checking for libngtcp2 options with pkg-config... " >&6; }
29433            itexists=`
29434    if test -n "$want_tcp2_path"; then
29435      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29436      export PKG_CONFIG_LIBDIR
29437    fi
29438         $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
29439
29440      if test -z "$itexists"; then
29441                        PKGCONFIG="no"
29442        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29443$as_echo "no" >&6; }
29444      else
29445        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
29446$as_echo "found" >&6; }
29447      fi
29448    fi
29449
29450
29451  if test "$PKGCONFIG" != "no" ; then
29452    LIB_TCP2=`
29453    if test -n "$want_tcp2_path"; then
29454      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29455      export PKG_CONFIG_LIBDIR
29456    fi
29457
29458      $PKGCONFIG --libs-only-l libngtcp2`
29459    { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
29460$as_echo "$as_me: -l is $LIB_TCP2" >&6;}
29461
29462    CPP_TCP2=`
29463    if test -n "$want_tcp2_path"; then
29464      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29465      export PKG_CONFIG_LIBDIR
29466    fi
29467       $PKGCONFIG --cflags-only-I libngtcp2`
29468    { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
29469$as_echo "$as_me: -I is $CPP_TCP2" >&6;}
29470
29471    LD_TCP2=`
29472    if test -n "$want_tcp2_path"; then
29473      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29474      export PKG_CONFIG_LIBDIR
29475    fi
29476
29477      $PKGCONFIG --libs-only-L libngtcp2`
29478    { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
29479$as_echo "$as_me: -L is $LD_TCP2" >&6;}
29480
29481    LDFLAGS="$LDFLAGS $LD_TCP2"
29482    CPPFLAGS="$CPPFLAGS $CPP_TCP2"
29483    LIBS="$LIB_TCP2 $LIBS"
29484
29485    if test "x$cross_compiling" != "xyes"; then
29486      DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
29487    fi
29488    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new in -lngtcp2" >&5
29489$as_echo_n "checking for ngtcp2_conn_client_new in -lngtcp2... " >&6; }
29490if ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new+:} false; then :
29491  $as_echo_n "(cached) " >&6
29492else
29493  ac_check_lib_save_LIBS=$LIBS
29494LIBS="-lngtcp2  $LIBS"
29495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29496/* end confdefs.h.  */
29497
29498
29499#ifdef __cplusplus
29500extern "C"
29501#endif
29502char ngtcp2_conn_client_new ();
29503int main (void)
29504{
29505return ngtcp2_conn_client_new ();
29506 ;
29507 return 0;
29508}
29509_ACEOF
29510if ac_fn_c_try_link "$LINENO"; then :
29511  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new=yes
29512else
29513  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new=no
29514fi
29515rm -f core conftest.err conftest.$ac_objext \
29516    conftest$ac_exeext conftest.$ac_ext
29517LIBS=$ac_check_lib_save_LIBS
29518fi
29519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" >&5
29520$as_echo "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" >&6; }
29521if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" = xyes; then :
29522
29523       for ac_header in ngtcp2/ngtcp2.h
29524do :
29525  ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
29526if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes; then :
29527  cat >>confdefs.h <<_ACEOF
29528#define HAVE_NGTCP2_NGTCP2_H 1
29529_ACEOF
29530 NGTCP2_ENABLED=1
29531
29532$as_echo "#define USE_NGTCP2 1" >>confdefs.h
29533
29534          USE_NGTCP2=1
29535
29536          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
29537          export CURL_LIBRARY_PATH
29538          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
29539$as_echo "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
29540
29541fi
29542
29543done
29544
29545
29546else
29547          LDFLAGS=$CLEANLDFLAGS
29548        CPPFLAGS=$CLEANCPPFLAGS
29549        LIBS=$CLEANLIBS
29550
29551fi
29552
29553
29554  else
29555        if test X"$want_tcp2" != Xdefault; then
29556                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
29557    fi
29558  fi
29559
29560fi
29561
29562if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
29563    CLEANLDFLAGS="$LDFLAGS"
29564  CLEANCPPFLAGS="$CPPFLAGS"
29565  CLEANLIBS="$LIBS"
29566
29567
29568    if test -n "$PKG_CONFIG"; then
29569      PKGCONFIG="$PKG_CONFIG"
29570    else
29571      if test -n "$ac_tool_prefix"; then
29572  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29573set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29575$as_echo_n "checking for $ac_word... " >&6; }
29576if ${ac_cv_path_PKGCONFIG+:} false; then :
29577  $as_echo_n "(cached) " >&6
29578else
29579  case $PKGCONFIG in
29580  [\\/]* | ?:[\\/]*)
29581  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29582  ;;
29583  *)
29584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29585as_dummy="$PATH:/usr/bin:/usr/local/bin"
29586for as_dir in $as_dummy
29587do
29588  IFS=$as_save_IFS
29589  test -z "$as_dir" && as_dir=.
29590    for ac_exec_ext in '' $ac_executable_extensions; do
29591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29592    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29594    break 2
29595  fi
29596done
29597  done
29598IFS=$as_save_IFS
29599
29600  ;;
29601esac
29602fi
29603PKGCONFIG=$ac_cv_path_PKGCONFIG
29604if test -n "$PKGCONFIG"; then
29605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29606$as_echo "$PKGCONFIG" >&6; }
29607else
29608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29609$as_echo "no" >&6; }
29610fi
29611
29612
29613fi
29614if test -z "$ac_cv_path_PKGCONFIG"; then
29615  ac_pt_PKGCONFIG=$PKGCONFIG
29616  # Extract the first word of "pkg-config", so it can be a program name with args.
29617set dummy pkg-config; ac_word=$2
29618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29619$as_echo_n "checking for $ac_word... " >&6; }
29620if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
29621  $as_echo_n "(cached) " >&6
29622else
29623  case $ac_pt_PKGCONFIG in
29624  [\\/]* | ?:[\\/]*)
29625  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29626  ;;
29627  *)
29628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29629as_dummy="$PATH:/usr/bin:/usr/local/bin"
29630for as_dir in $as_dummy
29631do
29632  IFS=$as_save_IFS
29633  test -z "$as_dir" && as_dir=.
29634    for ac_exec_ext in '' $ac_executable_extensions; do
29635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29636    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29638    break 2
29639  fi
29640done
29641  done
29642IFS=$as_save_IFS
29643
29644  ;;
29645esac
29646fi
29647ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29648if test -n "$ac_pt_PKGCONFIG"; then
29649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29650$as_echo "$ac_pt_PKGCONFIG" >&6; }
29651else
29652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29653$as_echo "no" >&6; }
29654fi
29655
29656  if test "x$ac_pt_PKGCONFIG" = x; then
29657    PKGCONFIG="no"
29658  else
29659    case $cross_compiling:$ac_tool_warned in
29660yes:)
29661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29663ac_tool_warned=yes ;;
29664esac
29665    PKGCONFIG=$ac_pt_PKGCONFIG
29666  fi
29667else
29668  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29669fi
29670
29671    fi
29672
29673    if test "x$PKGCONFIG" != "xno"; then
29674      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
29675$as_echo_n "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
29676            itexists=`
29677    if test -n "$want_tcp2_path"; then
29678      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29679      export PKG_CONFIG_LIBDIR
29680    fi
29681         $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
29682
29683      if test -z "$itexists"; then
29684                        PKGCONFIG="no"
29685        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29686$as_echo "no" >&6; }
29687      else
29688        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
29689$as_echo "found" >&6; }
29690      fi
29691    fi
29692
29693
29694  if test "$PKGCONFIG" != "no" ; then
29695    LIB_NGTCP2_CRYPTO_OPENSSL=`
29696    if test -n "$want_tcp2_path"; then
29697      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29698      export PKG_CONFIG_LIBDIR
29699    fi
29700
29701      $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
29702    { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
29703$as_echo "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
29704
29705    CPP_NGTCP2_CRYPTO_OPENSSL=`
29706    if test -n "$want_tcp2_path"; then
29707      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29708      export PKG_CONFIG_LIBDIR
29709    fi
29710       $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
29711    { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
29712$as_echo "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
29713
29714    LD_NGTCP2_CRYPTO_OPENSSL=`
29715    if test -n "$want_tcp2_path"; then
29716      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29717      export PKG_CONFIG_LIBDIR
29718    fi
29719
29720      $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
29721    { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
29722$as_echo "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
29723
29724    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
29725    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
29726    LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
29727
29728    if test "x$cross_compiling" != "xyes"; then
29729      DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
29730    fi
29731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl" >&5
29732$as_echo_n "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl... " >&6; }
29733if ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial+:} false; then :
29734  $as_echo_n "(cached) " >&6
29735else
29736  ac_check_lib_save_LIBS=$LIBS
29737LIBS="-lngtcp2_crypto_openssl  $LIBS"
29738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29739/* end confdefs.h.  */
29740
29741
29742#ifdef __cplusplus
29743extern "C"
29744#endif
29745char ngtcp2_crypto_ctx_initial ();
29746int main (void)
29747{
29748return ngtcp2_crypto_ctx_initial ();
29749 ;
29750 return 0;
29751}
29752_ACEOF
29753if ac_fn_c_try_link "$LINENO"; then :
29754  ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=yes
29755else
29756  ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=no
29757fi
29758rm -f core conftest.err conftest.$ac_objext \
29759    conftest$ac_exeext conftest.$ac_ext
29760LIBS=$ac_check_lib_save_LIBS
29761fi
29762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&5
29763$as_echo "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&6; }
29764if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" = xyes; then :
29765
29766       for ac_header in ngtcp2/ngtcp2_crypto.h
29767do :
29768  ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
29769if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes; then :
29770  cat >>confdefs.h <<_ACEOF
29771#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1
29772_ACEOF
29773 NGTCP2_ENABLED=1
29774
29775$as_echo "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
29776
29777          USE_NGTCP2_CRYPTO_OPENSSL=1
29778
29779          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
29780          export CURL_LIBRARY_PATH
29781          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
29782$as_echo "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
29783
29784fi
29785
29786done
29787
29788
29789else
29790          LDFLAGS=$CLEANLDFLAGS
29791        CPPFLAGS=$CLEANCPPFLAGS
29792        LIBS=$CLEANLIBS
29793
29794fi
29795
29796
29797  else
29798        if test X"$want_tcp2" != Xdefault; then
29799                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
29800    fi
29801  fi
29802fi
29803
29804if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
29805    CLEANLDFLAGS="$LDFLAGS"
29806  CLEANCPPFLAGS="$CPPFLAGS"
29807  CLEANLIBS="$LIBS"
29808
29809
29810    if test -n "$PKG_CONFIG"; then
29811      PKGCONFIG="$PKG_CONFIG"
29812    else
29813      if test -n "$ac_tool_prefix"; then
29814  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29815set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29817$as_echo_n "checking for $ac_word... " >&6; }
29818if ${ac_cv_path_PKGCONFIG+:} false; then :
29819  $as_echo_n "(cached) " >&6
29820else
29821  case $PKGCONFIG in
29822  [\\/]* | ?:[\\/]*)
29823  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29824  ;;
29825  *)
29826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29827as_dummy="$PATH:/usr/bin:/usr/local/bin"
29828for as_dir in $as_dummy
29829do
29830  IFS=$as_save_IFS
29831  test -z "$as_dir" && as_dir=.
29832    for ac_exec_ext in '' $ac_executable_extensions; do
29833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29834    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29836    break 2
29837  fi
29838done
29839  done
29840IFS=$as_save_IFS
29841
29842  ;;
29843esac
29844fi
29845PKGCONFIG=$ac_cv_path_PKGCONFIG
29846if test -n "$PKGCONFIG"; then
29847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29848$as_echo "$PKGCONFIG" >&6; }
29849else
29850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29851$as_echo "no" >&6; }
29852fi
29853
29854
29855fi
29856if test -z "$ac_cv_path_PKGCONFIG"; then
29857  ac_pt_PKGCONFIG=$PKGCONFIG
29858  # Extract the first word of "pkg-config", so it can be a program name with args.
29859set dummy pkg-config; ac_word=$2
29860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29861$as_echo_n "checking for $ac_word... " >&6; }
29862if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
29863  $as_echo_n "(cached) " >&6
29864else
29865  case $ac_pt_PKGCONFIG in
29866  [\\/]* | ?:[\\/]*)
29867  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29868  ;;
29869  *)
29870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29871as_dummy="$PATH:/usr/bin:/usr/local/bin"
29872for as_dir in $as_dummy
29873do
29874  IFS=$as_save_IFS
29875  test -z "$as_dir" && as_dir=.
29876    for ac_exec_ext in '' $ac_executable_extensions; do
29877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29878    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29880    break 2
29881  fi
29882done
29883  done
29884IFS=$as_save_IFS
29885
29886  ;;
29887esac
29888fi
29889ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29890if test -n "$ac_pt_PKGCONFIG"; then
29891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29892$as_echo "$ac_pt_PKGCONFIG" >&6; }
29893else
29894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29895$as_echo "no" >&6; }
29896fi
29897
29898  if test "x$ac_pt_PKGCONFIG" = x; then
29899    PKGCONFIG="no"
29900  else
29901    case $cross_compiling:$ac_tool_warned in
29902yes:)
29903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29905ac_tool_warned=yes ;;
29906esac
29907    PKGCONFIG=$ac_pt_PKGCONFIG
29908  fi
29909else
29910  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29911fi
29912
29913    fi
29914
29915    if test "x$PKGCONFIG" != "xno"; then
29916      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
29917$as_echo_n "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
29918            itexists=`
29919    if test -n "$want_tcp2_path"; then
29920      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29921      export PKG_CONFIG_LIBDIR
29922    fi
29923         $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
29924
29925      if test -z "$itexists"; then
29926                        PKGCONFIG="no"
29927        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29928$as_echo "no" >&6; }
29929      else
29930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
29931$as_echo "found" >&6; }
29932      fi
29933    fi
29934
29935
29936  if test "$PKGCONFIG" != "no" ; then
29937    LIB_NGTCP2_CRYPTO_GNUTLS=`
29938    if test -n "$want_tcp2_path"; then
29939      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29940      export PKG_CONFIG_LIBDIR
29941    fi
29942
29943      $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
29944    { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
29945$as_echo "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
29946
29947    CPP_NGTCP2_CRYPTO_GNUTLS=`
29948    if test -n "$want_tcp2_path"; then
29949      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29950      export PKG_CONFIG_LIBDIR
29951    fi
29952       $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
29953    { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
29954$as_echo "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
29955
29956    LD_NGTCP2_CRYPTO_GNUTLS=`
29957    if test -n "$want_tcp2_path"; then
29958      PKG_CONFIG_LIBDIR="$want_tcp2_path"
29959      export PKG_CONFIG_LIBDIR
29960    fi
29961
29962      $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
29963    { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
29964$as_echo "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
29965
29966    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
29967    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
29968    LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
29969
29970    if test "x$cross_compiling" != "xyes"; then
29971      DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
29972    fi
29973    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls" >&5
29974$as_echo_n "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls... " >&6; }
29975if ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial+:} false; then :
29976  $as_echo_n "(cached) " >&6
29977else
29978  ac_check_lib_save_LIBS=$LIBS
29979LIBS="-lngtcp2_crypto_gnutls  $LIBS"
29980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29981/* end confdefs.h.  */
29982
29983
29984#ifdef __cplusplus
29985extern "C"
29986#endif
29987char ngtcp2_crypto_ctx_initial ();
29988int main (void)
29989{
29990return ngtcp2_crypto_ctx_initial ();
29991 ;
29992 return 0;
29993}
29994_ACEOF
29995if ac_fn_c_try_link "$LINENO"; then :
29996  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=yes
29997else
29998  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=no
29999fi
30000rm -f core conftest.err conftest.$ac_objext \
30001    conftest$ac_exeext conftest.$ac_ext
30002LIBS=$ac_check_lib_save_LIBS
30003fi
30004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&5
30005$as_echo "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&6; }
30006if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" = xyes; then :
30007
30008       for ac_header in ngtcp2/ngtcp2_crypto.h
30009do :
30010  ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
30011if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes; then :
30012  cat >>confdefs.h <<_ACEOF
30013#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1
30014_ACEOF
30015 NGTCP2_ENABLED=1
30016
30017$as_echo "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
30018
30019          USE_NGTCP2_CRYPTO_GNUTLS=1
30020
30021          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
30022          export CURL_LIBRARY_PATH
30023          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
30024$as_echo "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
30025
30026fi
30027
30028done
30029
30030
30031else
30032          LDFLAGS=$CLEANLDFLAGS
30033        CPPFLAGS=$CLEANCPPFLAGS
30034        LIBS=$CLEANLIBS
30035
30036fi
30037
30038
30039  else
30040        if test X"$want_tcp2" != Xdefault; then
30041                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
30042    fi
30043  fi
30044fi
30045
30046
30047OPT_NGHTTP3="yes"
30048
30049if test "x$NGTCP2_ENABLED" = "x"; then
30050  # without ngtcp2, nghttp3 is of no use for us
30051  OPT_NGHTTP3="no"
30052fi
30053
30054
30055# Check whether --with-nghttp3 was given.
30056if test "${with_nghttp3+set}" = set; then :
30057  withval=$with_nghttp3; OPT_NGHTTP3=$withval
30058fi
30059
30060case "$OPT_NGHTTP3" in
30061  no)
30062        want_nghttp3="no"
30063    ;;
30064  yes)
30065        want_nghttp3="default"
30066    want_nghttp3_path=""
30067    ;;
30068  *)
30069        want_nghttp3="yes"
30070    want_nghttp3_path="$withval/lib/pkgconfig"
30071    ;;
30072esac
30073
30074curl_http3_msg="no      (--with-nghttp3)"
30075if test X"$want_nghttp3" != Xno; then
30076    CLEANLDFLAGS="$LDFLAGS"
30077  CLEANCPPFLAGS="$CPPFLAGS"
30078  CLEANLIBS="$LIBS"
30079
30080
30081    if test -n "$PKG_CONFIG"; then
30082      PKGCONFIG="$PKG_CONFIG"
30083    else
30084      if test -n "$ac_tool_prefix"; then
30085  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30086set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30088$as_echo_n "checking for $ac_word... " >&6; }
30089if ${ac_cv_path_PKGCONFIG+:} false; then :
30090  $as_echo_n "(cached) " >&6
30091else
30092  case $PKGCONFIG in
30093  [\\/]* | ?:[\\/]*)
30094  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30095  ;;
30096  *)
30097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30098as_dummy="$PATH:/usr/bin:/usr/local/bin"
30099for as_dir in $as_dummy
30100do
30101  IFS=$as_save_IFS
30102  test -z "$as_dir" && as_dir=.
30103    for ac_exec_ext in '' $ac_executable_extensions; do
30104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30105    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30107    break 2
30108  fi
30109done
30110  done
30111IFS=$as_save_IFS
30112
30113  ;;
30114esac
30115fi
30116PKGCONFIG=$ac_cv_path_PKGCONFIG
30117if test -n "$PKGCONFIG"; then
30118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30119$as_echo "$PKGCONFIG" >&6; }
30120else
30121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30122$as_echo "no" >&6; }
30123fi
30124
30125
30126fi
30127if test -z "$ac_cv_path_PKGCONFIG"; then
30128  ac_pt_PKGCONFIG=$PKGCONFIG
30129  # Extract the first word of "pkg-config", so it can be a program name with args.
30130set dummy pkg-config; ac_word=$2
30131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30132$as_echo_n "checking for $ac_word... " >&6; }
30133if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
30134  $as_echo_n "(cached) " >&6
30135else
30136  case $ac_pt_PKGCONFIG in
30137  [\\/]* | ?:[\\/]*)
30138  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30139  ;;
30140  *)
30141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30142as_dummy="$PATH:/usr/bin:/usr/local/bin"
30143for as_dir in $as_dummy
30144do
30145  IFS=$as_save_IFS
30146  test -z "$as_dir" && as_dir=.
30147    for ac_exec_ext in '' $ac_executable_extensions; do
30148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30149    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30151    break 2
30152  fi
30153done
30154  done
30155IFS=$as_save_IFS
30156
30157  ;;
30158esac
30159fi
30160ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30161if test -n "$ac_pt_PKGCONFIG"; then
30162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30163$as_echo "$ac_pt_PKGCONFIG" >&6; }
30164else
30165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30166$as_echo "no" >&6; }
30167fi
30168
30169  if test "x$ac_pt_PKGCONFIG" = x; then
30170    PKGCONFIG="no"
30171  else
30172    case $cross_compiling:$ac_tool_warned in
30173yes:)
30174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30176ac_tool_warned=yes ;;
30177esac
30178    PKGCONFIG=$ac_pt_PKGCONFIG
30179  fi
30180else
30181  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30182fi
30183
30184    fi
30185
30186    if test "x$PKGCONFIG" != "xno"; then
30187      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
30188$as_echo_n "checking for libnghttp3 options with pkg-config... " >&6; }
30189            itexists=`
30190    if test -n "$want_nghttp3_path"; then
30191      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
30192      export PKG_CONFIG_LIBDIR
30193    fi
30194         $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
30195
30196      if test -z "$itexists"; then
30197                        PKGCONFIG="no"
30198        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30199$as_echo "no" >&6; }
30200      else
30201        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
30202$as_echo "found" >&6; }
30203      fi
30204    fi
30205
30206
30207  if test "$PKGCONFIG" != "no" ; then
30208    LIB_NGHTTP3=`
30209    if test -n "$want_nghttp3_path"; then
30210      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
30211      export PKG_CONFIG_LIBDIR
30212    fi
30213
30214      $PKGCONFIG --libs-only-l libnghttp3`
30215    { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
30216$as_echo "$as_me: -l is $LIB_NGHTTP3" >&6;}
30217
30218    CPP_NGHTTP3=`
30219    if test -n "$want_nghttp3_path"; then
30220      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
30221      export PKG_CONFIG_LIBDIR
30222    fi
30223       $PKGCONFIG --cflags-only-I libnghttp3`
30224    { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
30225$as_echo "$as_me: -I is $CPP_NGHTTP3" >&6;}
30226
30227    LD_NGHTTP3=`
30228    if test -n "$want_nghttp3_path"; then
30229      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
30230      export PKG_CONFIG_LIBDIR
30231    fi
30232
30233      $PKGCONFIG --libs-only-L libnghttp3`
30234    { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
30235$as_echo "$as_me: -L is $LD_NGHTTP3" >&6;}
30236
30237    LDFLAGS="$LDFLAGS $LD_NGHTTP3"
30238    CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
30239    LIBS="$LIB_NGHTTP3 $LIBS"
30240
30241    if test "x$cross_compiling" != "xyes"; then
30242      DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
30243    fi
30244    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new in -lnghttp3" >&5
30245$as_echo_n "checking for nghttp3_conn_client_new in -lnghttp3... " >&6; }
30246if ${ac_cv_lib_nghttp3_nghttp3_conn_client_new+:} false; then :
30247  $as_echo_n "(cached) " >&6
30248else
30249  ac_check_lib_save_LIBS=$LIBS
30250LIBS="-lnghttp3  $LIBS"
30251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30252/* end confdefs.h.  */
30253
30254
30255#ifdef __cplusplus
30256extern "C"
30257#endif
30258char nghttp3_conn_client_new ();
30259int main (void)
30260{
30261return nghttp3_conn_client_new ();
30262 ;
30263 return 0;
30264}
30265_ACEOF
30266if ac_fn_c_try_link "$LINENO"; then :
30267  ac_cv_lib_nghttp3_nghttp3_conn_client_new=yes
30268else
30269  ac_cv_lib_nghttp3_nghttp3_conn_client_new=no
30270fi
30271rm -f core conftest.err conftest.$ac_objext \
30272    conftest$ac_exeext conftest.$ac_ext
30273LIBS=$ac_check_lib_save_LIBS
30274fi
30275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new" >&5
30276$as_echo "$ac_cv_lib_nghttp3_nghttp3_conn_client_new" >&6; }
30277if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new" = xyes; then :
30278
30279       for ac_header in nghttp3/nghttp3.h
30280do :
30281  ac_fn_c_check_header_mongrel "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
30282if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes; then :
30283  cat >>confdefs.h <<_ACEOF
30284#define HAVE_NGHTTP3_NGHTTP3_H 1
30285_ACEOF
30286 curl_h3_msg="enabled (ngtcp2 + nghttp3)"
30287          NGHTTP3_ENABLED=1
30288
30289$as_echo "#define USE_NGHTTP3 1" >>confdefs.h
30290
30291          USE_NGHTTP3=1
30292
30293          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
30294          export CURL_LIBRARY_PATH
30295          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
30296$as_echo "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
30297          experimental="$experimental HTTP3"
30298
30299fi
30300
30301done
30302
30303
30304else
30305          LDFLAGS=$CLEANLDFLAGS
30306        CPPFLAGS=$CLEANCPPFLAGS
30307        LIBS=$CLEANLIBS
30308
30309fi
30310
30311
30312  else
30313        if test X"$want_nghttp3" != Xdefault; then
30314                  as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
30315    fi
30316  fi
30317
30318fi
30319
30320
30321OPT_QUICHE="yes"
30322
30323if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
30324  # without HTTP or with ngtcp2, quiche is no use
30325  OPT_QUICHE="no"
30326fi
30327
30328
30329# Check whether --with-quiche was given.
30330if test "${with_quiche+set}" = set; then :
30331  withval=$with_quiche; OPT_QUICHE=$withval
30332fi
30333
30334case "$OPT_QUICHE" in
30335  no)
30336        want_quiche="no"
30337    ;;
30338  yes)
30339        want_quiche="default"
30340    want_quiche_path=""
30341    ;;
30342  *)
30343        want_quiche="yes"
30344    want_quiche_path="$withval"
30345    ;;
30346esac
30347
30348if test X"$want_quiche" != Xno; then
30349    CLEANLDFLAGS="$LDFLAGS"
30350  CLEANCPPFLAGS="$CPPFLAGS"
30351  CLEANLIBS="$LIBS"
30352
30353
30354    if test -n "$PKG_CONFIG"; then
30355      PKGCONFIG="$PKG_CONFIG"
30356    else
30357      if test -n "$ac_tool_prefix"; then
30358  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30359set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30361$as_echo_n "checking for $ac_word... " >&6; }
30362if ${ac_cv_path_PKGCONFIG+:} false; then :
30363  $as_echo_n "(cached) " >&6
30364else
30365  case $PKGCONFIG in
30366  [\\/]* | ?:[\\/]*)
30367  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30368  ;;
30369  *)
30370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30371as_dummy="$PATH:/usr/bin:/usr/local/bin"
30372for as_dir in $as_dummy
30373do
30374  IFS=$as_save_IFS
30375  test -z "$as_dir" && as_dir=.
30376    for ac_exec_ext in '' $ac_executable_extensions; do
30377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30378    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30380    break 2
30381  fi
30382done
30383  done
30384IFS=$as_save_IFS
30385
30386  ;;
30387esac
30388fi
30389PKGCONFIG=$ac_cv_path_PKGCONFIG
30390if test -n "$PKGCONFIG"; then
30391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30392$as_echo "$PKGCONFIG" >&6; }
30393else
30394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30395$as_echo "no" >&6; }
30396fi
30397
30398
30399fi
30400if test -z "$ac_cv_path_PKGCONFIG"; then
30401  ac_pt_PKGCONFIG=$PKGCONFIG
30402  # Extract the first word of "pkg-config", so it can be a program name with args.
30403set dummy pkg-config; ac_word=$2
30404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30405$as_echo_n "checking for $ac_word... " >&6; }
30406if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
30407  $as_echo_n "(cached) " >&6
30408else
30409  case $ac_pt_PKGCONFIG in
30410  [\\/]* | ?:[\\/]*)
30411  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30412  ;;
30413  *)
30414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30415as_dummy="$PATH:/usr/bin:/usr/local/bin"
30416for as_dir in $as_dummy
30417do
30418  IFS=$as_save_IFS
30419  test -z "$as_dir" && as_dir=.
30420    for ac_exec_ext in '' $ac_executable_extensions; do
30421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30422    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30424    break 2
30425  fi
30426done
30427  done
30428IFS=$as_save_IFS
30429
30430  ;;
30431esac
30432fi
30433ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30434if test -n "$ac_pt_PKGCONFIG"; then
30435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30436$as_echo "$ac_pt_PKGCONFIG" >&6; }
30437else
30438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30439$as_echo "no" >&6; }
30440fi
30441
30442  if test "x$ac_pt_PKGCONFIG" = x; then
30443    PKGCONFIG="no"
30444  else
30445    case $cross_compiling:$ac_tool_warned in
30446yes:)
30447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30449ac_tool_warned=yes ;;
30450esac
30451    PKGCONFIG=$ac_pt_PKGCONFIG
30452  fi
30453else
30454  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30455fi
30456
30457    fi
30458
30459    if test "x$PKGCONFIG" != "xno"; then
30460      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
30461$as_echo_n "checking for quiche options with pkg-config... " >&6; }
30462            itexists=`
30463    if test -n "$want_quiche_path"; then
30464      PKG_CONFIG_LIBDIR="$want_quiche_path"
30465      export PKG_CONFIG_LIBDIR
30466    fi
30467         $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
30468
30469      if test -z "$itexists"; then
30470                        PKGCONFIG="no"
30471        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30472$as_echo "no" >&6; }
30473      else
30474        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
30475$as_echo "found" >&6; }
30476      fi
30477    fi
30478
30479
30480  if test "$PKGCONFIG" != "no" ; then
30481    LIB_QUICHE=`
30482    if test -n "$want_quiche_path"; then
30483      PKG_CONFIG_LIBDIR="$want_quiche_path"
30484      export PKG_CONFIG_LIBDIR
30485    fi
30486
30487      $PKGCONFIG --libs-only-l quiche`
30488    { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
30489$as_echo "$as_me: -l is $LIB_QUICHE" >&6;}
30490
30491    CPP_QUICHE=`
30492    if test -n "$want_quiche_path"; then
30493      PKG_CONFIG_LIBDIR="$want_quiche_path"
30494      export PKG_CONFIG_LIBDIR
30495    fi
30496       $PKGCONFIG --cflags-only-I quiche`
30497    { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
30498$as_echo "$as_me: -I is $CPP_QUICHE" >&6;}
30499
30500    LD_QUICHE=`
30501    if test -n "$want_quiche_path"; then
30502      PKG_CONFIG_LIBDIR="$want_quiche_path"
30503      export PKG_CONFIG_LIBDIR
30504    fi
30505
30506      $PKGCONFIG --libs-only-L quiche`
30507    { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
30508$as_echo "$as_me: -L is $LD_QUICHE" >&6;}
30509
30510    LDFLAGS="$LDFLAGS $LD_QUICHE"
30511    CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
30512    LIBS="$LIB_QUICHE $LIBS"
30513
30514    if test "x$cross_compiling" != "xyes"; then
30515      DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
30516    fi
30517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
30518$as_echo_n "checking for quiche_connect in -lquiche... " >&6; }
30519if ${ac_cv_lib_quiche_quiche_connect+:} false; then :
30520  $as_echo_n "(cached) " >&6
30521else
30522  ac_check_lib_save_LIBS=$LIBS
30523LIBS="-lquiche  $LIBS"
30524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30525/* end confdefs.h.  */
30526
30527
30528#ifdef __cplusplus
30529extern "C"
30530#endif
30531char quiche_connect ();
30532int main (void)
30533{
30534return quiche_connect ();
30535 ;
30536 return 0;
30537}
30538_ACEOF
30539if ac_fn_c_try_link "$LINENO"; then :
30540  ac_cv_lib_quiche_quiche_connect=yes
30541else
30542  ac_cv_lib_quiche_quiche_connect=no
30543fi
30544rm -f core conftest.err conftest.$ac_objext \
30545    conftest$ac_exeext conftest.$ac_ext
30546LIBS=$ac_check_lib_save_LIBS
30547fi
30548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
30549$as_echo "$ac_cv_lib_quiche_quiche_connect" >&6; }
30550if test "x$ac_cv_lib_quiche_quiche_connect" = xyes; then :
30551
30552       for ac_header in quiche.h
30553do :
30554  ac_fn_c_check_header_mongrel "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "$ac_includes_default"
30555if test "x$ac_cv_header_quiche_h" = xyes; then :
30556  cat >>confdefs.h <<_ACEOF
30557#define HAVE_QUICHE_H 1
30558_ACEOF
30559 experimental="$experimental HTTP3"
30560          { $as_echo "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
30561$as_echo "$as_me: HTTP3 support is experimental" >&6;}
30562          curl_h3_msg="enabled (quiche)"
30563          QUICHE_ENABLED=1
30564
30565$as_echo "#define USE_QUICHE 1" >>confdefs.h
30566
30567          USE_QUICHE=1
30568
30569          for ac_func in quiche_conn_set_qlog_fd
30570do :
30571  ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
30572if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes; then :
30573  cat >>confdefs.h <<_ACEOF
30574#define HAVE_QUICHE_CONN_SET_QLOG_FD 1
30575_ACEOF
30576
30577fi
30578done
30579
30580          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
30581          export CURL_LIBRARY_PATH
30582          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
30583$as_echo "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
30584fi
30585
30586done
30587
30588
30589else
30590          LDFLAGS=$CLEANLDFLAGS
30591        CPPFLAGS=$CLEANCPPFLAGS
30592        LIBS=$CLEANLIBS
30593
30594fi
30595
30596  else
30597        if test X"$want_quiche" != Xdefault; then
30598                  as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
30599    fi
30600  fi
30601fi
30602
30603
30604OPT_ZSH_FPATH=default
30605
30606# Check whether --with-zsh-functions-dir was given.
30607if test "${with_zsh_functions_dir+set}" = set; then :
30608  withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
30609fi
30610
30611case "$OPT_ZSH_FPATH" in
30612  no)
30613        ;;
30614  default|yes)
30615        ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
30616
30617    ;;
30618  *)
30619        ZSH_FUNCTIONS_DIR="$withval"
30620
30621    ;;
30622esac
30623
30624
30625OPT_FISH_FPATH=default
30626
30627# Check whether --with-fish-functions-dir was given.
30628if test "${with_fish_functions_dir+set}" = set; then :
30629  withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
30630fi
30631
30632case "$OPT_FISH_FPATH" in
30633  no)
30634        ;;
30635  default|yes)
30636
30637    if test -n "$PKG_CONFIG"; then
30638      PKGCONFIG="$PKG_CONFIG"
30639    else
30640      if test -n "$ac_tool_prefix"; then
30641  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30642set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30644$as_echo_n "checking for $ac_word... " >&6; }
30645if ${ac_cv_path_PKGCONFIG+:} false; then :
30646  $as_echo_n "(cached) " >&6
30647else
30648  case $PKGCONFIG in
30649  [\\/]* | ?:[\\/]*)
30650  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30651  ;;
30652  *)
30653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30654as_dummy="$PATH:/usr/bin:/usr/local/bin"
30655for as_dir in $as_dummy
30656do
30657  IFS=$as_save_IFS
30658  test -z "$as_dir" && as_dir=.
30659    for ac_exec_ext in '' $ac_executable_extensions; do
30660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30661    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30663    break 2
30664  fi
30665done
30666  done
30667IFS=$as_save_IFS
30668
30669  ;;
30670esac
30671fi
30672PKGCONFIG=$ac_cv_path_PKGCONFIG
30673if test -n "$PKGCONFIG"; then
30674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30675$as_echo "$PKGCONFIG" >&6; }
30676else
30677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30678$as_echo "no" >&6; }
30679fi
30680
30681
30682fi
30683if test -z "$ac_cv_path_PKGCONFIG"; then
30684  ac_pt_PKGCONFIG=$PKGCONFIG
30685  # Extract the first word of "pkg-config", so it can be a program name with args.
30686set dummy pkg-config; ac_word=$2
30687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30688$as_echo_n "checking for $ac_word... " >&6; }
30689if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
30690  $as_echo_n "(cached) " >&6
30691else
30692  case $ac_pt_PKGCONFIG in
30693  [\\/]* | ?:[\\/]*)
30694  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30695  ;;
30696  *)
30697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30698as_dummy="$PATH:/usr/bin:/usr/local/bin"
30699for as_dir in $as_dummy
30700do
30701  IFS=$as_save_IFS
30702  test -z "$as_dir" && as_dir=.
30703    for ac_exec_ext in '' $ac_executable_extensions; do
30704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30705    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30707    break 2
30708  fi
30709done
30710  done
30711IFS=$as_save_IFS
30712
30713  ;;
30714esac
30715fi
30716ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30717if test -n "$ac_pt_PKGCONFIG"; then
30718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30719$as_echo "$ac_pt_PKGCONFIG" >&6; }
30720else
30721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30722$as_echo "no" >&6; }
30723fi
30724
30725  if test "x$ac_pt_PKGCONFIG" = x; then
30726    PKGCONFIG="no"
30727  else
30728    case $cross_compiling:$ac_tool_warned in
30729yes:)
30730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30732ac_tool_warned=yes ;;
30733esac
30734    PKGCONFIG=$ac_pt_PKGCONFIG
30735  fi
30736else
30737  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30738fi
30739
30740    fi
30741
30742    if test "x$PKGCONFIG" != "xno"; then
30743      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
30744$as_echo_n "checking for fish options with pkg-config... " >&6; }
30745            itexists=`
30746    if test -n ""; then
30747      PKG_CONFIG_LIBDIR=""
30748      export PKG_CONFIG_LIBDIR
30749    fi
30750         $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
30751
30752      if test -z "$itexists"; then
30753                        PKGCONFIG="no"
30754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30755$as_echo "no" >&6; }
30756      else
30757        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
30758$as_echo "found" >&6; }
30759      fi
30760    fi
30761
30762    if test "$PKGCONFIG" != "no" ; then
30763      FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
30764    else
30765      FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
30766    fi
30767
30768    ;;
30769  *)
30770        FISH_FUNCTIONS_DIR="$withval"
30771
30772    ;;
30773esac
30774
30775
30776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
30777$as_echo_n "checking for ANSI C header files... " >&6; }
30778if ${ac_cv_header_stdc+:} false; then :
30779  $as_echo_n "(cached) " >&6
30780else
30781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30782/* end confdefs.h.  */
30783#include <stdlib.h>
30784#include <stdarg.h>
30785#include <string.h>
30786#include <float.h>
30787
30788int main (void)
30789{
30790
30791 ;
30792 return 0;
30793}
30794_ACEOF
30795if ac_fn_c_try_compile "$LINENO"; then :
30796  ac_cv_header_stdc=yes
30797else
30798  ac_cv_header_stdc=no
30799fi
30800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30801
30802if test $ac_cv_header_stdc = yes; then
30803  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30805/* end confdefs.h.  */
30806#include <string.h>
30807
30808_ACEOF
30809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30810  $EGREP "memchr" >/dev/null 2>&1; then :
30811
30812else
30813  ac_cv_header_stdc=no
30814fi
30815rm -f conftest*
30816
30817fi
30818
30819if test $ac_cv_header_stdc = yes; then
30820  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30822/* end confdefs.h.  */
30823#include <stdlib.h>
30824
30825_ACEOF
30826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30827  $EGREP "free" >/dev/null 2>&1; then :
30828
30829else
30830  ac_cv_header_stdc=no
30831fi
30832rm -f conftest*
30833
30834fi
30835
30836if test $ac_cv_header_stdc = yes; then
30837  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30838  if test "$cross_compiling" = yes; then :
30839  :
30840else
30841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30842/* end confdefs.h.  */
30843#include <ctype.h>
30844#include <stdlib.h>
30845#if ((' ' & 0x0FF) == 0x020)
30846# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30847# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30848#else
30849# define ISLOWER(c) \
30850		   (('a' <= (c) && (c) <= 'i') \
30851		     || ('j' <= (c) && (c) <= 'r') \
30852		     || ('s' <= (c) && (c) <= 'z'))
30853# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30854#endif
30855
30856#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30857int
30858main ()
30859{
30860  int i;
30861  for (i = 0; i < 256; i++)
30862    if (XOR (islower (i), ISLOWER (i))
30863	|| toupper (i) != TOUPPER (i))
30864      return 2;
30865  return 0;
30866}
30867_ACEOF
30868if ac_fn_c_try_run "$LINENO"; then :
30869
30870else
30871  ac_cv_header_stdc=no
30872fi
30873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30874  conftest.$ac_objext conftest.beam conftest.$ac_ext
30875fi
30876
30877fi
30878fi
30879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
30880$as_echo "$ac_cv_header_stdc" >&6; }
30881if test $ac_cv_header_stdc = yes; then
30882
30883$as_echo "#define STDC_HEADERS 1" >>confdefs.h
30884
30885fi
30886
30887
30888
30889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
30890$as_echo_n "checking for malloc.h... " >&6; }
30891if ${curl_cv_header_malloc_h+:} false; then :
30892  $as_echo_n "(cached) " >&6
30893else
30894
30895    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30896/* end confdefs.h.  */
30897
30898
30899#include <malloc.h>
30900
30901int main (void)
30902{
30903
30904        void *p = malloc(10);
30905        void *q = calloc(10,10);
30906        free(p);
30907        free(q);
30908
30909 ;
30910 return 0;
30911}
30912
30913_ACEOF
30914if ac_fn_c_try_compile "$LINENO"; then :
30915
30916      curl_cv_header_malloc_h="yes"
30917
30918else
30919
30920      curl_cv_header_malloc_h="no"
30921
30922fi
30923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30924
30925fi
30926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
30927$as_echo "$curl_cv_header_malloc_h" >&6; }
30928  if test "$curl_cv_header_malloc_h" = "yes"; then
30929
30930cat >>confdefs.h <<_ACEOF
30931#define HAVE_MALLOC_H 1
30932_ACEOF
30933
30934    #
30935    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30936/* end confdefs.h.  */
30937
30938
30939#include <stdlib.h>
30940
30941int main (void)
30942{
30943
30944        void *p = malloc(10);
30945        void *q = calloc(10,10);
30946        free(p);
30947        free(q);
30948
30949 ;
30950 return 0;
30951}
30952
30953_ACEOF
30954if ac_fn_c_try_compile "$LINENO"; then :
30955
30956      curl_cv_need_header_malloc_h="no"
30957
30958else
30959
30960      curl_cv_need_header_malloc_h="yes"
30961
30962fi
30963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30964    #
30965    case "$curl_cv_need_header_malloc_h" in
30966      yes)
30967
30968cat >>confdefs.h <<_ACEOF
30969#define NEED_MALLOC_H 1
30970_ACEOF
30971
30972        ;;
30973    esac
30974  fi
30975
30976
30977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
30978$as_echo_n "checking for memory.h... " >&6; }
30979if ${curl_cv_header_memory_h+:} false; then :
30980  $as_echo_n "(cached) " >&6
30981else
30982
30983    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30984/* end confdefs.h.  */
30985
30986
30987#include <memory.h>
30988
30989int main (void)
30990{
30991
30992        void *p = malloc(10);
30993        void *q = calloc(10,10);
30994        free(p);
30995        free(q);
30996
30997 ;
30998 return 0;
30999}
31000
31001_ACEOF
31002if ac_fn_c_try_compile "$LINENO"; then :
31003
31004      curl_cv_header_memory_h="yes"
31005
31006else
31007
31008      curl_cv_header_memory_h="no"
31009
31010fi
31011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31012
31013fi
31014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
31015$as_echo "$curl_cv_header_memory_h" >&6; }
31016  if test "$curl_cv_header_memory_h" = "yes"; then
31017
31018cat >>confdefs.h <<_ACEOF
31019#define HAVE_MEMORY_H 1
31020_ACEOF
31021
31022    #
31023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024/* end confdefs.h.  */
31025
31026
31027#include <stdlib.h>
31028
31029int main (void)
31030{
31031
31032        void *p = malloc(10);
31033        void *q = calloc(10,10);
31034        free(p);
31035        free(q);
31036
31037 ;
31038 return 0;
31039}
31040
31041_ACEOF
31042if ac_fn_c_try_compile "$LINENO"; then :
31043
31044      curl_cv_need_header_memory_h="no"
31045
31046else
31047
31048      curl_cv_need_header_memory_h="yes"
31049
31050fi
31051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31052    #
31053    case "$curl_cv_need_header_memory_h" in
31054      yes)
31055
31056cat >>confdefs.h <<_ACEOF
31057#define NEED_MEMORY_H 1
31058_ACEOF
31059
31060        ;;
31061    esac
31062  fi
31063
31064
31065for ac_header in sys/types.h \
31066        sys/time.h \
31067        sys/select.h \
31068        sys/socket.h \
31069        sys/ioctl.h \
31070        sys/uio.h \
31071        assert.h \
31072        unistd.h \
31073        stdlib.h \
31074        arpa/inet.h \
31075        net/if.h \
31076        netinet/in.h \
31077	netinet/in6.h \
31078        sys/un.h \
31079        linux/tcp.h \
31080        netinet/tcp.h \
31081        netdb.h \
31082        sys/sockio.h \
31083        sys/stat.h \
31084        sys/param.h \
31085        termios.h \
31086        termio.h \
31087        sgtty.h \
31088        fcntl.h \
31089        alloca.h \
31090        time.h \
31091        io.h \
31092        pwd.h \
31093        utime.h \
31094        sys/utime.h \
31095        sys/poll.h \
31096        poll.h \
31097        socket.h \
31098        sys/resource.h \
31099        libgen.h \
31100        locale.h \
31101        errno.h \
31102        stdbool.h \
31103        arpa/tftp.h \
31104        sys/filio.h \
31105        sys/wait.h \
31106        setjmp.h
31107do :
31108  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31109ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
31110#ifdef HAVE_SYS_TYPES_H
31111#include <sys/types.h>
31112#endif
31113#ifdef HAVE_SYS_TIME_H
31114#include <sys/time.h>
31115#endif
31116#ifdef HAVE_SYS_SELECT_H
31117#include <sys/select.h>
31118#elif defined(HAVE_UNISTD_H)
31119#include <unistd.h>
31120#endif
31121#ifdef HAVE_SYS_SOCKET_H
31122#include <sys/socket.h>
31123#endif
31124#ifdef HAVE_NETINET_IN_H
31125#include <netinet/in.h>
31126#endif
31127#ifdef HAVE_NETINET_IN6_H
31128#include <netinet/in6.h>
31129#endif
31130#ifdef HAVE_SYS_UN_H
31131#include <sys/un.h>
31132#endif
31133
31134
31135"
31136if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31137  cat >>confdefs.h <<_ACEOF
31138#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31139_ACEOF
31140
31141fi
31142
31143done
31144
31145
31146
31147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
31148$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
31149if ${ac_cv_c_const+:} false; then :
31150  $as_echo_n "(cached) " >&6
31151else
31152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31153/* end confdefs.h.  */
31154
31155int main (void)
31156{
31157
31158#ifndef __cplusplus
31159  /* Ultrix mips cc rejects this sort of thing.  */
31160  typedef int charset[2];
31161  const charset cs = { 0, 0 };
31162  /* SunOS 4.1.1 cc rejects this.  */
31163  char const *const *pcpcc;
31164  char **ppc;
31165  /* NEC SVR4.0.2 mips cc rejects this.  */
31166  struct point {int x, y;};
31167  static struct point const zero = {0,0};
31168  /* AIX XL C 1.02.0.0 rejects this.
31169     It does not let you subtract one const X* pointer from another in
31170     an arm of an if-expression whose if-part is not a constant
31171     expression */
31172  const char *g = "string";
31173  pcpcc = &g + (g ? g-g : 0);
31174  /* HPUX 7.0 cc rejects these. */
31175  ++pcpcc;
31176  ppc = (char**) pcpcc;
31177  pcpcc = (char const *const *) ppc;
31178  { /* SCO 3.2v4 cc rejects this sort of thing.  */
31179    char tx;
31180    char *t = &tx;
31181    char const *s = 0 ? (char *) 0 : (char const *) 0;
31182
31183    *t++ = 0;
31184    if (s) return 0;
31185  }
31186  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
31187    int x[] = {25, 17};
31188    const int *foo = &x[0];
31189    ++foo;
31190  }
31191  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31192    typedef const int *iptr;
31193    iptr p = 0;
31194    ++p;
31195  }
31196  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
31197       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31198    struct s { int j; const int *ap[3]; } bx;
31199    struct s *b = &bx; b->j = 5;
31200  }
31201  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31202    const int foo = 10;
31203    if (!foo) return 0;
31204  }
31205  return !cs[0] && !zero.x;
31206#endif
31207
31208 ;
31209 return 0;
31210}
31211_ACEOF
31212if ac_fn_c_try_compile "$LINENO"; then :
31213  ac_cv_c_const=yes
31214else
31215  ac_cv_c_const=no
31216fi
31217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31218fi
31219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
31220$as_echo "$ac_cv_c_const" >&6; }
31221if test $ac_cv_c_const = no; then
31222
31223$as_echo "#define const /**/" >>confdefs.h
31224
31225fi
31226
31227
31228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
31229$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
31230if ${curl_cv_variadic_macros_c99+:} false; then :
31231  $as_echo_n "(cached) " >&6
31232else
31233
31234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235/* end confdefs.h.  */
31236
31237
31238#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
31239#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
31240        int fun3(int arg1, int arg2, int arg3);
31241        int fun2(int arg1, int arg2);
31242        int fun3(int arg1, int arg2, int arg3)
31243        { return arg1 + arg2 + arg3; }
31244        int fun2(int arg1, int arg2)
31245        { return arg1 + arg2; }
31246
31247int main (void)
31248{
31249
31250        int res3 = c99_vmacro3(1, 2, 3);
31251        int res2 = c99_vmacro2(1, 2);
31252
31253 ;
31254 return 0;
31255}
31256
31257_ACEOF
31258if ac_fn_c_try_compile "$LINENO"; then :
31259
31260      curl_cv_variadic_macros_c99="yes"
31261
31262else
31263
31264      curl_cv_variadic_macros_c99="no"
31265
31266fi
31267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31268
31269fi
31270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
31271$as_echo "$curl_cv_variadic_macros_c99" >&6; }
31272  case "$curl_cv_variadic_macros_c99" in
31273    yes)
31274
31275cat >>confdefs.h <<_ACEOF
31276#define HAVE_VARIADIC_MACROS_C99 1
31277_ACEOF
31278
31279      ;;
31280  esac
31281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
31282$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
31283if ${curl_cv_variadic_macros_gcc+:} false; then :
31284  $as_echo_n "(cached) " >&6
31285else
31286
31287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31288/* end confdefs.h.  */
31289
31290
31291#define gcc_vmacro3(first, args...) fun3(first, args)
31292#define gcc_vmacro2(first, args...) fun2(first, args)
31293        int fun3(int arg1, int arg2, int arg3);
31294        int fun2(int arg1, int arg2);
31295        int fun3(int arg1, int arg2, int arg3)
31296        { return arg1 + arg2 + arg3; }
31297        int fun2(int arg1, int arg2)
31298        { return arg1 + arg2; }
31299
31300int main (void)
31301{
31302
31303        int res3 = gcc_vmacro3(1, 2, 3);
31304        int res2 = gcc_vmacro2(1, 2);
31305
31306 ;
31307 return 0;
31308}
31309
31310_ACEOF
31311if ac_fn_c_try_compile "$LINENO"; then :
31312
31313      curl_cv_variadic_macros_gcc="yes"
31314
31315else
31316
31317      curl_cv_variadic_macros_gcc="no"
31318
31319fi
31320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31321
31322fi
31323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
31324$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
31325  case "$curl_cv_variadic_macros_gcc" in
31326    yes)
31327
31328cat >>confdefs.h <<_ACEOF
31329#define HAVE_VARIADIC_MACROS_GCC 1
31330_ACEOF
31331
31332      ;;
31333  esac
31334
31335ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
31336if test "x$ac_cv_type_size_t" = xyes; then :
31337
31338else
31339
31340cat >>confdefs.h <<_ACEOF
31341#define size_t unsigned int
31342_ACEOF
31343
31344fi
31345
31346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
31347$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
31348if ${ac_cv_header_time+:} false; then :
31349  $as_echo_n "(cached) " >&6
31350else
31351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31352/* end confdefs.h.  */
31353#include <sys/types.h>
31354#include <sys/time.h>
31355#include <time.h>
31356
31357int main (void)
31358{
31359if ((struct tm *) 0)
31360return 0;
31361 ;
31362 return 0;
31363}
31364_ACEOF
31365if ac_fn_c_try_compile "$LINENO"; then :
31366  ac_cv_header_time=yes
31367else
31368  ac_cv_header_time=no
31369fi
31370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31371fi
31372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
31373$as_echo "$ac_cv_header_time" >&6; }
31374if test $ac_cv_header_time = yes; then
31375
31376$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
31377
31378fi
31379
31380
31381        for ac_header in sys/types.h sys/time.h time.h sys/socket.h
31382do :
31383  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31384ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31386  cat >>confdefs.h <<_ACEOF
31387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31388_ACEOF
31389
31390fi
31391
31392done
31393
31394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
31395$as_echo_n "checking for struct timeval... " >&6; }
31396if ${curl_cv_struct_timeval+:} false; then :
31397  $as_echo_n "(cached) " >&6
31398else
31399
31400    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31401/* end confdefs.h.  */
31402
31403
31404#undef inline
31405#ifdef HAVE_WINDOWS_H
31406#ifndef WIN32_LEAN_AND_MEAN
31407#define WIN32_LEAN_AND_MEAN
31408#endif
31409#include <windows.h>
31410#ifdef HAVE_WINSOCK2_H
31411#include <winsock2.h>
31412#else
31413#ifdef HAVE_WINSOCK_H
31414#include <winsock.h>
31415#endif
31416#endif
31417#endif
31418#ifdef HAVE_SYS_TYPES_H
31419#include <sys/types.h>
31420#endif
31421#ifdef HAVE_SYS_TIME_H
31422#include <sys/time.h>
31423#ifdef TIME_WITH_SYS_TIME
31424#include <time.h>
31425#endif
31426#else
31427#ifdef HAVE_TIME_H
31428#include <time.h>
31429#endif
31430#endif
31431#ifdef HAVE_SYS_SOCKET_H
31432#include <sys/socket.h>
31433#endif
31434
31435int main (void)
31436{
31437
31438        struct timeval ts;
31439        ts.tv_sec  = 0;
31440        ts.tv_usec = 0;
31441
31442 ;
31443 return 0;
31444}
31445
31446_ACEOF
31447if ac_fn_c_try_compile "$LINENO"; then :
31448
31449      curl_cv_struct_timeval="yes"
31450
31451else
31452
31453      curl_cv_struct_timeval="no"
31454
31455fi
31456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31457
31458fi
31459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
31460$as_echo "$curl_cv_struct_timeval" >&6; }
31461  case "$curl_cv_struct_timeval" in
31462    yes)
31463
31464cat >>confdefs.h <<_ACEOF
31465#define HAVE_STRUCT_TIMEVAL 1
31466_ACEOF
31467
31468      ;;
31469  esac
31470
31471
31472
31473    if test "x$cross_compiling" != xyes; then
31474
31475            { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
31476$as_echo_n "checking run-time libs availability... " >&6; }
31477
31478   old=$LD_LIBRARY_PATH
31479   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
31480   export LD_LIBRARY_PATH
31481   if test "$cross_compiling" = yes; then :
31482  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31484as_fn_error $? "cannot run test program while cross compiling
31485See \`config.log' for more details" "$LINENO" 5; }
31486else
31487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31488/* end confdefs.h.  */
31489
31490int main()
31491{
31492  return 0;
31493}
31494
31495_ACEOF
31496if ac_fn_c_try_run "$LINENO"; then :
31497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
31498$as_echo "fine" >&6; }
31499else
31500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
31501$as_echo "failed" >&6; }
31502    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
31503
31504fi
31505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31506  conftest.$ac_objext conftest.beam conftest.$ac_ext
31507fi
31508
31509   LD_LIBRARY_PATH=$old # restore
31510
31511
31512      fi
31513
31514
31515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
31516$as_echo_n "checking size of size_t... " >&6; }
31517if ${ac_cv_sizeof_size_t+:} false; then :
31518  $as_echo_n "(cached) " >&6
31519else
31520  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
31521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31522/* end confdefs.h.  */
31523
31524#include <sys/types.h>
31525
31526
31527int main (void)
31528{
31529switch (0) case 0: case (sizeof (size_t) == $ac_size):;
31530 ;
31531 return 0;
31532}
31533_ACEOF
31534if ac_fn_c_try_compile "$LINENO"; then :
31535  ac_cv_sizeof_size_t=$ac_size
31536fi
31537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31538  if test x$ac_cv_sizeof_size_t != x ; then break; fi
31539done
31540
31541fi
31542
31543if test x$ac_cv_sizeof_size_t = x ; then
31544  as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
31545fi
31546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
31547$as_echo "$ac_cv_sizeof_size_t" >&6; }
31548
31549cat >>confdefs.h <<_ACEOF
31550#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
31551_ACEOF
31552
31553
31554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
31555$as_echo_n "checking size of long... " >&6; }
31556if ${ac_cv_sizeof_long+:} false; then :
31557  $as_echo_n "(cached) " >&6
31558else
31559  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
31560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31561/* end confdefs.h.  */
31562
31563#include <sys/types.h>
31564
31565
31566int main (void)
31567{
31568switch (0) case 0: case (sizeof (long) == $ac_size):;
31569 ;
31570 return 0;
31571}
31572_ACEOF
31573if ac_fn_c_try_compile "$LINENO"; then :
31574  ac_cv_sizeof_long=$ac_size
31575fi
31576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577  if test x$ac_cv_sizeof_long != x ; then break; fi
31578done
31579
31580fi
31581
31582if test x$ac_cv_sizeof_long = x ; then
31583  as_fn_error $? "cannot determine a size for long" "$LINENO" 5
31584fi
31585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
31586$as_echo "$ac_cv_sizeof_long" >&6; }
31587
31588cat >>confdefs.h <<_ACEOF
31589#define SIZEOF_LONG $ac_cv_sizeof_long
31590_ACEOF
31591
31592
31593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
31594$as_echo_n "checking size of int... " >&6; }
31595if ${ac_cv_sizeof_int+:} false; then :
31596  $as_echo_n "(cached) " >&6
31597else
31598  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
31599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31600/* end confdefs.h.  */
31601
31602#include <sys/types.h>
31603
31604
31605int main (void)
31606{
31607switch (0) case 0: case (sizeof (int) == $ac_size):;
31608 ;
31609 return 0;
31610}
31611_ACEOF
31612if ac_fn_c_try_compile "$LINENO"; then :
31613  ac_cv_sizeof_int=$ac_size
31614fi
31615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31616  if test x$ac_cv_sizeof_int != x ; then break; fi
31617done
31618
31619fi
31620
31621if test x$ac_cv_sizeof_int = x ; then
31622  as_fn_error $? "cannot determine a size for int" "$LINENO" 5
31623fi
31624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
31625$as_echo "$ac_cv_sizeof_int" >&6; }
31626
31627cat >>confdefs.h <<_ACEOF
31628#define SIZEOF_INT $ac_cv_sizeof_int
31629_ACEOF
31630
31631
31632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
31633$as_echo_n "checking size of short... " >&6; }
31634if ${ac_cv_sizeof_short+:} false; then :
31635  $as_echo_n "(cached) " >&6
31636else
31637  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
31638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31639/* end confdefs.h.  */
31640
31641#include <sys/types.h>
31642
31643
31644int main (void)
31645{
31646switch (0) case 0: case (sizeof (short) == $ac_size):;
31647 ;
31648 return 0;
31649}
31650_ACEOF
31651if ac_fn_c_try_compile "$LINENO"; then :
31652  ac_cv_sizeof_short=$ac_size
31653fi
31654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31655  if test x$ac_cv_sizeof_short != x ; then break; fi
31656done
31657
31658fi
31659
31660if test x$ac_cv_sizeof_short = x ; then
31661  as_fn_error $? "cannot determine a size for short" "$LINENO" 5
31662fi
31663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
31664$as_echo "$ac_cv_sizeof_short" >&6; }
31665
31666cat >>confdefs.h <<_ACEOF
31667#define SIZEOF_SHORT $ac_cv_sizeof_short
31668_ACEOF
31669
31670
31671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
31672$as_echo_n "checking size of time_t... " >&6; }
31673if ${ac_cv_sizeof_time_t+:} false; then :
31674  $as_echo_n "(cached) " >&6
31675else
31676  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
31677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31678/* end confdefs.h.  */
31679
31680#include <sys/types.h>
31681
31682
31683int main (void)
31684{
31685switch (0) case 0: case (sizeof (time_t) == $ac_size):;
31686 ;
31687 return 0;
31688}
31689_ACEOF
31690if ac_fn_c_try_compile "$LINENO"; then :
31691  ac_cv_sizeof_time_t=$ac_size
31692fi
31693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31694  if test x$ac_cv_sizeof_time_t != x ; then break; fi
31695done
31696
31697fi
31698
31699if test x$ac_cv_sizeof_time_t = x ; then
31700  as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
31701fi
31702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
31703$as_echo "$ac_cv_sizeof_time_t" >&6; }
31704
31705cat >>confdefs.h <<_ACEOF
31706#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
31707_ACEOF
31708
31709
31710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
31711$as_echo_n "checking size of off_t... " >&6; }
31712if ${ac_cv_sizeof_off_t+:} false; then :
31713  $as_echo_n "(cached) " >&6
31714else
31715  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
31716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31717/* end confdefs.h.  */
31718
31719#include <sys/types.h>
31720
31721
31722int main (void)
31723{
31724switch (0) case 0: case (sizeof (off_t) == $ac_size):;
31725 ;
31726 return 0;
31727}
31728_ACEOF
31729if ac_fn_c_try_compile "$LINENO"; then :
31730  ac_cv_sizeof_off_t=$ac_size
31731fi
31732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31733  if test x$ac_cv_sizeof_off_t != x ; then break; fi
31734done
31735
31736fi
31737
31738if test x$ac_cv_sizeof_off_t = x ; then
31739  as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
31740fi
31741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
31742$as_echo "$ac_cv_sizeof_off_t" >&6; }
31743
31744cat >>confdefs.h <<_ACEOF
31745#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
31746_ACEOF
31747
31748
31749
31750o=$CPPFLAGS
31751CPPFLAGS="-I$srcdir/include $CPPFLAGS"
31752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
31753$as_echo_n "checking size of curl_off_t... " >&6; }
31754if ${ac_cv_sizeof_curl_off_t+:} false; then :
31755  $as_echo_n "(cached) " >&6
31756else
31757  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
31758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31759/* end confdefs.h.  */
31760
31761#include <sys/types.h>
31762
31763#include <curl/system.h>
31764
31765
31766int main (void)
31767{
31768switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
31769 ;
31770 return 0;
31771}
31772_ACEOF
31773if ac_fn_c_try_compile "$LINENO"; then :
31774  ac_cv_sizeof_curl_off_t=$ac_size
31775fi
31776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31777  if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
31778done
31779
31780fi
31781
31782if test x$ac_cv_sizeof_curl_off_t = x ; then
31783  as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
31784fi
31785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
31786$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
31787
31788cat >>confdefs.h <<_ACEOF
31789#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
31790_ACEOF
31791
31792
31793CPPFLAGS=$o
31794
31795ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
31796if test "x$ac_cv_type_long_long" = xyes; then :
31797
31798$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
31799
31800   longlong="yes"
31801
31802fi
31803
31804
31805if test "xyes" = "x$longlong"; then
31806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
31807$as_echo_n "checking if numberLL works... " >&6; }
31808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31809/* end confdefs.h.  */
31810
31811
31812
31813int main (void)
31814{
31815
31816      long long val = 1000LL;
31817
31818 ;
31819 return 0;
31820}
31821
31822_ACEOF
31823if ac_fn_c_try_compile "$LINENO"; then :
31824
31825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31826$as_echo "yes" >&6; }
31827
31828$as_echo "#define HAVE_LL 1" >>confdefs.h
31829
31830
31831else
31832
31833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31834$as_echo "no" >&6; }
31835
31836fi
31837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31838fi
31839
31840
31841# check for ssize_t
31842ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
31843if test "x$ac_cv_type_ssize_t" = xyes; then :
31844
31845else
31846
31847$as_echo "#define ssize_t int" >>confdefs.h
31848
31849fi
31850
31851
31852# check for bool type
31853ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
31854#ifdef HAVE_SYS_TYPES_H
31855#include <sys/types.h>
31856#endif
31857#ifdef HAVE_STDBOOL_H
31858#include <stdbool.h>
31859#endif
31860
31861"
31862if test "x$ac_cv_type_bool" = xyes; then :
31863
31864
31865$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
31866
31867
31868fi
31869
31870
31871# check for sa_family_t
31872ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
31873#ifdef HAVE_SYS_SOCKET_H
31874#include <sys/socket.h>
31875#endif
31876
31877"
31878if test "x$ac_cv_type_sa_family_t" = xyes; then :
31879
31880$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
31881
31882else
31883
31884   # The windows name?
31885   ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
31886#ifdef HAVE_SYS_SOCKET_H
31887#include <sys/socket.h>
31888#endif
31889
31890"
31891if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
31892
31893$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
31894
31895else
31896
31897$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
31898
31899fi
31900
31901
31902fi
31903
31904
31905# check for suseconds_t
31906ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
31907#ifdef HAVE_SYS_TYPES_H
31908#include <sys/types.h>
31909#endif
31910#ifdef HAVE_SYS_TIME_H
31911#include <sys/time.h>
31912#endif
31913
31914"
31915if test "x$ac_cv_type_suseconds_t" = xyes; then :
31916
31917
31918$as_echo "#define HAVE_SUSECONDS_T 1" >>confdefs.h
31919
31920
31921fi
31922
31923
31924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
31925$as_echo_n "checking if time_t is unsigned... " >&6; }
31926
31927   old=$LD_LIBRARY_PATH
31928   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
31929   export LD_LIBRARY_PATH
31930   if test "$cross_compiling" = yes; then :
31931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31932$as_echo "no" >&6; }
31933
31934else
31935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31936/* end confdefs.h.  */
31937
31938  #include <time.h>
31939  #include <limits.h>
31940  time_t t = -1;
31941  return (t > 0);
31942
31943_ACEOF
31944if ac_fn_c_try_run "$LINENO"; then :
31945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31946$as_echo "yes" >&6; }
31947
31948$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
31949
31950
31951else
31952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31953$as_echo "no" >&6; }
31954
31955fi
31956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31957  conftest.$ac_objext conftest.beam conftest.$ac_ext
31958fi
31959
31960   LD_LIBRARY_PATH=$old # restore
31961
31962
31963
31964curl_includes_poll="\
31965/* includes start */
31966#ifdef HAVE_SYS_TYPES_H
31967#  include <sys/types.h>
31968#endif
31969#ifdef HAVE_POLL_H
31970#  include <poll.h>
31971#endif
31972#ifdef HAVE_SYS_POLL_H
31973#  include <sys/poll.h>
31974#endif
31975/* includes end */"
31976  for ac_header in sys/types.h poll.h sys/poll.h
31977do :
31978  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31979ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
31980"
31981if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31982  cat >>confdefs.h <<_ACEOF
31983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31984_ACEOF
31985
31986fi
31987
31988done
31989
31990
31991
31992    #
31993  tst_poll_events_macro_defined="unknown"
31994  #
31995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31996/* end confdefs.h.  */
31997
31998
31999      $curl_includes_poll
32000
32001int main (void)
32002{
32003
32004#if defined(events) || defined(revents)
32005      return 0;
32006#else
32007      force compilation error
32008#endif
32009
32010 ;
32011 return 0;
32012}
32013
32014_ACEOF
32015if ac_fn_c_try_compile "$LINENO"; then :
32016
32017    tst_poll_events_macro_defined="yes"
32018
32019else
32020
32021    tst_poll_events_macro_defined="no"
32022
32023fi
32024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32025  #
32026  if test "$tst_poll_events_macro_defined" = "yes"; then
32027    if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
32028
32029cat >>confdefs.h <<_EOF
32030#define CURL_PULL_SYS_POLL_H 1
32031_EOF
32032
32033    fi
32034  fi
32035  #
32036
32037
32038
32039  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
32040#undef inline
32041#ifdef HAVE_WINDOWS_H
32042#ifndef WIN32_LEAN_AND_MEAN
32043#define WIN32_LEAN_AND_MEAN
32044#endif
32045#include <windows.h>
32046#ifdef HAVE_WINSOCK2_H
32047#include <winsock2.h>
32048#else
32049#ifdef HAVE_WINSOCK_H
32050#include <winsock.h>
32051#endif
32052#endif
32053#else
32054#ifdef HAVE_SYS_TYPES_H
32055#include <sys/types.h>
32056#endif
32057#ifdef HAVE_SYS_SOCKET_H
32058#include <sys/socket.h>
32059#endif
32060#ifdef HAVE_NETINET_IN_H
32061#include <netinet/in.h>
32062#endif
32063#ifdef HAVE_ARPA_INET_H
32064#include <arpa/inet.h>
32065#endif
32066#endif
32067
32068"
32069if test "x$ac_cv_type_in_addr_t" = xyes; then :
32070
32071else
32072
32073        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
32074$as_echo_n "checking for in_addr_t equivalent... " >&6; }
32075if ${curl_cv_in_addr_t_equiv+:} false; then :
32076  $as_echo_n "(cached) " >&6
32077else
32078
32079      curl_cv_in_addr_t_equiv="unknown"
32080      for t in "unsigned long" int size_t unsigned long; do
32081        if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
32082          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32083/* end confdefs.h.  */
32084
32085
32086#undef inline
32087#ifdef HAVE_WINDOWS_H
32088#ifndef WIN32_LEAN_AND_MEAN
32089#define WIN32_LEAN_AND_MEAN
32090#endif
32091#include <windows.h>
32092#ifdef HAVE_WINSOCK2_H
32093#include <winsock2.h>
32094#else
32095#ifdef HAVE_WINSOCK_H
32096#include <winsock.h>
32097#endif
32098#endif
32099#else
32100#ifdef HAVE_SYS_TYPES_H
32101#include <sys/types.h>
32102#endif
32103#ifdef HAVE_SYS_SOCKET_H
32104#include <sys/socket.h>
32105#endif
32106#ifdef HAVE_NETINET_IN_H
32107#include <netinet/in.h>
32108#endif
32109#ifdef HAVE_ARPA_INET_H
32110#include <arpa/inet.h>
32111#endif
32112#endif
32113
32114int main (void)
32115{
32116
32117              $t data = inet_addr ("1.2.3.4");
32118
32119 ;
32120 return 0;
32121}
32122
32123_ACEOF
32124if ac_fn_c_try_link "$LINENO"; then :
32125
32126            curl_cv_in_addr_t_equiv="$t"
32127
32128fi
32129rm -f core conftest.err conftest.$ac_objext \
32130    conftest$ac_exeext conftest.$ac_ext
32131        fi
32132      done
32133
32134fi
32135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
32136$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
32137    case "$curl_cv_in_addr_t_equiv" in
32138      unknown)
32139        as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
32140        ;;
32141      *)
32142
32143cat >>confdefs.h <<_ACEOF
32144#define in_addr_t $curl_cv_in_addr_t_equiv
32145_ACEOF
32146
32147        ;;
32148    esac
32149
32150fi
32151
32152
32153
32154
32155   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
32156#undef inline
32157#ifdef HAVE_WINDOWS_H
32158#ifndef WIN32_LEAN_AND_MEAN
32159#define WIN32_LEAN_AND_MEAN
32160#endif
32161#include <windows.h>
32162#ifdef HAVE_WINSOCK2_H
32163#include <winsock2.h>
32164#endif
32165#else
32166#ifdef HAVE_SYS_TYPES_H
32167#include <sys/types.h>
32168#endif
32169#ifdef HAVE_SYS_SOCKET_H
32170#include <sys/socket.h>
32171#endif
32172#ifdef HAVE_NETINET_IN_H
32173#include <netinet/in.h>
32174#endif
32175#ifdef HAVE_ARPA_INET_H
32176#include <arpa/inet.h>
32177#endif
32178#endif
32179
32180"
32181if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
32182
32183$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
32184
32185fi
32186
32187
32188
32189
32190  for ac_header in signal.h
32191do :
32192  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
32193if test "x$ac_cv_header_signal_h" = xyes; then :
32194  cat >>confdefs.h <<_ACEOF
32195#define HAVE_SIGNAL_H 1
32196_ACEOF
32197
32198fi
32199
32200done
32201
32202  ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
32203#ifdef HAVE_SIGNAL_H
32204#include <signal.h>
32205#endif
32206
32207"
32208if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
32209
32210
32211$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
32212
32213
32214fi
32215
32216  case "$ac_cv_type_sig_atomic_t" in
32217    yes)
32218      #
32219      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
32220$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
32221      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32222/* end confdefs.h.  */
32223
32224
32225#ifdef HAVE_SIGNAL_H
32226#include <signal.h>
32227#endif
32228
32229int main (void)
32230{
32231
32232          static volatile sig_atomic_t dummy = 0;
32233
32234 ;
32235 return 0;
32236}
32237
32238_ACEOF
32239if ac_fn_c_try_link "$LINENO"; then :
32240
32241        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32242$as_echo "no" >&6; }
32243        curl_cv_sig_atomic_t_volatile="no"
32244
32245else
32246
32247        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32248$as_echo "yes" >&6; }
32249        curl_cv_sig_atomic_t_volatile="yes"
32250
32251fi
32252rm -f core conftest.err conftest.$ac_objext \
32253    conftest$ac_exeext conftest.$ac_ext
32254      #
32255      if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
32256
32257$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
32258
32259      fi
32260      ;;
32261  esac
32262
32263
32264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
32265$as_echo_n "checking return type of signal handlers... " >&6; }
32266if ${ac_cv_type_signal+:} false; then :
32267  $as_echo_n "(cached) " >&6
32268else
32269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32270/* end confdefs.h.  */
32271#include <sys/types.h>
32272#include <signal.h>
32273
32274int main (void)
32275{
32276return *(signal (0, 0)) (0) == 1;
32277 ;
32278 return 0;
32279}
32280_ACEOF
32281if ac_fn_c_try_compile "$LINENO"; then :
32282  ac_cv_type_signal=int
32283else
32284  ac_cv_type_signal=void
32285fi
32286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32287fi
32288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
32289$as_echo "$ac_cv_type_signal" >&6; }
32290
32291cat >>confdefs.h <<_ACEOF
32292#define RETSIGTYPE $ac_cv_type_signal
32293_ACEOF
32294
32295
32296
32297
32298    for ac_header in sys/select.h sys/socket.h
32299do :
32300  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32301ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32302if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32303  cat >>confdefs.h <<_ACEOF
32304#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32305_ACEOF
32306
32307fi
32308
32309done
32310
32311  #
32312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
32313$as_echo_n "checking for select... " >&6; }
32314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32315/* end confdefs.h.  */
32316
32317
32318#undef inline
32319#ifdef HAVE_WINDOWS_H
32320#ifndef WIN32_LEAN_AND_MEAN
32321#define WIN32_LEAN_AND_MEAN
32322#endif
32323#include <windows.h>
32324#ifdef HAVE_WINSOCK2_H
32325#include <winsock2.h>
32326#else
32327#ifdef HAVE_WINSOCK_H
32328#include <winsock.h>
32329#endif
32330#endif
32331#endif
32332#ifdef HAVE_SYS_TYPES_H
32333#include <sys/types.h>
32334#endif
32335#ifdef HAVE_SYS_TIME_H
32336#include <sys/time.h>
32337#ifdef TIME_WITH_SYS_TIME
32338#include <time.h>
32339#endif
32340#else
32341#ifdef HAVE_TIME_H
32342#include <time.h>
32343#endif
32344#endif
32345#ifndef HAVE_WINDOWS_H
32346#ifdef HAVE_PROTO_BSDSOCKET_H
32347#include <proto/bsdsocket.h>
32348struct Library *SocketBase = NULL;
32349#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
32350#endif
32351#ifdef HAVE_SYS_SELECT_H
32352#include <sys/select.h>
32353#elif defined(HAVE_UNISTD_H)
32354#include <unistd.h>
32355#endif
32356#ifdef HAVE_SYS_SOCKET_H
32357#include <sys/socket.h>
32358#endif
32359#endif
32360
32361int main (void)
32362{
32363
32364      select(0, 0, 0, 0, 0);
32365
32366 ;
32367 return 0;
32368}
32369
32370_ACEOF
32371if ac_fn_c_try_link "$LINENO"; then :
32372
32373    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32374$as_echo "yes" >&6; }
32375    curl_cv_select="yes"
32376
32377else
32378
32379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32380$as_echo "no" >&6; }
32381    curl_cv_select="no"
32382
32383fi
32384rm -f core conftest.err conftest.$ac_objext \
32385    conftest$ac_exeext conftest.$ac_ext
32386  #
32387  if test "$curl_cv_select" = "yes"; then
32388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
32389$as_echo_n "checking types of args and return type for select... " >&6; }
32390if ${curl_cv_func_select_args+:} false; then :
32391  $as_echo_n "(cached) " >&6
32392else
32393
32394      curl_cv_func_select_args="unknown"
32395      for sel_retv in 'int' 'ssize_t'; do
32396        for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
32397          for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
32398            for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
32399              if test "$curl_cv_func_select_args" = "unknown"; then
32400                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32401/* end confdefs.h.  */
32402
32403
32404#undef inline
32405#ifdef HAVE_WINDOWS_H
32406#ifndef WIN32_LEAN_AND_MEAN
32407#define WIN32_LEAN_AND_MEAN
32408#endif
32409#include <windows.h>
32410#ifdef HAVE_WINSOCK2_H
32411#include <winsock2.h>
32412#else
32413#ifdef HAVE_WINSOCK_H
32414#include <winsock.h>
32415#endif
32416#endif
32417#define SELECTCALLCONV PASCAL
32418#endif
32419#ifdef HAVE_SYS_TYPES_H
32420#include <sys/types.h>
32421#endif
32422#ifdef HAVE_SYS_TIME_H
32423#include <sys/time.h>
32424#ifdef TIME_WITH_SYS_TIME
32425#include <time.h>
32426#endif
32427#else
32428#ifdef HAVE_TIME_H
32429#include <time.h>
32430#endif
32431#endif
32432#ifndef HAVE_WINDOWS_H
32433#ifdef HAVE_PROTO_BSDSOCKET_H
32434#include <proto/bsdsocket.h>
32435struct Library *SocketBase = NULL;
32436#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
32437#endif
32438#ifdef HAVE_SYS_SELECT_H
32439#include <sys/select.h>
32440#elif defined(HAVE_UNISTD_H)
32441#include <unistd.h>
32442#endif
32443#ifdef HAVE_SYS_SOCKET_H
32444#include <sys/socket.h>
32445#endif
32446#define SELECTCALLCONV
32447#endif
32448#ifndef HAVE_STRUCT_TIMEVAL
32449                    struct timeval {
32450                      long tv_sec;
32451                      long tv_usec;
32452                    };
32453#endif
32454#ifndef HAVE_PROTO_BSDSOCKET_H
32455                    extern $sel_retv SELECTCALLCONV
32456				select($sel_arg1,
32457					$sel_arg234,
32458					$sel_arg234,
32459					$sel_arg234,
32460					$sel_arg5);
32461#endif
32462
32463int main (void)
32464{
32465
32466                    $sel_arg1   nfds=0;
32467                    $sel_arg234 rfds=0;
32468                    $sel_arg234 wfds=0;
32469                    $sel_arg234 efds=0;
32470                    $sel_retv res = select(nfds, rfds, wfds, efds, 0);
32471
32472 ;
32473 return 0;
32474}
32475
32476_ACEOF
32477if ac_fn_c_try_compile "$LINENO"; then :
32478
32479                  curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
32480
32481fi
32482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32483              fi
32484            done
32485          done
32486        done
32487      done
32488
32489fi
32490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
32491$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
32492    if test "$curl_cv_func_select_args" = "unknown"; then
32493      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
32494$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
32495      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
32496$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
32497    else
32498      select_prev_IFS=$IFS; IFS=','
32499      set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
32500      IFS=$select_prev_IFS
32501      shift
32502      #
32503      sel_qual_type_arg5=$3
32504      #
32505
32506cat >>confdefs.h <<_ACEOF
32507#define SELECT_TYPE_ARG1 $1
32508_ACEOF
32509
32510
32511cat >>confdefs.h <<_ACEOF
32512#define SELECT_TYPE_ARG234 $2
32513_ACEOF
32514
32515
32516cat >>confdefs.h <<_ACEOF
32517#define SELECT_TYPE_RETV $4
32518_ACEOF
32519
32520      #
32521      prev_sh_opts=$-
32522      #
32523      case $prev_sh_opts in
32524        *f*)
32525          ;;
32526        *)
32527          set -f
32528          ;;
32529      esac
32530      #
32531      case "$sel_qual_type_arg5" in
32532        const*)
32533          sel_qual_arg5=const
32534          sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
32535        ;;
32536        *)
32537          sel_qual_arg5=
32538          sel_type_arg5=$sel_qual_type_arg5
32539        ;;
32540      esac
32541      #
32542
32543cat >>confdefs.h <<_ACEOF
32544#define SELECT_QUAL_ARG5 $sel_qual_arg5
32545_ACEOF
32546
32547
32548cat >>confdefs.h <<_ACEOF
32549#define SELECT_TYPE_ARG5 $sel_type_arg5
32550_ACEOF
32551
32552      #
32553      case $prev_sh_opts in
32554        *f*)
32555          ;;
32556        *)
32557          set +f
32558          ;;
32559      esac
32560      #
32561
32562cat >>confdefs.h <<_ACEOF
32563#define HAVE_SELECT 1
32564_ACEOF
32565
32566      curl_cv_func_select="yes"
32567    fi
32568  fi
32569
32570
32571
32572      for ac_header in sys/types.h sys/socket.h
32573do :
32574  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32575ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32576if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32577  cat >>confdefs.h <<_ACEOF
32578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32579_ACEOF
32580
32581fi
32582
32583done
32584
32585  #
32586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
32587$as_echo_n "checking for recv... " >&6; }
32588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32589/* end confdefs.h.  */
32590
32591
32592#undef inline
32593#ifdef HAVE_WINDOWS_H
32594#ifndef WIN32_LEAN_AND_MEAN
32595#define WIN32_LEAN_AND_MEAN
32596#endif
32597#include <windows.h>
32598#ifdef HAVE_WINSOCK2_H
32599#include <winsock2.h>
32600#else
32601#ifdef HAVE_WINSOCK_H
32602#include <winsock.h>
32603#endif
32604#endif
32605#else
32606#ifdef HAVE_PROTO_BSDSOCKET_H
32607#include <proto/bsdsocket.h>
32608struct Library *SocketBase = NULL;
32609#endif
32610#ifdef HAVE_SYS_TYPES_H
32611#include <sys/types.h>
32612#endif
32613#ifdef HAVE_SYS_SOCKET_H
32614#include <sys/socket.h>
32615#endif
32616#endif
32617
32618int main (void)
32619{
32620
32621      recv(0, 0, 0, 0);
32622
32623 ;
32624 return 0;
32625}
32626
32627_ACEOF
32628if ac_fn_c_try_link "$LINENO"; then :
32629
32630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32631$as_echo "yes" >&6; }
32632    curl_cv_recv="yes"
32633
32634else
32635
32636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32637$as_echo "no" >&6; }
32638    curl_cv_recv="no"
32639
32640fi
32641rm -f core conftest.err conftest.$ac_objext \
32642    conftest$ac_exeext conftest.$ac_ext
32643  #
32644  if test "$curl_cv_recv" = "yes"; then
32645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
32646$as_echo_n "checking types of args and return type for recv... " >&6; }
32647if ${curl_cv_func_recv_args+:} false; then :
32648  $as_echo_n "(cached) " >&6
32649else
32650
32651      curl_cv_func_recv_args="unknown"
32652      for recv_retv in 'int' 'ssize_t'; do
32653        for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
32654          for recv_arg2 in 'char *' 'void *'; do
32655            for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
32656              for recv_arg4 in 'int' 'unsigned int'; do
32657                if test "$curl_cv_func_recv_args" = "unknown"; then
32658                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32659/* end confdefs.h.  */
32660
32661
32662#undef inline
32663#ifdef HAVE_WINDOWS_H
32664#ifndef WIN32_LEAN_AND_MEAN
32665#define WIN32_LEAN_AND_MEAN
32666#endif
32667#include <windows.h>
32668#ifdef HAVE_WINSOCK2_H
32669#include <winsock2.h>
32670#else
32671#ifdef HAVE_WINSOCK_H
32672#include <winsock.h>
32673#endif
32674#endif
32675#define RECVCALLCONV PASCAL
32676#else
32677#ifdef HAVE_PROTO_BSDSOCKET_H
32678#include <proto/bsdsocket.h>
32679struct Library *SocketBase = NULL;
32680#endif
32681#ifdef HAVE_SYS_TYPES_H
32682#include <sys/types.h>
32683#endif
32684#ifdef HAVE_SYS_SOCKET_H
32685#include <sys/socket.h>
32686#endif
32687#define RECVCALLCONV
32688#endif
32689#ifndef HAVE_PROTO_BSDSOCKET_H
32690                      extern $recv_retv RECVCALLCONV
32691                      recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
32692#endif
32693
32694int main (void)
32695{
32696
32697                      $recv_arg1 s=0;
32698                      $recv_arg2 buf=0;
32699                      $recv_arg3 len=0;
32700                      $recv_arg4 flags=0;
32701                      $recv_retv res = recv(s, buf, len, flags);
32702
32703 ;
32704 return 0;
32705}
32706
32707_ACEOF
32708if ac_fn_c_try_compile "$LINENO"; then :
32709
32710                    curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
32711
32712fi
32713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32714                fi
32715              done
32716            done
32717          done
32718        done
32719      done
32720
32721fi
32722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
32723$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
32724    if test "$curl_cv_func_recv_args" = "unknown"; then
32725      as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
32726    else
32727      recv_prev_IFS=$IFS; IFS=','
32728      set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
32729      IFS=$recv_prev_IFS
32730      shift
32731      #
32732
32733cat >>confdefs.h <<_ACEOF
32734#define RECV_TYPE_ARG1 $1
32735_ACEOF
32736
32737
32738cat >>confdefs.h <<_ACEOF
32739#define RECV_TYPE_ARG2 $2
32740_ACEOF
32741
32742
32743cat >>confdefs.h <<_ACEOF
32744#define RECV_TYPE_ARG3 $3
32745_ACEOF
32746
32747
32748cat >>confdefs.h <<_ACEOF
32749#define RECV_TYPE_ARG4 $4
32750_ACEOF
32751
32752
32753cat >>confdefs.h <<_ACEOF
32754#define RECV_TYPE_RETV $5
32755_ACEOF
32756
32757      #
32758
32759cat >>confdefs.h <<_ACEOF
32760#define HAVE_RECV 1
32761_ACEOF
32762
32763      curl_cv_func_recv="yes"
32764    fi
32765  else
32766    as_fn_error $? "Unable to link function recv" "$LINENO" 5
32767  fi
32768
32769
32770      for ac_header in sys/types.h sys/socket.h
32771do :
32772  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32773ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32774if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32775  cat >>confdefs.h <<_ACEOF
32776#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32777_ACEOF
32778
32779fi
32780
32781done
32782
32783  #
32784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
32785$as_echo_n "checking for send... " >&6; }
32786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32787/* end confdefs.h.  */
32788
32789
32790#undef inline
32791#ifdef HAVE_WINDOWS_H
32792#ifndef WIN32_LEAN_AND_MEAN
32793#define WIN32_LEAN_AND_MEAN
32794#endif
32795#include <windows.h>
32796#ifdef HAVE_WINSOCK2_H
32797#include <winsock2.h>
32798#else
32799#ifdef HAVE_WINSOCK_H
32800#include <winsock.h>
32801#endif
32802#endif
32803#else
32804#ifdef HAVE_PROTO_BSDSOCKET_H
32805#include <proto/bsdsocket.h>
32806struct Library *SocketBase = NULL;
32807#endif
32808#ifdef HAVE_SYS_TYPES_H
32809#include <sys/types.h>
32810#endif
32811#ifdef HAVE_SYS_SOCKET_H
32812#include <sys/socket.h>
32813#endif
32814#endif
32815
32816int main (void)
32817{
32818
32819      send(0, 0, 0, 0);
32820
32821 ;
32822 return 0;
32823}
32824
32825_ACEOF
32826if ac_fn_c_try_link "$LINENO"; then :
32827
32828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32829$as_echo "yes" >&6; }
32830    curl_cv_send="yes"
32831
32832else
32833
32834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32835$as_echo "no" >&6; }
32836    curl_cv_send="no"
32837
32838fi
32839rm -f core conftest.err conftest.$ac_objext \
32840    conftest$ac_exeext conftest.$ac_ext
32841  #
32842  if test "$curl_cv_send" = "yes"; then
32843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
32844$as_echo_n "checking types of args and return type for send... " >&6; }
32845if ${curl_cv_func_send_args+:} false; then :
32846  $as_echo_n "(cached) " >&6
32847else
32848
32849      curl_cv_func_send_args="unknown"
32850      for send_retv in 'int' 'ssize_t'; do
32851        for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
32852          for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
32853            for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
32854              for send_arg4 in 'int' 'unsigned int'; do
32855                if test "$curl_cv_func_send_args" = "unknown"; then
32856                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32857/* end confdefs.h.  */
32858
32859
32860#undef inline
32861#ifdef HAVE_WINDOWS_H
32862#ifndef WIN32_LEAN_AND_MEAN
32863#define WIN32_LEAN_AND_MEAN
32864#endif
32865#include <windows.h>
32866#ifdef HAVE_WINSOCK2_H
32867#include <winsock2.h>
32868#else
32869#ifdef HAVE_WINSOCK_H
32870#include <winsock.h>
32871#endif
32872#endif
32873#define SENDCALLCONV PASCAL
32874#else
32875#ifdef HAVE_PROTO_BSDSOCKET_H
32876#include <proto/bsdsocket.h>
32877struct Library *SocketBase = NULL;
32878#endif
32879#ifdef HAVE_SYS_TYPES_H
32880#include <sys/types.h>
32881#endif
32882#ifdef HAVE_SYS_SOCKET_H
32883#include <sys/socket.h>
32884#endif
32885#define SENDCALLCONV
32886#endif
32887#ifndef HAVE_PROTO_BSDSOCKET_H
32888                      extern $send_retv SENDCALLCONV
32889                      send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
32890#endif
32891
32892int main (void)
32893{
32894
32895                      $send_arg1 s=0;
32896                      $send_arg3 len=0;
32897                      $send_arg4 flags=0;
32898                      $send_retv res = send(s, 0, len, flags);
32899
32900 ;
32901 return 0;
32902}
32903
32904_ACEOF
32905if ac_fn_c_try_compile "$LINENO"; then :
32906
32907                    curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
32908
32909fi
32910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32911                fi
32912              done
32913            done
32914          done
32915        done
32916      done
32917
32918fi
32919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
32920$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
32921    if test "$curl_cv_func_send_args" = "unknown"; then
32922      as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
32923    else
32924      send_prev_IFS=$IFS; IFS=','
32925      set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
32926      IFS=$send_prev_IFS
32927      shift
32928      #
32929      send_qual_type_arg2=$2
32930      #
32931
32932cat >>confdefs.h <<_ACEOF
32933#define SEND_TYPE_ARG1 $1
32934_ACEOF
32935
32936
32937cat >>confdefs.h <<_ACEOF
32938#define SEND_TYPE_ARG3 $3
32939_ACEOF
32940
32941
32942cat >>confdefs.h <<_ACEOF
32943#define SEND_TYPE_ARG4 $4
32944_ACEOF
32945
32946
32947cat >>confdefs.h <<_ACEOF
32948#define SEND_TYPE_RETV $5
32949_ACEOF
32950
32951      #
32952      prev_sh_opts=$-
32953      #
32954      case $prev_sh_opts in
32955        *f*)
32956          ;;
32957        *)
32958          set -f
32959          ;;
32960      esac
32961      #
32962      case "$send_qual_type_arg2" in
32963        const*)
32964          send_qual_arg2=const
32965          send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
32966        ;;
32967        *)
32968          send_qual_arg2=
32969          send_type_arg2=$send_qual_type_arg2
32970        ;;
32971      esac
32972      #
32973
32974cat >>confdefs.h <<_ACEOF
32975#define SEND_QUAL_ARG2 $send_qual_arg2
32976_ACEOF
32977
32978
32979cat >>confdefs.h <<_ACEOF
32980#define SEND_TYPE_ARG2 $send_type_arg2
32981_ACEOF
32982
32983      #
32984      case $prev_sh_opts in
32985        *f*)
32986          ;;
32987        *)
32988          set +f
32989          ;;
32990      esac
32991      #
32992
32993cat >>confdefs.h <<_ACEOF
32994#define HAVE_SEND 1
32995_ACEOF
32996
32997      curl_cv_func_send="yes"
32998    fi
32999  else
33000    as_fn_error $? "Unable to link function send" "$LINENO" 5
33001  fi
33002
33003
33004  for ac_header in sys/types.h sys/socket.h
33005do :
33006  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33007ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
33008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33009  cat >>confdefs.h <<_ACEOF
33010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33011_ACEOF
33012
33013fi
33014
33015done
33016
33017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
33018$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
33019if ${curl_cv_msg_nosignal+:} false; then :
33020  $as_echo_n "(cached) " >&6
33021else
33022
33023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33024/* end confdefs.h.  */
33025
33026
33027#undef inline
33028#ifdef HAVE_WINDOWS_H
33029#ifndef WIN32_LEAN_AND_MEAN
33030#define WIN32_LEAN_AND_MEAN
33031#endif
33032#include <windows.h>
33033#ifdef HAVE_WINSOCK2_H
33034#include <winsock2.h>
33035#else
33036#ifdef HAVE_WINSOCK_H
33037#include <winsock.h>
33038#endif
33039#endif
33040#else
33041#ifdef HAVE_PROTO_BSDSOCKET_H
33042#include <proto/bsdsocket.h>
33043struct Library *SocketBase = NULL;
33044#endif
33045#ifdef HAVE_SYS_TYPES_H
33046#include <sys/types.h>
33047#endif
33048#ifdef HAVE_SYS_SOCKET_H
33049#include <sys/socket.h>
33050#endif
33051#endif
33052
33053int main (void)
33054{
33055
33056        int flag=MSG_NOSIGNAL;
33057
33058 ;
33059 return 0;
33060}
33061
33062_ACEOF
33063if ac_fn_c_try_compile "$LINENO"; then :
33064
33065      curl_cv_msg_nosignal="yes"
33066
33067else
33068
33069      curl_cv_msg_nosignal="no"
33070
33071fi
33072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33073
33074fi
33075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
33076$as_echo "$curl_cv_msg_nosignal" >&6; }
33077  case "$curl_cv_msg_nosignal" in
33078    yes)
33079
33080cat >>confdefs.h <<_ACEOF
33081#define HAVE_MSG_NOSIGNAL 1
33082_ACEOF
33083
33084      ;;
33085  esac
33086
33087
33088
33089curl_includes_unistd="\
33090/* includes start */
33091#ifdef HAVE_SYS_TYPES_H
33092#  include <sys/types.h>
33093#endif
33094#ifdef HAVE_UNISTD_H
33095#  include <unistd.h>
33096#endif
33097/* includes end */"
33098  for ac_header in sys/types.h unistd.h
33099do :
33100  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33101ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
33102"
33103if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33104  cat >>confdefs.h <<_ACEOF
33105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33106_ACEOF
33107
33108fi
33109
33110done
33111
33112
33113
33114    #
33115  tst_links_alarm="unknown"
33116  tst_proto_alarm="unknown"
33117  tst_compi_alarm="unknown"
33118  tst_allow_alarm="unknown"
33119  #
33120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
33121$as_echo_n "checking if alarm can be linked... " >&6; }
33122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33123/* end confdefs.h.  */
33124
33125
33126#define alarm innocuous_alarm
33127#ifdef __STDC__
33128# include <limits.h>
33129#else
33130# include <assert.h>
33131#endif
33132#undef alarm
33133#ifdef __cplusplus
33134extern "C"
33135#endif
33136char alarm ();
33137#if defined __stub_alarm || defined __stub___alarm
33138choke me
33139#endif
33140
33141int main (void)
33142{
33143return alarm ();
33144 ;
33145 return 0;
33146}
33147
33148_ACEOF
33149if ac_fn_c_try_link "$LINENO"; then :
33150
33151    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33152$as_echo "yes" >&6; }
33153    tst_links_alarm="yes"
33154
33155else
33156
33157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33158$as_echo "no" >&6; }
33159    tst_links_alarm="no"
33160
33161fi
33162rm -f core conftest.err conftest.$ac_objext \
33163    conftest$ac_exeext conftest.$ac_ext
33164  #
33165  if test "$tst_links_alarm" = "yes"; then
33166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
33167$as_echo_n "checking if alarm is prototyped... " >&6; }
33168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33169/* end confdefs.h.  */
33170
33171      $curl_includes_unistd
33172
33173_ACEOF
33174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33175  $EGREP "alarm" >/dev/null 2>&1; then :
33176
33177      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33178$as_echo "yes" >&6; }
33179      tst_proto_alarm="yes"
33180
33181else
33182
33183      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184$as_echo "no" >&6; }
33185      tst_proto_alarm="no"
33186
33187fi
33188rm -f conftest*
33189
33190  fi
33191  #
33192  if test "$tst_proto_alarm" = "yes"; then
33193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
33194$as_echo_n "checking if alarm is compilable... " >&6; }
33195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33196/* end confdefs.h.  */
33197
33198
33199        $curl_includes_unistd
33200
33201int main (void)
33202{
33203
33204        if(0 != alarm(0))
33205          return 1;
33206
33207 ;
33208 return 0;
33209}
33210
33211_ACEOF
33212if ac_fn_c_try_compile "$LINENO"; then :
33213
33214      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33215$as_echo "yes" >&6; }
33216      tst_compi_alarm="yes"
33217
33218else
33219
33220      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33221$as_echo "no" >&6; }
33222      tst_compi_alarm="no"
33223
33224fi
33225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33226  fi
33227  #
33228  if test "$tst_compi_alarm" = "yes"; then
33229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
33230$as_echo_n "checking if alarm usage allowed... " >&6; }
33231    if test "x$curl_disallow_alarm" != "xyes"; then
33232      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33233$as_echo "yes" >&6; }
33234      tst_allow_alarm="yes"
33235    else
33236      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33237$as_echo "no" >&6; }
33238      tst_allow_alarm="no"
33239    fi
33240  fi
33241  #
33242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
33243$as_echo_n "checking if alarm might be used... " >&6; }
33244  if test "$tst_links_alarm" = "yes" &&
33245     test "$tst_proto_alarm" = "yes" &&
33246     test "$tst_compi_alarm" = "yes" &&
33247     test "$tst_allow_alarm" = "yes"; then
33248    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33249$as_echo "yes" >&6; }
33250
33251cat >>confdefs.h <<_ACEOF
33252#define HAVE_ALARM 1
33253_ACEOF
33254
33255    curl_cv_func_alarm="yes"
33256  else
33257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33258$as_echo "no" >&6; }
33259    curl_cv_func_alarm="no"
33260  fi
33261
33262
33263curl_includes_string="\
33264/* includes start */
33265#ifdef HAVE_SYS_TYPES_H
33266#  include <sys/types.h>
33267#endif
33268#ifdef HAVE_STRING_H
33269#  include <string.h>
33270#endif
33271#ifdef HAVE_STRINGS_H
33272#  include <strings.h>
33273#endif
33274/* includes end */"
33275  for ac_header in sys/types.h string.h strings.h
33276do :
33277  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33278ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
33279"
33280if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33281  cat >>confdefs.h <<_ACEOF
33282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33283_ACEOF
33284
33285fi
33286
33287done
33288
33289
33290
33291curl_includes_libgen="\
33292/* includes start */
33293#ifdef HAVE_SYS_TYPES_H
33294#  include <sys/types.h>
33295#endif
33296#ifdef HAVE_LIBGEN_H
33297#  include <libgen.h>
33298#endif
33299/* includes end */"
33300  for ac_header in sys/types.h libgen.h
33301do :
33302  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33303ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
33304"
33305if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33306  cat >>confdefs.h <<_ACEOF
33307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33308_ACEOF
33309
33310fi
33311
33312done
33313
33314
33315
33316        #
33317  tst_links_basename="unknown"
33318  tst_proto_basename="unknown"
33319  tst_compi_basename="unknown"
33320  tst_allow_basename="unknown"
33321  #
33322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
33323$as_echo_n "checking if basename can be linked... " >&6; }
33324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33325/* end confdefs.h.  */
33326
33327
33328#define basename innocuous_basename
33329#ifdef __STDC__
33330# include <limits.h>
33331#else
33332# include <assert.h>
33333#endif
33334#undef basename
33335#ifdef __cplusplus
33336extern "C"
33337#endif
33338char basename ();
33339#if defined __stub_basename || defined __stub___basename
33340choke me
33341#endif
33342
33343int main (void)
33344{
33345return basename ();
33346 ;
33347 return 0;
33348}
33349
33350_ACEOF
33351if ac_fn_c_try_link "$LINENO"; then :
33352
33353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33354$as_echo "yes" >&6; }
33355    tst_links_basename="yes"
33356
33357else
33358
33359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33360$as_echo "no" >&6; }
33361    tst_links_basename="no"
33362
33363fi
33364rm -f core conftest.err conftest.$ac_objext \
33365    conftest$ac_exeext conftest.$ac_ext
33366  #
33367  if test "$tst_links_basename" = "yes"; then
33368    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
33369$as_echo_n "checking if basename is prototyped... " >&6; }
33370    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33371/* end confdefs.h.  */
33372
33373      $curl_includes_string
33374      $curl_includes_libgen
33375      $curl_includes_unistd
33376
33377_ACEOF
33378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33379  $EGREP "basename" >/dev/null 2>&1; then :
33380
33381      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33382$as_echo "yes" >&6; }
33383      tst_proto_basename="yes"
33384
33385else
33386
33387      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33388$as_echo "no" >&6; }
33389      tst_proto_basename="no"
33390
33391fi
33392rm -f conftest*
33393
33394  fi
33395  #
33396  if test "$tst_proto_basename" = "yes"; then
33397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
33398$as_echo_n "checking if basename is compilable... " >&6; }
33399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33400/* end confdefs.h.  */
33401
33402
33403        $curl_includes_string
33404        $curl_includes_libgen
33405        $curl_includes_unistd
33406
33407int main (void)
33408{
33409
33410        if(0 != basename(0))
33411          return 1;
33412
33413 ;
33414 return 0;
33415}
33416
33417_ACEOF
33418if ac_fn_c_try_compile "$LINENO"; then :
33419
33420      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33421$as_echo "yes" >&6; }
33422      tst_compi_basename="yes"
33423
33424else
33425
33426      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33427$as_echo "no" >&6; }
33428      tst_compi_basename="no"
33429
33430fi
33431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33432  fi
33433  #
33434  if test "$tst_compi_basename" = "yes"; then
33435    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
33436$as_echo_n "checking if basename usage allowed... " >&6; }
33437    if test "x$curl_disallow_basename" != "xyes"; then
33438      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33439$as_echo "yes" >&6; }
33440      tst_allow_basename="yes"
33441    else
33442      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33443$as_echo "no" >&6; }
33444      tst_allow_basename="no"
33445    fi
33446  fi
33447  #
33448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
33449$as_echo_n "checking if basename might be used... " >&6; }
33450  if test "$tst_links_basename" = "yes" &&
33451     test "$tst_proto_basename" = "yes" &&
33452     test "$tst_compi_basename" = "yes" &&
33453     test "$tst_allow_basename" = "yes"; then
33454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33455$as_echo "yes" >&6; }
33456
33457cat >>confdefs.h <<_ACEOF
33458#define HAVE_BASENAME 1
33459_ACEOF
33460
33461    curl_cv_func_basename="yes"
33462  else
33463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33464$as_echo "no" >&6; }
33465    curl_cv_func_basename="no"
33466  fi
33467
33468
33469curl_includes_socket="\
33470/* includes start */
33471#ifdef HAVE_SYS_TYPES_H
33472#  include <sys/types.h>
33473#endif
33474#ifdef HAVE_SOCKET_H
33475#  include <socket.h>
33476#endif
33477/* includes end */"
33478  for ac_header in sys/types.h socket.h
33479do :
33480  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33481ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
33482"
33483if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33484  cat >>confdefs.h <<_ACEOF
33485#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33486_ACEOF
33487
33488fi
33489
33490done
33491
33492
33493
33494      #
33495  tst_links_closesocket="unknown"
33496  tst_proto_closesocket="unknown"
33497  tst_compi_closesocket="unknown"
33498  tst_allow_closesocket="unknown"
33499  #
33500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
33501$as_echo_n "checking if closesocket can be linked... " >&6; }
33502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33503/* end confdefs.h.  */
33504
33505
33506      $curl_includes_winsock2
33507      $curl_includes_bsdsocket
33508      $curl_includes_socket
33509
33510int main (void)
33511{
33512
33513      if(0 != closesocket(0))
33514        return 1;
33515
33516 ;
33517 return 0;
33518}
33519
33520_ACEOF
33521if ac_fn_c_try_link "$LINENO"; then :
33522
33523    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33524$as_echo "yes" >&6; }
33525    tst_links_closesocket="yes"
33526
33527else
33528
33529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33530$as_echo "no" >&6; }
33531    tst_links_closesocket="no"
33532
33533fi
33534rm -f core conftest.err conftest.$ac_objext \
33535    conftest$ac_exeext conftest.$ac_ext
33536  #
33537  if test "$tst_links_closesocket" = "yes"; then
33538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
33539$as_echo_n "checking if closesocket is prototyped... " >&6; }
33540    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33541/* end confdefs.h.  */
33542
33543      $curl_includes_winsock2
33544      $curl_includes_bsdsocket
33545      $curl_includes_socket
33546
33547_ACEOF
33548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33549  $EGREP "closesocket" >/dev/null 2>&1; then :
33550
33551      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33552$as_echo "yes" >&6; }
33553      tst_proto_closesocket="yes"
33554
33555else
33556
33557      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33558$as_echo "no" >&6; }
33559      tst_proto_closesocket="no"
33560
33561fi
33562rm -f conftest*
33563
33564  fi
33565  #
33566  if test "$tst_proto_closesocket" = "yes"; then
33567    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
33568$as_echo_n "checking if closesocket is compilable... " >&6; }
33569    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33570/* end confdefs.h.  */
33571
33572
33573        $curl_includes_winsock2
33574      $curl_includes_bsdsocket
33575        $curl_includes_socket
33576
33577int main (void)
33578{
33579
33580        if(0 != closesocket(0))
33581          return 1;
33582
33583 ;
33584 return 0;
33585}
33586
33587_ACEOF
33588if ac_fn_c_try_compile "$LINENO"; then :
33589
33590      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33591$as_echo "yes" >&6; }
33592      tst_compi_closesocket="yes"
33593
33594else
33595
33596      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33597$as_echo "no" >&6; }
33598      tst_compi_closesocket="no"
33599
33600fi
33601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33602  fi
33603  #
33604  if test "$tst_compi_closesocket" = "yes"; then
33605    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
33606$as_echo_n "checking if closesocket usage allowed... " >&6; }
33607    if test "x$curl_disallow_closesocket" != "xyes"; then
33608      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33609$as_echo "yes" >&6; }
33610      tst_allow_closesocket="yes"
33611    else
33612      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613$as_echo "no" >&6; }
33614      tst_allow_closesocket="no"
33615    fi
33616  fi
33617  #
33618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
33619$as_echo_n "checking if closesocket might be used... " >&6; }
33620  if test "$tst_links_closesocket" = "yes" &&
33621     test "$tst_proto_closesocket" = "yes" &&
33622     test "$tst_compi_closesocket" = "yes" &&
33623     test "$tst_allow_closesocket" = "yes"; then
33624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33625$as_echo "yes" >&6; }
33626
33627cat >>confdefs.h <<_ACEOF
33628#define HAVE_CLOSESOCKET 1
33629_ACEOF
33630
33631    curl_cv_func_closesocket="yes"
33632  else
33633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33634$as_echo "no" >&6; }
33635    curl_cv_func_closesocket="no"
33636  fi
33637
33638
33639curl_includes_sys_socket="\
33640/* includes start */
33641#ifdef HAVE_SYS_TYPES_H
33642#  include <sys/types.h>
33643#endif
33644#ifdef HAVE_SYS_SOCKET_H
33645#  include <sys/socket.h>
33646#endif
33647/* includes end */"
33648  for ac_header in sys/types.h sys/socket.h
33649do :
33650  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33651ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
33652"
33653if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33654  cat >>confdefs.h <<_ACEOF
33655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33656_ACEOF
33657
33658fi
33659
33660done
33661
33662
33663
33664    #
33665  tst_links_closesocket_camel="unknown"
33666  tst_proto_closesocket_camel="unknown"
33667  tst_compi_closesocket_camel="unknown"
33668  tst_allow_closesocket_camel="unknown"
33669  #
33670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
33671$as_echo_n "checking if CloseSocket can be linked... " >&6; }
33672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33673/* end confdefs.h.  */
33674
33675
33676      $curl_includes_sys_socket
33677
33678int main (void)
33679{
33680
33681      if(0 != CloseSocket(0))
33682        return 1;
33683
33684 ;
33685 return 0;
33686}
33687
33688_ACEOF
33689if ac_fn_c_try_link "$LINENO"; then :
33690
33691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33692$as_echo "yes" >&6; }
33693    tst_links_closesocket_camel="yes"
33694
33695else
33696
33697    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33698$as_echo "no" >&6; }
33699    tst_links_closesocket_camel="no"
33700
33701fi
33702rm -f core conftest.err conftest.$ac_objext \
33703    conftest$ac_exeext conftest.$ac_ext
33704  #
33705  if test "$tst_links_closesocket_camel" = "yes"; then
33706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
33707$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
33708    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33709/* end confdefs.h.  */
33710
33711      $curl_includes_sys_socket
33712
33713_ACEOF
33714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33715  $EGREP "CloseSocket" >/dev/null 2>&1; then :
33716
33717      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33718$as_echo "yes" >&6; }
33719      tst_proto_closesocket_camel="yes"
33720
33721else
33722
33723      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33724$as_echo "no" >&6; }
33725      tst_proto_closesocket_camel="no"
33726
33727fi
33728rm -f conftest*
33729
33730  fi
33731  #
33732  if test "$tst_proto_closesocket_camel" = "yes"; then
33733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
33734$as_echo_n "checking if CloseSocket is compilable... " >&6; }
33735    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33736/* end confdefs.h.  */
33737
33738
33739        $curl_includes_sys_socket
33740
33741int main (void)
33742{
33743
33744        if(0 != CloseSocket(0))
33745          return 1;
33746
33747 ;
33748 return 0;
33749}
33750
33751_ACEOF
33752if ac_fn_c_try_compile "$LINENO"; then :
33753
33754      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33755$as_echo "yes" >&6; }
33756      tst_compi_closesocket_camel="yes"
33757
33758else
33759
33760      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33761$as_echo "no" >&6; }
33762      tst_compi_closesocket_camel="no"
33763
33764fi
33765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33766  fi
33767  #
33768  if test "$tst_compi_closesocket_camel" = "yes"; then
33769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
33770$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
33771    if test "x$curl_disallow_closesocket_camel" != "xyes"; then
33772      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33773$as_echo "yes" >&6; }
33774      tst_allow_closesocket_camel="yes"
33775    else
33776      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33777$as_echo "no" >&6; }
33778      tst_allow_closesocket_camel="no"
33779    fi
33780  fi
33781  #
33782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
33783$as_echo_n "checking if CloseSocket might be used... " >&6; }
33784  if test "$tst_links_closesocket_camel" = "yes" &&
33785     test "$tst_proto_closesocket_camel" = "yes" &&
33786     test "$tst_compi_closesocket_camel" = "yes" &&
33787     test "$tst_allow_closesocket_camel" = "yes"; then
33788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33789$as_echo "yes" >&6; }
33790
33791cat >>confdefs.h <<_ACEOF
33792#define HAVE_CLOSESOCKET_CAMEL 1
33793_ACEOF
33794
33795    curl_cv_func_closesocket_camel="yes"
33796  else
33797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33798$as_echo "no" >&6; }
33799    curl_cv_func_closesocket_camel="no"
33800  fi
33801
33802
33803        #
33804  tst_links_connect="unknown"
33805  tst_proto_connect="unknown"
33806  tst_compi_connect="unknown"
33807  tst_allow_connect="unknown"
33808  #
33809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
33810$as_echo_n "checking if connect can be linked... " >&6; }
33811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33812/* end confdefs.h.  */
33813
33814
33815      $curl_includes_winsock2
33816      $curl_includes_bsdsocket
33817      $curl_includes_sys_socket
33818      $curl_includes_socket
33819
33820int main (void)
33821{
33822
33823      if(0 != connect(0, 0, 0))
33824        return 1;
33825
33826 ;
33827 return 0;
33828}
33829
33830_ACEOF
33831if ac_fn_c_try_link "$LINENO"; then :
33832
33833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33834$as_echo "yes" >&6; }
33835    tst_links_connect="yes"
33836
33837else
33838
33839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33840$as_echo "no" >&6; }
33841    tst_links_connect="no"
33842
33843fi
33844rm -f core conftest.err conftest.$ac_objext \
33845    conftest$ac_exeext conftest.$ac_ext
33846  #
33847  if test "$tst_links_connect" = "yes"; then
33848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
33849$as_echo_n "checking if connect is prototyped... " >&6; }
33850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33851/* end confdefs.h.  */
33852
33853      $curl_includes_winsock2
33854      $curl_includes_bsdsocket
33855      $curl_includes_sys_socket
33856      $curl_includes_socket
33857
33858_ACEOF
33859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33860  $EGREP "connect" >/dev/null 2>&1; then :
33861
33862      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33863$as_echo "yes" >&6; }
33864      tst_proto_connect="yes"
33865
33866else
33867
33868      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33869$as_echo "no" >&6; }
33870      tst_proto_connect="no"
33871
33872fi
33873rm -f conftest*
33874
33875  fi
33876  #
33877  if test "$tst_proto_connect" = "yes"; then
33878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
33879$as_echo_n "checking if connect is compilable... " >&6; }
33880    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33881/* end confdefs.h.  */
33882
33883
33884        $curl_includes_winsock2
33885      $curl_includes_bsdsocket
33886        $curl_includes_sys_socket
33887        $curl_includes_socket
33888
33889int main (void)
33890{
33891
33892        if(0 != connect(0, 0, 0))
33893          return 1;
33894
33895 ;
33896 return 0;
33897}
33898
33899_ACEOF
33900if ac_fn_c_try_compile "$LINENO"; then :
33901
33902      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33903$as_echo "yes" >&6; }
33904      tst_compi_connect="yes"
33905
33906else
33907
33908      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33909$as_echo "no" >&6; }
33910      tst_compi_connect="no"
33911
33912fi
33913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33914  fi
33915  #
33916  if test "$tst_compi_connect" = "yes"; then
33917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
33918$as_echo_n "checking if connect usage allowed... " >&6; }
33919    if test "x$curl_disallow_connect" != "xyes"; then
33920      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33921$as_echo "yes" >&6; }
33922      tst_allow_connect="yes"
33923    else
33924      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33925$as_echo "no" >&6; }
33926      tst_allow_connect="no"
33927    fi
33928  fi
33929  #
33930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
33931$as_echo_n "checking if connect might be used... " >&6; }
33932  if test "$tst_links_connect" = "yes" &&
33933     test "$tst_proto_connect" = "yes" &&
33934     test "$tst_compi_connect" = "yes" &&
33935     test "$tst_allow_connect" = "yes"; then
33936    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33937$as_echo "yes" >&6; }
33938
33939cat >>confdefs.h <<_ACEOF
33940#define HAVE_CONNECT 1
33941_ACEOF
33942
33943    curl_cv_func_connect="yes"
33944  else
33945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33946$as_echo "no" >&6; }
33947    curl_cv_func_connect="no"
33948  fi
33949
33950
33951curl_includes_fcntl="\
33952/* includes start */
33953#ifdef HAVE_SYS_TYPES_H
33954#  include <sys/types.h>
33955#endif
33956#ifdef HAVE_UNISTD_H
33957#  include <unistd.h>
33958#endif
33959#ifdef HAVE_FCNTL_H
33960#  include <fcntl.h>
33961#endif
33962/* includes end */"
33963  for ac_header in sys/types.h unistd.h fcntl.h
33964do :
33965  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33966ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
33967"
33968if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33969  cat >>confdefs.h <<_ACEOF
33970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33971_ACEOF
33972
33973fi
33974
33975done
33976
33977
33978
33979    #
33980  tst_links_fcntl="unknown"
33981  tst_proto_fcntl="unknown"
33982  tst_compi_fcntl="unknown"
33983  tst_allow_fcntl="unknown"
33984  #
33985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
33986$as_echo_n "checking if fcntl can be linked... " >&6; }
33987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33988/* end confdefs.h.  */
33989
33990
33991#define fcntl innocuous_fcntl
33992#ifdef __STDC__
33993# include <limits.h>
33994#else
33995# include <assert.h>
33996#endif
33997#undef fcntl
33998#ifdef __cplusplus
33999extern "C"
34000#endif
34001char fcntl ();
34002#if defined __stub_fcntl || defined __stub___fcntl
34003choke me
34004#endif
34005
34006int main (void)
34007{
34008return fcntl ();
34009 ;
34010 return 0;
34011}
34012
34013_ACEOF
34014if ac_fn_c_try_link "$LINENO"; then :
34015
34016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34017$as_echo "yes" >&6; }
34018    tst_links_fcntl="yes"
34019
34020else
34021
34022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34023$as_echo "no" >&6; }
34024    tst_links_fcntl="no"
34025
34026fi
34027rm -f core conftest.err conftest.$ac_objext \
34028    conftest$ac_exeext conftest.$ac_ext
34029  #
34030  if test "$tst_links_fcntl" = "yes"; then
34031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
34032$as_echo_n "checking if fcntl is prototyped... " >&6; }
34033    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34034/* end confdefs.h.  */
34035
34036      $curl_includes_fcntl
34037
34038_ACEOF
34039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34040  $EGREP "fcntl" >/dev/null 2>&1; then :
34041
34042      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34043$as_echo "yes" >&6; }
34044      tst_proto_fcntl="yes"
34045
34046else
34047
34048      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34049$as_echo "no" >&6; }
34050      tst_proto_fcntl="no"
34051
34052fi
34053rm -f conftest*
34054
34055  fi
34056  #
34057  if test "$tst_proto_fcntl" = "yes"; then
34058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
34059$as_echo_n "checking if fcntl is compilable... " >&6; }
34060    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34061/* end confdefs.h.  */
34062
34063
34064        $curl_includes_fcntl
34065
34066int main (void)
34067{
34068
34069        if(0 != fcntl(0, 0, 0))
34070          return 1;
34071
34072 ;
34073 return 0;
34074}
34075
34076_ACEOF
34077if ac_fn_c_try_compile "$LINENO"; then :
34078
34079      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34080$as_echo "yes" >&6; }
34081      tst_compi_fcntl="yes"
34082
34083else
34084
34085      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34086$as_echo "no" >&6; }
34087      tst_compi_fcntl="no"
34088
34089fi
34090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34091  fi
34092  #
34093  if test "$tst_compi_fcntl" = "yes"; then
34094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
34095$as_echo_n "checking if fcntl usage allowed... " >&6; }
34096    if test "x$curl_disallow_fcntl" != "xyes"; then
34097      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34098$as_echo "yes" >&6; }
34099      tst_allow_fcntl="yes"
34100    else
34101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34102$as_echo "no" >&6; }
34103      tst_allow_fcntl="no"
34104    fi
34105  fi
34106  #
34107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
34108$as_echo_n "checking if fcntl might be used... " >&6; }
34109  if test "$tst_links_fcntl" = "yes" &&
34110     test "$tst_proto_fcntl" = "yes" &&
34111     test "$tst_compi_fcntl" = "yes" &&
34112     test "$tst_allow_fcntl" = "yes"; then
34113    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34114$as_echo "yes" >&6; }
34115
34116cat >>confdefs.h <<_ACEOF
34117#define HAVE_FCNTL 1
34118_ACEOF
34119
34120    curl_cv_func_fcntl="yes"
34121
34122  #
34123  tst_compi_fcntl_o_nonblock="unknown"
34124  tst_allow_fcntl_o_nonblock="unknown"
34125  #
34126  case $host_os in
34127    sunos4* | aix3* | beos*)
34128            curl_disallow_fcntl_o_nonblock="yes"
34129      ;;
34130  esac
34131  #
34132  if test "$curl_cv_func_fcntl" = "yes"; then
34133    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
34134$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
34135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34136/* end confdefs.h.  */
34137
34138
34139        $curl_includes_fcntl
34140
34141int main (void)
34142{
34143
34144        int flags = 0;
34145        if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
34146          return 1;
34147
34148 ;
34149 return 0;
34150}
34151
34152_ACEOF
34153if ac_fn_c_try_compile "$LINENO"; then :
34154
34155      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34156$as_echo "yes" >&6; }
34157      tst_compi_fcntl_o_nonblock="yes"
34158
34159else
34160
34161      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34162$as_echo "no" >&6; }
34163      tst_compi_fcntl_o_nonblock="no"
34164
34165fi
34166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34167  fi
34168  #
34169  if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
34170    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
34171$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
34172    if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
34173      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34174$as_echo "yes" >&6; }
34175      tst_allow_fcntl_o_nonblock="yes"
34176    else
34177      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34178$as_echo "no" >&6; }
34179      tst_allow_fcntl_o_nonblock="no"
34180    fi
34181  fi
34182  #
34183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
34184$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
34185  if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
34186     test "$tst_allow_fcntl_o_nonblock" = "yes"; then
34187    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34188$as_echo "yes" >&6; }
34189
34190cat >>confdefs.h <<_ACEOF
34191#define HAVE_FCNTL_O_NONBLOCK 1
34192_ACEOF
34193
34194    curl_cv_func_fcntl_o_nonblock="yes"
34195  else
34196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34197$as_echo "no" >&6; }
34198    curl_cv_func_fcntl_o_nonblock="no"
34199  fi
34200
34201  else
34202    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34203$as_echo "no" >&6; }
34204    curl_cv_func_fcntl="no"
34205  fi
34206
34207
34208curl_includes_ws2tcpip="\
34209/* includes start */
34210#ifdef HAVE_WINDOWS_H
34211#  ifndef WIN32_LEAN_AND_MEAN
34212#    define WIN32_LEAN_AND_MEAN
34213#  endif
34214#  include <windows.h>
34215#  ifdef HAVE_WINSOCK2_H
34216#    include <winsock2.h>
34217#    ifdef HAVE_WS2TCPIP_H
34218#       include <ws2tcpip.h>
34219#    endif
34220#  endif
34221#endif
34222/* includes end */"
34223
34224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
34225$as_echo_n "checking for windows.h... " >&6; }
34226if ${curl_cv_header_windows_h+:} false; then :
34227  $as_echo_n "(cached) " >&6
34228else
34229
34230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34231/* end confdefs.h.  */
34232
34233
34234#undef inline
34235#ifndef WIN32_LEAN_AND_MEAN
34236#define WIN32_LEAN_AND_MEAN
34237#endif
34238#include <windows.h>
34239
34240int main (void)
34241{
34242
34243#if defined(__CYGWIN__) || defined(__CEGCC__)
34244        HAVE_WINDOWS_H shall not be defined.
34245#else
34246        int dummy=2*WINVER;
34247#endif
34248
34249 ;
34250 return 0;
34251}
34252
34253_ACEOF
34254if ac_fn_c_try_compile "$LINENO"; then :
34255
34256      curl_cv_header_windows_h="yes"
34257
34258else
34259
34260      curl_cv_header_windows_h="no"
34261
34262fi
34263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34264
34265fi
34266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
34267$as_echo "$curl_cv_header_windows_h" >&6; }
34268  case "$curl_cv_header_windows_h" in
34269    yes)
34270
34271cat >>confdefs.h <<_ACEOF
34272#define HAVE_WINDOWS_H 1
34273_ACEOF
34274
34275      ;;
34276  esac
34277
34278
34279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
34280$as_echo_n "checking for winsock2.h... " >&6; }
34281if ${curl_cv_header_winsock2_h+:} false; then :
34282  $as_echo_n "(cached) " >&6
34283else
34284
34285    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34286/* end confdefs.h.  */
34287
34288
34289#undef inline
34290#ifndef WIN32_LEAN_AND_MEAN
34291#define WIN32_LEAN_AND_MEAN
34292#endif
34293#include <windows.h>
34294#include <winsock2.h>
34295
34296int main (void)
34297{
34298
34299#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
34300        HAVE_WINSOCK2_H shall not be defined.
34301#else
34302        int dummy=2*IPPROTO_ESP;
34303#endif
34304
34305 ;
34306 return 0;
34307}
34308
34309_ACEOF
34310if ac_fn_c_try_compile "$LINENO"; then :
34311
34312      curl_cv_header_winsock2_h="yes"
34313
34314else
34315
34316      curl_cv_header_winsock2_h="no"
34317
34318fi
34319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34320
34321fi
34322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
34323$as_echo "$curl_cv_header_winsock2_h" >&6; }
34324  case "$curl_cv_header_winsock2_h" in
34325    yes)
34326
34327cat >>confdefs.h <<_ACEOF
34328#define HAVE_WINSOCK2_H 1
34329_ACEOF
34330
34331      ;;
34332  esac
34333
34334
34335    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
34336$as_echo_n "checking for ws2tcpip.h... " >&6; }
34337if ${curl_cv_header_ws2tcpip_h+:} false; then :
34338  $as_echo_n "(cached) " >&6
34339else
34340
34341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34342/* end confdefs.h.  */
34343
34344
34345#undef inline
34346#ifndef WIN32_LEAN_AND_MEAN
34347#define WIN32_LEAN_AND_MEAN
34348#endif
34349#include <windows.h>
34350#include <winsock2.h>
34351#include <ws2tcpip.h>
34352
34353int main (void)
34354{
34355
34356#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
34357        HAVE_WS2TCPIP_H shall not be defined.
34358#else
34359        int dummy=2*IP_PKTINFO;
34360#endif
34361
34362 ;
34363 return 0;
34364}
34365
34366_ACEOF
34367if ac_fn_c_try_compile "$LINENO"; then :
34368
34369      curl_cv_header_ws2tcpip_h="yes"
34370
34371else
34372
34373      curl_cv_header_ws2tcpip_h="no"
34374
34375fi
34376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34377
34378fi
34379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
34380$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
34381  case "$curl_cv_header_ws2tcpip_h" in
34382    yes)
34383
34384cat >>confdefs.h <<_ACEOF
34385#define HAVE_WS2TCPIP_H 1
34386_ACEOF
34387
34388      ;;
34389  esac
34390
34391
34392
34393curl_includes_netdb="\
34394/* includes start */
34395#ifdef HAVE_SYS_TYPES_H
34396#  include <sys/types.h>
34397#endif
34398#ifdef HAVE_NETDB_H
34399#  include <netdb.h>
34400#endif
34401/* includes end */"
34402  for ac_header in sys/types.h netdb.h
34403do :
34404  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34405ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
34406"
34407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34408  cat >>confdefs.h <<_ACEOF
34409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34410_ACEOF
34411
34412fi
34413
34414done
34415
34416
34417
34418        #
34419  tst_links_freeaddrinfo="unknown"
34420  tst_proto_freeaddrinfo="unknown"
34421  tst_compi_freeaddrinfo="unknown"
34422  tst_allow_freeaddrinfo="unknown"
34423  #
34424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
34425$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
34426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34427/* end confdefs.h.  */
34428
34429
34430      $curl_includes_ws2tcpip
34431      $curl_includes_sys_socket
34432      $curl_includes_netdb
34433
34434int main (void)
34435{
34436
34437      freeaddrinfo(0);
34438
34439 ;
34440 return 0;
34441}
34442
34443_ACEOF
34444if ac_fn_c_try_link "$LINENO"; then :
34445
34446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34447$as_echo "yes" >&6; }
34448    tst_links_freeaddrinfo="yes"
34449
34450else
34451
34452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34453$as_echo "no" >&6; }
34454    tst_links_freeaddrinfo="no"
34455
34456fi
34457rm -f core conftest.err conftest.$ac_objext \
34458    conftest$ac_exeext conftest.$ac_ext
34459  #
34460  if test "$tst_links_freeaddrinfo" = "yes"; then
34461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
34462$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
34463    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34464/* end confdefs.h.  */
34465
34466      $curl_includes_ws2tcpip
34467      $curl_includes_sys_socket
34468      $curl_includes_netdb
34469
34470_ACEOF
34471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34472  $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
34473
34474      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34475$as_echo "yes" >&6; }
34476      tst_proto_freeaddrinfo="yes"
34477
34478else
34479
34480      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34481$as_echo "no" >&6; }
34482      tst_proto_freeaddrinfo="no"
34483
34484fi
34485rm -f conftest*
34486
34487  fi
34488  #
34489  if test "$tst_proto_freeaddrinfo" = "yes"; then
34490    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
34491$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
34492    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34493/* end confdefs.h.  */
34494
34495
34496        $curl_includes_ws2tcpip
34497        $curl_includes_sys_socket
34498        $curl_includes_netdb
34499
34500int main (void)
34501{
34502
34503        freeaddrinfo(0);
34504
34505 ;
34506 return 0;
34507}
34508
34509_ACEOF
34510if ac_fn_c_try_compile "$LINENO"; then :
34511
34512      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34513$as_echo "yes" >&6; }
34514      tst_compi_freeaddrinfo="yes"
34515
34516else
34517
34518      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34519$as_echo "no" >&6; }
34520      tst_compi_freeaddrinfo="no"
34521
34522fi
34523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34524  fi
34525  #
34526  if test "$tst_compi_freeaddrinfo" = "yes"; then
34527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
34528$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
34529    if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
34530      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34531$as_echo "yes" >&6; }
34532      tst_allow_freeaddrinfo="yes"
34533    else
34534      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34535$as_echo "no" >&6; }
34536      tst_allow_freeaddrinfo="no"
34537    fi
34538  fi
34539  #
34540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
34541$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
34542  if test "$tst_links_freeaddrinfo" = "yes" &&
34543     test "$tst_proto_freeaddrinfo" = "yes" &&
34544     test "$tst_compi_freeaddrinfo" = "yes" &&
34545     test "$tst_allow_freeaddrinfo" = "yes"; then
34546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34547$as_echo "yes" >&6; }
34548
34549cat >>confdefs.h <<_ACEOF
34550#define HAVE_FREEADDRINFO 1
34551_ACEOF
34552
34553    curl_cv_func_freeaddrinfo="yes"
34554  else
34555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34556$as_echo "no" >&6; }
34557    curl_cv_func_freeaddrinfo="no"
34558  fi
34559
34560
34561curl_includes_ifaddrs="\
34562/* includes start */
34563#ifdef HAVE_SYS_TYPES_H
34564#  include <sys/types.h>
34565#endif
34566#ifdef HAVE_SYS_SOCKET_H
34567#  include <sys/socket.h>
34568#endif
34569#ifdef HAVE_NETINET_IN_H
34570#  include <netinet/in.h>
34571#endif
34572#ifdef HAVE_IFADDRS_H
34573#  include <ifaddrs.h>
34574#endif
34575/* includes end */"
34576  for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
34577do :
34578  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34579ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
34580"
34581if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34582  cat >>confdefs.h <<_ACEOF
34583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34584_ACEOF
34585
34586fi
34587
34588done
34589
34590
34591
34592    #
34593  tst_links_freeifaddrs="unknown"
34594  tst_proto_freeifaddrs="unknown"
34595  tst_compi_freeifaddrs="unknown"
34596  tst_allow_freeifaddrs="unknown"
34597  #
34598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
34599$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
34600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34601/* end confdefs.h.  */
34602
34603
34604#define freeifaddrs innocuous_freeifaddrs
34605#ifdef __STDC__
34606# include <limits.h>
34607#else
34608# include <assert.h>
34609#endif
34610#undef freeifaddrs
34611#ifdef __cplusplus
34612extern "C"
34613#endif
34614char freeifaddrs ();
34615#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
34616choke me
34617#endif
34618
34619int main (void)
34620{
34621return freeifaddrs ();
34622 ;
34623 return 0;
34624}
34625
34626_ACEOF
34627if ac_fn_c_try_link "$LINENO"; then :
34628
34629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34630$as_echo "yes" >&6; }
34631    tst_links_freeifaddrs="yes"
34632
34633else
34634
34635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34636$as_echo "no" >&6; }
34637    tst_links_freeifaddrs="no"
34638
34639fi
34640rm -f core conftest.err conftest.$ac_objext \
34641    conftest$ac_exeext conftest.$ac_ext
34642  #
34643  if test "$tst_links_freeifaddrs" = "yes"; then
34644    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
34645$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
34646    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647/* end confdefs.h.  */
34648
34649      $curl_includes_ifaddrs
34650
34651_ACEOF
34652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34653  $EGREP "freeifaddrs" >/dev/null 2>&1; then :
34654
34655      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34656$as_echo "yes" >&6; }
34657      tst_proto_freeifaddrs="yes"
34658
34659else
34660
34661      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34662$as_echo "no" >&6; }
34663      tst_proto_freeifaddrs="no"
34664
34665fi
34666rm -f conftest*
34667
34668  fi
34669  #
34670  if test "$tst_proto_freeifaddrs" = "yes"; then
34671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
34672$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
34673    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34674/* end confdefs.h.  */
34675
34676
34677        $curl_includes_ifaddrs
34678
34679int main (void)
34680{
34681
34682        freeifaddrs(0);
34683
34684 ;
34685 return 0;
34686}
34687
34688_ACEOF
34689if ac_fn_c_try_compile "$LINENO"; then :
34690
34691      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34692$as_echo "yes" >&6; }
34693      tst_compi_freeifaddrs="yes"
34694
34695else
34696
34697      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34698$as_echo "no" >&6; }
34699      tst_compi_freeifaddrs="no"
34700
34701fi
34702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34703  fi
34704  #
34705  if test "$tst_compi_freeifaddrs" = "yes"; then
34706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
34707$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
34708    if test "x$curl_disallow_freeifaddrs" != "xyes"; then
34709      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34710$as_echo "yes" >&6; }
34711      tst_allow_freeifaddrs="yes"
34712    else
34713      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34714$as_echo "no" >&6; }
34715      tst_allow_freeifaddrs="no"
34716    fi
34717  fi
34718  #
34719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
34720$as_echo_n "checking if freeifaddrs might be used... " >&6; }
34721  if test "$tst_links_freeifaddrs" = "yes" &&
34722     test "$tst_proto_freeifaddrs" = "yes" &&
34723     test "$tst_compi_freeifaddrs" = "yes" &&
34724     test "$tst_allow_freeifaddrs" = "yes"; then
34725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34726$as_echo "yes" >&6; }
34727
34728cat >>confdefs.h <<_ACEOF
34729#define HAVE_FREEIFADDRS 1
34730_ACEOF
34731
34732    curl_cv_func_freeifaddrs="yes"
34733  else
34734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34735$as_echo "no" >&6; }
34736    curl_cv_func_freeifaddrs="no"
34737  fi
34738
34739
34740curl_includes_sys_xattr="\
34741/* includes start */
34742#ifdef HAVE_SYS_TYPES_H
34743#  include <sys/types.h>
34744#endif
34745#ifdef HAVE_SYS_XATTR_H
34746#  include <sys/xattr.h>
34747#endif
34748/* includes end */"
34749  for ac_header in sys/types.h sys/xattr.h
34750do :
34751  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34752ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
34753"
34754if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34755  cat >>confdefs.h <<_ACEOF
34756#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34757_ACEOF
34758
34759fi
34760
34761done
34762
34763
34764
34765    #
34766  tst_links_fsetxattr="unknown"
34767  tst_proto_fsetxattr="unknown"
34768  tst_compi_fsetxattr="unknown"
34769  tst_allow_fsetxattr="unknown"
34770  tst_nargs_fsetxattr="unknown"
34771  #
34772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
34773$as_echo_n "checking if fsetxattr can be linked... " >&6; }
34774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34775/* end confdefs.h.  */
34776
34777
34778#define fsetxattr innocuous_fsetxattr
34779#ifdef __STDC__
34780# include <limits.h>
34781#else
34782# include <assert.h>
34783#endif
34784#undef fsetxattr
34785#ifdef __cplusplus
34786extern "C"
34787#endif
34788char fsetxattr ();
34789#if defined __stub_fsetxattr || defined __stub___fsetxattr
34790choke me
34791#endif
34792
34793int main (void)
34794{
34795return fsetxattr ();
34796 ;
34797 return 0;
34798}
34799
34800_ACEOF
34801if ac_fn_c_try_link "$LINENO"; then :
34802
34803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34804$as_echo "yes" >&6; }
34805    tst_links_fsetxattr="yes"
34806
34807else
34808
34809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34810$as_echo "no" >&6; }
34811    tst_links_fsetxattr="no"
34812
34813fi
34814rm -f core conftest.err conftest.$ac_objext \
34815    conftest$ac_exeext conftest.$ac_ext
34816  #
34817  if test "$tst_links_fsetxattr" = "yes"; then
34818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
34819$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
34820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34821/* end confdefs.h.  */
34822
34823      $curl_includes_sys_xattr
34824
34825_ACEOF
34826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34827  $EGREP "fsetxattr" >/dev/null 2>&1; then :
34828
34829      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34830$as_echo "yes" >&6; }
34831      tst_proto_fsetxattr="yes"
34832
34833else
34834
34835      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34836$as_echo "no" >&6; }
34837      tst_proto_fsetxattr="no"
34838
34839fi
34840rm -f conftest*
34841
34842  fi
34843  #
34844  if test "$tst_proto_fsetxattr" = "yes"; then
34845    if test "$tst_nargs_fsetxattr" = "unknown"; then
34846      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
34847$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
34848      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34849/* end confdefs.h.  */
34850
34851
34852          $curl_includes_sys_xattr
34853
34854int main (void)
34855{
34856
34857          if(0 != fsetxattr(0, 0, 0, 0, 0))
34858            return 1;
34859
34860 ;
34861 return 0;
34862}
34863
34864_ACEOF
34865if ac_fn_c_try_compile "$LINENO"; then :
34866
34867        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34868$as_echo "yes" >&6; }
34869        tst_compi_fsetxattr="yes"
34870        tst_nargs_fsetxattr="5"
34871
34872else
34873
34874        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34875$as_echo "no" >&6; }
34876        tst_compi_fsetxattr="no"
34877
34878fi
34879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880    fi
34881    if test "$tst_nargs_fsetxattr" = "unknown"; then
34882      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
34883$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
34884      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34885/* end confdefs.h.  */
34886
34887
34888          $curl_includes_sys_xattr
34889
34890int main (void)
34891{
34892
34893          if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
34894            return 1;
34895
34896 ;
34897 return 0;
34898}
34899
34900_ACEOF
34901if ac_fn_c_try_compile "$LINENO"; then :
34902
34903        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34904$as_echo "yes" >&6; }
34905        tst_compi_fsetxattr="yes"
34906        tst_nargs_fsetxattr="6"
34907
34908else
34909
34910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34911$as_echo "no" >&6; }
34912        tst_compi_fsetxattr="no"
34913
34914fi
34915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34916    fi
34917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
34918$as_echo_n "checking if fsetxattr is compilable... " >&6; }
34919    if test "$tst_compi_fsetxattr" = "yes"; then
34920      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34921$as_echo "yes" >&6; }
34922    else
34923      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34924$as_echo "no" >&6; }
34925    fi
34926  fi
34927  #
34928  if test "$tst_compi_fsetxattr" = "yes"; then
34929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
34930$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
34931    if test "x$curl_disallow_fsetxattr" != "xyes"; then
34932      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34933$as_echo "yes" >&6; }
34934      tst_allow_fsetxattr="yes"
34935    else
34936      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34937$as_echo "no" >&6; }
34938      tst_allow_fsetxattr="no"
34939    fi
34940  fi
34941  #
34942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
34943$as_echo_n "checking if fsetxattr might be used... " >&6; }
34944  if test "$tst_links_fsetxattr" = "yes" &&
34945     test "$tst_proto_fsetxattr" = "yes" &&
34946     test "$tst_compi_fsetxattr" = "yes" &&
34947     test "$tst_allow_fsetxattr" = "yes"; then
34948    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34949$as_echo "yes" >&6; }
34950
34951cat >>confdefs.h <<_ACEOF
34952#define HAVE_FSETXATTR 1
34953_ACEOF
34954
34955            #
34956    if test "$tst_nargs_fsetxattr" -eq "5"; then
34957
34958$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
34959
34960    elif test "$tst_nargs_fsetxattr" -eq "6"; then
34961
34962$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
34963
34964    fi
34965    #
34966    curl_cv_func_fsetxattr="yes"
34967  else
34968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34969$as_echo "no" >&6; }
34970    curl_cv_func_fsetxattr="no"
34971  fi
34972
34973
34974    #
34975  tst_links_ftruncate="unknown"
34976  tst_proto_ftruncate="unknown"
34977  tst_compi_ftruncate="unknown"
34978  tst_allow_ftruncate="unknown"
34979  #
34980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
34981$as_echo_n "checking if ftruncate can be linked... " >&6; }
34982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34983/* end confdefs.h.  */
34984
34985
34986#define ftruncate innocuous_ftruncate
34987#ifdef __STDC__
34988# include <limits.h>
34989#else
34990# include <assert.h>
34991#endif
34992#undef ftruncate
34993#ifdef __cplusplus
34994extern "C"
34995#endif
34996char ftruncate ();
34997#if defined __stub_ftruncate || defined __stub___ftruncate
34998choke me
34999#endif
35000
35001int main (void)
35002{
35003return ftruncate ();
35004 ;
35005 return 0;
35006}
35007
35008_ACEOF
35009if ac_fn_c_try_link "$LINENO"; then :
35010
35011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35012$as_echo "yes" >&6; }
35013    tst_links_ftruncate="yes"
35014
35015else
35016
35017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35018$as_echo "no" >&6; }
35019    tst_links_ftruncate="no"
35020
35021fi
35022rm -f core conftest.err conftest.$ac_objext \
35023    conftest$ac_exeext conftest.$ac_ext
35024  #
35025  if test "$tst_links_ftruncate" = "yes"; then
35026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
35027$as_echo_n "checking if ftruncate is prototyped... " >&6; }
35028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35029/* end confdefs.h.  */
35030
35031      $curl_includes_unistd
35032
35033_ACEOF
35034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35035  $EGREP "ftruncate" >/dev/null 2>&1; then :
35036
35037      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35038$as_echo "yes" >&6; }
35039      tst_proto_ftruncate="yes"
35040
35041else
35042
35043      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35044$as_echo "no" >&6; }
35045      tst_proto_ftruncate="no"
35046
35047fi
35048rm -f conftest*
35049
35050  fi
35051  #
35052  if test "$tst_proto_ftruncate" = "yes"; then
35053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
35054$as_echo_n "checking if ftruncate is compilable... " >&6; }
35055    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35056/* end confdefs.h.  */
35057
35058
35059        $curl_includes_unistd
35060
35061int main (void)
35062{
35063
35064        if(0 != ftruncate(0, 0))
35065          return 1;
35066
35067 ;
35068 return 0;
35069}
35070
35071_ACEOF
35072if ac_fn_c_try_compile "$LINENO"; then :
35073
35074      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35075$as_echo "yes" >&6; }
35076      tst_compi_ftruncate="yes"
35077
35078else
35079
35080      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35081$as_echo "no" >&6; }
35082      tst_compi_ftruncate="no"
35083
35084fi
35085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35086  fi
35087  #
35088  if test "$tst_compi_ftruncate" = "yes"; then
35089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
35090$as_echo_n "checking if ftruncate usage allowed... " >&6; }
35091    if test "x$curl_disallow_ftruncate" != "xyes"; then
35092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35093$as_echo "yes" >&6; }
35094      tst_allow_ftruncate="yes"
35095    else
35096      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35097$as_echo "no" >&6; }
35098      tst_allow_ftruncate="no"
35099    fi
35100  fi
35101  #
35102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
35103$as_echo_n "checking if ftruncate might be used... " >&6; }
35104  if test "$tst_links_ftruncate" = "yes" &&
35105     test "$tst_proto_ftruncate" = "yes" &&
35106     test "$tst_compi_ftruncate" = "yes" &&
35107     test "$tst_allow_ftruncate" = "yes"; then
35108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35109$as_echo "yes" >&6; }
35110
35111cat >>confdefs.h <<_ACEOF
35112#define HAVE_FTRUNCATE 1
35113_ACEOF
35114
35115    curl_cv_func_ftruncate="yes"
35116  else
35117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35118$as_echo "no" >&6; }
35119    curl_cv_func_ftruncate="no"
35120  fi
35121
35122
35123curl_includes_stdlib="\
35124/* includes start */
35125#ifdef HAVE_SYS_TYPES_H
35126#  include <sys/types.h>
35127#endif
35128#ifdef HAVE_STDLIB_H
35129#  include <stdlib.h>
35130#endif
35131/* includes end */"
35132  for ac_header in sys/types.h stdlib.h
35133do :
35134  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35135ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
35136"
35137if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35138  cat >>confdefs.h <<_ACEOF
35139#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35140_ACEOF
35141
35142fi
35143
35144done
35145
35146
35147
35148              #
35149  tst_links_getaddrinfo="unknown"
35150  tst_proto_getaddrinfo="unknown"
35151  tst_compi_getaddrinfo="unknown"
35152  tst_works_getaddrinfo="unknown"
35153  tst_allow_getaddrinfo="unknown"
35154  tst_tsafe_getaddrinfo="unknown"
35155  #
35156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
35157$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
35158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35159/* end confdefs.h.  */
35160
35161
35162      $curl_includes_ws2tcpip
35163      $curl_includes_sys_socket
35164      $curl_includes_netdb
35165
35166int main (void)
35167{
35168
35169      if(0 != getaddrinfo(0, 0, 0, 0))
35170        return 1;
35171
35172 ;
35173 return 0;
35174}
35175
35176_ACEOF
35177if ac_fn_c_try_link "$LINENO"; then :
35178
35179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35180$as_echo "yes" >&6; }
35181    tst_links_getaddrinfo="yes"
35182
35183else
35184
35185    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35186$as_echo "no" >&6; }
35187    tst_links_getaddrinfo="no"
35188
35189fi
35190rm -f core conftest.err conftest.$ac_objext \
35191    conftest$ac_exeext conftest.$ac_ext
35192  #
35193  if test "$tst_links_getaddrinfo" = "yes"; then
35194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
35195$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
35196    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35197/* end confdefs.h.  */
35198
35199      $curl_includes_ws2tcpip
35200      $curl_includes_sys_socket
35201      $curl_includes_netdb
35202
35203_ACEOF
35204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35205  $EGREP "getaddrinfo" >/dev/null 2>&1; then :
35206
35207      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35208$as_echo "yes" >&6; }
35209      tst_proto_getaddrinfo="yes"
35210
35211else
35212
35213      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35214$as_echo "no" >&6; }
35215      tst_proto_getaddrinfo="no"
35216
35217fi
35218rm -f conftest*
35219
35220  fi
35221  #
35222  if test "$tst_proto_getaddrinfo" = "yes"; then
35223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
35224$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
35225    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35226/* end confdefs.h.  */
35227
35228
35229        $curl_includes_ws2tcpip
35230        $curl_includes_sys_socket
35231        $curl_includes_netdb
35232
35233int main (void)
35234{
35235
35236        if(0 != getaddrinfo(0, 0, 0, 0))
35237          return 1;
35238
35239 ;
35240 return 0;
35241}
35242
35243_ACEOF
35244if ac_fn_c_try_compile "$LINENO"; then :
35245
35246      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35247$as_echo "yes" >&6; }
35248      tst_compi_getaddrinfo="yes"
35249
35250else
35251
35252      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35253$as_echo "no" >&6; }
35254      tst_compi_getaddrinfo="no"
35255
35256fi
35257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35258  fi
35259  #
35260    if test "x$cross_compiling" != "xyes" &&
35261    test "$tst_compi_getaddrinfo" = "yes"; then
35262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
35263$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
35264
35265   old=$LD_LIBRARY_PATH
35266   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35267   export LD_LIBRARY_PATH
35268   if test "$cross_compiling" = yes; then :
35269  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35271as_fn_error $? "cannot run test program while cross compiling
35272See \`config.log' for more details" "$LINENO" 5; }
35273else
35274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35275/* end confdefs.h.  */
35276
35277
35278        $curl_includes_ws2tcpip
35279        $curl_includes_stdlib
35280        $curl_includes_string
35281        $curl_includes_sys_socket
35282        $curl_includes_netdb
35283
35284int main (void)
35285{
35286
35287        struct addrinfo hints;
35288        struct addrinfo *ai = 0;
35289        int error;
35290
35291        #ifdef HAVE_WINSOCK2_H
35292        WSADATA wsa;
35293        if (WSAStartup(MAKEWORD(2,2), &wsa))
35294                exit(2);
35295        #endif
35296
35297        memset(&hints, 0, sizeof(hints));
35298        hints.ai_flags = AI_NUMERICHOST;
35299        hints.ai_family = AF_UNSPEC;
35300        hints.ai_socktype = SOCK_STREAM;
35301        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
35302        if(error || !ai)
35303          exit(1); /* fail */
35304        else
35305          exit(0);
35306
35307 ;
35308 return 0;
35309}
35310
35311_ACEOF
35312if ac_fn_c_try_run "$LINENO"; then :
35313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35314$as_echo "yes" >&6; }
35315      tst_works_getaddrinfo="yes"
35316
35317else
35318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35319$as_echo "no" >&6; }
35320      tst_works_getaddrinfo="no"
35321
35322fi
35323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35324  conftest.$ac_objext conftest.beam conftest.$ac_ext
35325fi
35326
35327   LD_LIBRARY_PATH=$old # restore
35328
35329  fi
35330  #
35331  if test "$tst_compi_getaddrinfo" = "yes" &&
35332    test "$tst_works_getaddrinfo" != "no"; then
35333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
35334$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
35335    if test "x$curl_disallow_getaddrinfo" != "xyes"; then
35336      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35337$as_echo "yes" >&6; }
35338      tst_allow_getaddrinfo="yes"
35339    else
35340      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35341$as_echo "no" >&6; }
35342      tst_allow_getaddrinfo="no"
35343    fi
35344  fi
35345  #
35346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
35347$as_echo_n "checking if getaddrinfo might be used... " >&6; }
35348  if test "$tst_links_getaddrinfo" = "yes" &&
35349     test "$tst_proto_getaddrinfo" = "yes" &&
35350     test "$tst_compi_getaddrinfo" = "yes" &&
35351     test "$tst_allow_getaddrinfo" = "yes" &&
35352     test "$tst_works_getaddrinfo" != "no"; then
35353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35354$as_echo "yes" >&6; }
35355
35356cat >>confdefs.h <<_ACEOF
35357#define HAVE_GETADDRINFO 1
35358_ACEOF
35359
35360    curl_cv_func_getaddrinfo="yes"
35361  else
35362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35363$as_echo "no" >&6; }
35364    curl_cv_func_getaddrinfo="no"
35365    curl_cv_func_getaddrinfo_threadsafe="no"
35366  fi
35367  #
35368  if test "$curl_cv_func_getaddrinfo" = "yes"; then
35369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
35370$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
35371    case $host_os in
35372      aix[1234].* | aix5.[01].*)
35373                tst_tsafe_getaddrinfo="no"
35374        ;;
35375      aix*)
35376                tst_tsafe_getaddrinfo="yes"
35377        ;;
35378      darwin[12345].*)
35379                tst_tsafe_getaddrinfo="no"
35380        ;;
35381      darwin*)
35382                tst_tsafe_getaddrinfo="yes"
35383        ;;
35384      freebsd[1234].* | freebsd5.[1234]*)
35385                tst_tsafe_getaddrinfo="no"
35386        ;;
35387      freebsd*)
35388                tst_tsafe_getaddrinfo="yes"
35389        ;;
35390      hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
35391                tst_tsafe_getaddrinfo="no"
35392        ;;
35393      hpux*)
35394                tst_tsafe_getaddrinfo="yes"
35395        ;;
35396      netbsd[123].*)
35397                tst_tsafe_getaddrinfo="no"
35398        ;;
35399      netbsd*)
35400                tst_tsafe_getaddrinfo="yes"
35401        ;;
35402      *bsd*)
35403                tst_tsafe_getaddrinfo="no"
35404        ;;
35405      solaris2*)
35406                tst_tsafe_getaddrinfo="yes"
35407        ;;
35408    esac
35409    if test "$tst_tsafe_getaddrinfo" = "unknown" &&
35410       test "$curl_cv_native_windows" = "yes"; then
35411      tst_tsafe_getaddrinfo="yes"
35412    fi
35413    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
35414
35415
35416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35417/* end confdefs.h.  */
35418
35419
35420        $curl_includes_sys_socket
35421        $curl_includes_netdb
35422
35423int main (void)
35424{
35425#ifdef h_errno
35426  return 0;
35427#else
35428  force compilation error
35429#endif
35430}
35431
35432
35433_ACEOF
35434if ac_fn_c_try_compile "$LINENO"; then :
35435
35436    tst_symbol_defined="yes"
35437
35438else
35439
35440    tst_symbol_defined="no"
35441
35442fi
35443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35444  if test "$tst_symbol_defined" = "yes"; then
35445    curl_cv_have_def_h_errno=yes
35446
35447  else
35448    curl_cv_have_def_h_errno=no
35449
35450  fi
35451
35452      if test "$curl_cv_have_def_h_errno" = "yes"; then
35453        tst_h_errno_macro="yes"
35454      else
35455        tst_h_errno_macro="no"
35456      fi
35457      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35458/* end confdefs.h.  */
35459
35460
35461          $curl_includes_sys_socket
35462          $curl_includes_netdb
35463
35464int main (void)
35465{
35466
35467          h_errno = 2;
35468          if(0 != h_errno)
35469            return 1;
35470
35471 ;
35472 return 0;
35473}
35474
35475_ACEOF
35476if ac_fn_c_try_compile "$LINENO"; then :
35477
35478        tst_h_errno_modifiable_lvalue="yes"
35479
35480else
35481
35482        tst_h_errno_modifiable_lvalue="no"
35483
35484fi
35485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35486      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35487/* end confdefs.h.  */
35488
35489
35490
35491int main (void)
35492{
35493
35494#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
35495          return 0;
35496#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
35497          return 0;
35498#else
35499          force compilation error
35500#endif
35501
35502 ;
35503 return 0;
35504}
35505
35506_ACEOF
35507if ac_fn_c_try_compile "$LINENO"; then :
35508
35509        tst_h_errno_sbs_issue_7="yes"
35510
35511else
35512
35513        tst_h_errno_sbs_issue_7="no"
35514
35515fi
35516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35517      if test "$tst_h_errno_macro" = "no" &&
35518         test "$tst_h_errno_modifiable_lvalue" = "no" &&
35519         test "$tst_h_errno_sbs_issue_7" = "no"; then
35520        tst_tsafe_getaddrinfo="no"
35521      else
35522        tst_tsafe_getaddrinfo="yes"
35523      fi
35524    fi
35525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
35526$as_echo "$tst_tsafe_getaddrinfo" >&6; }
35527    if test "$tst_tsafe_getaddrinfo" = "yes"; then
35528
35529cat >>confdefs.h <<_ACEOF
35530#define HAVE_GETADDRINFO_THREADSAFE 1
35531_ACEOF
35532
35533      curl_cv_func_getaddrinfo_threadsafe="yes"
35534    else
35535      curl_cv_func_getaddrinfo_threadsafe="no"
35536    fi
35537  fi
35538
35539
35540      #
35541  tst_links_gai_strerror="unknown"
35542  tst_proto_gai_strerror="unknown"
35543  tst_compi_gai_strerror="unknown"
35544  tst_allow_gai_strerror="unknown"
35545  #
35546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
35547$as_echo_n "checking if gai_strerror can be linked... " >&6; }
35548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35549/* end confdefs.h.  */
35550
35551
35552      $curl_includes_winsock2
35553      $curl_includes_bsdsocket
35554      $curl_includes_netdb
35555
35556int main (void)
35557{
35558
35559      if(0 != gai_strerror(0))
35560        return 1;
35561
35562 ;
35563 return 0;
35564}
35565
35566_ACEOF
35567if ac_fn_c_try_link "$LINENO"; then :
35568
35569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35570$as_echo "yes" >&6; }
35571    tst_links_gai_strerror="yes"
35572
35573else
35574
35575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35576$as_echo "no" >&6; }
35577    tst_links_gai_strerror="no"
35578
35579fi
35580rm -f core conftest.err conftest.$ac_objext \
35581    conftest$ac_exeext conftest.$ac_ext
35582  #
35583  if test "$tst_links_gai_strerror" = "yes"; then
35584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
35585$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
35586    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35587/* end confdefs.h.  */
35588
35589      $curl_includes_winsock2
35590      $curl_includes_bsdsocket
35591      $curl_includes_netdb
35592
35593_ACEOF
35594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35595  $EGREP "gai_strerror" >/dev/null 2>&1; then :
35596
35597      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35598$as_echo "yes" >&6; }
35599      tst_proto_gai_strerror="yes"
35600
35601else
35602
35603      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35604$as_echo "no" >&6; }
35605      tst_proto_gai_strerror="no"
35606
35607fi
35608rm -f conftest*
35609
35610  fi
35611  #
35612  if test "$tst_proto_gai_strerror" = "yes"; then
35613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
35614$as_echo_n "checking if gai_strerror is compilable... " >&6; }
35615    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35616/* end confdefs.h.  */
35617
35618
35619        $curl_includes_winsock2
35620      $curl_includes_bsdsocket
35621        $curl_includes_netdb
35622
35623int main (void)
35624{
35625
35626        if(0 != gai_strerror(0))
35627          return 1;
35628
35629 ;
35630 return 0;
35631}
35632
35633_ACEOF
35634if ac_fn_c_try_compile "$LINENO"; then :
35635
35636      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35637$as_echo "yes" >&6; }
35638      tst_compi_gai_strerror="yes"
35639
35640else
35641
35642      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35643$as_echo "no" >&6; }
35644      tst_compi_gai_strerror="no"
35645
35646fi
35647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35648  fi
35649  #
35650  if test "$tst_compi_gai_strerror" = "yes"; then
35651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
35652$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
35653    if test "x$curl_disallow_gai_strerror" != "xyes"; then
35654      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35655$as_echo "yes" >&6; }
35656      tst_allow_gai_strerror="yes"
35657    else
35658      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35659$as_echo "no" >&6; }
35660      tst_allow_gai_strerror="no"
35661    fi
35662  fi
35663  #
35664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
35665$as_echo_n "checking if gai_strerror might be used... " >&6; }
35666  if test "$tst_links_gai_strerror" = "yes" &&
35667     test "$tst_proto_gai_strerror" = "yes" &&
35668     test "$tst_compi_gai_strerror" = "yes" &&
35669     test "$tst_allow_gai_strerror" = "yes"; then
35670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35671$as_echo "yes" >&6; }
35672
35673cat >>confdefs.h <<_ACEOF
35674#define HAVE_GAI_STRERROR 1
35675_ACEOF
35676
35677    curl_cv_func_gai_strerror="yes"
35678  else
35679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35680$as_echo "no" >&6; }
35681    curl_cv_func_gai_strerror="no"
35682  fi
35683
35684
35685      #
35686  tst_links_gethostbyaddr="unknown"
35687  tst_proto_gethostbyaddr="unknown"
35688  tst_compi_gethostbyaddr="unknown"
35689  tst_allow_gethostbyaddr="unknown"
35690  #
35691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
35692$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
35693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35694/* end confdefs.h.  */
35695
35696
35697      $curl_includes_winsock2
35698      $curl_includes_bsdsocket
35699      $curl_includes_netdb
35700
35701int main (void)
35702{
35703
35704      if(0 != gethostbyaddr(0, 0, 0))
35705        return 1;
35706
35707 ;
35708 return 0;
35709}
35710
35711_ACEOF
35712if ac_fn_c_try_link "$LINENO"; then :
35713
35714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35715$as_echo "yes" >&6; }
35716    tst_links_gethostbyaddr="yes"
35717
35718else
35719
35720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35721$as_echo "no" >&6; }
35722    tst_links_gethostbyaddr="no"
35723
35724fi
35725rm -f core conftest.err conftest.$ac_objext \
35726    conftest$ac_exeext conftest.$ac_ext
35727  #
35728  if test "$tst_links_gethostbyaddr" = "yes"; then
35729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
35730$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
35731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35732/* end confdefs.h.  */
35733
35734      $curl_includes_winsock2
35735      $curl_includes_bsdsocket
35736      $curl_includes_netdb
35737
35738_ACEOF
35739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35740  $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
35741
35742      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35743$as_echo "yes" >&6; }
35744      tst_proto_gethostbyaddr="yes"
35745
35746else
35747
35748      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35749$as_echo "no" >&6; }
35750      tst_proto_gethostbyaddr="no"
35751
35752fi
35753rm -f conftest*
35754
35755  fi
35756  #
35757  if test "$tst_proto_gethostbyaddr" = "yes"; then
35758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
35759$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
35760    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35761/* end confdefs.h.  */
35762
35763
35764        $curl_includes_winsock2
35765      $curl_includes_bsdsocket
35766        $curl_includes_netdb
35767
35768int main (void)
35769{
35770
35771        if(0 != gethostbyaddr(0, 0, 0))
35772          return 1;
35773
35774 ;
35775 return 0;
35776}
35777
35778_ACEOF
35779if ac_fn_c_try_compile "$LINENO"; then :
35780
35781      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35782$as_echo "yes" >&6; }
35783      tst_compi_gethostbyaddr="yes"
35784
35785else
35786
35787      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35788$as_echo "no" >&6; }
35789      tst_compi_gethostbyaddr="no"
35790
35791fi
35792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35793  fi
35794  #
35795  if test "$tst_compi_gethostbyaddr" = "yes"; then
35796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
35797$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
35798    if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
35799      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35800$as_echo "yes" >&6; }
35801      tst_allow_gethostbyaddr="yes"
35802    else
35803      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35804$as_echo "no" >&6; }
35805      tst_allow_gethostbyaddr="no"
35806    fi
35807  fi
35808  #
35809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
35810$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
35811  if test "$tst_links_gethostbyaddr" = "yes" &&
35812     test "$tst_proto_gethostbyaddr" = "yes" &&
35813     test "$tst_compi_gethostbyaddr" = "yes" &&
35814     test "$tst_allow_gethostbyaddr" = "yes"; then
35815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35816$as_echo "yes" >&6; }
35817
35818cat >>confdefs.h <<_ACEOF
35819#define HAVE_GETHOSTBYADDR 1
35820_ACEOF
35821
35822    curl_cv_func_gethostbyaddr="yes"
35823  else
35824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35825$as_echo "no" >&6; }
35826    curl_cv_func_gethostbyaddr="no"
35827  fi
35828
35829
35830    #
35831  tst_links_gethostbyaddr_r="unknown"
35832  tst_proto_gethostbyaddr_r="unknown"
35833  tst_compi_gethostbyaddr_r="unknown"
35834  tst_allow_gethostbyaddr_r="unknown"
35835  tst_nargs_gethostbyaddr_r="unknown"
35836  #
35837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
35838$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
35839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35840/* end confdefs.h.  */
35841
35842
35843#define gethostbyaddr_r innocuous_gethostbyaddr_r
35844#ifdef __STDC__
35845# include <limits.h>
35846#else
35847# include <assert.h>
35848#endif
35849#undef gethostbyaddr_r
35850#ifdef __cplusplus
35851extern "C"
35852#endif
35853char gethostbyaddr_r ();
35854#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
35855choke me
35856#endif
35857
35858int main (void)
35859{
35860return gethostbyaddr_r ();
35861 ;
35862 return 0;
35863}
35864
35865_ACEOF
35866if ac_fn_c_try_link "$LINENO"; then :
35867
35868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35869$as_echo "yes" >&6; }
35870    tst_links_gethostbyaddr_r="yes"
35871
35872else
35873
35874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35875$as_echo "no" >&6; }
35876    tst_links_gethostbyaddr_r="no"
35877
35878fi
35879rm -f core conftest.err conftest.$ac_objext \
35880    conftest$ac_exeext conftest.$ac_ext
35881  #
35882  if test "$tst_links_gethostbyaddr_r" = "yes"; then
35883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
35884$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
35885    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35886/* end confdefs.h.  */
35887
35888      $curl_includes_netdb
35889
35890_ACEOF
35891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35892  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
35893
35894      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35895$as_echo "yes" >&6; }
35896      tst_proto_gethostbyaddr_r="yes"
35897
35898else
35899
35900      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35901$as_echo "no" >&6; }
35902      tst_proto_gethostbyaddr_r="no"
35903
35904fi
35905rm -f conftest*
35906
35907  fi
35908  #
35909  if test "$tst_proto_gethostbyaddr_r" = "yes"; then
35910    if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
35911      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
35912$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
35913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35914/* end confdefs.h.  */
35915
35916
35917          $curl_includes_netdb
35918
35919int main (void)
35920{
35921
35922          if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
35923            return 1;
35924
35925 ;
35926 return 0;
35927}
35928
35929_ACEOF
35930if ac_fn_c_try_compile "$LINENO"; then :
35931
35932        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35933$as_echo "yes" >&6; }
35934        tst_compi_gethostbyaddr_r="yes"
35935        tst_nargs_gethostbyaddr_r="5"
35936
35937else
35938
35939        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35940$as_echo "no" >&6; }
35941        tst_compi_gethostbyaddr_r="no"
35942
35943fi
35944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35945    fi
35946    if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
35947      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
35948$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
35949      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35950/* end confdefs.h.  */
35951
35952
35953          $curl_includes_netdb
35954
35955int main (void)
35956{
35957
35958          if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
35959            return 1;
35960
35961 ;
35962 return 0;
35963}
35964
35965_ACEOF
35966if ac_fn_c_try_compile "$LINENO"; then :
35967
35968        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35969$as_echo "yes" >&6; }
35970        tst_compi_gethostbyaddr_r="yes"
35971        tst_nargs_gethostbyaddr_r="7"
35972
35973else
35974
35975        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35976$as_echo "no" >&6; }
35977        tst_compi_gethostbyaddr_r="no"
35978
35979fi
35980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35981    fi
35982    if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
35983      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
35984$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
35985      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35986/* end confdefs.h.  */
35987
35988
35989          $curl_includes_netdb
35990
35991int main (void)
35992{
35993
35994          if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
35995            return 1;
35996
35997 ;
35998 return 0;
35999}
36000
36001_ACEOF
36002if ac_fn_c_try_compile "$LINENO"; then :
36003
36004        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36005$as_echo "yes" >&6; }
36006        tst_compi_gethostbyaddr_r="yes"
36007        tst_nargs_gethostbyaddr_r="8"
36008
36009else
36010
36011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36012$as_echo "no" >&6; }
36013        tst_compi_gethostbyaddr_r="no"
36014
36015fi
36016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36017    fi
36018    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
36019$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
36020    if test "$tst_compi_gethostbyaddr_r" = "yes"; then
36021      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36022$as_echo "yes" >&6; }
36023    else
36024      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36025$as_echo "no" >&6; }
36026    fi
36027  fi
36028  #
36029  if test "$tst_compi_gethostbyaddr_r" = "yes"; then
36030    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
36031$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
36032    if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
36033      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36034$as_echo "yes" >&6; }
36035      tst_allow_gethostbyaddr_r="yes"
36036    else
36037      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36038$as_echo "no" >&6; }
36039      tst_allow_gethostbyaddr_r="no"
36040    fi
36041  fi
36042  #
36043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
36044$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
36045  if test "$tst_links_gethostbyaddr_r" = "yes" &&
36046     test "$tst_proto_gethostbyaddr_r" = "yes" &&
36047     test "$tst_compi_gethostbyaddr_r" = "yes" &&
36048     test "$tst_allow_gethostbyaddr_r" = "yes"; then
36049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36050$as_echo "yes" >&6; }
36051
36052cat >>confdefs.h <<_ACEOF
36053#define HAVE_GETHOSTBYADDR_R 1
36054_ACEOF
36055
36056            #
36057    if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
36058
36059$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
36060
36061    elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
36062
36063$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
36064
36065    elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
36066
36067$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
36068
36069    fi
36070    #
36071    curl_cv_func_gethostbyaddr_r="yes"
36072  else
36073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36074$as_echo "no" >&6; }
36075    curl_cv_func_gethostbyaddr_r="no"
36076  fi
36077
36078
36079      #
36080  tst_links_gethostbyname="unknown"
36081  tst_proto_gethostbyname="unknown"
36082  tst_compi_gethostbyname="unknown"
36083  tst_allow_gethostbyname="unknown"
36084  #
36085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
36086$as_echo_n "checking if gethostbyname can be linked... " >&6; }
36087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36088/* end confdefs.h.  */
36089
36090
36091      $curl_includes_winsock2
36092      $curl_includes_bsdsocket
36093      $curl_includes_netdb
36094
36095int main (void)
36096{
36097
36098      if(0 != gethostbyname(0))
36099        return 1;
36100
36101 ;
36102 return 0;
36103}
36104
36105_ACEOF
36106if ac_fn_c_try_link "$LINENO"; then :
36107
36108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36109$as_echo "yes" >&6; }
36110    tst_links_gethostbyname="yes"
36111
36112else
36113
36114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36115$as_echo "no" >&6; }
36116    tst_links_gethostbyname="no"
36117
36118fi
36119rm -f core conftest.err conftest.$ac_objext \
36120    conftest$ac_exeext conftest.$ac_ext
36121  #
36122  if test "$tst_links_gethostbyname" = "yes"; then
36123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
36124$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
36125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36126/* end confdefs.h.  */
36127
36128      $curl_includes_winsock2
36129      $curl_includes_bsdsocket
36130      $curl_includes_netdb
36131
36132_ACEOF
36133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36134  $EGREP "gethostbyname" >/dev/null 2>&1; then :
36135
36136      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36137$as_echo "yes" >&6; }
36138      tst_proto_gethostbyname="yes"
36139
36140else
36141
36142      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36143$as_echo "no" >&6; }
36144      tst_proto_gethostbyname="no"
36145
36146fi
36147rm -f conftest*
36148
36149  fi
36150  #
36151  if test "$tst_proto_gethostbyname" = "yes"; then
36152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
36153$as_echo_n "checking if gethostbyname is compilable... " >&6; }
36154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36155/* end confdefs.h.  */
36156
36157
36158        $curl_includes_winsock2
36159      $curl_includes_bsdsocket
36160        $curl_includes_netdb
36161
36162int main (void)
36163{
36164
36165        if(0 != gethostbyname(0))
36166          return 1;
36167
36168 ;
36169 return 0;
36170}
36171
36172_ACEOF
36173if ac_fn_c_try_compile "$LINENO"; then :
36174
36175      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36176$as_echo "yes" >&6; }
36177      tst_compi_gethostbyname="yes"
36178
36179else
36180
36181      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36182$as_echo "no" >&6; }
36183      tst_compi_gethostbyname="no"
36184
36185fi
36186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36187  fi
36188  #
36189  if test "$tst_compi_gethostbyname" = "yes"; then
36190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
36191$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
36192    if test "x$curl_disallow_gethostbyname" != "xyes"; then
36193      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36194$as_echo "yes" >&6; }
36195      tst_allow_gethostbyname="yes"
36196    else
36197      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36198$as_echo "no" >&6; }
36199      tst_allow_gethostbyname="no"
36200    fi
36201  fi
36202  #
36203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
36204$as_echo_n "checking if gethostbyname might be used... " >&6; }
36205  if test "$tst_links_gethostbyname" = "yes" &&
36206     test "$tst_proto_gethostbyname" = "yes" &&
36207     test "$tst_compi_gethostbyname" = "yes" &&
36208     test "$tst_allow_gethostbyname" = "yes"; then
36209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36210$as_echo "yes" >&6; }
36211
36212cat >>confdefs.h <<_ACEOF
36213#define HAVE_GETHOSTBYNAME 1
36214_ACEOF
36215
36216    curl_cv_func_gethostbyname="yes"
36217  else
36218    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36219$as_echo "no" >&6; }
36220    curl_cv_func_gethostbyname="no"
36221  fi
36222
36223
36224    #
36225  tst_links_gethostbyname_r="unknown"
36226  tst_proto_gethostbyname_r="unknown"
36227  tst_compi_gethostbyname_r="unknown"
36228  tst_allow_gethostbyname_r="unknown"
36229  tst_nargs_gethostbyname_r="unknown"
36230  #
36231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
36232$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
36233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36234/* end confdefs.h.  */
36235
36236
36237#define gethostbyname_r innocuous_gethostbyname_r
36238#ifdef __STDC__
36239# include <limits.h>
36240#else
36241# include <assert.h>
36242#endif
36243#undef gethostbyname_r
36244#ifdef __cplusplus
36245extern "C"
36246#endif
36247char gethostbyname_r ();
36248#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
36249choke me
36250#endif
36251
36252int main (void)
36253{
36254return gethostbyname_r ();
36255 ;
36256 return 0;
36257}
36258
36259_ACEOF
36260if ac_fn_c_try_link "$LINENO"; then :
36261
36262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36263$as_echo "yes" >&6; }
36264    tst_links_gethostbyname_r="yes"
36265
36266else
36267
36268    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36269$as_echo "no" >&6; }
36270    tst_links_gethostbyname_r="no"
36271
36272fi
36273rm -f core conftest.err conftest.$ac_objext \
36274    conftest$ac_exeext conftest.$ac_ext
36275  #
36276  if test "$tst_links_gethostbyname_r" = "yes"; then
36277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
36278$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
36279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36280/* end confdefs.h.  */
36281
36282      $curl_includes_netdb
36283
36284_ACEOF
36285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36286  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
36287
36288      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36289$as_echo "yes" >&6; }
36290      tst_proto_gethostbyname_r="yes"
36291
36292else
36293
36294      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36295$as_echo "no" >&6; }
36296      tst_proto_gethostbyname_r="no"
36297
36298fi
36299rm -f conftest*
36300
36301  fi
36302  #
36303  if test "$tst_proto_gethostbyname_r" = "yes"; then
36304    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
36305      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
36306$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
36307      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36308/* end confdefs.h.  */
36309
36310
36311          $curl_includes_netdb
36312
36313int main (void)
36314{
36315
36316          if(0 != gethostbyname_r(0, 0, 0))
36317            return 1;
36318
36319 ;
36320 return 0;
36321}
36322
36323_ACEOF
36324if ac_fn_c_try_compile "$LINENO"; then :
36325
36326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36327$as_echo "yes" >&6; }
36328        tst_compi_gethostbyname_r="yes"
36329        tst_nargs_gethostbyname_r="3"
36330
36331else
36332
36333        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36334$as_echo "no" >&6; }
36335        tst_compi_gethostbyname_r="no"
36336
36337fi
36338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36339    fi
36340    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
36341      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
36342$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
36343      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36344/* end confdefs.h.  */
36345
36346
36347          $curl_includes_netdb
36348
36349int main (void)
36350{
36351
36352          if(0 != gethostbyname_r(0, 0, 0, 0, 0))
36353            return 1;
36354
36355 ;
36356 return 0;
36357}
36358
36359_ACEOF
36360if ac_fn_c_try_compile "$LINENO"; then :
36361
36362        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36363$as_echo "yes" >&6; }
36364        tst_compi_gethostbyname_r="yes"
36365        tst_nargs_gethostbyname_r="5"
36366
36367else
36368
36369        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36370$as_echo "no" >&6; }
36371        tst_compi_gethostbyname_r="no"
36372
36373fi
36374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36375    fi
36376    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
36377      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
36378$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
36379      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36380/* end confdefs.h.  */
36381
36382
36383          $curl_includes_netdb
36384
36385int main (void)
36386{
36387
36388          if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
36389            return 1;
36390
36391 ;
36392 return 0;
36393}
36394
36395_ACEOF
36396if ac_fn_c_try_compile "$LINENO"; then :
36397
36398        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36399$as_echo "yes" >&6; }
36400        tst_compi_gethostbyname_r="yes"
36401        tst_nargs_gethostbyname_r="6"
36402
36403else
36404
36405        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36406$as_echo "no" >&6; }
36407        tst_compi_gethostbyname_r="no"
36408
36409fi
36410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36411    fi
36412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
36413$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
36414    if test "$tst_compi_gethostbyname_r" = "yes"; then
36415      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36416$as_echo "yes" >&6; }
36417    else
36418      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36419$as_echo "no" >&6; }
36420    fi
36421  fi
36422  #
36423  if test "$tst_compi_gethostbyname_r" = "yes"; then
36424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
36425$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
36426    if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
36427      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36428$as_echo "yes" >&6; }
36429      tst_allow_gethostbyname_r="yes"
36430    else
36431      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36432$as_echo "no" >&6; }
36433      tst_allow_gethostbyname_r="no"
36434    fi
36435  fi
36436  #
36437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
36438$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
36439  if test "$tst_links_gethostbyname_r" = "yes" &&
36440     test "$tst_proto_gethostbyname_r" = "yes" &&
36441     test "$tst_compi_gethostbyname_r" = "yes" &&
36442     test "$tst_allow_gethostbyname_r" = "yes"; then
36443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36444$as_echo "yes" >&6; }
36445
36446cat >>confdefs.h <<_ACEOF
36447#define HAVE_GETHOSTBYNAME_R 1
36448_ACEOF
36449
36450            #
36451    if test "$tst_nargs_gethostbyname_r" -eq "3"; then
36452
36453$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
36454
36455    elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
36456
36457$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
36458
36459    elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
36460
36461$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
36462
36463    fi
36464    #
36465    curl_cv_func_gethostbyname_r="yes"
36466  else
36467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36468$as_echo "no" >&6; }
36469    curl_cv_func_gethostbyname_r="no"
36470  fi
36471
36472
36473curl_preprocess_callconv="\
36474/* preprocess start */
36475#ifdef HAVE_WINDOWS_H
36476#  define FUNCALLCONV __stdcall
36477#else
36478#  define FUNCALLCONV
36479#endif
36480/* preprocess end */"
36481
36482
36483          #
36484  tst_links_gethostname="unknown"
36485  tst_proto_gethostname="unknown"
36486  tst_compi_gethostname="unknown"
36487  tst_allow_gethostname="unknown"
36488  #
36489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
36490$as_echo_n "checking if gethostname can be linked... " >&6; }
36491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36492/* end confdefs.h.  */
36493
36494
36495      $curl_includes_winsock2
36496      $curl_includes_bsdsocket
36497      $curl_includes_unistd
36498
36499int main (void)
36500{
36501
36502      if(0 != gethostname(0, 0))
36503        return 1;
36504
36505 ;
36506 return 0;
36507}
36508
36509_ACEOF
36510if ac_fn_c_try_link "$LINENO"; then :
36511
36512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36513$as_echo "yes" >&6; }
36514    tst_links_gethostname="yes"
36515
36516else
36517
36518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36519$as_echo "no" >&6; }
36520    tst_links_gethostname="no"
36521
36522fi
36523rm -f core conftest.err conftest.$ac_objext \
36524    conftest$ac_exeext conftest.$ac_ext
36525  #
36526  if test "$tst_links_gethostname" = "yes"; then
36527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
36528$as_echo_n "checking if gethostname is prototyped... " >&6; }
36529    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36530/* end confdefs.h.  */
36531
36532      $curl_includes_winsock2
36533      $curl_includes_bsdsocket
36534      $curl_includes_unistd
36535
36536_ACEOF
36537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36538  $EGREP "gethostname" >/dev/null 2>&1; then :
36539
36540      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36541$as_echo "yes" >&6; }
36542      tst_proto_gethostname="yes"
36543
36544else
36545
36546      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36547$as_echo "no" >&6; }
36548      tst_proto_gethostname="no"
36549
36550fi
36551rm -f conftest*
36552
36553  fi
36554  #
36555  if test "$tst_proto_gethostname" = "yes"; then
36556    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
36557$as_echo_n "checking if gethostname is compilable... " >&6; }
36558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36559/* end confdefs.h.  */
36560
36561
36562        $curl_includes_winsock2
36563      $curl_includes_bsdsocket
36564        $curl_includes_unistd
36565
36566int main (void)
36567{
36568
36569        if(0 != gethostname(0, 0))
36570          return 1;
36571
36572 ;
36573 return 0;
36574}
36575
36576_ACEOF
36577if ac_fn_c_try_compile "$LINENO"; then :
36578
36579      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36580$as_echo "yes" >&6; }
36581      tst_compi_gethostname="yes"
36582
36583else
36584
36585      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36586$as_echo "no" >&6; }
36587      tst_compi_gethostname="no"
36588
36589fi
36590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36591  fi
36592  #
36593  if test "$tst_compi_gethostname" = "yes"; then
36594    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
36595$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
36596    tst_gethostname_type_arg2="unknown"
36597    for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
36598      for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
36599        if test "$tst_gethostname_type_arg2" = "unknown"; then
36600          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36601/* end confdefs.h.  */
36602
36603
36604              $curl_includes_winsock2
36605      $curl_includes_bsdsocket
36606              $curl_includes_unistd
36607              $curl_preprocess_callconv
36608              extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
36609
36610int main (void)
36611{
36612
36613              if(0 != gethostname(0, 0))
36614                return 1;
36615
36616 ;
36617 return 0;
36618}
36619
36620_ACEOF
36621if ac_fn_c_try_compile "$LINENO"; then :
36622
36623            tst_gethostname_type_arg2="$tst_arg2"
36624
36625fi
36626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36627        fi
36628      done
36629    done
36630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
36631$as_echo "$tst_gethostname_type_arg2" >&6; }
36632    if test "$tst_gethostname_type_arg2" != "unknown"; then
36633
36634cat >>confdefs.h <<_ACEOF
36635#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
36636_ACEOF
36637
36638    fi
36639  fi
36640  #
36641  if test "$tst_compi_gethostname" = "yes"; then
36642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
36643$as_echo_n "checking if gethostname usage allowed... " >&6; }
36644    if test "x$curl_disallow_gethostname" != "xyes"; then
36645      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36646$as_echo "yes" >&6; }
36647      tst_allow_gethostname="yes"
36648    else
36649      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36650$as_echo "no" >&6; }
36651      tst_allow_gethostname="no"
36652    fi
36653  fi
36654  #
36655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
36656$as_echo_n "checking if gethostname might be used... " >&6; }
36657  if test "$tst_links_gethostname" = "yes" &&
36658     test "$tst_proto_gethostname" = "yes" &&
36659     test "$tst_compi_gethostname" = "yes" &&
36660     test "$tst_allow_gethostname" = "yes"; then
36661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36662$as_echo "yes" >&6; }
36663
36664cat >>confdefs.h <<_ACEOF
36665#define HAVE_GETHOSTNAME 1
36666_ACEOF
36667
36668    curl_cv_func_gethostname="yes"
36669  else
36670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36671$as_echo "no" >&6; }
36672    curl_cv_func_gethostname="no"
36673  fi
36674
36675
36676          #
36677  tst_links_getpeername="unknown"
36678  tst_proto_getpeername="unknown"
36679  tst_compi_getpeername="unknown"
36680  tst_allow_getpeername="unknown"
36681  #
36682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
36683$as_echo_n "checking if getpeername can be linked... " >&6; }
36684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36685/* end confdefs.h.  */
36686
36687
36688      $curl_includes_winsock2
36689      $curl_includes_bsdsocket
36690      $curl_includes_sys_socket
36691
36692int main (void)
36693{
36694
36695      if(0 != getpeername(0, (void *)0, (void *)0))
36696        return 1;
36697
36698 ;
36699 return 0;
36700}
36701
36702_ACEOF
36703if ac_fn_c_try_link "$LINENO"; then :
36704
36705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36706$as_echo "yes" >&6; }
36707    tst_links_getpeername="yes"
36708
36709else
36710
36711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36712$as_echo "no" >&6; }
36713    tst_links_getpeername="no"
36714
36715fi
36716rm -f core conftest.err conftest.$ac_objext \
36717    conftest$ac_exeext conftest.$ac_ext
36718  #
36719  if test "$tst_links_getpeername" = "yes"; then
36720    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
36721$as_echo_n "checking if getpeername is prototyped... " >&6; }
36722    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36723/* end confdefs.h.  */
36724
36725      $curl_includes_winsock2
36726      $curl_includes_bsdsocket
36727      $curl_includes_sys_socket
36728
36729_ACEOF
36730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36731  $EGREP "getpeername" >/dev/null 2>&1; then :
36732
36733      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36734$as_echo "yes" >&6; }
36735      tst_proto_getpeername="yes"
36736
36737else
36738
36739      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36740$as_echo "no" >&6; }
36741      tst_proto_getpeername="no"
36742
36743fi
36744rm -f conftest*
36745
36746  fi
36747  #
36748  if test "$tst_proto_getpeername" = "yes"; then
36749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
36750$as_echo_n "checking if getpeername is compilable... " >&6; }
36751    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36752/* end confdefs.h.  */
36753
36754
36755        $curl_includes_winsock2
36756        $curl_includes_bsdsocket
36757        $curl_includes_sys_socket
36758
36759int main (void)
36760{
36761
36762        if(0 != getpeername(0, (void *)0, (void *)0))
36763          return 1;
36764
36765 ;
36766 return 0;
36767}
36768
36769_ACEOF
36770if ac_fn_c_try_compile "$LINENO"; then :
36771
36772      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36773$as_echo "yes" >&6; }
36774      tst_compi_getpeername="yes"
36775
36776else
36777
36778      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36779$as_echo "no" >&6; }
36780      tst_compi_getpeername="no"
36781
36782fi
36783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36784  fi
36785  #
36786  if test "$tst_compi_getpeername" = "yes"; then
36787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
36788$as_echo_n "checking if getpeername usage allowed... " >&6; }
36789    if test "x$curl_disallow_getpeername" != "xyes"; then
36790      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36791$as_echo "yes" >&6; }
36792      tst_allow_getpeername="yes"
36793    else
36794      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36795$as_echo "no" >&6; }
36796      tst_allow_getpeername="no"
36797    fi
36798  fi
36799  #
36800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
36801$as_echo_n "checking if getpeername might be used... " >&6; }
36802  if test "$tst_links_getpeername" = "yes" &&
36803     test "$tst_proto_getpeername" = "yes" &&
36804     test "$tst_compi_getpeername" = "yes" &&
36805     test "$tst_allow_getpeername" = "yes"; then
36806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36807$as_echo "yes" >&6; }
36808
36809cat >>confdefs.h <<_ACEOF
36810#define HAVE_GETPEERNAME 1
36811_ACEOF
36812
36813    curl_cv_func_getpeername="yes"
36814  else
36815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36816$as_echo "no" >&6; }
36817    curl_cv_func_getpeername="no"
36818  fi
36819
36820
36821          #
36822  tst_links_getsockname="unknown"
36823  tst_proto_getsockname="unknown"
36824  tst_compi_getsockname="unknown"
36825  tst_allow_getsockname="unknown"
36826  #
36827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
36828$as_echo_n "checking if getsockname can be linked... " >&6; }
36829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36830/* end confdefs.h.  */
36831
36832
36833      $curl_includes_winsock2
36834      $curl_includes_bsdsocket
36835      $curl_includes_sys_socket
36836
36837int main (void)
36838{
36839
36840      if(0 != getsockname(0, (void *)0, (void *)0))
36841        return 1;
36842
36843 ;
36844 return 0;
36845}
36846
36847_ACEOF
36848if ac_fn_c_try_link "$LINENO"; then :
36849
36850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36851$as_echo "yes" >&6; }
36852    tst_links_getsockname="yes"
36853
36854else
36855
36856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36857$as_echo "no" >&6; }
36858    tst_links_getsockname="no"
36859
36860fi
36861rm -f core conftest.err conftest.$ac_objext \
36862    conftest$ac_exeext conftest.$ac_ext
36863  #
36864  if test "$tst_links_getsockname" = "yes"; then
36865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
36866$as_echo_n "checking if getsockname is prototyped... " >&6; }
36867    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36868/* end confdefs.h.  */
36869
36870      $curl_includes_winsock2
36871      $curl_includes_bsdsocket
36872      $curl_includes_sys_socket
36873
36874_ACEOF
36875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36876  $EGREP "getsockname" >/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_getsockname="yes"
36881
36882else
36883
36884      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36885$as_echo "no" >&6; }
36886      tst_proto_getsockname="no"
36887
36888fi
36889rm -f conftest*
36890
36891  fi
36892  #
36893  if test "$tst_proto_getsockname" = "yes"; then
36894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
36895$as_echo_n "checking if getsockname is compilable... " >&6; }
36896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36897/* end confdefs.h.  */
36898
36899
36900        $curl_includes_winsock2
36901        $curl_includes_bsdsocket
36902        $curl_includes_sys_socket
36903
36904int main (void)
36905{
36906
36907        if(0 != getsockname(0, (void *)0, (void *)0))
36908          return 1;
36909
36910 ;
36911 return 0;
36912}
36913
36914_ACEOF
36915if 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_getsockname="yes"
36920
36921else
36922
36923      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36924$as_echo "no" >&6; }
36925      tst_compi_getsockname="no"
36926
36927fi
36928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36929  fi
36930  #
36931  if test "$tst_compi_getsockname" = "yes"; then
36932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
36933$as_echo_n "checking if getsockname usage allowed... " >&6; }
36934    if test "x$curl_disallow_getsockname" != "xyes"; then
36935      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36936$as_echo "yes" >&6; }
36937      tst_allow_getsockname="yes"
36938    else
36939      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36940$as_echo "no" >&6; }
36941      tst_allow_getsockname="no"
36942    fi
36943  fi
36944  #
36945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
36946$as_echo_n "checking if getsockname might be used... " >&6; }
36947  if test "$tst_links_getsockname" = "yes" &&
36948     test "$tst_proto_getsockname" = "yes" &&
36949     test "$tst_compi_getsockname" = "yes" &&
36950     test "$tst_allow_getsockname" = "yes"; then
36951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952$as_echo "yes" >&6; }
36953
36954cat >>confdefs.h <<_ACEOF
36955#define HAVE_GETSOCKNAME 1
36956_ACEOF
36957
36958    curl_cv_func_getsockname="yes"
36959  else
36960    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36961$as_echo "no" >&6; }
36962    curl_cv_func_getsockname="no"
36963  fi
36964
36965
36966curl_includes_netif="\
36967/* includes start */
36968#ifdef HAVE_NET_IF_H
36969#  include <net/if.h>
36970#endif
36971/* includes end */"
36972  for ac_header in net/if.h
36973do :
36974  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
36975"
36976if test "x$ac_cv_header_net_if_h" = xyes; then :
36977  cat >>confdefs.h <<_ACEOF
36978#define HAVE_NET_IF_H 1
36979_ACEOF
36980
36981fi
36982
36983done
36984
36985
36986
36987        #
36988  tst_links_if_nametoindex="unknown"
36989  tst_proto_if_nametoindex="unknown"
36990  tst_compi_if_nametoindex="unknown"
36991  tst_allow_if_nametoindex="unknown"
36992  #
36993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
36994$as_echo_n "checking if if_nametoindex can be linked... " >&6; }
36995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36996/* end confdefs.h.  */
36997
36998
36999      $curl_includes_winsock2
37000      $curl_includes_bsdsocket
37001      #include <net/if.h>
37002
37003int main (void)
37004{
37005
37006      if(0 != if_nametoindex(""))
37007        return 1;
37008
37009 ;
37010 return 0;
37011}
37012
37013_ACEOF
37014if ac_fn_c_try_link "$LINENO"; then :
37015
37016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37017$as_echo "yes" >&6; }
37018    tst_links_if_nametoindex="yes"
37019
37020else
37021
37022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37023$as_echo "no" >&6; }
37024    tst_links_if_nametoindex="no"
37025
37026fi
37027rm -f core conftest.err conftest.$ac_objext \
37028    conftest$ac_exeext conftest.$ac_ext
37029  #
37030  if test "$tst_links_if_nametoindex" = "yes"; then
37031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
37032$as_echo_n "checking if if_nametoindex is prototyped... " >&6; }
37033    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37034/* end confdefs.h.  */
37035
37036      $curl_includes_winsock2
37037      $curl_includes_netif
37038
37039_ACEOF
37040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37041  $EGREP "if_nametoindex" >/dev/null 2>&1; then :
37042
37043      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37044$as_echo "yes" >&6; }
37045      tst_proto_if_nametoindex="yes"
37046
37047else
37048
37049      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37050$as_echo "no" >&6; }
37051      tst_proto_if_nametoindex="no"
37052
37053fi
37054rm -f conftest*
37055
37056  fi
37057  #
37058  if test "$tst_proto_if_nametoindex" = "yes"; then
37059    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
37060$as_echo_n "checking if if_nametoindex is compilable... " >&6; }
37061    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37062/* end confdefs.h.  */
37063
37064
37065        $curl_includes_winsock2
37066        $curl_includes_netif
37067
37068int main (void)
37069{
37070
37071        if(0 != if_nametoindex(""))
37072          return 1;
37073
37074 ;
37075 return 0;
37076}
37077
37078_ACEOF
37079if ac_fn_c_try_compile "$LINENO"; then :
37080
37081      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37082$as_echo "yes" >&6; }
37083      tst_compi_if_nametoindex="yes"
37084
37085else
37086
37087      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37088$as_echo "no" >&6; }
37089      tst_compi_if_nametoindex="no"
37090
37091fi
37092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37093  fi
37094  #
37095  if test "$tst_compi_if_nametoindex" = "yes"; then
37096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
37097$as_echo_n "checking if if_nametoindex usage allowed... " >&6; }
37098    if test "x$curl_disallow_if_nametoindex" != "xyes"; then
37099      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37100$as_echo "yes" >&6; }
37101      tst_allow_if_nametoindex="yes"
37102    else
37103      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37104$as_echo "no" >&6; }
37105      tst_allow_if_nametoindex="no"
37106    fi
37107  fi
37108  #
37109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
37110$as_echo_n "checking if if_nametoindex might be used... " >&6; }
37111  if test "$tst_links_if_nametoindex" = "yes" &&
37112     test "$tst_proto_if_nametoindex" = "yes" &&
37113     test "$tst_compi_if_nametoindex" = "yes" &&
37114     test "$tst_allow_if_nametoindex" = "yes"; then
37115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37116$as_echo "yes" >&6; }
37117
37118cat >>confdefs.h <<_ACEOF
37119#define HAVE_IF_NAMETOINDEX 1
37120_ACEOF
37121
37122    curl_cv_func_if_nametoindex="yes"
37123  else
37124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37125$as_echo "no" >&6; }
37126    curl_cv_func_if_nametoindex="no"
37127  fi
37128
37129
37130      #
37131  tst_links_getifaddrs="unknown"
37132  tst_proto_getifaddrs="unknown"
37133  tst_compi_getifaddrs="unknown"
37134  tst_works_getifaddrs="unknown"
37135  tst_allow_getifaddrs="unknown"
37136  #
37137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
37138$as_echo_n "checking if getifaddrs can be linked... " >&6; }
37139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37140/* end confdefs.h.  */
37141
37142
37143#define getifaddrs innocuous_getifaddrs
37144#ifdef __STDC__
37145# include <limits.h>
37146#else
37147# include <assert.h>
37148#endif
37149#undef getifaddrs
37150#ifdef __cplusplus
37151extern "C"
37152#endif
37153char getifaddrs ();
37154#if defined __stub_getifaddrs || defined __stub___getifaddrs
37155choke me
37156#endif
37157
37158int main (void)
37159{
37160return getifaddrs ();
37161 ;
37162 return 0;
37163}
37164
37165_ACEOF
37166if ac_fn_c_try_link "$LINENO"; then :
37167
37168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37169$as_echo "yes" >&6; }
37170    tst_links_getifaddrs="yes"
37171
37172else
37173
37174    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37175$as_echo "no" >&6; }
37176    tst_links_getifaddrs="no"
37177
37178fi
37179rm -f core conftest.err conftest.$ac_objext \
37180    conftest$ac_exeext conftest.$ac_ext
37181  #
37182  if test "$tst_links_getifaddrs" = "yes"; then
37183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
37184$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
37185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37186/* end confdefs.h.  */
37187
37188      $curl_includes_ifaddrs
37189
37190_ACEOF
37191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37192  $EGREP "getifaddrs" >/dev/null 2>&1; then :
37193
37194      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37195$as_echo "yes" >&6; }
37196      tst_proto_getifaddrs="yes"
37197
37198else
37199
37200      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37201$as_echo "no" >&6; }
37202      tst_proto_getifaddrs="no"
37203
37204fi
37205rm -f conftest*
37206
37207  fi
37208  #
37209  if test "$tst_proto_getifaddrs" = "yes"; then
37210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
37211$as_echo_n "checking if getifaddrs is compilable... " >&6; }
37212    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37213/* end confdefs.h.  */
37214
37215
37216        $curl_includes_ifaddrs
37217
37218int main (void)
37219{
37220
37221        if(0 != getifaddrs(0))
37222          return 1;
37223
37224 ;
37225 return 0;
37226}
37227
37228_ACEOF
37229if ac_fn_c_try_compile "$LINENO"; then :
37230
37231      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37232$as_echo "yes" >&6; }
37233      tst_compi_getifaddrs="yes"
37234
37235else
37236
37237      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37238$as_echo "no" >&6; }
37239      tst_compi_getifaddrs="no"
37240
37241fi
37242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37243  fi
37244  #
37245    if test "x$cross_compiling" != "xyes" &&
37246    test "$tst_compi_getifaddrs" = "yes"; then
37247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
37248$as_echo_n "checking if getifaddrs seems to work... " >&6; }
37249
37250   old=$LD_LIBRARY_PATH
37251   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37252   export LD_LIBRARY_PATH
37253   if test "$cross_compiling" = yes; then :
37254  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37256as_fn_error $? "cannot run test program while cross compiling
37257See \`config.log' for more details" "$LINENO" 5; }
37258else
37259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37260/* end confdefs.h.  */
37261
37262
37263        $curl_includes_stdlib
37264        $curl_includes_ifaddrs
37265
37266int main (void)
37267{
37268
37269        struct ifaddrs *ifa = 0;
37270        int error;
37271
37272        error = getifaddrs(&ifa);
37273        if(error || !ifa)
37274          exit(1); /* fail */
37275        else
37276          exit(0);
37277
37278 ;
37279 return 0;
37280}
37281
37282_ACEOF
37283if ac_fn_c_try_run "$LINENO"; then :
37284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37285$as_echo "yes" >&6; }
37286      tst_works_getifaddrs="yes"
37287
37288else
37289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37290$as_echo "no" >&6; }
37291      tst_works_getifaddrs="no"
37292
37293fi
37294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37295  conftest.$ac_objext conftest.beam conftest.$ac_ext
37296fi
37297
37298   LD_LIBRARY_PATH=$old # restore
37299
37300  fi
37301  #
37302  if test "$tst_compi_getifaddrs" = "yes" &&
37303    test "$tst_works_getifaddrs" != "no"; then
37304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
37305$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
37306    if test "x$curl_disallow_getifaddrs" != "xyes"; then
37307      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37308$as_echo "yes" >&6; }
37309      tst_allow_getifaddrs="yes"
37310    else
37311      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37312$as_echo "no" >&6; }
37313      tst_allow_getifaddrs="no"
37314    fi
37315  fi
37316  #
37317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
37318$as_echo_n "checking if getifaddrs might be used... " >&6; }
37319  if test "$tst_links_getifaddrs" = "yes" &&
37320     test "$tst_proto_getifaddrs" = "yes" &&
37321     test "$tst_compi_getifaddrs" = "yes" &&
37322     test "$tst_allow_getifaddrs" = "yes" &&
37323     test "$tst_works_getifaddrs" != "no"; then
37324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37325$as_echo "yes" >&6; }
37326
37327cat >>confdefs.h <<_ACEOF
37328#define HAVE_GETIFADDRS 1
37329_ACEOF
37330
37331    curl_cv_func_getifaddrs="yes"
37332  else
37333    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37334$as_echo "no" >&6; }
37335    curl_cv_func_getifaddrs="no"
37336  fi
37337
37338
37339    #
37340  tst_links_getservbyport_r="unknown"
37341  tst_proto_getservbyport_r="unknown"
37342  tst_compi_getservbyport_r="unknown"
37343  tst_allow_getservbyport_r="unknown"
37344  tst_nargs_getservbyport_r="unknown"
37345  #
37346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
37347$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
37348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37349/* end confdefs.h.  */
37350
37351
37352#define getservbyport_r innocuous_getservbyport_r
37353#ifdef __STDC__
37354# include <limits.h>
37355#else
37356# include <assert.h>
37357#endif
37358#undef getservbyport_r
37359#ifdef __cplusplus
37360extern "C"
37361#endif
37362char getservbyport_r ();
37363#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
37364choke me
37365#endif
37366
37367int main (void)
37368{
37369return getservbyport_r ();
37370 ;
37371 return 0;
37372}
37373
37374_ACEOF
37375if ac_fn_c_try_link "$LINENO"; then :
37376
37377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37378$as_echo "yes" >&6; }
37379    tst_links_getservbyport_r="yes"
37380
37381else
37382
37383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37384$as_echo "no" >&6; }
37385    tst_links_getservbyport_r="no"
37386
37387fi
37388rm -f core conftest.err conftest.$ac_objext \
37389    conftest$ac_exeext conftest.$ac_ext
37390  #
37391  if test "$tst_links_getservbyport_r" = "yes"; then
37392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
37393$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
37394    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37395/* end confdefs.h.  */
37396
37397      $curl_includes_netdb
37398
37399_ACEOF
37400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37401  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
37402
37403      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37404$as_echo "yes" >&6; }
37405      tst_proto_getservbyport_r="yes"
37406
37407else
37408
37409      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37410$as_echo "no" >&6; }
37411      tst_proto_getservbyport_r="no"
37412
37413fi
37414rm -f conftest*
37415
37416  fi
37417  #
37418  if test "$tst_proto_getservbyport_r" = "yes"; then
37419    if test "$tst_nargs_getservbyport_r" = "unknown"; then
37420      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
37421$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
37422      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37423/* end confdefs.h.  */
37424
37425
37426          $curl_includes_netdb
37427
37428int main (void)
37429{
37430
37431          if(0 != getservbyport_r(0, 0, 0, 0))
37432            return 1;
37433
37434 ;
37435 return 0;
37436}
37437
37438_ACEOF
37439if ac_fn_c_try_compile "$LINENO"; then :
37440
37441        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37442$as_echo "yes" >&6; }
37443        tst_compi_getservbyport_r="yes"
37444        tst_nargs_getservbyport_r="4"
37445
37446else
37447
37448        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37449$as_echo "no" >&6; }
37450        tst_compi_getservbyport_r="no"
37451
37452fi
37453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37454    fi
37455    if test "$tst_nargs_getservbyport_r" = "unknown"; then
37456      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
37457$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
37458      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37459/* end confdefs.h.  */
37460
37461
37462          $curl_includes_netdb
37463
37464int main (void)
37465{
37466
37467          if(0 != getservbyport_r(0, 0, 0, 0, 0))
37468            return 1;
37469
37470 ;
37471 return 0;
37472}
37473
37474_ACEOF
37475if ac_fn_c_try_compile "$LINENO"; then :
37476
37477        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37478$as_echo "yes" >&6; }
37479        tst_compi_getservbyport_r="yes"
37480        tst_nargs_getservbyport_r="5"
37481
37482else
37483
37484        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37485$as_echo "no" >&6; }
37486        tst_compi_getservbyport_r="no"
37487
37488fi
37489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37490    fi
37491    if test "$tst_nargs_getservbyport_r" = "unknown"; then
37492      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
37493$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
37494      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37495/* end confdefs.h.  */
37496
37497
37498          $curl_includes_netdb
37499
37500int main (void)
37501{
37502
37503          if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
37504            return 1;
37505
37506 ;
37507 return 0;
37508}
37509
37510_ACEOF
37511if ac_fn_c_try_compile "$LINENO"; then :
37512
37513        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37514$as_echo "yes" >&6; }
37515        tst_compi_getservbyport_r="yes"
37516        tst_nargs_getservbyport_r="6"
37517
37518else
37519
37520        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37521$as_echo "no" >&6; }
37522        tst_compi_getservbyport_r="no"
37523
37524fi
37525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37526    fi
37527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
37528$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
37529    if test "$tst_compi_getservbyport_r" = "yes"; then
37530      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37531$as_echo "yes" >&6; }
37532    else
37533      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37534$as_echo "no" >&6; }
37535    fi
37536  fi
37537  #
37538  if test "$tst_compi_getservbyport_r" = "yes"; then
37539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
37540$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
37541    if test "x$curl_disallow_getservbyport_r" != "xyes"; then
37542      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37543$as_echo "yes" >&6; }
37544      tst_allow_getservbyport_r="yes"
37545    else
37546      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37547$as_echo "no" >&6; }
37548      tst_allow_getservbyport_r="no"
37549    fi
37550  fi
37551  #
37552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
37553$as_echo_n "checking if getservbyport_r might be used... " >&6; }
37554  if test "$tst_links_getservbyport_r" = "yes" &&
37555     test "$tst_proto_getservbyport_r" = "yes" &&
37556     test "$tst_compi_getservbyport_r" = "yes" &&
37557     test "$tst_allow_getservbyport_r" = "yes"; then
37558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37559$as_echo "yes" >&6; }
37560
37561cat >>confdefs.h <<_ACEOF
37562#define HAVE_GETSERVBYPORT_R 1
37563_ACEOF
37564
37565
37566cat >>confdefs.h <<_ACEOF
37567#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
37568_ACEOF
37569
37570    if test "$tst_nargs_getservbyport_r" -eq "4"; then
37571
37572$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
37573
37574    else
37575
37576$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
37577
37578    fi
37579    curl_cv_func_getservbyport_r="yes"
37580  else
37581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37582$as_echo "no" >&6; }
37583    curl_cv_func_getservbyport_r="no"
37584  fi
37585
37586
37587curl_includes_time="\
37588/* includes start */
37589#ifdef HAVE_SYS_TYPES_H
37590#  include <sys/types.h>
37591#endif
37592#ifdef HAVE_SYS_TIME_H
37593#  include <sys/time.h>
37594#  ifdef TIME_WITH_SYS_TIME
37595#    include <time.h>
37596#  endif
37597#else
37598#  ifdef HAVE_TIME_H
37599#    include <time.h>
37600#  endif
37601#endif
37602/* includes end */"
37603  for ac_header in sys/types.h sys/time.h time.h
37604do :
37605  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37606ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
37607"
37608if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37609  cat >>confdefs.h <<_ACEOF
37610#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37611_ACEOF
37612
37613fi
37614
37615done
37616
37617
37618
37619      #
37620  tst_links_gmtime_r="unknown"
37621  tst_proto_gmtime_r="unknown"
37622  tst_compi_gmtime_r="unknown"
37623  tst_works_gmtime_r="unknown"
37624  tst_allow_gmtime_r="unknown"
37625  #
37626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
37627$as_echo_n "checking if gmtime_r can be linked... " >&6; }
37628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37629/* end confdefs.h.  */
37630
37631
37632#define gmtime_r innocuous_gmtime_r
37633#ifdef __STDC__
37634# include <limits.h>
37635#else
37636# include <assert.h>
37637#endif
37638#undef gmtime_r
37639#ifdef __cplusplus
37640extern "C"
37641#endif
37642char gmtime_r ();
37643#if defined __stub_gmtime_r || defined __stub___gmtime_r
37644choke me
37645#endif
37646
37647int main (void)
37648{
37649return gmtime_r ();
37650 ;
37651 return 0;
37652}
37653
37654_ACEOF
37655if ac_fn_c_try_link "$LINENO"; then :
37656
37657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37658$as_echo "yes" >&6; }
37659    tst_links_gmtime_r="yes"
37660
37661else
37662
37663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37664$as_echo "no" >&6; }
37665    tst_links_gmtime_r="no"
37666
37667fi
37668rm -f core conftest.err conftest.$ac_objext \
37669    conftest$ac_exeext conftest.$ac_ext
37670  #
37671  if test "$tst_links_gmtime_r" = "yes"; then
37672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
37673$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
37674    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37675/* end confdefs.h.  */
37676
37677      $curl_includes_time
37678
37679_ACEOF
37680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37681  $EGREP "gmtime_r" >/dev/null 2>&1; then :
37682
37683      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37684$as_echo "yes" >&6; }
37685      tst_proto_gmtime_r="yes"
37686
37687else
37688
37689      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37690$as_echo "no" >&6; }
37691      tst_proto_gmtime_r="no"
37692
37693fi
37694rm -f conftest*
37695
37696  fi
37697  #
37698  if test "$tst_proto_gmtime_r" = "yes"; then
37699    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
37700$as_echo_n "checking if gmtime_r is compilable... " >&6; }
37701    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37702/* end confdefs.h.  */
37703
37704
37705        $curl_includes_time
37706
37707int main (void)
37708{
37709
37710        if(0 != gmtime_r(0, 0))
37711          return 1;
37712
37713 ;
37714 return 0;
37715}
37716
37717_ACEOF
37718if ac_fn_c_try_compile "$LINENO"; then :
37719
37720      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37721$as_echo "yes" >&6; }
37722      tst_compi_gmtime_r="yes"
37723
37724else
37725
37726      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37727$as_echo "no" >&6; }
37728      tst_compi_gmtime_r="no"
37729
37730fi
37731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37732  fi
37733  #
37734    if test "x$cross_compiling" != "xyes" &&
37735    test "$tst_compi_gmtime_r" = "yes"; then
37736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
37737$as_echo_n "checking if gmtime_r seems to work... " >&6; }
37738
37739   old=$LD_LIBRARY_PATH
37740   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37741   export LD_LIBRARY_PATH
37742   if test "$cross_compiling" = yes; then :
37743  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37745as_fn_error $? "cannot run test program while cross compiling
37746See \`config.log' for more details" "$LINENO" 5; }
37747else
37748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37749/* end confdefs.h.  */
37750
37751
37752        $curl_includes_stdlib
37753        $curl_includes_time
37754
37755int main (void)
37756{
37757
37758        time_t local = 1170352587;
37759        struct tm *gmt = 0;
37760        struct tm result;
37761        gmt = gmtime_r(&local, &result);
37762        if(gmt)
37763          exit(0);
37764        else
37765          exit(1);
37766
37767 ;
37768 return 0;
37769}
37770
37771_ACEOF
37772if ac_fn_c_try_run "$LINENO"; then :
37773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37774$as_echo "yes" >&6; }
37775      tst_works_gmtime_r="yes"
37776
37777else
37778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37779$as_echo "no" >&6; }
37780      tst_works_gmtime_r="no"
37781
37782fi
37783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37784  conftest.$ac_objext conftest.beam conftest.$ac_ext
37785fi
37786
37787   LD_LIBRARY_PATH=$old # restore
37788
37789  fi
37790  #
37791  if test "$tst_compi_gmtime_r" = "yes" &&
37792    test "$tst_works_gmtime_r" != "no"; then
37793    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
37794$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
37795    if test "x$curl_disallow_gmtime_r" != "xyes"; then
37796      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37797$as_echo "yes" >&6; }
37798      tst_allow_gmtime_r="yes"
37799    else
37800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37801$as_echo "no" >&6; }
37802      tst_allow_gmtime_r="no"
37803    fi
37804  fi
37805  #
37806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
37807$as_echo_n "checking if gmtime_r might be used... " >&6; }
37808  if test "$tst_links_gmtime_r" = "yes" &&
37809     test "$tst_proto_gmtime_r" = "yes" &&
37810     test "$tst_compi_gmtime_r" = "yes" &&
37811     test "$tst_allow_gmtime_r" = "yes" &&
37812     test "$tst_works_gmtime_r" != "no"; then
37813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37814$as_echo "yes" >&6; }
37815
37816cat >>confdefs.h <<_ACEOF
37817#define HAVE_GMTIME_R 1
37818_ACEOF
37819
37820    curl_cv_func_gmtime_r="yes"
37821  else
37822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37823$as_echo "no" >&6; }
37824    curl_cv_func_gmtime_r="no"
37825  fi
37826
37827
37828curl_includes_arpa_inet="\
37829/* includes start */
37830#ifdef HAVE_SYS_TYPES_H
37831#  include <sys/types.h>
37832#endif
37833#ifdef HAVE_SYS_SOCKET_H
37834#  include <sys/socket.h>
37835#endif
37836#ifdef HAVE_NETINET_IN_H
37837#  include <netinet/in.h>
37838#endif
37839#ifdef HAVE_ARPA_INET_H
37840#  include <arpa/inet.h>
37841#endif
37842#ifdef HAVE_WINSOCK2_H
37843#include <winsock2.h>
37844#include <ws2tcpip.h>
37845#endif
37846/* includes end */"
37847  for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
37848do :
37849  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37850ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
37851"
37852if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37853  cat >>confdefs.h <<_ACEOF
37854#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37855_ACEOF
37856
37857fi
37858
37859done
37860
37861
37862
37863    #
37864  tst_links_inet_ntoa_r="unknown"
37865  tst_proto_inet_ntoa_r="unknown"
37866  tst_compi_inet_ntoa_r="unknown"
37867  tst_allow_inet_ntoa_r="unknown"
37868  tst_nargs_inet_ntoa_r="unknown"
37869  #
37870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
37871$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
37872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37873/* end confdefs.h.  */
37874
37875
37876#define inet_ntoa_r innocuous_inet_ntoa_r
37877#ifdef __STDC__
37878# include <limits.h>
37879#else
37880# include <assert.h>
37881#endif
37882#undef inet_ntoa_r
37883#ifdef __cplusplus
37884extern "C"
37885#endif
37886char inet_ntoa_r ();
37887#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
37888choke me
37889#endif
37890
37891int main (void)
37892{
37893return inet_ntoa_r ();
37894 ;
37895 return 0;
37896}
37897
37898_ACEOF
37899if ac_fn_c_try_link "$LINENO"; then :
37900
37901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37902$as_echo "yes" >&6; }
37903    tst_links_inet_ntoa_r="yes"
37904
37905else
37906
37907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37908$as_echo "no" >&6; }
37909    tst_links_inet_ntoa_r="no"
37910
37911fi
37912rm -f core conftest.err conftest.$ac_objext \
37913    conftest$ac_exeext conftest.$ac_ext
37914  #
37915  if test "$tst_links_inet_ntoa_r" = "yes"; then
37916    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
37917$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
37918    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37919/* end confdefs.h.  */
37920
37921      $curl_includes_arpa_inet
37922
37923_ACEOF
37924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37925  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
37926
37927      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37928$as_echo "yes" >&6; }
37929      tst_proto_inet_ntoa_r="yes"
37930
37931else
37932
37933      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37934$as_echo "no" >&6; }
37935      tst_proto_inet_ntoa_r="no"
37936
37937fi
37938rm -f conftest*
37939
37940  fi
37941  #
37942  if test "$tst_proto_inet_ntoa_r" = "yes"; then
37943    if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
37944      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
37945$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
37946      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37947/* end confdefs.h.  */
37948
37949
37950          $curl_includes_arpa_inet
37951
37952int main (void)
37953{
37954
37955          struct in_addr addr;
37956          if(0 != inet_ntoa_r(addr, 0))
37957            return 1;
37958
37959 ;
37960 return 0;
37961}
37962
37963_ACEOF
37964if ac_fn_c_try_compile "$LINENO"; then :
37965
37966        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37967$as_echo "yes" >&6; }
37968        tst_compi_inet_ntoa_r="yes"
37969        tst_nargs_inet_ntoa_r="2"
37970
37971else
37972
37973        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37974$as_echo "no" >&6; }
37975        tst_compi_inet_ntoa_r="no"
37976
37977fi
37978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37979    fi
37980    if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
37981      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
37982$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
37983      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37984/* end confdefs.h.  */
37985
37986
37987          $curl_includes_arpa_inet
37988
37989int main (void)
37990{
37991
37992          struct in_addr addr;
37993          if(0 != inet_ntoa_r(addr, 0, 0))
37994            return 1;
37995
37996 ;
37997 return 0;
37998}
37999
38000_ACEOF
38001if ac_fn_c_try_compile "$LINENO"; then :
38002
38003        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38004$as_echo "yes" >&6; }
38005        tst_compi_inet_ntoa_r="yes"
38006        tst_nargs_inet_ntoa_r="3"
38007
38008else
38009
38010        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38011$as_echo "no" >&6; }
38012        tst_compi_inet_ntoa_r="no"
38013
38014fi
38015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38016    fi
38017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
38018$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
38019    if test "$tst_compi_inet_ntoa_r" = "yes"; then
38020      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38021$as_echo "yes" >&6; }
38022    else
38023      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38024$as_echo "no" >&6; }
38025    fi
38026  fi
38027  #
38028  if test "$tst_compi_inet_ntoa_r" = "yes"; then
38029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
38030$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
38031    if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
38032      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38033$as_echo "yes" >&6; }
38034      tst_allow_inet_ntoa_r="yes"
38035    else
38036      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38037$as_echo "no" >&6; }
38038      tst_allow_inet_ntoa_r="no"
38039    fi
38040  fi
38041  #
38042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
38043$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
38044  if test "$tst_links_inet_ntoa_r" = "yes" &&
38045     test "$tst_proto_inet_ntoa_r" = "yes" &&
38046     test "$tst_compi_inet_ntoa_r" = "yes" &&
38047     test "$tst_allow_inet_ntoa_r" = "yes"; then
38048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38049$as_echo "yes" >&6; }
38050
38051cat >>confdefs.h <<_ACEOF
38052#define HAVE_INET_NTOA_R 1
38053_ACEOF
38054
38055            #
38056    if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
38057
38058$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
38059
38060    elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
38061
38062$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
38063
38064    fi
38065    #
38066    curl_cv_func_inet_ntoa_r="yes"
38067  else
38068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38069$as_echo "no" >&6; }
38070    curl_cv_func_inet_ntoa_r="no"
38071  fi
38072
38073
38074        #
38075  tst_links_inet_ntop="unknown"
38076  tst_proto_inet_ntop="unknown"
38077  tst_compi_inet_ntop="unknown"
38078  tst_works_inet_ntop="unknown"
38079  tst_allow_inet_ntop="unknown"
38080  #
38081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
38082$as_echo_n "checking if inet_ntop can be linked... " >&6; }
38083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38084/* end confdefs.h.  */
38085
38086
38087#define inet_ntop innocuous_inet_ntop
38088#ifdef __STDC__
38089# include <limits.h>
38090#else
38091# include <assert.h>
38092#endif
38093#undef inet_ntop
38094#ifdef __cplusplus
38095extern "C"
38096#endif
38097char inet_ntop ();
38098#if defined __stub_inet_ntop || defined __stub___inet_ntop
38099choke me
38100#endif
38101
38102int main (void)
38103{
38104return inet_ntop ();
38105 ;
38106 return 0;
38107}
38108
38109_ACEOF
38110if ac_fn_c_try_link "$LINENO"; then :
38111
38112    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38113$as_echo "yes" >&6; }
38114    tst_links_inet_ntop="yes"
38115
38116else
38117
38118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38119$as_echo "no" >&6; }
38120    tst_links_inet_ntop="no"
38121
38122fi
38123rm -f core conftest.err conftest.$ac_objext \
38124    conftest$ac_exeext conftest.$ac_ext
38125  #
38126  if test "$tst_links_inet_ntop" = "yes"; then
38127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
38128$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
38129    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38130/* end confdefs.h.  */
38131
38132      $curl_includes_arpa_inet
38133
38134_ACEOF
38135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38136  $EGREP "inet_ntop" >/dev/null 2>&1; then :
38137
38138      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38139$as_echo "yes" >&6; }
38140      tst_proto_inet_ntop="yes"
38141
38142else
38143
38144      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38145$as_echo "no" >&6; }
38146      tst_proto_inet_ntop="no"
38147
38148fi
38149rm -f conftest*
38150
38151  fi
38152  #
38153  if test "$tst_proto_inet_ntop" = "yes"; then
38154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
38155$as_echo_n "checking if inet_ntop is compilable... " >&6; }
38156    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38157/* end confdefs.h.  */
38158
38159
38160        $curl_includes_arpa_inet
38161
38162int main (void)
38163{
38164
38165        if(0 != inet_ntop(0, 0, 0, 0))
38166          return 1;
38167
38168 ;
38169 return 0;
38170}
38171
38172_ACEOF
38173if ac_fn_c_try_compile "$LINENO"; then :
38174
38175      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38176$as_echo "yes" >&6; }
38177      tst_compi_inet_ntop="yes"
38178
38179else
38180
38181      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38182$as_echo "no" >&6; }
38183      tst_compi_inet_ntop="no"
38184
38185fi
38186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38187  fi
38188  #
38189    if test "x$cross_compiling" != "xyes" &&
38190    test "$tst_compi_inet_ntop" = "yes"; then
38191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
38192$as_echo_n "checking if inet_ntop seems to work... " >&6; }
38193
38194   old=$LD_LIBRARY_PATH
38195   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38196   export LD_LIBRARY_PATH
38197   if test "$cross_compiling" = yes; then :
38198  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38200as_fn_error $? "cannot run test program while cross compiling
38201See \`config.log' for more details" "$LINENO" 5; }
38202else
38203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38204/* end confdefs.h.  */
38205
38206
38207        $curl_includes_stdlib
38208        $curl_includes_arpa_inet
38209        $curl_includes_string
38210
38211int main (void)
38212{
38213
38214        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
38215        char ipv4res[sizeof "255.255.255.255"];
38216        unsigned char ipv6a[26];
38217        unsigned char ipv4a[5];
38218        char *ipv6ptr = 0;
38219        char *ipv4ptr = 0;
38220        /* - */
38221        ipv4res[0] = '\0';
38222        ipv4a[0] = 0xc0;
38223        ipv4a[1] = 0xa8;
38224        ipv4a[2] = 0x64;
38225        ipv4a[3] = 0x01;
38226        ipv4a[4] = 0x01;
38227        /* - */
38228        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
38229        if(!ipv4ptr)
38230          exit(1); /* fail */
38231        if(ipv4ptr != ipv4res)
38232          exit(1); /* fail */
38233        if(!ipv4ptr[0])
38234          exit(1); /* fail */
38235        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
38236          exit(1); /* fail */
38237        /* - */
38238        ipv6res[0] = '\0';
38239        memset(ipv6a, 0, sizeof(ipv6a));
38240        ipv6a[0] = 0xfe;
38241        ipv6a[1] = 0x80;
38242        ipv6a[8] = 0x02;
38243        ipv6a[9] = 0x14;
38244        ipv6a[10] = 0x4f;
38245        ipv6a[11] = 0xff;
38246        ipv6a[12] = 0xfe;
38247        ipv6a[13] = 0x0b;
38248        ipv6a[14] = 0x76;
38249        ipv6a[15] = 0xc8;
38250        ipv6a[25] = 0x01;
38251        /* - */
38252        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
38253        if(!ipv6ptr)
38254          exit(1); /* fail */
38255        if(ipv6ptr != ipv6res)
38256          exit(1); /* fail */
38257        if(!ipv6ptr[0])
38258          exit(1); /* fail */
38259        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
38260          exit(1); /* fail */
38261        /* - */
38262        exit(0);
38263
38264 ;
38265 return 0;
38266}
38267
38268_ACEOF
38269if ac_fn_c_try_run "$LINENO"; then :
38270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38271$as_echo "yes" >&6; }
38272      tst_works_inet_ntop="yes"
38273
38274else
38275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38276$as_echo "no" >&6; }
38277      tst_works_inet_ntop="no"
38278
38279fi
38280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38281  conftest.$ac_objext conftest.beam conftest.$ac_ext
38282fi
38283
38284   LD_LIBRARY_PATH=$old # restore
38285
38286  fi
38287  #
38288  if test "$tst_compi_inet_ntop" = "yes" &&
38289    test "$tst_works_inet_ntop" != "no"; then
38290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
38291$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
38292    if test "x$curl_disallow_inet_ntop" != "xyes"; then
38293      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38294$as_echo "yes" >&6; }
38295      tst_allow_inet_ntop="yes"
38296    else
38297      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38298$as_echo "no" >&6; }
38299      tst_allow_inet_ntop="no"
38300    fi
38301  fi
38302  #
38303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
38304$as_echo_n "checking if inet_ntop might be used... " >&6; }
38305  if test "$tst_links_inet_ntop" = "yes" &&
38306     test "$tst_proto_inet_ntop" = "yes" &&
38307     test "$tst_compi_inet_ntop" = "yes" &&
38308     test "$tst_allow_inet_ntop" = "yes" &&
38309     test "$tst_works_inet_ntop" != "no"; then
38310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38311$as_echo "yes" >&6; }
38312
38313cat >>confdefs.h <<_ACEOF
38314#define HAVE_INET_NTOP 1
38315_ACEOF
38316
38317    curl_cv_func_inet_ntop="yes"
38318  else
38319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38320$as_echo "no" >&6; }
38321    curl_cv_func_inet_ntop="no"
38322  fi
38323
38324
38325        #
38326  tst_links_inet_pton="unknown"
38327  tst_proto_inet_pton="unknown"
38328  tst_compi_inet_pton="unknown"
38329  tst_works_inet_pton="unknown"
38330  tst_allow_inet_pton="unknown"
38331  #
38332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
38333$as_echo_n "checking if inet_pton can be linked... " >&6; }
38334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38335/* end confdefs.h.  */
38336
38337
38338#define inet_pton innocuous_inet_pton
38339#ifdef __STDC__
38340# include <limits.h>
38341#else
38342# include <assert.h>
38343#endif
38344#undef inet_pton
38345#ifdef __cplusplus
38346extern "C"
38347#endif
38348char inet_pton ();
38349#if defined __stub_inet_pton || defined __stub___inet_pton
38350choke me
38351#endif
38352
38353int main (void)
38354{
38355return inet_pton ();
38356 ;
38357 return 0;
38358}
38359
38360_ACEOF
38361if ac_fn_c_try_link "$LINENO"; then :
38362
38363    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38364$as_echo "yes" >&6; }
38365    tst_links_inet_pton="yes"
38366
38367else
38368
38369    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38370$as_echo "no" >&6; }
38371    tst_links_inet_pton="no"
38372
38373fi
38374rm -f core conftest.err conftest.$ac_objext \
38375    conftest$ac_exeext conftest.$ac_ext
38376  #
38377  if test "$tst_links_inet_pton" = "yes"; then
38378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
38379$as_echo_n "checking if inet_pton is prototyped... " >&6; }
38380    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38381/* end confdefs.h.  */
38382
38383      $curl_includes_arpa_inet
38384
38385_ACEOF
38386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38387  $EGREP "inet_pton" >/dev/null 2>&1; then :
38388
38389      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38390$as_echo "yes" >&6; }
38391      tst_proto_inet_pton="yes"
38392
38393else
38394
38395      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38396$as_echo "no" >&6; }
38397      tst_proto_inet_pton="no"
38398
38399fi
38400rm -f conftest*
38401
38402  fi
38403  #
38404  if test "$tst_proto_inet_pton" = "yes"; then
38405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
38406$as_echo_n "checking if inet_pton is compilable... " >&6; }
38407    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38408/* end confdefs.h.  */
38409
38410
38411        $curl_includes_arpa_inet
38412
38413int main (void)
38414{
38415
38416        if(0 != inet_pton(0, 0, 0))
38417          return 1;
38418
38419 ;
38420 return 0;
38421}
38422
38423_ACEOF
38424if ac_fn_c_try_compile "$LINENO"; then :
38425
38426      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38427$as_echo "yes" >&6; }
38428      tst_compi_inet_pton="yes"
38429
38430else
38431
38432      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38433$as_echo "no" >&6; }
38434      tst_compi_inet_pton="no"
38435
38436fi
38437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38438  fi
38439  #
38440    if test "x$cross_compiling" != "xyes" &&
38441    test "$tst_compi_inet_pton" = "yes"; then
38442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
38443$as_echo_n "checking if inet_pton seems to work... " >&6; }
38444
38445   old=$LD_LIBRARY_PATH
38446   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38447   export LD_LIBRARY_PATH
38448   if test "$cross_compiling" = yes; then :
38449  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38451as_fn_error $? "cannot run test program while cross compiling
38452See \`config.log' for more details" "$LINENO" 5; }
38453else
38454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38455/* end confdefs.h.  */
38456
38457
38458        $curl_includes_stdlib
38459        $curl_includes_arpa_inet
38460        $curl_includes_string
38461
38462int main (void)
38463{
38464
38465        unsigned char ipv6a[16+1];
38466        unsigned char ipv4a[4+1];
38467        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
38468        const char *ipv4src = "192.168.100.1";
38469        /* - */
38470        memset(ipv4a, 1, sizeof(ipv4a));
38471        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
38472          exit(1); /* fail */
38473        /* - */
38474        if( (ipv4a[0] != 0xc0) ||
38475            (ipv4a[1] != 0xa8) ||
38476            (ipv4a[2] != 0x64) ||
38477            (ipv4a[3] != 0x01) ||
38478            (ipv4a[4] != 0x01) )
38479          exit(1); /* fail */
38480        /* - */
38481        memset(ipv6a, 1, sizeof(ipv6a));
38482        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
38483          exit(1); /* fail */
38484        /* - */
38485        if( (ipv6a[0]  != 0xfe) ||
38486            (ipv6a[1]  != 0x80) ||
38487            (ipv6a[8]  != 0x02) ||
38488            (ipv6a[9]  != 0x14) ||
38489            (ipv6a[10] != 0x4f) ||
38490            (ipv6a[11] != 0xff) ||
38491            (ipv6a[12] != 0xfe) ||
38492            (ipv6a[13] != 0x0b) ||
38493            (ipv6a[14] != 0x76) ||
38494            (ipv6a[15] != 0xc8) ||
38495            (ipv6a[16] != 0x01) )
38496          exit(1); /* fail */
38497        /* - */
38498        if( (ipv6a[2]  != 0x0) ||
38499            (ipv6a[3]  != 0x0) ||
38500            (ipv6a[4]  != 0x0) ||
38501            (ipv6a[5]  != 0x0) ||
38502            (ipv6a[6]  != 0x0) ||
38503            (ipv6a[7]  != 0x0) )
38504          exit(1); /* fail */
38505        /* - */
38506        exit(0);
38507
38508 ;
38509 return 0;
38510}
38511
38512_ACEOF
38513if ac_fn_c_try_run "$LINENO"; then :
38514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38515$as_echo "yes" >&6; }
38516      tst_works_inet_pton="yes"
38517
38518else
38519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38520$as_echo "no" >&6; }
38521      tst_works_inet_pton="no"
38522
38523fi
38524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38525  conftest.$ac_objext conftest.beam conftest.$ac_ext
38526fi
38527
38528   LD_LIBRARY_PATH=$old # restore
38529
38530  fi
38531  #
38532  if test "$tst_compi_inet_pton" = "yes" &&
38533    test "$tst_works_inet_pton" != "no"; then
38534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
38535$as_echo_n "checking if inet_pton usage allowed... " >&6; }
38536    if test "x$curl_disallow_inet_pton" != "xyes"; then
38537      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38538$as_echo "yes" >&6; }
38539      tst_allow_inet_pton="yes"
38540    else
38541      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38542$as_echo "no" >&6; }
38543      tst_allow_inet_pton="no"
38544    fi
38545  fi
38546  #
38547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
38548$as_echo_n "checking if inet_pton might be used... " >&6; }
38549  if test "$tst_links_inet_pton" = "yes" &&
38550     test "$tst_proto_inet_pton" = "yes" &&
38551     test "$tst_compi_inet_pton" = "yes" &&
38552     test "$tst_allow_inet_pton" = "yes" &&
38553     test "$tst_works_inet_pton" != "no"; then
38554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38555$as_echo "yes" >&6; }
38556
38557cat >>confdefs.h <<_ACEOF
38558#define HAVE_INET_PTON 1
38559_ACEOF
38560
38561    curl_cv_func_inet_pton="yes"
38562  else
38563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38564$as_echo "no" >&6; }
38565    curl_cv_func_inet_pton="no"
38566  fi
38567
38568
38569curl_includes_stropts="\
38570/* includes start */
38571#ifdef HAVE_SYS_TYPES_H
38572#  include <sys/types.h>
38573#endif
38574#ifdef HAVE_UNISTD_H
38575#  include <unistd.h>
38576#endif
38577#ifdef HAVE_SYS_SOCKET_H
38578#  include <sys/socket.h>
38579#endif
38580#ifdef HAVE_SYS_IOCTL_H
38581#  include <sys/ioctl.h>
38582#endif
38583#ifdef HAVE_STROPTS_H
38584#  include <stropts.h>
38585#endif
38586/* includes end */"
38587  for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
38588do :
38589  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38590ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
38591"
38592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38593  cat >>confdefs.h <<_ACEOF
38594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38595_ACEOF
38596
38597fi
38598
38599done
38600
38601
38602
38603    #
38604  tst_links_ioctl="unknown"
38605  tst_proto_ioctl="unknown"
38606  tst_compi_ioctl="unknown"
38607  tst_allow_ioctl="unknown"
38608  #
38609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
38610$as_echo_n "checking if ioctl can be linked... " >&6; }
38611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38612/* end confdefs.h.  */
38613
38614
38615#define ioctl innocuous_ioctl
38616#ifdef __STDC__
38617# include <limits.h>
38618#else
38619# include <assert.h>
38620#endif
38621#undef ioctl
38622#ifdef __cplusplus
38623extern "C"
38624#endif
38625char ioctl ();
38626#if defined __stub_ioctl || defined __stub___ioctl
38627choke me
38628#endif
38629
38630int main (void)
38631{
38632return ioctl ();
38633 ;
38634 return 0;
38635}
38636
38637_ACEOF
38638if ac_fn_c_try_link "$LINENO"; then :
38639
38640    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38641$as_echo "yes" >&6; }
38642    tst_links_ioctl="yes"
38643
38644else
38645
38646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38647$as_echo "no" >&6; }
38648    tst_links_ioctl="no"
38649
38650fi
38651rm -f core conftest.err conftest.$ac_objext \
38652    conftest$ac_exeext conftest.$ac_ext
38653  #
38654  if test "$tst_links_ioctl" = "yes"; then
38655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
38656$as_echo_n "checking if ioctl is prototyped... " >&6; }
38657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38658/* end confdefs.h.  */
38659
38660      $curl_includes_stropts
38661
38662_ACEOF
38663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38664  $EGREP "ioctl" >/dev/null 2>&1; then :
38665
38666      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38667$as_echo "yes" >&6; }
38668      tst_proto_ioctl="yes"
38669
38670else
38671
38672      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38673$as_echo "no" >&6; }
38674      tst_proto_ioctl="no"
38675
38676fi
38677rm -f conftest*
38678
38679  fi
38680  #
38681  if test "$tst_proto_ioctl" = "yes"; then
38682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
38683$as_echo_n "checking if ioctl is compilable... " >&6; }
38684    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38685/* end confdefs.h.  */
38686
38687
38688        $curl_includes_stropts
38689
38690int main (void)
38691{
38692
38693        if(0 != ioctl(0, 0, 0))
38694          return 1;
38695
38696 ;
38697 return 0;
38698}
38699
38700_ACEOF
38701if ac_fn_c_try_compile "$LINENO"; then :
38702
38703      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38704$as_echo "yes" >&6; }
38705      tst_compi_ioctl="yes"
38706
38707else
38708
38709      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38710$as_echo "no" >&6; }
38711      tst_compi_ioctl="no"
38712
38713fi
38714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38715  fi
38716  #
38717  if test "$tst_compi_ioctl" = "yes"; then
38718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
38719$as_echo_n "checking if ioctl usage allowed... " >&6; }
38720    if test "x$curl_disallow_ioctl" != "xyes"; then
38721      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38722$as_echo "yes" >&6; }
38723      tst_allow_ioctl="yes"
38724    else
38725      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38726$as_echo "no" >&6; }
38727      tst_allow_ioctl="no"
38728    fi
38729  fi
38730  #
38731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
38732$as_echo_n "checking if ioctl might be used... " >&6; }
38733  if test "$tst_links_ioctl" = "yes" &&
38734     test "$tst_proto_ioctl" = "yes" &&
38735     test "$tst_compi_ioctl" = "yes" &&
38736     test "$tst_allow_ioctl" = "yes"; then
38737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38738$as_echo "yes" >&6; }
38739
38740cat >>confdefs.h <<_ACEOF
38741#define HAVE_IOCTL 1
38742_ACEOF
38743
38744    curl_cv_func_ioctl="yes"
38745
38746  #
38747  tst_compi_ioctl_fionbio="unknown"
38748  tst_allow_ioctl_fionbio="unknown"
38749  #
38750  if test "$curl_cv_func_ioctl" = "yes"; then
38751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
38752$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
38753    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38754/* end confdefs.h.  */
38755
38756
38757        $curl_includes_stropts
38758
38759int main (void)
38760{
38761
38762        int flags = 0;
38763        if(0 != ioctl(0, FIONBIO, &flags))
38764          return 1;
38765
38766 ;
38767 return 0;
38768}
38769
38770_ACEOF
38771if ac_fn_c_try_compile "$LINENO"; then :
38772
38773      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38774$as_echo "yes" >&6; }
38775      tst_compi_ioctl_fionbio="yes"
38776
38777else
38778
38779      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38780$as_echo "no" >&6; }
38781      tst_compi_ioctl_fionbio="no"
38782
38783fi
38784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38785  fi
38786  #
38787  if test "$tst_compi_ioctl_fionbio" = "yes"; then
38788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
38789$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
38790    if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
38791      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38792$as_echo "yes" >&6; }
38793      tst_allow_ioctl_fionbio="yes"
38794    else
38795      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38796$as_echo "no" >&6; }
38797      tst_allow_ioctl_fionbio="no"
38798    fi
38799  fi
38800  #
38801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
38802$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
38803  if test "$tst_compi_ioctl_fionbio" = "yes" &&
38804     test "$tst_allow_ioctl_fionbio" = "yes"; then
38805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38806$as_echo "yes" >&6; }
38807
38808cat >>confdefs.h <<_ACEOF
38809#define HAVE_IOCTL_FIONBIO 1
38810_ACEOF
38811
38812    curl_cv_func_ioctl_fionbio="yes"
38813  else
38814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38815$as_echo "no" >&6; }
38816    curl_cv_func_ioctl_fionbio="no"
38817  fi
38818
38819
38820  #
38821  tst_compi_ioctl_siocgifaddr="unknown"
38822  tst_allow_ioctl_siocgifaddr="unknown"
38823  #
38824  if test "$curl_cv_func_ioctl" = "yes"; then
38825    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
38826$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
38827    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38828/* end confdefs.h.  */
38829
38830
38831        $curl_includes_stropts
38832        #include <net/if.h>
38833
38834int main (void)
38835{
38836
38837        struct ifreq ifr;
38838        if(0 != ioctl(0, SIOCGIFADDR, &ifr))
38839          return 1;
38840
38841 ;
38842 return 0;
38843}
38844
38845_ACEOF
38846if ac_fn_c_try_compile "$LINENO"; then :
38847
38848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38849$as_echo "yes" >&6; }
38850      tst_compi_ioctl_siocgifaddr="yes"
38851
38852else
38853
38854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38855$as_echo "no" >&6; }
38856      tst_compi_ioctl_siocgifaddr="no"
38857
38858fi
38859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38860  fi
38861  #
38862  if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
38863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
38864$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
38865    if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
38866      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38867$as_echo "yes" >&6; }
38868      tst_allow_ioctl_siocgifaddr="yes"
38869    else
38870      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38871$as_echo "no" >&6; }
38872      tst_allow_ioctl_siocgifaddr="no"
38873    fi
38874  fi
38875  #
38876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
38877$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
38878  if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
38879     test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
38880    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38881$as_echo "yes" >&6; }
38882
38883cat >>confdefs.h <<_ACEOF
38884#define HAVE_IOCTL_SIOCGIFADDR 1
38885_ACEOF
38886
38887    curl_cv_func_ioctl_siocgifaddr="yes"
38888  else
38889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38890$as_echo "no" >&6; }
38891    curl_cv_func_ioctl_siocgifaddr="no"
38892  fi
38893
38894  else
38895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38896$as_echo "no" >&6; }
38897    curl_cv_func_ioctl="no"
38898  fi
38899
38900
38901    #
38902  tst_links_ioctlsocket="unknown"
38903  tst_proto_ioctlsocket="unknown"
38904  tst_compi_ioctlsocket="unknown"
38905  tst_allow_ioctlsocket="unknown"
38906  #
38907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
38908$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
38909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38910/* end confdefs.h.  */
38911
38912
38913      $curl_includes_winsock2
38914      $curl_includes_bsdsocket
38915
38916int main (void)
38917{
38918
38919      if(0 != ioctlsocket(0, 0, 0))
38920        return 1;
38921
38922 ;
38923 return 0;
38924}
38925
38926_ACEOF
38927if ac_fn_c_try_link "$LINENO"; then :
38928
38929    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38930$as_echo "yes" >&6; }
38931    tst_links_ioctlsocket="yes"
38932
38933else
38934
38935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38936$as_echo "no" >&6; }
38937    tst_links_ioctlsocket="no"
38938
38939fi
38940rm -f core conftest.err conftest.$ac_objext \
38941    conftest$ac_exeext conftest.$ac_ext
38942  #
38943  if test "$tst_links_ioctlsocket" = "yes"; then
38944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
38945$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
38946    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38947/* end confdefs.h.  */
38948
38949      $curl_includes_winsock2
38950      $curl_includes_bsdsocket
38951
38952_ACEOF
38953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38954  $EGREP "ioctlsocket" >/dev/null 2>&1; then :
38955
38956      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38957$as_echo "yes" >&6; }
38958      tst_proto_ioctlsocket="yes"
38959
38960else
38961
38962      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38963$as_echo "no" >&6; }
38964      tst_proto_ioctlsocket="no"
38965
38966fi
38967rm -f conftest*
38968
38969  fi
38970  #
38971  if test "$tst_proto_ioctlsocket" = "yes"; then
38972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
38973$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
38974    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38975/* end confdefs.h.  */
38976
38977
38978        $curl_includes_winsock2
38979      $curl_includes_bsdsocket
38980
38981int main (void)
38982{
38983
38984        if(0 != ioctlsocket(0, 0, 0))
38985          return 1;
38986
38987 ;
38988 return 0;
38989}
38990
38991_ACEOF
38992if ac_fn_c_try_compile "$LINENO"; then :
38993
38994      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38995$as_echo "yes" >&6; }
38996      tst_compi_ioctlsocket="yes"
38997
38998else
38999
39000      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39001$as_echo "no" >&6; }
39002      tst_compi_ioctlsocket="no"
39003
39004fi
39005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39006  fi
39007  #
39008  if test "$tst_compi_ioctlsocket" = "yes"; then
39009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
39010$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
39011    if test "x$curl_disallow_ioctlsocket" != "xyes"; then
39012      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39013$as_echo "yes" >&6; }
39014      tst_allow_ioctlsocket="yes"
39015    else
39016      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39017$as_echo "no" >&6; }
39018      tst_allow_ioctlsocket="no"
39019    fi
39020  fi
39021  #
39022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
39023$as_echo_n "checking if ioctlsocket might be used... " >&6; }
39024  if test "$tst_links_ioctlsocket" = "yes" &&
39025     test "$tst_proto_ioctlsocket" = "yes" &&
39026     test "$tst_compi_ioctlsocket" = "yes" &&
39027     test "$tst_allow_ioctlsocket" = "yes"; then
39028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39029$as_echo "yes" >&6; }
39030
39031cat >>confdefs.h <<_ACEOF
39032#define HAVE_IOCTLSOCKET 1
39033_ACEOF
39034
39035    curl_cv_func_ioctlsocket="yes"
39036
39037  #
39038  tst_compi_ioctlsocket_fionbio="unknown"
39039  tst_allow_ioctlsocket_fionbio="unknown"
39040  #
39041  if test "$curl_cv_func_ioctlsocket" = "yes"; then
39042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
39043$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
39044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39045/* end confdefs.h.  */
39046
39047
39048        $curl_includes_winsock2
39049      $curl_includes_bsdsocket
39050
39051int main (void)
39052{
39053
39054        int flags = 0;
39055        if(0 != ioctlsocket(0, FIONBIO, &flags))
39056          return 1;
39057
39058 ;
39059 return 0;
39060}
39061
39062_ACEOF
39063if ac_fn_c_try_compile "$LINENO"; then :
39064
39065      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39066$as_echo "yes" >&6; }
39067      tst_compi_ioctlsocket_fionbio="yes"
39068
39069else
39070
39071      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39072$as_echo "no" >&6; }
39073      tst_compi_ioctlsocket_fionbio="no"
39074
39075fi
39076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39077  fi
39078  #
39079  if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
39080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
39081$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
39082    if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
39083      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39084$as_echo "yes" >&6; }
39085      tst_allow_ioctlsocket_fionbio="yes"
39086    else
39087      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39088$as_echo "no" >&6; }
39089      tst_allow_ioctlsocket_fionbio="no"
39090    fi
39091  fi
39092  #
39093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
39094$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
39095  if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
39096     test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
39097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39098$as_echo "yes" >&6; }
39099
39100cat >>confdefs.h <<_ACEOF
39101#define HAVE_IOCTLSOCKET_FIONBIO 1
39102_ACEOF
39103
39104    curl_cv_func_ioctlsocket_fionbio="yes"
39105  else
39106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39107$as_echo "no" >&6; }
39108    curl_cv_func_ioctlsocket_fionbio="no"
39109  fi
39110
39111  else
39112    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39113$as_echo "no" >&6; }
39114    curl_cv_func_ioctlsocket="no"
39115  fi
39116
39117
39118    #
39119  tst_links_ioctlsocket_camel="unknown"
39120  tst_proto_ioctlsocket_camel="unknown"
39121  tst_compi_ioctlsocket_camel="unknown"
39122  tst_allow_ioctlsocket_camel="unknown"
39123  #
39124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
39125$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
39126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39127/* end confdefs.h.  */
39128
39129
39130#define IoctlSocket innocuous_IoctlSocket
39131#ifdef __STDC__
39132# include <limits.h>
39133#else
39134# include <assert.h>
39135#endif
39136#undef IoctlSocket
39137#ifdef __cplusplus
39138extern "C"
39139#endif
39140char IoctlSocket ();
39141#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
39142choke me
39143#endif
39144
39145int main (void)
39146{
39147return IoctlSocket ();
39148 ;
39149 return 0;
39150}
39151
39152_ACEOF
39153if ac_fn_c_try_link "$LINENO"; then :
39154
39155    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39156$as_echo "yes" >&6; }
39157    tst_links_ioctlsocket_camel="yes"
39158
39159else
39160
39161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39162$as_echo "no" >&6; }
39163    tst_links_ioctlsocket_camel="no"
39164
39165fi
39166rm -f core conftest.err conftest.$ac_objext \
39167    conftest$ac_exeext conftest.$ac_ext
39168  #
39169  if test "$tst_links_ioctlsocket_camel" = "yes"; then
39170    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
39171$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
39172    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39173/* end confdefs.h.  */
39174
39175      $curl_includes_stropts
39176
39177_ACEOF
39178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39179  $EGREP "IoctlSocket" >/dev/null 2>&1; then :
39180
39181      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39182$as_echo "yes" >&6; }
39183      tst_proto_ioctlsocket_camel="yes"
39184
39185else
39186
39187      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39188$as_echo "no" >&6; }
39189      tst_proto_ioctlsocket_camel="no"
39190
39191fi
39192rm -f conftest*
39193
39194  fi
39195  #
39196  if test "$tst_proto_ioctlsocket_camel" = "yes"; then
39197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
39198$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
39199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39200/* end confdefs.h.  */
39201
39202
39203        $curl_includes_stropts
39204
39205int main (void)
39206{
39207
39208        if(0 != IoctlSocket(0, 0, 0))
39209          return 1;
39210
39211 ;
39212 return 0;
39213}
39214
39215_ACEOF
39216if ac_fn_c_try_compile "$LINENO"; then :
39217
39218      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39219$as_echo "yes" >&6; }
39220      tst_compi_ioctlsocket_camel="yes"
39221
39222else
39223
39224      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39225$as_echo "no" >&6; }
39226      tst_compi_ioctlsocket_camel="no"
39227
39228fi
39229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39230  fi
39231  #
39232  if test "$tst_compi_ioctlsocket_camel" = "yes"; then
39233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
39234$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
39235    if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
39236      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39237$as_echo "yes" >&6; }
39238      tst_allow_ioctlsocket_camel="yes"
39239    else
39240      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39241$as_echo "no" >&6; }
39242      tst_allow_ioctlsocket_camel="no"
39243    fi
39244  fi
39245  #
39246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
39247$as_echo_n "checking if IoctlSocket might be used... " >&6; }
39248  if test "$tst_links_ioctlsocket_camel" = "yes" &&
39249     test "$tst_proto_ioctlsocket_camel" = "yes" &&
39250     test "$tst_compi_ioctlsocket_camel" = "yes" &&
39251     test "$tst_allow_ioctlsocket_camel" = "yes"; then
39252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39253$as_echo "yes" >&6; }
39254
39255cat >>confdefs.h <<_ACEOF
39256#define HAVE_IOCTLSOCKET_CAMEL 1
39257_ACEOF
39258
39259    curl_cv_func_ioctlsocket_camel="yes"
39260
39261  #
39262  tst_compi_ioctlsocket_camel_fionbio="unknown"
39263  tst_allow_ioctlsocket_camel_fionbio="unknown"
39264  #
39265  if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
39266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
39267$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
39268    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39269/* end confdefs.h.  */
39270
39271
39272        $curl_includes_stropts
39273
39274int main (void)
39275{
39276
39277        long flags = 0;
39278        if(0 != ioctlsocket(0, FIONBIO, &flags))
39279          return 1;
39280
39281 ;
39282 return 0;
39283}
39284
39285_ACEOF
39286if ac_fn_c_try_compile "$LINENO"; then :
39287
39288      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39289$as_echo "yes" >&6; }
39290      tst_compi_ioctlsocket_camel_fionbio="yes"
39291
39292else
39293
39294      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39295$as_echo "no" >&6; }
39296      tst_compi_ioctlsocket_camel_fionbio="no"
39297
39298fi
39299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39300  fi
39301  #
39302  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
39303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
39304$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
39305    if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
39306      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39307$as_echo "yes" >&6; }
39308      tst_allow_ioctlsocket_camel_fionbio="yes"
39309    else
39310      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39311$as_echo "no" >&6; }
39312      tst_allow_ioctlsocket_camel_fionbio="no"
39313    fi
39314  fi
39315  #
39316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
39317$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
39318  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
39319     test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
39320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39321$as_echo "yes" >&6; }
39322
39323cat >>confdefs.h <<_ACEOF
39324#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
39325_ACEOF
39326
39327    curl_cv_func_ioctlsocket_camel_fionbio="yes"
39328  else
39329    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39330$as_echo "no" >&6; }
39331    curl_cv_func_ioctlsocket_camel_fionbio="no"
39332  fi
39333
39334  else
39335    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39336$as_echo "no" >&6; }
39337    curl_cv_func_ioctlsocket_camel="no"
39338  fi
39339
39340
39341      #
39342  tst_links_localtime_r="unknown"
39343  tst_proto_localtime_r="unknown"
39344  tst_compi_localtime_r="unknown"
39345  tst_works_localtime_r="unknown"
39346  tst_allow_localtime_r="unknown"
39347  #
39348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
39349$as_echo_n "checking if localtime_r can be linked... " >&6; }
39350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39351/* end confdefs.h.  */
39352
39353
39354#define localtime_r innocuous_localtime_r
39355#ifdef __STDC__
39356# include <limits.h>
39357#else
39358# include <assert.h>
39359#endif
39360#undef localtime_r
39361#ifdef __cplusplus
39362extern "C"
39363#endif
39364char localtime_r ();
39365#if defined __stub_localtime_r || defined __stub___localtime_r
39366choke me
39367#endif
39368
39369int main (void)
39370{
39371return localtime_r ();
39372 ;
39373 return 0;
39374}
39375
39376_ACEOF
39377if ac_fn_c_try_link "$LINENO"; then :
39378
39379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39380$as_echo "yes" >&6; }
39381    tst_links_localtime_r="yes"
39382
39383else
39384
39385    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39386$as_echo "no" >&6; }
39387    tst_links_localtime_r="no"
39388
39389fi
39390rm -f core conftest.err conftest.$ac_objext \
39391    conftest$ac_exeext conftest.$ac_ext
39392  #
39393  if test "$tst_links_localtime_r" = "yes"; then
39394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
39395$as_echo_n "checking if localtime_r is prototyped... " >&6; }
39396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39397/* end confdefs.h.  */
39398
39399      $curl_includes_time
39400
39401_ACEOF
39402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39403  $EGREP "localtime_r" >/dev/null 2>&1; then :
39404
39405      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39406$as_echo "yes" >&6; }
39407      tst_proto_localtime_r="yes"
39408
39409else
39410
39411      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39412$as_echo "no" >&6; }
39413      tst_proto_localtime_r="no"
39414
39415fi
39416rm -f conftest*
39417
39418  fi
39419  #
39420  if test "$tst_proto_localtime_r" = "yes"; then
39421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
39422$as_echo_n "checking if localtime_r is compilable... " >&6; }
39423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39424/* end confdefs.h.  */
39425
39426
39427        $curl_includes_time
39428
39429int main (void)
39430{
39431
39432        if(0 != localtime_r(0, 0))
39433          return 1;
39434
39435 ;
39436 return 0;
39437}
39438
39439_ACEOF
39440if ac_fn_c_try_compile "$LINENO"; then :
39441
39442      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39443$as_echo "yes" >&6; }
39444      tst_compi_localtime_r="yes"
39445
39446else
39447
39448      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39449$as_echo "no" >&6; }
39450      tst_compi_localtime_r="no"
39451
39452fi
39453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39454  fi
39455  #
39456    if test "x$cross_compiling" != "xyes" &&
39457    test "$tst_compi_localtime_r" = "yes"; then
39458    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
39459$as_echo_n "checking if localtime_r seems to work... " >&6; }
39460
39461   old=$LD_LIBRARY_PATH
39462   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39463   export LD_LIBRARY_PATH
39464   if test "$cross_compiling" = yes; then :
39465  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39467as_fn_error $? "cannot run test program while cross compiling
39468See \`config.log' for more details" "$LINENO" 5; }
39469else
39470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39471/* end confdefs.h.  */
39472
39473
39474        $curl_includes_stdlib
39475        $curl_includes_time
39476
39477int main (void)
39478{
39479
39480        time_t clock = 1170352587;
39481        struct tm *tmp = 0;
39482        struct tm result;
39483        tmp = localtime_r(&clock, &result);
39484        if(tmp)
39485          exit(0);
39486        else
39487          exit(1);
39488
39489 ;
39490 return 0;
39491}
39492
39493_ACEOF
39494if ac_fn_c_try_run "$LINENO"; then :
39495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39496$as_echo "yes" >&6; }
39497      tst_works_localtime_r="yes"
39498
39499else
39500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39501$as_echo "no" >&6; }
39502      tst_works_localtime_r="no"
39503
39504fi
39505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39506  conftest.$ac_objext conftest.beam conftest.$ac_ext
39507fi
39508
39509   LD_LIBRARY_PATH=$old # restore
39510
39511  fi
39512  #
39513  if test "$tst_compi_localtime_r" = "yes" &&
39514    test "$tst_works_localtime_r" != "no"; then
39515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
39516$as_echo_n "checking if localtime_r usage allowed... " >&6; }
39517    if test "x$curl_disallow_localtime_r" != "xyes"; then
39518      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39519$as_echo "yes" >&6; }
39520      tst_allow_localtime_r="yes"
39521    else
39522      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39523$as_echo "no" >&6; }
39524      tst_allow_localtime_r="no"
39525    fi
39526  fi
39527  #
39528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
39529$as_echo_n "checking if localtime_r might be used... " >&6; }
39530  if test "$tst_links_localtime_r" = "yes" &&
39531     test "$tst_proto_localtime_r" = "yes" &&
39532     test "$tst_compi_localtime_r" = "yes" &&
39533     test "$tst_allow_localtime_r" = "yes" &&
39534     test "$tst_works_localtime_r" != "no"; then
39535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39536$as_echo "yes" >&6; }
39537
39538cat >>confdefs.h <<_ACEOF
39539#define HAVE_LOCALTIME_R 1
39540_ACEOF
39541
39542    curl_cv_func_localtime_r="yes"
39543  else
39544    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39545$as_echo "no" >&6; }
39546    curl_cv_func_localtime_r="no"
39547  fi
39548
39549
39550    #
39551  tst_links_memrchr="unknown"
39552  tst_macro_memrchr="unknown"
39553  tst_proto_memrchr="unknown"
39554  tst_compi_memrchr="unknown"
39555  tst_allow_memrchr="unknown"
39556  #
39557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
39558$as_echo_n "checking if memrchr can be linked... " >&6; }
39559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39560/* end confdefs.h.  */
39561
39562
39563#define memrchr innocuous_memrchr
39564#ifdef __STDC__
39565# include <limits.h>
39566#else
39567# include <assert.h>
39568#endif
39569#undef memrchr
39570#ifdef __cplusplus
39571extern "C"
39572#endif
39573char memrchr ();
39574#if defined __stub_memrchr || defined __stub___memrchr
39575choke me
39576#endif
39577
39578int main (void)
39579{
39580return memrchr ();
39581 ;
39582 return 0;
39583}
39584
39585_ACEOF
39586if ac_fn_c_try_link "$LINENO"; then :
39587
39588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39589$as_echo "yes" >&6; }
39590    tst_links_memrchr="yes"
39591
39592else
39593
39594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39595$as_echo "no" >&6; }
39596    tst_links_memrchr="no"
39597
39598fi
39599rm -f core conftest.err conftest.$ac_objext \
39600    conftest$ac_exeext conftest.$ac_ext
39601  #
39602  if test "$tst_links_memrchr" = "no"; then
39603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
39604$as_echo_n "checking if memrchr seems a macro... " >&6; }
39605    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39606/* end confdefs.h.  */
39607
39608
39609        $curl_includes_string
39610
39611int main (void)
39612{
39613
39614        if(0 != memrchr(0, 0, 0))
39615          return 1;
39616
39617 ;
39618 return 0;
39619}
39620
39621_ACEOF
39622if ac_fn_c_try_link "$LINENO"; then :
39623
39624      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39625$as_echo "yes" >&6; }
39626      tst_macro_memrchr="yes"
39627
39628else
39629
39630      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39631$as_echo "no" >&6; }
39632      tst_macro_memrchr="no"
39633
39634fi
39635rm -f core conftest.err conftest.$ac_objext \
39636    conftest$ac_exeext conftest.$ac_ext
39637  fi
39638  #
39639  if test "$tst_links_memrchr" = "yes"; then
39640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
39641$as_echo_n "checking if memrchr is prototyped... " >&6; }
39642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39643/* end confdefs.h.  */
39644
39645      $curl_includes_string
39646
39647_ACEOF
39648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39649  $EGREP "memrchr" >/dev/null 2>&1; then :
39650
39651      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39652$as_echo "yes" >&6; }
39653      tst_proto_memrchr="yes"
39654
39655else
39656
39657      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39658$as_echo "no" >&6; }
39659      tst_proto_memrchr="no"
39660
39661fi
39662rm -f conftest*
39663
39664  fi
39665  #
39666  if test "$tst_proto_memrchr" = "yes" ||
39667     test "$tst_macro_memrchr" = "yes"; then
39668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
39669$as_echo_n "checking if memrchr is compilable... " >&6; }
39670    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39671/* end confdefs.h.  */
39672
39673
39674        $curl_includes_string
39675
39676int main (void)
39677{
39678
39679        if(0 != memrchr(0, 0, 0))
39680          return 1;
39681
39682 ;
39683 return 0;
39684}
39685
39686_ACEOF
39687if ac_fn_c_try_compile "$LINENO"; then :
39688
39689      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39690$as_echo "yes" >&6; }
39691      tst_compi_memrchr="yes"
39692
39693else
39694
39695      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39696$as_echo "no" >&6; }
39697      tst_compi_memrchr="no"
39698
39699fi
39700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39701  fi
39702  #
39703  if test "$tst_compi_memrchr" = "yes"; then
39704    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
39705$as_echo_n "checking if memrchr usage allowed... " >&6; }
39706    if test "x$curl_disallow_memrchr" != "xyes"; then
39707      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39708$as_echo "yes" >&6; }
39709      tst_allow_memrchr="yes"
39710    else
39711      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39712$as_echo "no" >&6; }
39713      tst_allow_memrchr="no"
39714    fi
39715  fi
39716  #
39717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
39718$as_echo_n "checking if memrchr might be used... " >&6; }
39719  if (test "$tst_proto_memrchr" = "yes" ||
39720      test "$tst_macro_memrchr" = "yes") &&
39721     test "$tst_compi_memrchr" = "yes" &&
39722     test "$tst_allow_memrchr" = "yes"; then
39723    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39724$as_echo "yes" >&6; }
39725
39726cat >>confdefs.h <<_ACEOF
39727#define HAVE_MEMRCHR 1
39728_ACEOF
39729
39730    curl_cv_func_memrchr="yes"
39731  else
39732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39733$as_echo "no" >&6; }
39734    curl_cv_func_memrchr="no"
39735  fi
39736
39737
39738      #
39739  tst_links_poll="unknown"
39740  tst_proto_poll="unknown"
39741  tst_compi_poll="unknown"
39742  tst_works_poll="unknown"
39743  tst_allow_poll="unknown"
39744  #
39745  case $host_os in
39746    darwin*|interix*)
39747                                          curl_disallow_poll="yes"
39748      tst_compi_poll="no"
39749      ;;
39750  esac
39751  #
39752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
39753$as_echo_n "checking if poll can be linked... " >&6; }
39754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39755/* end confdefs.h.  */
39756
39757
39758      $curl_includes_poll
39759
39760int main (void)
39761{
39762
39763      if(0 != poll(0, 0, 0))
39764        return 1;
39765
39766 ;
39767 return 0;
39768}
39769
39770_ACEOF
39771if ac_fn_c_try_link "$LINENO"; then :
39772
39773    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39774$as_echo "yes" >&6; }
39775    tst_links_poll="yes"
39776
39777else
39778
39779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39780$as_echo "no" >&6; }
39781    tst_links_poll="no"
39782
39783fi
39784rm -f core conftest.err conftest.$ac_objext \
39785    conftest$ac_exeext conftest.$ac_ext
39786  #
39787  if test "$tst_links_poll" = "yes"; then
39788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
39789$as_echo_n "checking if poll is prototyped... " >&6; }
39790    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39791/* end confdefs.h.  */
39792
39793      $curl_includes_poll
39794
39795_ACEOF
39796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39797  $EGREP "poll" >/dev/null 2>&1; then :
39798
39799      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39800$as_echo "yes" >&6; }
39801      tst_proto_poll="yes"
39802
39803else
39804
39805      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39806$as_echo "no" >&6; }
39807      tst_proto_poll="no"
39808
39809fi
39810rm -f conftest*
39811
39812  fi
39813  #
39814  if test "$tst_proto_poll" = "yes"; then
39815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
39816$as_echo_n "checking if poll is compilable... " >&6; }
39817    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39818/* end confdefs.h.  */
39819
39820
39821        $curl_includes_poll
39822
39823int main (void)
39824{
39825
39826        if(0 != poll(0, 0, 0))
39827          return 1;
39828
39829 ;
39830 return 0;
39831}
39832
39833_ACEOF
39834if ac_fn_c_try_compile "$LINENO"; then :
39835
39836      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39837$as_echo "yes" >&6; }
39838      tst_compi_poll="yes"
39839
39840else
39841
39842      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39843$as_echo "no" >&6; }
39844      tst_compi_poll="no"
39845
39846fi
39847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39848  fi
39849  #
39850    if test "x$cross_compiling" != "xyes" &&
39851    test "$tst_compi_poll" = "yes"; then
39852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
39853$as_echo_n "checking if poll seems to work... " >&6; }
39854
39855   old=$LD_LIBRARY_PATH
39856   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39857   export LD_LIBRARY_PATH
39858   if test "$cross_compiling" = yes; then :
39859  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39861as_fn_error $? "cannot run test program while cross compiling
39862See \`config.log' for more details" "$LINENO" 5; }
39863else
39864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39865/* end confdefs.h.  */
39866
39867
39868        $curl_includes_stdlib
39869        $curl_includes_poll
39870        $curl_includes_time
39871
39872int main (void)
39873{
39874
39875        /* detect the original poll() breakage */
39876        if(0 != poll(0, 0, 10))
39877          exit(1); /* fail */
39878        else {
39879          /* detect the 10.12 poll() breakage */
39880          struct timeval before, after;
39881          int rc;
39882          size_t us;
39883
39884          gettimeofday(&before, NULL);
39885          rc = poll(NULL, 0, 500);
39886          gettimeofday(&after, NULL);
39887
39888          us = (after.tv_sec - before.tv_sec) * 1000000 +
39889            (after.tv_usec - before.tv_usec);
39890
39891          if(us < 400000)
39892            exit(1);
39893        }
39894
39895 ;
39896 return 0;
39897}
39898
39899_ACEOF
39900if ac_fn_c_try_run "$LINENO"; then :
39901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39902$as_echo "yes" >&6; }
39903      tst_works_poll="yes"
39904
39905else
39906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39907$as_echo "no" >&6; }
39908      tst_works_poll="no"
39909
39910fi
39911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39912  conftest.$ac_objext conftest.beam conftest.$ac_ext
39913fi
39914
39915   LD_LIBRARY_PATH=$old # restore
39916
39917  fi
39918  #
39919  if test "$tst_compi_poll" = "yes" &&
39920    test "$tst_works_poll" != "no"; then
39921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
39922$as_echo_n "checking if poll usage allowed... " >&6; }
39923    if test "x$curl_disallow_poll" != "xyes"; then
39924      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39925$as_echo "yes" >&6; }
39926      tst_allow_poll="yes"
39927    else
39928      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39929$as_echo "no" >&6; }
39930      tst_allow_poll="no"
39931    fi
39932  fi
39933  #
39934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
39935$as_echo_n "checking if poll might be used... " >&6; }
39936  if test "$tst_links_poll" = "yes" &&
39937     test "$tst_proto_poll" = "yes" &&
39938     test "$tst_compi_poll" = "yes" &&
39939     test "$tst_allow_poll" = "yes" &&
39940     test "$tst_works_poll" != "no"; then
39941    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39942$as_echo "yes" >&6; }
39943
39944cat >>confdefs.h <<_ACEOF
39945#define HAVE_POLL 1
39946_ACEOF
39947
39948
39949cat >>confdefs.h <<_ACEOF
39950#define HAVE_POLL_FINE 1
39951_ACEOF
39952
39953    curl_cv_func_poll="yes"
39954  else
39955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39956$as_echo "no" >&6; }
39957    curl_cv_func_poll="no"
39958  fi
39959
39960
39961      #
39962  tst_links_setsockopt="unknown"
39963  tst_proto_setsockopt="unknown"
39964  tst_compi_setsockopt="unknown"
39965  tst_allow_setsockopt="unknown"
39966  #
39967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
39968$as_echo_n "checking if setsockopt can be linked... " >&6; }
39969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39970/* end confdefs.h.  */
39971
39972
39973      $curl_includes_winsock2
39974      $curl_includes_bsdsocket
39975      $curl_includes_sys_socket
39976
39977int main (void)
39978{
39979
39980      if(0 != setsockopt(0, 0, 0, 0, 0))
39981        return 1;
39982
39983 ;
39984 return 0;
39985}
39986
39987_ACEOF
39988if ac_fn_c_try_link "$LINENO"; then :
39989
39990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39991$as_echo "yes" >&6; }
39992    tst_links_setsockopt="yes"
39993
39994else
39995
39996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39997$as_echo "no" >&6; }
39998    tst_links_setsockopt="no"
39999
40000fi
40001rm -f core conftest.err conftest.$ac_objext \
40002    conftest$ac_exeext conftest.$ac_ext
40003  #
40004  if test "$tst_links_setsockopt" = "yes"; then
40005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
40006$as_echo_n "checking if setsockopt is prototyped... " >&6; }
40007    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40008/* end confdefs.h.  */
40009
40010      $curl_includes_winsock2
40011      $curl_includes_bsdsocket
40012      $curl_includes_sys_socket
40013
40014_ACEOF
40015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40016  $EGREP "setsockopt" >/dev/null 2>&1; then :
40017
40018      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40019$as_echo "yes" >&6; }
40020      tst_proto_setsockopt="yes"
40021
40022else
40023
40024      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40025$as_echo "no" >&6; }
40026      tst_proto_setsockopt="no"
40027
40028fi
40029rm -f conftest*
40030
40031  fi
40032  #
40033  if test "$tst_proto_setsockopt" = "yes"; then
40034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
40035$as_echo_n "checking if setsockopt is compilable... " >&6; }
40036    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40037/* end confdefs.h.  */
40038
40039
40040        $curl_includes_winsock2
40041      $curl_includes_bsdsocket
40042        $curl_includes_sys_socket
40043
40044int main (void)
40045{
40046
40047        if(0 != setsockopt(0, 0, 0, 0, 0))
40048          return 1;
40049
40050 ;
40051 return 0;
40052}
40053
40054_ACEOF
40055if ac_fn_c_try_compile "$LINENO"; then :
40056
40057      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40058$as_echo "yes" >&6; }
40059      tst_compi_setsockopt="yes"
40060
40061else
40062
40063      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40064$as_echo "no" >&6; }
40065      tst_compi_setsockopt="no"
40066
40067fi
40068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40069  fi
40070  #
40071  if test "$tst_compi_setsockopt" = "yes"; then
40072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
40073$as_echo_n "checking if setsockopt usage allowed... " >&6; }
40074    if test "x$curl_disallow_setsockopt" != "xyes"; then
40075      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40076$as_echo "yes" >&6; }
40077      tst_allow_setsockopt="yes"
40078    else
40079      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40080$as_echo "no" >&6; }
40081      tst_allow_setsockopt="no"
40082    fi
40083  fi
40084  #
40085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
40086$as_echo_n "checking if setsockopt might be used... " >&6; }
40087  if test "$tst_links_setsockopt" = "yes" &&
40088     test "$tst_proto_setsockopt" = "yes" &&
40089     test "$tst_compi_setsockopt" = "yes" &&
40090     test "$tst_allow_setsockopt" = "yes"; then
40091    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40092$as_echo "yes" >&6; }
40093
40094cat >>confdefs.h <<_ACEOF
40095#define HAVE_SETSOCKOPT 1
40096_ACEOF
40097
40098    curl_cv_func_setsockopt="yes"
40099
40100  #
40101  tst_compi_setsockopt_so_nonblock="unknown"
40102  tst_allow_setsockopt_so_nonblock="unknown"
40103  #
40104  if test "$curl_cv_func_setsockopt" = "yes"; then
40105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
40106$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
40107    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40108/* end confdefs.h.  */
40109
40110
40111        $curl_includes_winsock2
40112      $curl_includes_bsdsocket
40113        $curl_includes_sys_socket
40114
40115int main (void)
40116{
40117
40118        if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
40119          return 1;
40120
40121 ;
40122 return 0;
40123}
40124
40125_ACEOF
40126if ac_fn_c_try_compile "$LINENO"; then :
40127
40128      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40129$as_echo "yes" >&6; }
40130      tst_compi_setsockopt_so_nonblock="yes"
40131
40132else
40133
40134      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40135$as_echo "no" >&6; }
40136      tst_compi_setsockopt_so_nonblock="no"
40137
40138fi
40139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40140  fi
40141  #
40142  if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
40143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
40144$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
40145    if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
40146      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40147$as_echo "yes" >&6; }
40148      tst_allow_setsockopt_so_nonblock="yes"
40149    else
40150      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40151$as_echo "no" >&6; }
40152      tst_allow_setsockopt_so_nonblock="no"
40153    fi
40154  fi
40155  #
40156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
40157$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
40158  if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
40159     test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
40160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40161$as_echo "yes" >&6; }
40162
40163cat >>confdefs.h <<_ACEOF
40164#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
40165_ACEOF
40166
40167    curl_cv_func_setsockopt_so_nonblock="yes"
40168  else
40169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40170$as_echo "no" >&6; }
40171    curl_cv_func_setsockopt_so_nonblock="no"
40172  fi
40173
40174  else
40175    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40176$as_echo "no" >&6; }
40177    curl_cv_func_setsockopt="no"
40178  fi
40179
40180
40181curl_includes_signal="\
40182/* includes start */
40183#ifdef HAVE_SYS_TYPES_H
40184#  include <sys/types.h>
40185#endif
40186#ifdef HAVE_SIGNAL_H
40187#  include <signal.h>
40188#endif
40189/* includes end */"
40190  for ac_header in sys/types.h signal.h
40191do :
40192  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40193ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
40194"
40195if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40196  cat >>confdefs.h <<_ACEOF
40197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40198_ACEOF
40199
40200fi
40201
40202done
40203
40204
40205
40206    #
40207  tst_links_sigaction="unknown"
40208  tst_proto_sigaction="unknown"
40209  tst_compi_sigaction="unknown"
40210  tst_allow_sigaction="unknown"
40211  #
40212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
40213$as_echo_n "checking if sigaction can be linked... " >&6; }
40214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40215/* end confdefs.h.  */
40216
40217
40218#define sigaction innocuous_sigaction
40219#ifdef __STDC__
40220# include <limits.h>
40221#else
40222# include <assert.h>
40223#endif
40224#undef sigaction
40225#ifdef __cplusplus
40226extern "C"
40227#endif
40228char sigaction ();
40229#if defined __stub_sigaction || defined __stub___sigaction
40230choke me
40231#endif
40232
40233int main (void)
40234{
40235return sigaction ();
40236 ;
40237 return 0;
40238}
40239
40240_ACEOF
40241if ac_fn_c_try_link "$LINENO"; then :
40242
40243    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40244$as_echo "yes" >&6; }
40245    tst_links_sigaction="yes"
40246
40247else
40248
40249    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40250$as_echo "no" >&6; }
40251    tst_links_sigaction="no"
40252
40253fi
40254rm -f core conftest.err conftest.$ac_objext \
40255    conftest$ac_exeext conftest.$ac_ext
40256  #
40257  if test "$tst_links_sigaction" = "yes"; then
40258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
40259$as_echo_n "checking if sigaction is prototyped... " >&6; }
40260    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40261/* end confdefs.h.  */
40262
40263      $curl_includes_signal
40264
40265_ACEOF
40266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40267  $EGREP "sigaction" >/dev/null 2>&1; then :
40268
40269      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40270$as_echo "yes" >&6; }
40271      tst_proto_sigaction="yes"
40272
40273else
40274
40275      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40276$as_echo "no" >&6; }
40277      tst_proto_sigaction="no"
40278
40279fi
40280rm -f conftest*
40281
40282  fi
40283  #
40284  if test "$tst_proto_sigaction" = "yes"; then
40285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
40286$as_echo_n "checking if sigaction is compilable... " >&6; }
40287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40288/* end confdefs.h.  */
40289
40290
40291        $curl_includes_signal
40292
40293int main (void)
40294{
40295
40296        if(0 != sigaction(0, 0, 0))
40297          return 1;
40298
40299 ;
40300 return 0;
40301}
40302
40303_ACEOF
40304if ac_fn_c_try_compile "$LINENO"; then :
40305
40306      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40307$as_echo "yes" >&6; }
40308      tst_compi_sigaction="yes"
40309
40310else
40311
40312      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40313$as_echo "no" >&6; }
40314      tst_compi_sigaction="no"
40315
40316fi
40317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40318  fi
40319  #
40320  if test "$tst_compi_sigaction" = "yes"; then
40321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
40322$as_echo_n "checking if sigaction usage allowed... " >&6; }
40323    if test "x$curl_disallow_sigaction" != "xyes"; then
40324      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40325$as_echo "yes" >&6; }
40326      tst_allow_sigaction="yes"
40327    else
40328      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40329$as_echo "no" >&6; }
40330      tst_allow_sigaction="no"
40331    fi
40332  fi
40333  #
40334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
40335$as_echo_n "checking if sigaction might be used... " >&6; }
40336  if test "$tst_links_sigaction" = "yes" &&
40337     test "$tst_proto_sigaction" = "yes" &&
40338     test "$tst_compi_sigaction" = "yes" &&
40339     test "$tst_allow_sigaction" = "yes"; then
40340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40341$as_echo "yes" >&6; }
40342
40343cat >>confdefs.h <<_ACEOF
40344#define HAVE_SIGACTION 1
40345_ACEOF
40346
40347    curl_cv_func_sigaction="yes"
40348  else
40349    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40350$as_echo "no" >&6; }
40351    curl_cv_func_sigaction="no"
40352  fi
40353
40354
40355    #
40356  tst_links_siginterrupt="unknown"
40357  tst_proto_siginterrupt="unknown"
40358  tst_compi_siginterrupt="unknown"
40359  tst_allow_siginterrupt="unknown"
40360  #
40361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
40362$as_echo_n "checking if siginterrupt can be linked... " >&6; }
40363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40364/* end confdefs.h.  */
40365
40366
40367#define siginterrupt innocuous_siginterrupt
40368#ifdef __STDC__
40369# include <limits.h>
40370#else
40371# include <assert.h>
40372#endif
40373#undef siginterrupt
40374#ifdef __cplusplus
40375extern "C"
40376#endif
40377char siginterrupt ();
40378#if defined __stub_siginterrupt || defined __stub___siginterrupt
40379choke me
40380#endif
40381
40382int main (void)
40383{
40384return siginterrupt ();
40385 ;
40386 return 0;
40387}
40388
40389_ACEOF
40390if ac_fn_c_try_link "$LINENO"; then :
40391
40392    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40393$as_echo "yes" >&6; }
40394    tst_links_siginterrupt="yes"
40395
40396else
40397
40398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40399$as_echo "no" >&6; }
40400    tst_links_siginterrupt="no"
40401
40402fi
40403rm -f core conftest.err conftest.$ac_objext \
40404    conftest$ac_exeext conftest.$ac_ext
40405  #
40406  if test "$tst_links_siginterrupt" = "yes"; then
40407    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
40408$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
40409    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40410/* end confdefs.h.  */
40411
40412      $curl_includes_signal
40413
40414_ACEOF
40415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40416  $EGREP "siginterrupt" >/dev/null 2>&1; then :
40417
40418      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40419$as_echo "yes" >&6; }
40420      tst_proto_siginterrupt="yes"
40421
40422else
40423
40424      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40425$as_echo "no" >&6; }
40426      tst_proto_siginterrupt="no"
40427
40428fi
40429rm -f conftest*
40430
40431  fi
40432  #
40433  if test "$tst_proto_siginterrupt" = "yes"; then
40434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
40435$as_echo_n "checking if siginterrupt is compilable... " >&6; }
40436    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40437/* end confdefs.h.  */
40438
40439
40440        $curl_includes_signal
40441
40442int main (void)
40443{
40444
40445        if(0 != siginterrupt(0, 0))
40446          return 1;
40447
40448 ;
40449 return 0;
40450}
40451
40452_ACEOF
40453if ac_fn_c_try_compile "$LINENO"; then :
40454
40455      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40456$as_echo "yes" >&6; }
40457      tst_compi_siginterrupt="yes"
40458
40459else
40460
40461      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40462$as_echo "no" >&6; }
40463      tst_compi_siginterrupt="no"
40464
40465fi
40466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40467  fi
40468  #
40469  if test "$tst_compi_siginterrupt" = "yes"; then
40470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
40471$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
40472    if test "x$curl_disallow_siginterrupt" != "xyes"; then
40473      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40474$as_echo "yes" >&6; }
40475      tst_allow_siginterrupt="yes"
40476    else
40477      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40478$as_echo "no" >&6; }
40479      tst_allow_siginterrupt="no"
40480    fi
40481  fi
40482  #
40483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
40484$as_echo_n "checking if siginterrupt might be used... " >&6; }
40485  if test "$tst_links_siginterrupt" = "yes" &&
40486     test "$tst_proto_siginterrupt" = "yes" &&
40487     test "$tst_compi_siginterrupt" = "yes" &&
40488     test "$tst_allow_siginterrupt" = "yes"; then
40489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40490$as_echo "yes" >&6; }
40491
40492cat >>confdefs.h <<_ACEOF
40493#define HAVE_SIGINTERRUPT 1
40494_ACEOF
40495
40496    curl_cv_func_siginterrupt="yes"
40497  else
40498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40499$as_echo "no" >&6; }
40500    curl_cv_func_siginterrupt="no"
40501  fi
40502
40503
40504    #
40505  tst_links_signal="unknown"
40506  tst_proto_signal="unknown"
40507  tst_compi_signal="unknown"
40508  tst_allow_signal="unknown"
40509  #
40510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
40511$as_echo_n "checking if signal can be linked... " >&6; }
40512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40513/* end confdefs.h.  */
40514
40515
40516#define signal innocuous_signal
40517#ifdef __STDC__
40518# include <limits.h>
40519#else
40520# include <assert.h>
40521#endif
40522#undef signal
40523#ifdef __cplusplus
40524extern "C"
40525#endif
40526char signal ();
40527#if defined __stub_signal || defined __stub___signal
40528choke me
40529#endif
40530
40531int main (void)
40532{
40533return signal ();
40534 ;
40535 return 0;
40536}
40537
40538_ACEOF
40539if ac_fn_c_try_link "$LINENO"; then :
40540
40541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40542$as_echo "yes" >&6; }
40543    tst_links_signal="yes"
40544
40545else
40546
40547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40548$as_echo "no" >&6; }
40549    tst_links_signal="no"
40550
40551fi
40552rm -f core conftest.err conftest.$ac_objext \
40553    conftest$ac_exeext conftest.$ac_ext
40554  #
40555  if test "$tst_links_signal" = "yes"; then
40556    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
40557$as_echo_n "checking if signal is prototyped... " >&6; }
40558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40559/* end confdefs.h.  */
40560
40561      $curl_includes_signal
40562
40563_ACEOF
40564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40565  $EGREP "signal" >/dev/null 2>&1; then :
40566
40567      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40568$as_echo "yes" >&6; }
40569      tst_proto_signal="yes"
40570
40571else
40572
40573      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40574$as_echo "no" >&6; }
40575      tst_proto_signal="no"
40576
40577fi
40578rm -f conftest*
40579
40580  fi
40581  #
40582  if test "$tst_proto_signal" = "yes"; then
40583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
40584$as_echo_n "checking if signal is compilable... " >&6; }
40585    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40586/* end confdefs.h.  */
40587
40588
40589        $curl_includes_signal
40590
40591int main (void)
40592{
40593
40594        if(0 != signal(0, 0))
40595          return 1;
40596
40597 ;
40598 return 0;
40599}
40600
40601_ACEOF
40602if ac_fn_c_try_compile "$LINENO"; then :
40603
40604      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40605$as_echo "yes" >&6; }
40606      tst_compi_signal="yes"
40607
40608else
40609
40610      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40611$as_echo "no" >&6; }
40612      tst_compi_signal="no"
40613
40614fi
40615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40616  fi
40617  #
40618  if test "$tst_compi_signal" = "yes"; then
40619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
40620$as_echo_n "checking if signal usage allowed... " >&6; }
40621    if test "x$curl_disallow_signal" != "xyes"; then
40622      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40623$as_echo "yes" >&6; }
40624      tst_allow_signal="yes"
40625    else
40626      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40627$as_echo "no" >&6; }
40628      tst_allow_signal="no"
40629    fi
40630  fi
40631  #
40632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
40633$as_echo_n "checking if signal might be used... " >&6; }
40634  if test "$tst_links_signal" = "yes" &&
40635     test "$tst_proto_signal" = "yes" &&
40636     test "$tst_compi_signal" = "yes" &&
40637     test "$tst_allow_signal" = "yes"; then
40638    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40639$as_echo "yes" >&6; }
40640
40641cat >>confdefs.h <<_ACEOF
40642#define HAVE_SIGNAL 1
40643_ACEOF
40644
40645    curl_cv_func_signal="yes"
40646  else
40647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40648$as_echo "no" >&6; }
40649    curl_cv_func_signal="no"
40650  fi
40651
40652
40653curl_includes_setjmp="\
40654/* includes start */
40655#ifdef HAVE_SYS_TYPES_H
40656#  include <sys/types.h>
40657#endif
40658#ifdef HAVE_SETJMP_H
40659#  include <setjmp.h>
40660#endif
40661/* includes end */"
40662  for ac_header in sys/types.h setjmp.h
40663do :
40664  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40665ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
40666"
40667if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40668  cat >>confdefs.h <<_ACEOF
40669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40670_ACEOF
40671
40672fi
40673
40674done
40675
40676
40677
40678    #
40679  tst_links_sigsetjmp="unknown"
40680  tst_macro_sigsetjmp="unknown"
40681  tst_proto_sigsetjmp="unknown"
40682  tst_compi_sigsetjmp="unknown"
40683  tst_allow_sigsetjmp="unknown"
40684  #
40685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
40686$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
40687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40688/* end confdefs.h.  */
40689
40690
40691#define sigsetjmp innocuous_sigsetjmp
40692#ifdef __STDC__
40693# include <limits.h>
40694#else
40695# include <assert.h>
40696#endif
40697#undef sigsetjmp
40698#ifdef __cplusplus
40699extern "C"
40700#endif
40701char sigsetjmp ();
40702#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
40703choke me
40704#endif
40705
40706int main (void)
40707{
40708return sigsetjmp ();
40709 ;
40710 return 0;
40711}
40712
40713_ACEOF
40714if ac_fn_c_try_link "$LINENO"; then :
40715
40716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40717$as_echo "yes" >&6; }
40718    tst_links_sigsetjmp="yes"
40719
40720else
40721
40722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40723$as_echo "no" >&6; }
40724    tst_links_sigsetjmp="no"
40725
40726fi
40727rm -f core conftest.err conftest.$ac_objext \
40728    conftest$ac_exeext conftest.$ac_ext
40729  #
40730  if test "$tst_links_sigsetjmp" = "no"; then
40731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
40732$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
40733    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40734/* end confdefs.h.  */
40735
40736
40737        $curl_includes_setjmp
40738
40739int main (void)
40740{
40741
40742        sigjmp_buf env;
40743        if(0 != sigsetjmp(env, 0))
40744          return 1;
40745
40746 ;
40747 return 0;
40748}
40749
40750_ACEOF
40751if ac_fn_c_try_link "$LINENO"; then :
40752
40753      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40754$as_echo "yes" >&6; }
40755      tst_macro_sigsetjmp="yes"
40756
40757else
40758
40759      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40760$as_echo "no" >&6; }
40761      tst_macro_sigsetjmp="no"
40762
40763fi
40764rm -f core conftest.err conftest.$ac_objext \
40765    conftest$ac_exeext conftest.$ac_ext
40766  fi
40767  #
40768  if test "$tst_links_sigsetjmp" = "yes"; then
40769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
40770$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
40771    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40772/* end confdefs.h.  */
40773
40774      $curl_includes_setjmp
40775
40776_ACEOF
40777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40778  $EGREP "sigsetjmp" >/dev/null 2>&1; then :
40779
40780      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40781$as_echo "yes" >&6; }
40782      tst_proto_sigsetjmp="yes"
40783
40784else
40785
40786      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40787$as_echo "no" >&6; }
40788      tst_proto_sigsetjmp="no"
40789
40790fi
40791rm -f conftest*
40792
40793  fi
40794  #
40795  if test "$tst_proto_sigsetjmp" = "yes" ||
40796     test "$tst_macro_sigsetjmp" = "yes"; then
40797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
40798$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
40799    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40800/* end confdefs.h.  */
40801
40802
40803        $curl_includes_setjmp
40804
40805int main (void)
40806{
40807
40808        sigjmp_buf env;
40809        if(0 != sigsetjmp(env, 0))
40810          return 1;
40811
40812 ;
40813 return 0;
40814}
40815
40816_ACEOF
40817if ac_fn_c_try_compile "$LINENO"; then :
40818
40819      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40820$as_echo "yes" >&6; }
40821      tst_compi_sigsetjmp="yes"
40822
40823else
40824
40825      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40826$as_echo "no" >&6; }
40827      tst_compi_sigsetjmp="no"
40828
40829fi
40830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40831  fi
40832  #
40833  if test "$tst_compi_sigsetjmp" = "yes"; then
40834    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
40835$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
40836    if test "x$curl_disallow_sigsetjmp" != "xyes"; then
40837      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40838$as_echo "yes" >&6; }
40839      tst_allow_sigsetjmp="yes"
40840    else
40841      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40842$as_echo "no" >&6; }
40843      tst_allow_sigsetjmp="no"
40844    fi
40845  fi
40846  #
40847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
40848$as_echo_n "checking if sigsetjmp might be used... " >&6; }
40849  if (test "$tst_proto_sigsetjmp" = "yes" ||
40850      test "$tst_macro_sigsetjmp" = "yes") &&
40851     test "$tst_compi_sigsetjmp" = "yes" &&
40852     test "$tst_allow_sigsetjmp" = "yes"; then
40853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40854$as_echo "yes" >&6; }
40855
40856cat >>confdefs.h <<_ACEOF
40857#define HAVE_SIGSETJMP 1
40858_ACEOF
40859
40860    curl_cv_func_sigsetjmp="yes"
40861  else
40862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40863$as_echo "no" >&6; }
40864    curl_cv_func_sigsetjmp="no"
40865  fi
40866
40867
40868        #
40869  tst_links_socket="unknown"
40870  tst_proto_socket="unknown"
40871  tst_compi_socket="unknown"
40872  tst_allow_socket="unknown"
40873  #
40874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
40875$as_echo_n "checking if socket can be linked... " >&6; }
40876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40877/* end confdefs.h.  */
40878
40879
40880      $curl_includes_winsock2
40881      $curl_includes_bsdsocket
40882      $curl_includes_sys_socket
40883      $curl_includes_socket
40884
40885int main (void)
40886{
40887
40888      if(0 != socket(0, 0, 0))
40889        return 1;
40890
40891 ;
40892 return 0;
40893}
40894
40895_ACEOF
40896if ac_fn_c_try_link "$LINENO"; then :
40897
40898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40899$as_echo "yes" >&6; }
40900    tst_links_socket="yes"
40901
40902else
40903
40904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40905$as_echo "no" >&6; }
40906    tst_links_socket="no"
40907
40908fi
40909rm -f core conftest.err conftest.$ac_objext \
40910    conftest$ac_exeext conftest.$ac_ext
40911  #
40912  if test "$tst_links_socket" = "yes"; then
40913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
40914$as_echo_n "checking if socket is prototyped... " >&6; }
40915    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40916/* end confdefs.h.  */
40917
40918      $curl_includes_winsock2
40919      $curl_includes_bsdsocket
40920      $curl_includes_sys_socket
40921      $curl_includes_socket
40922
40923_ACEOF
40924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40925  $EGREP "socket" >/dev/null 2>&1; then :
40926
40927      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40928$as_echo "yes" >&6; }
40929      tst_proto_socket="yes"
40930
40931else
40932
40933      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40934$as_echo "no" >&6; }
40935      tst_proto_socket="no"
40936
40937fi
40938rm -f conftest*
40939
40940  fi
40941  #
40942  if test "$tst_proto_socket" = "yes"; then
40943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
40944$as_echo_n "checking if socket is compilable... " >&6; }
40945    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40946/* end confdefs.h.  */
40947
40948
40949        $curl_includes_winsock2
40950      $curl_includes_bsdsocket
40951        $curl_includes_sys_socket
40952        $curl_includes_socket
40953
40954int main (void)
40955{
40956
40957        if(0 != socket(0, 0, 0))
40958          return 1;
40959
40960 ;
40961 return 0;
40962}
40963
40964_ACEOF
40965if ac_fn_c_try_compile "$LINENO"; then :
40966
40967      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40968$as_echo "yes" >&6; }
40969      tst_compi_socket="yes"
40970
40971else
40972
40973      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40974$as_echo "no" >&6; }
40975      tst_compi_socket="no"
40976
40977fi
40978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40979  fi
40980  #
40981  if test "$tst_compi_socket" = "yes"; then
40982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
40983$as_echo_n "checking if socket usage allowed... " >&6; }
40984    if test "x$curl_disallow_socket" != "xyes"; then
40985      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40986$as_echo "yes" >&6; }
40987      tst_allow_socket="yes"
40988    else
40989      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40990$as_echo "no" >&6; }
40991      tst_allow_socket="no"
40992    fi
40993  fi
40994  #
40995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
40996$as_echo_n "checking if socket might be used... " >&6; }
40997  if test "$tst_links_socket" = "yes" &&
40998     test "$tst_proto_socket" = "yes" &&
40999     test "$tst_compi_socket" = "yes" &&
41000     test "$tst_allow_socket" = "yes"; then
41001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41002$as_echo "yes" >&6; }
41003
41004cat >>confdefs.h <<_ACEOF
41005#define HAVE_SOCKET 1
41006_ACEOF
41007
41008    curl_cv_func_socket="yes"
41009  else
41010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41011$as_echo "no" >&6; }
41012    curl_cv_func_socket="no"
41013  fi
41014
41015
41016      #
41017  tst_links_socketpair="unknown"
41018  tst_proto_socketpair="unknown"
41019  tst_compi_socketpair="unknown"
41020  tst_allow_socketpair="unknown"
41021  #
41022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
41023$as_echo_n "checking if socketpair can be linked... " >&6; }
41024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41025/* end confdefs.h.  */
41026
41027
41028#define socketpair innocuous_socketpair
41029#ifdef __STDC__
41030# include <limits.h>
41031#else
41032# include <assert.h>
41033#endif
41034#undef socketpair
41035#ifdef __cplusplus
41036extern "C"
41037#endif
41038char socketpair ();
41039#if defined __stub_socketpair || defined __stub___socketpair
41040choke me
41041#endif
41042
41043int main (void)
41044{
41045return socketpair ();
41046 ;
41047 return 0;
41048}
41049
41050_ACEOF
41051if ac_fn_c_try_link "$LINENO"; then :
41052
41053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41054$as_echo "yes" >&6; }
41055    tst_links_socketpair="yes"
41056
41057else
41058
41059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41060$as_echo "no" >&6; }
41061    tst_links_socketpair="no"
41062
41063fi
41064rm -f core conftest.err conftest.$ac_objext \
41065    conftest$ac_exeext conftest.$ac_ext
41066  #
41067  if test "$tst_links_socketpair" = "yes"; then
41068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
41069$as_echo_n "checking if socketpair is prototyped... " >&6; }
41070    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41071/* end confdefs.h.  */
41072
41073      $curl_includes_sys_socket
41074      $curl_includes_socket
41075
41076_ACEOF
41077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41078  $EGREP "socketpair" >/dev/null 2>&1; then :
41079
41080      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41081$as_echo "yes" >&6; }
41082      tst_proto_socketpair="yes"
41083
41084else
41085
41086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41087$as_echo "no" >&6; }
41088      tst_proto_socketpair="no"
41089
41090fi
41091rm -f conftest*
41092
41093  fi
41094  #
41095  if test "$tst_proto_socketpair" = "yes"; then
41096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
41097$as_echo_n "checking if socketpair is compilable... " >&6; }
41098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41099/* end confdefs.h.  */
41100
41101
41102        $curl_includes_sys_socket
41103        $curl_includes_socket
41104
41105int main (void)
41106{
41107
41108        int sv[2];
41109        if(0 != socketpair(0, 0, 0, sv))
41110          return 1;
41111
41112 ;
41113 return 0;
41114}
41115
41116_ACEOF
41117if ac_fn_c_try_compile "$LINENO"; then :
41118
41119      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41120$as_echo "yes" >&6; }
41121      tst_compi_socketpair="yes"
41122
41123else
41124
41125      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41126$as_echo "no" >&6; }
41127      tst_compi_socketpair="no"
41128
41129fi
41130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41131  fi
41132  #
41133  if test "$tst_compi_socketpair" = "yes"; then
41134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
41135$as_echo_n "checking if socketpair usage allowed... " >&6; }
41136    if test "x$curl_disallow_socketpair" != "xyes"; then
41137      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41138$as_echo "yes" >&6; }
41139      tst_allow_socketpair="yes"
41140    else
41141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41142$as_echo "no" >&6; }
41143      tst_allow_socketpair="no"
41144    fi
41145  fi
41146  #
41147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
41148$as_echo_n "checking if socketpair might be used... " >&6; }
41149  if test "$tst_links_socketpair" = "yes" &&
41150     test "$tst_proto_socketpair" = "yes" &&
41151     test "$tst_compi_socketpair" = "yes" &&
41152     test "$tst_allow_socketpair" = "yes"; then
41153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41154$as_echo "yes" >&6; }
41155
41156cat >>confdefs.h <<_ACEOF
41157#define HAVE_SOCKETPAIR 1
41158_ACEOF
41159
41160    curl_cv_func_socketpair="yes"
41161  else
41162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41163$as_echo "no" >&6; }
41164    curl_cv_func_socketpair="no"
41165  fi
41166
41167
41168    #
41169  tst_links_strcasecmp="unknown"
41170  tst_proto_strcasecmp="unknown"
41171  tst_compi_strcasecmp="unknown"
41172  tst_allow_strcasecmp="unknown"
41173  #
41174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
41175$as_echo_n "checking if strcasecmp can be linked... " >&6; }
41176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41177/* end confdefs.h.  */
41178
41179
41180#define strcasecmp innocuous_strcasecmp
41181#ifdef __STDC__
41182# include <limits.h>
41183#else
41184# include <assert.h>
41185#endif
41186#undef strcasecmp
41187#ifdef __cplusplus
41188extern "C"
41189#endif
41190char strcasecmp ();
41191#if defined __stub_strcasecmp || defined __stub___strcasecmp
41192choke me
41193#endif
41194
41195int main (void)
41196{
41197return strcasecmp ();
41198 ;
41199 return 0;
41200}
41201
41202_ACEOF
41203if ac_fn_c_try_link "$LINENO"; then :
41204
41205    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41206$as_echo "yes" >&6; }
41207    tst_links_strcasecmp="yes"
41208
41209else
41210
41211    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41212$as_echo "no" >&6; }
41213    tst_links_strcasecmp="no"
41214
41215fi
41216rm -f core conftest.err conftest.$ac_objext \
41217    conftest$ac_exeext conftest.$ac_ext
41218  #
41219  if test "$tst_links_strcasecmp" = "yes"; then
41220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
41221$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
41222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41223/* end confdefs.h.  */
41224
41225      $curl_includes_string
41226
41227_ACEOF
41228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41229  $EGREP "strcasecmp" >/dev/null 2>&1; then :
41230
41231      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41232$as_echo "yes" >&6; }
41233      tst_proto_strcasecmp="yes"
41234
41235else
41236
41237      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41238$as_echo "no" >&6; }
41239      tst_proto_strcasecmp="no"
41240
41241fi
41242rm -f conftest*
41243
41244  fi
41245  #
41246  if test "$tst_proto_strcasecmp" = "yes"; then
41247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
41248$as_echo_n "checking if strcasecmp is compilable... " >&6; }
41249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41250/* end confdefs.h.  */
41251
41252
41253        $curl_includes_string
41254
41255int main (void)
41256{
41257
41258        if(0 != strcasecmp(0, 0))
41259          return 1;
41260
41261 ;
41262 return 0;
41263}
41264
41265_ACEOF
41266if ac_fn_c_try_compile "$LINENO"; then :
41267
41268      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41269$as_echo "yes" >&6; }
41270      tst_compi_strcasecmp="yes"
41271
41272else
41273
41274      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41275$as_echo "no" >&6; }
41276      tst_compi_strcasecmp="no"
41277
41278fi
41279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41280  fi
41281  #
41282  if test "$tst_compi_strcasecmp" = "yes"; then
41283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
41284$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
41285    if test "x$curl_disallow_strcasecmp" != "xyes"; then
41286      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41287$as_echo "yes" >&6; }
41288      tst_allow_strcasecmp="yes"
41289    else
41290      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41291$as_echo "no" >&6; }
41292      tst_allow_strcasecmp="no"
41293    fi
41294  fi
41295  #
41296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
41297$as_echo_n "checking if strcasecmp might be used... " >&6; }
41298  if test "$tst_links_strcasecmp" = "yes" &&
41299     test "$tst_proto_strcasecmp" = "yes" &&
41300     test "$tst_compi_strcasecmp" = "yes" &&
41301     test "$tst_allow_strcasecmp" = "yes"; then
41302    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41303$as_echo "yes" >&6; }
41304
41305cat >>confdefs.h <<_ACEOF
41306#define HAVE_STRCASECMP 1
41307_ACEOF
41308
41309    curl_cv_func_strcasecmp="yes"
41310  else
41311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41312$as_echo "no" >&6; }
41313    curl_cv_func_strcasecmp="no"
41314  fi
41315
41316
41317    #
41318  tst_links_strcmpi="unknown"
41319  tst_proto_strcmpi="unknown"
41320  tst_compi_strcmpi="unknown"
41321  tst_allow_strcmpi="unknown"
41322  #
41323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
41324$as_echo_n "checking if strcmpi can be linked... " >&6; }
41325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41326/* end confdefs.h.  */
41327
41328
41329#define strcmpi innocuous_strcmpi
41330#ifdef __STDC__
41331# include <limits.h>
41332#else
41333# include <assert.h>
41334#endif
41335#undef strcmpi
41336#ifdef __cplusplus
41337extern "C"
41338#endif
41339char strcmpi ();
41340#if defined __stub_strcmpi || defined __stub___strcmpi
41341choke me
41342#endif
41343
41344int main (void)
41345{
41346return strcmpi ();
41347 ;
41348 return 0;
41349}
41350
41351_ACEOF
41352if ac_fn_c_try_link "$LINENO"; then :
41353
41354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41355$as_echo "yes" >&6; }
41356    tst_links_strcmpi="yes"
41357
41358else
41359
41360    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41361$as_echo "no" >&6; }
41362    tst_links_strcmpi="no"
41363
41364fi
41365rm -f core conftest.err conftest.$ac_objext \
41366    conftest$ac_exeext conftest.$ac_ext
41367  #
41368  if test "$tst_links_strcmpi" = "yes"; then
41369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
41370$as_echo_n "checking if strcmpi is prototyped... " >&6; }
41371    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41372/* end confdefs.h.  */
41373
41374      $curl_includes_string
41375
41376_ACEOF
41377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41378  $EGREP "strcmpi" >/dev/null 2>&1; then :
41379
41380      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41381$as_echo "yes" >&6; }
41382      tst_proto_strcmpi="yes"
41383
41384else
41385
41386      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41387$as_echo "no" >&6; }
41388      tst_proto_strcmpi="no"
41389
41390fi
41391rm -f conftest*
41392
41393  fi
41394  #
41395  if test "$tst_proto_strcmpi" = "yes"; then
41396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
41397$as_echo_n "checking if strcmpi is compilable... " >&6; }
41398    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41399/* end confdefs.h.  */
41400
41401
41402        $curl_includes_string
41403
41404int main (void)
41405{
41406
41407        if(0 != strcmpi(0, 0))
41408          return 1;
41409
41410 ;
41411 return 0;
41412}
41413
41414_ACEOF
41415if ac_fn_c_try_compile "$LINENO"; then :
41416
41417      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41418$as_echo "yes" >&6; }
41419      tst_compi_strcmpi="yes"
41420
41421else
41422
41423      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41424$as_echo "no" >&6; }
41425      tst_compi_strcmpi="no"
41426
41427fi
41428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41429  fi
41430  #
41431  if test "$tst_compi_strcmpi" = "yes"; then
41432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
41433$as_echo_n "checking if strcmpi usage allowed... " >&6; }
41434    if test "x$curl_disallow_strcmpi" != "xyes"; then
41435      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41436$as_echo "yes" >&6; }
41437      tst_allow_strcmpi="yes"
41438    else
41439      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41440$as_echo "no" >&6; }
41441      tst_allow_strcmpi="no"
41442    fi
41443  fi
41444  #
41445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
41446$as_echo_n "checking if strcmpi might be used... " >&6; }
41447  if test "$tst_links_strcmpi" = "yes" &&
41448     test "$tst_proto_strcmpi" = "yes" &&
41449     test "$tst_compi_strcmpi" = "yes" &&
41450     test "$tst_allow_strcmpi" = "yes"; then
41451    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41452$as_echo "yes" >&6; }
41453
41454cat >>confdefs.h <<_ACEOF
41455#define HAVE_STRCMPI 1
41456_ACEOF
41457
41458    curl_cv_func_strcmpi="yes"
41459  else
41460    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41461$as_echo "no" >&6; }
41462    curl_cv_func_strcmpi="no"
41463  fi
41464
41465
41466    #
41467  tst_links_strdup="unknown"
41468  tst_proto_strdup="unknown"
41469  tst_compi_strdup="unknown"
41470  tst_allow_strdup="unknown"
41471  #
41472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
41473$as_echo_n "checking if strdup can be linked... " >&6; }
41474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41475/* end confdefs.h.  */
41476
41477
41478#define strdup innocuous_strdup
41479#ifdef __STDC__
41480# include <limits.h>
41481#else
41482# include <assert.h>
41483#endif
41484#undef strdup
41485#ifdef __cplusplus
41486extern "C"
41487#endif
41488char strdup ();
41489#if defined __stub_strdup || defined __stub___strdup
41490choke me
41491#endif
41492
41493int main (void)
41494{
41495return strdup ();
41496 ;
41497 return 0;
41498}
41499
41500_ACEOF
41501if ac_fn_c_try_link "$LINENO"; then :
41502
41503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41504$as_echo "yes" >&6; }
41505    tst_links_strdup="yes"
41506
41507else
41508
41509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41510$as_echo "no" >&6; }
41511    tst_links_strdup="no"
41512
41513fi
41514rm -f core conftest.err conftest.$ac_objext \
41515    conftest$ac_exeext conftest.$ac_ext
41516  #
41517  if test "$tst_links_strdup" = "yes"; then
41518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
41519$as_echo_n "checking if strdup is prototyped... " >&6; }
41520    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41521/* end confdefs.h.  */
41522
41523      $curl_includes_string
41524
41525_ACEOF
41526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41527  $EGREP "strdup" >/dev/null 2>&1; then :
41528
41529      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41530$as_echo "yes" >&6; }
41531      tst_proto_strdup="yes"
41532
41533else
41534
41535      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41536$as_echo "no" >&6; }
41537      tst_proto_strdup="no"
41538
41539fi
41540rm -f conftest*
41541
41542  fi
41543  #
41544  if test "$tst_proto_strdup" = "yes"; then
41545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
41546$as_echo_n "checking if strdup is compilable... " >&6; }
41547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41548/* end confdefs.h.  */
41549
41550
41551        $curl_includes_string
41552
41553int main (void)
41554{
41555
41556        if(0 != strdup(0))
41557          return 1;
41558
41559 ;
41560 return 0;
41561}
41562
41563_ACEOF
41564if ac_fn_c_try_compile "$LINENO"; then :
41565
41566      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41567$as_echo "yes" >&6; }
41568      tst_compi_strdup="yes"
41569
41570else
41571
41572      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41573$as_echo "no" >&6; }
41574      tst_compi_strdup="no"
41575
41576fi
41577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41578  fi
41579  #
41580  if test "$tst_compi_strdup" = "yes"; then
41581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
41582$as_echo_n "checking if strdup usage allowed... " >&6; }
41583    if test "x$curl_disallow_strdup" != "xyes"; then
41584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41585$as_echo "yes" >&6; }
41586      tst_allow_strdup="yes"
41587    else
41588      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41589$as_echo "no" >&6; }
41590      tst_allow_strdup="no"
41591    fi
41592  fi
41593  #
41594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
41595$as_echo_n "checking if strdup might be used... " >&6; }
41596  if test "$tst_links_strdup" = "yes" &&
41597     test "$tst_proto_strdup" = "yes" &&
41598     test "$tst_compi_strdup" = "yes" &&
41599     test "$tst_allow_strdup" = "yes"; then
41600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41601$as_echo "yes" >&6; }
41602
41603cat >>confdefs.h <<_ACEOF
41604#define HAVE_STRDUP 1
41605_ACEOF
41606
41607    curl_cv_func_strdup="yes"
41608  else
41609    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41610$as_echo "no" >&6; }
41611    curl_cv_func_strdup="no"
41612  fi
41613
41614
41615      #
41616  tst_links_strerror_r="unknown"
41617  tst_proto_strerror_r="unknown"
41618  tst_compi_strerror_r="unknown"
41619  tst_glibc_strerror_r="unknown"
41620  tst_posix_strerror_r="unknown"
41621  tst_allow_strerror_r="unknown"
41622  tst_works_glibc_strerror_r="unknown"
41623  tst_works_posix_strerror_r="unknown"
41624  tst_glibc_strerror_r_type_arg3="unknown"
41625  tst_posix_strerror_r_type_arg3="unknown"
41626  #
41627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
41628$as_echo_n "checking if strerror_r can be linked... " >&6; }
41629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41630/* end confdefs.h.  */
41631
41632
41633#define strerror_r innocuous_strerror_r
41634#ifdef __STDC__
41635# include <limits.h>
41636#else
41637# include <assert.h>
41638#endif
41639#undef strerror_r
41640#ifdef __cplusplus
41641extern "C"
41642#endif
41643char strerror_r ();
41644#if defined __stub_strerror_r || defined __stub___strerror_r
41645choke me
41646#endif
41647
41648int main (void)
41649{
41650return strerror_r ();
41651 ;
41652 return 0;
41653}
41654
41655_ACEOF
41656if ac_fn_c_try_link "$LINENO"; then :
41657
41658    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41659$as_echo "yes" >&6; }
41660    tst_links_strerror_r="yes"
41661
41662else
41663
41664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41665$as_echo "no" >&6; }
41666    tst_links_strerror_r="no"
41667
41668fi
41669rm -f core conftest.err conftest.$ac_objext \
41670    conftest$ac_exeext conftest.$ac_ext
41671  #
41672  if test "$tst_links_strerror_r" = "yes"; then
41673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
41674$as_echo_n "checking if strerror_r is prototyped... " >&6; }
41675    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41676/* end confdefs.h.  */
41677
41678      $curl_includes_string
41679
41680_ACEOF
41681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41682  $EGREP "strerror_r" >/dev/null 2>&1; then :
41683
41684      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41685$as_echo "yes" >&6; }
41686      tst_proto_strerror_r="yes"
41687
41688else
41689
41690      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41691$as_echo "no" >&6; }
41692      tst_proto_strerror_r="no"
41693
41694fi
41695rm -f conftest*
41696
41697  fi
41698  #
41699  if test "$tst_proto_strerror_r" = "yes"; then
41700    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
41701$as_echo_n "checking if strerror_r is compilable... " >&6; }
41702    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41703/* end confdefs.h.  */
41704
41705
41706        $curl_includes_string
41707
41708int main (void)
41709{
41710
41711        if(0 != strerror_r(0, 0, 0))
41712          return 1;
41713
41714 ;
41715 return 0;
41716}
41717
41718_ACEOF
41719if ac_fn_c_try_compile "$LINENO"; then :
41720
41721      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41722$as_echo "yes" >&6; }
41723      tst_compi_strerror_r="yes"
41724
41725else
41726
41727      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41728$as_echo "no" >&6; }
41729      tst_compi_strerror_r="no"
41730
41731fi
41732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41733  fi
41734  #
41735  if test "$tst_compi_strerror_r" = "yes"; then
41736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
41737$as_echo_n "checking if strerror_r is glibc like... " >&6; }
41738    tst_glibc_strerror_r_type_arg3="unknown"
41739    for arg3 in 'size_t' 'int' 'unsigned int'; do
41740      if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
41741        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41742/* end confdefs.h.  */
41743
41744
41745            $curl_includes_string
41746            char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
41747
41748int main (void)
41749{
41750
41751            if(0 != strerror_r(0, 0, 0))
41752              return 1;
41753
41754 ;
41755 return 0;
41756}
41757
41758_ACEOF
41759if ac_fn_c_try_compile "$LINENO"; then :
41760
41761          tst_glibc_strerror_r_type_arg3="$arg3"
41762
41763fi
41764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41765      fi
41766    done
41767    case "$tst_glibc_strerror_r_type_arg3" in
41768      unknown)
41769        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41770$as_echo "no" >&6; }
41771        tst_glibc_strerror_r="no"
41772        ;;
41773      *)
41774        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41775$as_echo "yes" >&6; }
41776        tst_glibc_strerror_r="yes"
41777        ;;
41778    esac
41779  fi
41780  #
41781    if test "x$cross_compiling" != "xyes" &&
41782    test "$tst_glibc_strerror_r" = "yes"; then
41783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
41784$as_echo_n "checking if strerror_r seems to work... " >&6; }
41785
41786   old=$LD_LIBRARY_PATH
41787   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
41788   export LD_LIBRARY_PATH
41789   if test "$cross_compiling" = yes; then :
41790  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41792as_fn_error $? "cannot run test program while cross compiling
41793See \`config.log' for more details" "$LINENO" 5; }
41794else
41795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41796/* end confdefs.h.  */
41797
41798
41799        $curl_includes_stdlib
41800        $curl_includes_string
41801#       include <errno.h>
41802
41803int main (void)
41804{
41805
41806        char buffer[1024];
41807        char *string = 0;
41808        buffer[0] = '\0';
41809        string = strerror_r(EACCES, buffer, sizeof(buffer));
41810        if(!string)
41811          exit(1); /* fail */
41812        if(!string[0])
41813          exit(1); /* fail */
41814        else
41815          exit(0);
41816
41817 ;
41818 return 0;
41819}
41820
41821_ACEOF
41822if ac_fn_c_try_run "$LINENO"; then :
41823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41824$as_echo "yes" >&6; }
41825      tst_works_glibc_strerror_r="yes"
41826
41827else
41828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41829$as_echo "no" >&6; }
41830      tst_works_glibc_strerror_r="no"
41831
41832fi
41833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41834  conftest.$ac_objext conftest.beam conftest.$ac_ext
41835fi
41836
41837   LD_LIBRARY_PATH=$old # restore
41838
41839  fi
41840  #
41841  if test "$tst_compi_strerror_r" = "yes" &&
41842    test "$tst_works_glibc_strerror_r" != "yes"; then
41843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
41844$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
41845    tst_posix_strerror_r_type_arg3="unknown"
41846    for arg3 in 'size_t' 'int' 'unsigned int'; do
41847      if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
41848        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41849/* end confdefs.h.  */
41850
41851
41852            $curl_includes_string
41853            int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
41854
41855int main (void)
41856{
41857
41858            if(0 != strerror_r(0, 0, 0))
41859              return 1;
41860
41861 ;
41862 return 0;
41863}
41864
41865_ACEOF
41866if ac_fn_c_try_compile "$LINENO"; then :
41867
41868          tst_posix_strerror_r_type_arg3="$arg3"
41869
41870fi
41871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41872      fi
41873    done
41874    case "$tst_posix_strerror_r_type_arg3" in
41875      unknown)
41876        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41877$as_echo "no" >&6; }
41878        tst_posix_strerror_r="no"
41879        ;;
41880      *)
41881        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41882$as_echo "yes" >&6; }
41883        tst_posix_strerror_r="yes"
41884        ;;
41885    esac
41886  fi
41887  #
41888    if test "x$cross_compiling" != "xyes" &&
41889    test "$tst_posix_strerror_r" = "yes"; then
41890    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
41891$as_echo_n "checking if strerror_r seems to work... " >&6; }
41892
41893   old=$LD_LIBRARY_PATH
41894   LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
41895   export LD_LIBRARY_PATH
41896   if test "$cross_compiling" = yes; then :
41897  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41899as_fn_error $? "cannot run test program while cross compiling
41900See \`config.log' for more details" "$LINENO" 5; }
41901else
41902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41903/* end confdefs.h.  */
41904
41905
41906        $curl_includes_stdlib
41907        $curl_includes_string
41908#       include <errno.h>
41909
41910int main (void)
41911{
41912
41913        char buffer[1024];
41914        int error = 1;
41915        buffer[0] = '\0';
41916        error = strerror_r(EACCES, buffer, sizeof(buffer));
41917        if(error)
41918          exit(1); /* fail */
41919        if(buffer[0] == '\0')
41920          exit(1); /* fail */
41921        else
41922          exit(0);
41923
41924 ;
41925 return 0;
41926}
41927
41928_ACEOF
41929if ac_fn_c_try_run "$LINENO"; then :
41930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41931$as_echo "yes" >&6; }
41932      tst_works_posix_strerror_r="yes"
41933
41934else
41935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41936$as_echo "no" >&6; }
41937      tst_works_posix_strerror_r="no"
41938
41939fi
41940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41941  conftest.$ac_objext conftest.beam conftest.$ac_ext
41942fi
41943
41944   LD_LIBRARY_PATH=$old # restore
41945
41946  fi
41947  #
41948  if test "$tst_works_glibc_strerror_r" = "yes"; then
41949    tst_posix_strerror_r="no"
41950  fi
41951  if test "$tst_works_posix_strerror_r" = "yes"; then
41952    tst_glibc_strerror_r="no"
41953  fi
41954  if test "$tst_glibc_strerror_r" = "yes" &&
41955    test "$tst_works_glibc_strerror_r" != "no" &&
41956    test "$tst_posix_strerror_r" != "yes"; then
41957    tst_allow_strerror_r="check"
41958  fi
41959  if test "$tst_posix_strerror_r" = "yes" &&
41960    test "$tst_works_posix_strerror_r" != "no" &&
41961    test "$tst_glibc_strerror_r" != "yes"; then
41962    tst_allow_strerror_r="check"
41963  fi
41964  if test "$tst_allow_strerror_r" = "check"; then
41965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
41966$as_echo_n "checking if strerror_r usage allowed... " >&6; }
41967    if test "x$curl_disallow_strerror_r" != "xyes"; then
41968      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41969$as_echo "yes" >&6; }
41970      tst_allow_strerror_r="yes"
41971    else
41972      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41973$as_echo "no" >&6; }
41974      tst_allow_strerror_r="no"
41975    fi
41976  fi
41977  #
41978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
41979$as_echo_n "checking if strerror_r might be used... " >&6; }
41980  if test "$tst_links_strerror_r" = "yes" &&
41981     test "$tst_proto_strerror_r" = "yes" &&
41982     test "$tst_compi_strerror_r" = "yes" &&
41983     test "$tst_allow_strerror_r" = "yes"; then
41984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41985$as_echo "yes" >&6; }
41986    if test "$tst_glibc_strerror_r" = "yes"; then
41987
41988cat >>confdefs.h <<_ACEOF
41989#define HAVE_STRERROR_R 1
41990_ACEOF
41991
41992
41993cat >>confdefs.h <<_ACEOF
41994#define HAVE_GLIBC_STRERROR_R 1
41995_ACEOF
41996
41997
41998cat >>confdefs.h <<_ACEOF
41999#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
42000_ACEOF
42001
42002    fi
42003    if test "$tst_posix_strerror_r" = "yes"; then
42004
42005cat >>confdefs.h <<_ACEOF
42006#define HAVE_STRERROR_R 1
42007_ACEOF
42008
42009
42010cat >>confdefs.h <<_ACEOF
42011#define HAVE_POSIX_STRERROR_R 1
42012_ACEOF
42013
42014
42015cat >>confdefs.h <<_ACEOF
42016#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
42017_ACEOF
42018
42019    fi
42020    curl_cv_func_strerror_r="yes"
42021  else
42022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42023$as_echo "no" >&6; }
42024    curl_cv_func_strerror_r="no"
42025  fi
42026  #
42027  if test "$tst_compi_strerror_r" = "yes" &&
42028     test "$tst_allow_strerror_r" = "unknown"; then
42029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
42030$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
42031  fi
42032  #
42033
42034
42035    #
42036  tst_links_stricmp="unknown"
42037  tst_proto_stricmp="unknown"
42038  tst_compi_stricmp="unknown"
42039  tst_allow_stricmp="unknown"
42040  #
42041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
42042$as_echo_n "checking if stricmp can be linked... " >&6; }
42043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42044/* end confdefs.h.  */
42045
42046
42047#define stricmp innocuous_stricmp
42048#ifdef __STDC__
42049# include <limits.h>
42050#else
42051# include <assert.h>
42052#endif
42053#undef stricmp
42054#ifdef __cplusplus
42055extern "C"
42056#endif
42057char stricmp ();
42058#if defined __stub_stricmp || defined __stub___stricmp
42059choke me
42060#endif
42061
42062int main (void)
42063{
42064return stricmp ();
42065 ;
42066 return 0;
42067}
42068
42069_ACEOF
42070if ac_fn_c_try_link "$LINENO"; then :
42071
42072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42073$as_echo "yes" >&6; }
42074    tst_links_stricmp="yes"
42075
42076else
42077
42078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42079$as_echo "no" >&6; }
42080    tst_links_stricmp="no"
42081
42082fi
42083rm -f core conftest.err conftest.$ac_objext \
42084    conftest$ac_exeext conftest.$ac_ext
42085  #
42086  if test "$tst_links_stricmp" = "yes"; then
42087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
42088$as_echo_n "checking if stricmp is prototyped... " >&6; }
42089    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42090/* end confdefs.h.  */
42091
42092      $curl_includes_string
42093
42094_ACEOF
42095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42096  $EGREP "stricmp" >/dev/null 2>&1; then :
42097
42098      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42099$as_echo "yes" >&6; }
42100      tst_proto_stricmp="yes"
42101
42102else
42103
42104      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42105$as_echo "no" >&6; }
42106      tst_proto_stricmp="no"
42107
42108fi
42109rm -f conftest*
42110
42111  fi
42112  #
42113  if test "$tst_proto_stricmp" = "yes"; then
42114    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
42115$as_echo_n "checking if stricmp is compilable... " >&6; }
42116    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42117/* end confdefs.h.  */
42118
42119
42120        $curl_includes_string
42121
42122int main (void)
42123{
42124
42125        if(0 != stricmp(0, 0))
42126          return 1;
42127
42128 ;
42129 return 0;
42130}
42131
42132_ACEOF
42133if ac_fn_c_try_compile "$LINENO"; then :
42134
42135      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42136$as_echo "yes" >&6; }
42137      tst_compi_stricmp="yes"
42138
42139else
42140
42141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42142$as_echo "no" >&6; }
42143      tst_compi_stricmp="no"
42144
42145fi
42146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42147  fi
42148  #
42149  if test "$tst_compi_stricmp" = "yes"; then
42150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
42151$as_echo_n "checking if stricmp usage allowed... " >&6; }
42152    if test "x$curl_disallow_stricmp" != "xyes"; then
42153      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42154$as_echo "yes" >&6; }
42155      tst_allow_stricmp="yes"
42156    else
42157      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42158$as_echo "no" >&6; }
42159      tst_allow_stricmp="no"
42160    fi
42161  fi
42162  #
42163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
42164$as_echo_n "checking if stricmp might be used... " >&6; }
42165  if test "$tst_links_stricmp" = "yes" &&
42166     test "$tst_proto_stricmp" = "yes" &&
42167     test "$tst_compi_stricmp" = "yes" &&
42168     test "$tst_allow_stricmp" = "yes"; then
42169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42170$as_echo "yes" >&6; }
42171
42172cat >>confdefs.h <<_ACEOF
42173#define HAVE_STRICMP 1
42174_ACEOF
42175
42176    curl_cv_func_stricmp="yes"
42177  else
42178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42179$as_echo "no" >&6; }
42180    curl_cv_func_stricmp="no"
42181  fi
42182
42183
42184    #
42185  tst_links_strncasecmp="unknown"
42186  tst_proto_strncasecmp="unknown"
42187  tst_compi_strncasecmp="unknown"
42188  tst_allow_strncasecmp="unknown"
42189  #
42190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
42191$as_echo_n "checking if strncasecmp can be linked... " >&6; }
42192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42193/* end confdefs.h.  */
42194
42195
42196#define strncasecmp innocuous_strncasecmp
42197#ifdef __STDC__
42198# include <limits.h>
42199#else
42200# include <assert.h>
42201#endif
42202#undef strncasecmp
42203#ifdef __cplusplus
42204extern "C"
42205#endif
42206char strncasecmp ();
42207#if defined __stub_strncasecmp || defined __stub___strncasecmp
42208choke me
42209#endif
42210
42211int main (void)
42212{
42213return strncasecmp ();
42214 ;
42215 return 0;
42216}
42217
42218_ACEOF
42219if ac_fn_c_try_link "$LINENO"; then :
42220
42221    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42222$as_echo "yes" >&6; }
42223    tst_links_strncasecmp="yes"
42224
42225else
42226
42227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42228$as_echo "no" >&6; }
42229    tst_links_strncasecmp="no"
42230
42231fi
42232rm -f core conftest.err conftest.$ac_objext \
42233    conftest$ac_exeext conftest.$ac_ext
42234  #
42235  if test "$tst_links_strncasecmp" = "yes"; then
42236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
42237$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
42238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42239/* end confdefs.h.  */
42240
42241      $curl_includes_string
42242
42243_ACEOF
42244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42245  $EGREP "strncasecmp" >/dev/null 2>&1; then :
42246
42247      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42248$as_echo "yes" >&6; }
42249      tst_proto_strncasecmp="yes"
42250
42251else
42252
42253      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42254$as_echo "no" >&6; }
42255      tst_proto_strncasecmp="no"
42256
42257fi
42258rm -f conftest*
42259
42260  fi
42261  #
42262  if test "$tst_proto_strncasecmp" = "yes"; then
42263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
42264$as_echo_n "checking if strncasecmp is compilable... " >&6; }
42265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42266/* end confdefs.h.  */
42267
42268
42269        $curl_includes_string
42270
42271int main (void)
42272{
42273
42274        if(0 != strncasecmp(0, 0, 0))
42275          return 1;
42276
42277 ;
42278 return 0;
42279}
42280
42281_ACEOF
42282if ac_fn_c_try_compile "$LINENO"; then :
42283
42284      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42285$as_echo "yes" >&6; }
42286      tst_compi_strncasecmp="yes"
42287
42288else
42289
42290      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42291$as_echo "no" >&6; }
42292      tst_compi_strncasecmp="no"
42293
42294fi
42295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42296  fi
42297  #
42298  if test "$tst_compi_strncasecmp" = "yes"; then
42299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
42300$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
42301    if test "x$curl_disallow_strncasecmp" != "xyes"; then
42302      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42303$as_echo "yes" >&6; }
42304      tst_allow_strncasecmp="yes"
42305    else
42306      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42307$as_echo "no" >&6; }
42308      tst_allow_strncasecmp="no"
42309    fi
42310  fi
42311  #
42312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
42313$as_echo_n "checking if strncasecmp might be used... " >&6; }
42314  if test "$tst_links_strncasecmp" = "yes" &&
42315     test "$tst_proto_strncasecmp" = "yes" &&
42316     test "$tst_compi_strncasecmp" = "yes" &&
42317     test "$tst_allow_strncasecmp" = "yes"; then
42318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42319$as_echo "yes" >&6; }
42320
42321cat >>confdefs.h <<_ACEOF
42322#define HAVE_STRNCASECMP 1
42323_ACEOF
42324
42325    curl_cv_func_strncasecmp="yes"
42326  else
42327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42328$as_echo "no" >&6; }
42329    curl_cv_func_strncasecmp="no"
42330  fi
42331
42332
42333    #
42334  tst_links_strncmpi="unknown"
42335  tst_proto_strncmpi="unknown"
42336  tst_compi_strncmpi="unknown"
42337  tst_allow_strncmpi="unknown"
42338  #
42339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
42340$as_echo_n "checking if strncmpi can be linked... " >&6; }
42341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42342/* end confdefs.h.  */
42343
42344
42345#define strncmpi innocuous_strncmpi
42346#ifdef __STDC__
42347# include <limits.h>
42348#else
42349# include <assert.h>
42350#endif
42351#undef strncmpi
42352#ifdef __cplusplus
42353extern "C"
42354#endif
42355char strncmpi ();
42356#if defined __stub_strncmpi || defined __stub___strncmpi
42357choke me
42358#endif
42359
42360int main (void)
42361{
42362return strncmpi ();
42363 ;
42364 return 0;
42365}
42366
42367_ACEOF
42368if ac_fn_c_try_link "$LINENO"; then :
42369
42370    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42371$as_echo "yes" >&6; }
42372    tst_links_strncmpi="yes"
42373
42374else
42375
42376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42377$as_echo "no" >&6; }
42378    tst_links_strncmpi="no"
42379
42380fi
42381rm -f core conftest.err conftest.$ac_objext \
42382    conftest$ac_exeext conftest.$ac_ext
42383  #
42384  if test "$tst_links_strncmpi" = "yes"; then
42385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
42386$as_echo_n "checking if strncmpi is prototyped... " >&6; }
42387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42388/* end confdefs.h.  */
42389
42390      $curl_includes_string
42391
42392_ACEOF
42393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42394  $EGREP "strncmpi" >/dev/null 2>&1; then :
42395
42396      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42397$as_echo "yes" >&6; }
42398      tst_proto_strncmpi="yes"
42399
42400else
42401
42402      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42403$as_echo "no" >&6; }
42404      tst_proto_strncmpi="no"
42405
42406fi
42407rm -f conftest*
42408
42409  fi
42410  #
42411  if test "$tst_proto_strncmpi" = "yes"; then
42412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
42413$as_echo_n "checking if strncmpi is compilable... " >&6; }
42414    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42415/* end confdefs.h.  */
42416
42417
42418        $curl_includes_string
42419
42420int main (void)
42421{
42422
42423        if(0 != strncmpi(0, 0))
42424          return 1;
42425
42426 ;
42427 return 0;
42428}
42429
42430_ACEOF
42431if ac_fn_c_try_compile "$LINENO"; then :
42432
42433      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42434$as_echo "yes" >&6; }
42435      tst_compi_strncmpi="yes"
42436
42437else
42438
42439      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42440$as_echo "no" >&6; }
42441      tst_compi_strncmpi="no"
42442
42443fi
42444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42445  fi
42446  #
42447  if test "$tst_compi_strncmpi" = "yes"; then
42448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
42449$as_echo_n "checking if strncmpi usage allowed... " >&6; }
42450    if test "x$curl_disallow_strncmpi" != "xyes"; then
42451      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42452$as_echo "yes" >&6; }
42453      tst_allow_strncmpi="yes"
42454    else
42455      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42456$as_echo "no" >&6; }
42457      tst_allow_strncmpi="no"
42458    fi
42459  fi
42460  #
42461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
42462$as_echo_n "checking if strncmpi might be used... " >&6; }
42463  if test "$tst_links_strncmpi" = "yes" &&
42464     test "$tst_proto_strncmpi" = "yes" &&
42465     test "$tst_compi_strncmpi" = "yes" &&
42466     test "$tst_allow_strncmpi" = "yes"; then
42467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42468$as_echo "yes" >&6; }
42469
42470cat >>confdefs.h <<_ACEOF
42471#define HAVE_STRNCMPI 1
42472_ACEOF
42473
42474    curl_cv_func_strncmpi="yes"
42475  else
42476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42477$as_echo "no" >&6; }
42478    curl_cv_func_strncmpi="no"
42479  fi
42480
42481
42482    #
42483  tst_links_strnicmp="unknown"
42484  tst_proto_strnicmp="unknown"
42485  tst_compi_strnicmp="unknown"
42486  tst_allow_strnicmp="unknown"
42487  #
42488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
42489$as_echo_n "checking if strnicmp can be linked... " >&6; }
42490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42491/* end confdefs.h.  */
42492
42493
42494#define strnicmp innocuous_strnicmp
42495#ifdef __STDC__
42496# include <limits.h>
42497#else
42498# include <assert.h>
42499#endif
42500#undef strnicmp
42501#ifdef __cplusplus
42502extern "C"
42503#endif
42504char strnicmp ();
42505#if defined __stub_strnicmp || defined __stub___strnicmp
42506choke me
42507#endif
42508
42509int main (void)
42510{
42511return strnicmp ();
42512 ;
42513 return 0;
42514}
42515
42516_ACEOF
42517if ac_fn_c_try_link "$LINENO"; then :
42518
42519    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42520$as_echo "yes" >&6; }
42521    tst_links_strnicmp="yes"
42522
42523else
42524
42525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42526$as_echo "no" >&6; }
42527    tst_links_strnicmp="no"
42528
42529fi
42530rm -f core conftest.err conftest.$ac_objext \
42531    conftest$ac_exeext conftest.$ac_ext
42532  #
42533  if test "$tst_links_strnicmp" = "yes"; then
42534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
42535$as_echo_n "checking if strnicmp is prototyped... " >&6; }
42536    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42537/* end confdefs.h.  */
42538
42539      $curl_includes_string
42540
42541_ACEOF
42542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42543  $EGREP "strnicmp" >/dev/null 2>&1; then :
42544
42545      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42546$as_echo "yes" >&6; }
42547      tst_proto_strnicmp="yes"
42548
42549else
42550
42551      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42552$as_echo "no" >&6; }
42553      tst_proto_strnicmp="no"
42554
42555fi
42556rm -f conftest*
42557
42558  fi
42559  #
42560  if test "$tst_proto_strnicmp" = "yes"; then
42561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
42562$as_echo_n "checking if strnicmp is compilable... " >&6; }
42563    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42564/* end confdefs.h.  */
42565
42566
42567        $curl_includes_string
42568
42569int main (void)
42570{
42571
42572        if(0 != strnicmp(0, 0))
42573          return 1;
42574
42575 ;
42576 return 0;
42577}
42578
42579_ACEOF
42580if ac_fn_c_try_compile "$LINENO"; then :
42581
42582      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42583$as_echo "yes" >&6; }
42584      tst_compi_strnicmp="yes"
42585
42586else
42587
42588      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42589$as_echo "no" >&6; }
42590      tst_compi_strnicmp="no"
42591
42592fi
42593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42594  fi
42595  #
42596  if test "$tst_compi_strnicmp" = "yes"; then
42597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
42598$as_echo_n "checking if strnicmp usage allowed... " >&6; }
42599    if test "x$curl_disallow_strnicmp" != "xyes"; then
42600      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42601$as_echo "yes" >&6; }
42602      tst_allow_strnicmp="yes"
42603    else
42604      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42605$as_echo "no" >&6; }
42606      tst_allow_strnicmp="no"
42607    fi
42608  fi
42609  #
42610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
42611$as_echo_n "checking if strnicmp might be used... " >&6; }
42612  if test "$tst_links_strnicmp" = "yes" &&
42613     test "$tst_proto_strnicmp" = "yes" &&
42614     test "$tst_compi_strnicmp" = "yes" &&
42615     test "$tst_allow_strnicmp" = "yes"; then
42616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42617$as_echo "yes" >&6; }
42618
42619cat >>confdefs.h <<_ACEOF
42620#define HAVE_STRNICMP 1
42621_ACEOF
42622
42623    curl_cv_func_strnicmp="yes"
42624  else
42625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42626$as_echo "no" >&6; }
42627    curl_cv_func_strnicmp="no"
42628  fi
42629
42630
42631    #
42632  tst_links_strstr="unknown"
42633  tst_proto_strstr="unknown"
42634  tst_compi_strstr="unknown"
42635  tst_allow_strstr="unknown"
42636  #
42637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
42638$as_echo_n "checking if strstr can be linked... " >&6; }
42639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42640/* end confdefs.h.  */
42641
42642
42643#define strstr innocuous_strstr
42644#ifdef __STDC__
42645# include <limits.h>
42646#else
42647# include <assert.h>
42648#endif
42649#undef strstr
42650#ifdef __cplusplus
42651extern "C"
42652#endif
42653char strstr ();
42654#if defined __stub_strstr || defined __stub___strstr
42655choke me
42656#endif
42657
42658int main (void)
42659{
42660return strstr ();
42661 ;
42662 return 0;
42663}
42664
42665_ACEOF
42666if ac_fn_c_try_link "$LINENO"; then :
42667
42668    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42669$as_echo "yes" >&6; }
42670    tst_links_strstr="yes"
42671
42672else
42673
42674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42675$as_echo "no" >&6; }
42676    tst_links_strstr="no"
42677
42678fi
42679rm -f core conftest.err conftest.$ac_objext \
42680    conftest$ac_exeext conftest.$ac_ext
42681  #
42682  if test "$tst_links_strstr" = "yes"; then
42683    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
42684$as_echo_n "checking if strstr is prototyped... " >&6; }
42685    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42686/* end confdefs.h.  */
42687
42688      $curl_includes_string
42689
42690_ACEOF
42691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42692  $EGREP "strstr" >/dev/null 2>&1; then :
42693
42694      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42695$as_echo "yes" >&6; }
42696      tst_proto_strstr="yes"
42697
42698else
42699
42700      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42701$as_echo "no" >&6; }
42702      tst_proto_strstr="no"
42703
42704fi
42705rm -f conftest*
42706
42707  fi
42708  #
42709  if test "$tst_proto_strstr" = "yes"; then
42710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
42711$as_echo_n "checking if strstr is compilable... " >&6; }
42712    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42713/* end confdefs.h.  */
42714
42715
42716        $curl_includes_string
42717
42718int main (void)
42719{
42720
42721        if(0 != strstr(0, 0))
42722          return 1;
42723
42724 ;
42725 return 0;
42726}
42727
42728_ACEOF
42729if ac_fn_c_try_compile "$LINENO"; then :
42730
42731      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42732$as_echo "yes" >&6; }
42733      tst_compi_strstr="yes"
42734
42735else
42736
42737      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42738$as_echo "no" >&6; }
42739      tst_compi_strstr="no"
42740
42741fi
42742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42743  fi
42744  #
42745  if test "$tst_compi_strstr" = "yes"; then
42746    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
42747$as_echo_n "checking if strstr usage allowed... " >&6; }
42748    if test "x$curl_disallow_strstr" != "xyes"; then
42749      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42750$as_echo "yes" >&6; }
42751      tst_allow_strstr="yes"
42752    else
42753      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42754$as_echo "no" >&6; }
42755      tst_allow_strstr="no"
42756    fi
42757  fi
42758  #
42759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
42760$as_echo_n "checking if strstr might be used... " >&6; }
42761  if test "$tst_links_strstr" = "yes" &&
42762     test "$tst_proto_strstr" = "yes" &&
42763     test "$tst_compi_strstr" = "yes" &&
42764     test "$tst_allow_strstr" = "yes"; then
42765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42766$as_echo "yes" >&6; }
42767
42768cat >>confdefs.h <<_ACEOF
42769#define HAVE_STRSTR 1
42770_ACEOF
42771
42772    curl_cv_func_strstr="yes"
42773  else
42774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42775$as_echo "no" >&6; }
42776    curl_cv_func_strstr="no"
42777  fi
42778
42779
42780    #
42781  tst_links_strtok_r="unknown"
42782  tst_proto_strtok_r="unknown"
42783  tst_compi_strtok_r="unknown"
42784  tst_allow_strtok_r="unknown"
42785  #
42786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
42787$as_echo_n "checking if strtok_r can be linked... " >&6; }
42788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42789/* end confdefs.h.  */
42790
42791
42792#define strtok_r innocuous_strtok_r
42793#ifdef __STDC__
42794# include <limits.h>
42795#else
42796# include <assert.h>
42797#endif
42798#undef strtok_r
42799#ifdef __cplusplus
42800extern "C"
42801#endif
42802char strtok_r ();
42803#if defined __stub_strtok_r || defined __stub___strtok_r
42804choke me
42805#endif
42806
42807int main (void)
42808{
42809return strtok_r ();
42810 ;
42811 return 0;
42812}
42813
42814_ACEOF
42815if ac_fn_c_try_link "$LINENO"; then :
42816
42817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42818$as_echo "yes" >&6; }
42819    tst_links_strtok_r="yes"
42820
42821else
42822
42823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42824$as_echo "no" >&6; }
42825    tst_links_strtok_r="no"
42826
42827fi
42828rm -f core conftest.err conftest.$ac_objext \
42829    conftest$ac_exeext conftest.$ac_ext
42830  #
42831  if test "$tst_links_strtok_r" = "yes"; then
42832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
42833$as_echo_n "checking if strtok_r is prototyped... " >&6; }
42834    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42835/* end confdefs.h.  */
42836
42837      $curl_includes_string
42838
42839_ACEOF
42840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42841  $EGREP "strtok_r" >/dev/null 2>&1; then :
42842
42843      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42844$as_echo "yes" >&6; }
42845      tst_proto_strtok_r="yes"
42846
42847else
42848
42849      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42850$as_echo "no" >&6; }
42851      tst_proto_strtok_r="no"
42852
42853fi
42854rm -f conftest*
42855
42856  fi
42857  #
42858  if test "$tst_proto_strtok_r" = "yes"; then
42859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
42860$as_echo_n "checking if strtok_r is compilable... " >&6; }
42861    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42862/* end confdefs.h.  */
42863
42864
42865        $curl_includes_string
42866
42867int main (void)
42868{
42869
42870        if(0 != strtok_r(0, 0, 0))
42871          return 1;
42872
42873 ;
42874 return 0;
42875}
42876
42877_ACEOF
42878if ac_fn_c_try_compile "$LINENO"; then :
42879
42880      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42881$as_echo "yes" >&6; }
42882      tst_compi_strtok_r="yes"
42883
42884else
42885
42886      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42887$as_echo "no" >&6; }
42888      tst_compi_strtok_r="no"
42889
42890fi
42891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42892  fi
42893  #
42894  if test "$tst_compi_strtok_r" = "yes"; then
42895    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
42896$as_echo_n "checking if strtok_r usage allowed... " >&6; }
42897    if test "x$curl_disallow_strtok_r" != "xyes"; then
42898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42899$as_echo "yes" >&6; }
42900      tst_allow_strtok_r="yes"
42901    else
42902      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42903$as_echo "no" >&6; }
42904      tst_allow_strtok_r="no"
42905    fi
42906  fi
42907  #
42908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
42909$as_echo_n "checking if strtok_r might be used... " >&6; }
42910  if test "$tst_links_strtok_r" = "yes" &&
42911     test "$tst_proto_strtok_r" = "yes" &&
42912     test "$tst_compi_strtok_r" = "yes" &&
42913     test "$tst_allow_strtok_r" = "yes"; then
42914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42915$as_echo "yes" >&6; }
42916
42917cat >>confdefs.h <<_ACEOF
42918#define HAVE_STRTOK_R 1
42919_ACEOF
42920
42921    curl_cv_func_strtok_r="yes"
42922  else
42923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42924$as_echo "no" >&6; }
42925    curl_cv_func_strtok_r="no"
42926  fi
42927
42928
42929    #
42930  tst_links_strtoll="unknown"
42931  tst_proto_strtoll="unknown"
42932  tst_compi_strtoll="unknown"
42933  tst_allow_strtoll="unknown"
42934  #
42935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
42936$as_echo_n "checking if strtoll can be linked... " >&6; }
42937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42938/* end confdefs.h.  */
42939
42940
42941#define strtoll innocuous_strtoll
42942#ifdef __STDC__
42943# include <limits.h>
42944#else
42945# include <assert.h>
42946#endif
42947#undef strtoll
42948#ifdef __cplusplus
42949extern "C"
42950#endif
42951char strtoll ();
42952#if defined __stub_strtoll || defined __stub___strtoll
42953choke me
42954#endif
42955
42956int main (void)
42957{
42958return strtoll ();
42959 ;
42960 return 0;
42961}
42962
42963_ACEOF
42964if ac_fn_c_try_link "$LINENO"; then :
42965
42966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42967$as_echo "yes" >&6; }
42968    tst_links_strtoll="yes"
42969
42970else
42971
42972    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42973$as_echo "no" >&6; }
42974    tst_links_strtoll="no"
42975
42976fi
42977rm -f core conftest.err conftest.$ac_objext \
42978    conftest$ac_exeext conftest.$ac_ext
42979  #
42980  if test "$tst_links_strtoll" = "yes"; then
42981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
42982$as_echo_n "checking if strtoll is prototyped... " >&6; }
42983    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42984/* end confdefs.h.  */
42985
42986      $curl_includes_stdlib
42987
42988_ACEOF
42989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42990  $EGREP "strtoll" >/dev/null 2>&1; then :
42991
42992      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42993$as_echo "yes" >&6; }
42994      tst_proto_strtoll="yes"
42995
42996else
42997
42998      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42999$as_echo "no" >&6; }
43000      tst_proto_strtoll="no"
43001
43002fi
43003rm -f conftest*
43004
43005  fi
43006  #
43007  if test "$tst_proto_strtoll" = "yes"; then
43008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43009$as_echo_n "checking if strtoll is compilable... " >&6; }
43010    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43011/* end confdefs.h.  */
43012
43013
43014        $curl_includes_stdlib
43015
43016int main (void)
43017{
43018
43019        if(0 != strtoll(0, 0, 0))
43020          return 1;
43021
43022 ;
43023 return 0;
43024}
43025
43026_ACEOF
43027if ac_fn_c_try_compile "$LINENO"; then :
43028
43029      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43030$as_echo "yes" >&6; }
43031      tst_compi_strtoll="yes"
43032
43033else
43034
43035      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43036$as_echo "no" >&6; }
43037      tst_compi_strtoll="no"
43038
43039fi
43040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43041  fi
43042  #
43043  if test "$tst_compi_strtoll" = "yes"; then
43044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43045$as_echo_n "checking if strtoll usage allowed... " >&6; }
43046    if test "x$curl_disallow_strtoll" != "xyes"; then
43047      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43048$as_echo "yes" >&6; }
43049      tst_allow_strtoll="yes"
43050    else
43051      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43052$as_echo "no" >&6; }
43053      tst_allow_strtoll="no"
43054    fi
43055  fi
43056  #
43057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43058$as_echo_n "checking if strtoll might be used... " >&6; }
43059  if test "$tst_links_strtoll" = "yes" &&
43060     test "$tst_proto_strtoll" = "yes" &&
43061     test "$tst_compi_strtoll" = "yes" &&
43062     test "$tst_allow_strtoll" = "yes"; then
43063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43064$as_echo "yes" >&6; }
43065
43066cat >>confdefs.h <<_ACEOF
43067#define HAVE_STRTOLL 1
43068_ACEOF
43069
43070    curl_cv_func_strtoll="yes"
43071  else
43072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43073$as_echo "no" >&6; }
43074    curl_cv_func_strtoll="no"
43075  fi
43076
43077
43078curl_includes_sys_uio="\
43079/* includes start */
43080#ifdef HAVE_SYS_TYPES_H
43081#  include <sys/types.h>
43082#endif
43083#ifdef HAVE_SYS_UIO_H
43084#  include <sys/uio.h>
43085#endif
43086/* includes end */"
43087  for ac_header in sys/types.h sys/uio.h
43088do :
43089  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43090ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
43091"
43092if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43093  cat >>confdefs.h <<_ACEOF
43094#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43095_ACEOF
43096
43097fi
43098
43099done
43100
43101
43102
43103    #
43104  tst_links_writev="unknown"
43105  tst_proto_writev="unknown"
43106  tst_compi_writev="unknown"
43107  tst_allow_writev="unknown"
43108  #
43109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
43110$as_echo_n "checking if writev can be linked... " >&6; }
43111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43112/* end confdefs.h.  */
43113
43114
43115#define writev innocuous_writev
43116#ifdef __STDC__
43117# include <limits.h>
43118#else
43119# include <assert.h>
43120#endif
43121#undef writev
43122#ifdef __cplusplus
43123extern "C"
43124#endif
43125char writev ();
43126#if defined __stub_writev || defined __stub___writev
43127choke me
43128#endif
43129
43130int main (void)
43131{
43132return writev ();
43133 ;
43134 return 0;
43135}
43136
43137_ACEOF
43138if ac_fn_c_try_link "$LINENO"; then :
43139
43140    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43141$as_echo "yes" >&6; }
43142    tst_links_writev="yes"
43143
43144else
43145
43146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43147$as_echo "no" >&6; }
43148    tst_links_writev="no"
43149
43150fi
43151rm -f core conftest.err conftest.$ac_objext \
43152    conftest$ac_exeext conftest.$ac_ext
43153  #
43154  if test "$tst_links_writev" = "yes"; then
43155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
43156$as_echo_n "checking if writev is prototyped... " >&6; }
43157    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43158/* end confdefs.h.  */
43159
43160      $curl_includes_sys_uio
43161
43162_ACEOF
43163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43164  $EGREP "writev" >/dev/null 2>&1; then :
43165
43166      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43167$as_echo "yes" >&6; }
43168      tst_proto_writev="yes"
43169
43170else
43171
43172      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43173$as_echo "no" >&6; }
43174      tst_proto_writev="no"
43175
43176fi
43177rm -f conftest*
43178
43179  fi
43180  #
43181  if test "$tst_proto_writev" = "yes"; then
43182    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
43183$as_echo_n "checking if writev is compilable... " >&6; }
43184    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43185/* end confdefs.h.  */
43186
43187
43188        $curl_includes_sys_uio
43189
43190int main (void)
43191{
43192
43193        if(0 != writev(0, 0, 0))
43194          return 1;
43195
43196 ;
43197 return 0;
43198}
43199
43200_ACEOF
43201if ac_fn_c_try_compile "$LINENO"; then :
43202
43203      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43204$as_echo "yes" >&6; }
43205      tst_compi_writev="yes"
43206
43207else
43208
43209      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43210$as_echo "no" >&6; }
43211      tst_compi_writev="no"
43212
43213fi
43214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43215  fi
43216  #
43217  if test "$tst_compi_writev" = "yes"; then
43218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
43219$as_echo_n "checking if writev usage allowed... " >&6; }
43220    if test "x$curl_disallow_writev" != "xyes"; then
43221      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43222$as_echo "yes" >&6; }
43223      tst_allow_writev="yes"
43224    else
43225      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43226$as_echo "no" >&6; }
43227      tst_allow_writev="no"
43228    fi
43229  fi
43230  #
43231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
43232$as_echo_n "checking if writev might be used... " >&6; }
43233  if test "$tst_links_writev" = "yes" &&
43234     test "$tst_proto_writev" = "yes" &&
43235     test "$tst_compi_writev" = "yes" &&
43236     test "$tst_allow_writev" = "yes"; then
43237    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43238$as_echo "yes" >&6; }
43239
43240cat >>confdefs.h <<_ACEOF
43241#define HAVE_WRITEV 1
43242_ACEOF
43243
43244    curl_cv_func_writev="yes"
43245  else
43246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43247$as_echo "no" >&6; }
43248    curl_cv_func_writev="no"
43249  fi
43250
43251
43252case $host in
43253  *msdosdjgpp)
43254     ac_cv_func_pipe=no
43255     skipcheck_pipe=yes
43256     { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43257$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43258    ;;
43259esac
43260
43261ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43262          #include <sys/types.h>
43263"
43264if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
43265  ac_have_decl=1
43266else
43267  ac_have_decl=0
43268fi
43269
43270cat >>confdefs.h <<_ACEOF
43271#define HAVE_DECL_GETPWUID_R $ac_have_decl
43272_ACEOF
43273if test $ac_have_decl = 1; then :
43274
43275else
43276
43277$as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43278
43279fi
43280
43281
43282
43283for ac_func in fnmatch \
43284  geteuid \
43285  getpass_r \
43286  getppid \
43287  getpwuid \
43288  getpwuid_r \
43289  getrlimit \
43290  gettimeofday \
43291  if_nametoindex \
43292  mach_absolute_time \
43293  pipe \
43294  setlocale \
43295  setmode \
43296  setrlimit \
43297  usleep \
43298  utime \
43299  utimes
43300
43301do :
43302  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43303ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43304if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
43305  cat >>confdefs.h <<_ACEOF
43306#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43307_ACEOF
43308
43309
43310else
43311
43312  func="$ac_func"
43313  eval skipcheck=\$skipcheck_$func
43314  if test "x$skipcheck" != "xyes"; then
43315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43316$as_echo_n "checking deeper for $func... " >&6; }
43317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43318/* end confdefs.h.  */
43319
43320
43321
43322int main (void)
43323{
43324
43325        $func ();
43326
43327 ;
43328 return 0;
43329}
43330
43331_ACEOF
43332if ac_fn_c_try_link "$LINENO"; then :
43333
43334      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43335$as_echo "yes" >&6; }
43336      eval "ac_cv_func_$func=yes"
43337
43338cat >>confdefs.h <<_ACEOF
43339#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43340_ACEOF
43341
43342
43343else
43344
43345      { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43346$as_echo "but still no" >&6; }
43347
43348fi
43349rm -f core conftest.err conftest.$ac_objext \
43350    conftest$ac_exeext conftest.$ac_ext
43351  fi
43352
43353fi
43354done
43355
43356
43357
43358            #
43359  tst_method="unknown"
43360
43361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43362$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
43363  if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43364    tst_method="fcntl O_NONBLOCK"
43365  elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43366    tst_method="ioctl FIONBIO"
43367  elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43368    tst_method="ioctlsocket FIONBIO"
43369  elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43370    tst_method="IoctlSocket FIONBIO"
43371  elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43372    tst_method="setsockopt SO_NONBLOCK"
43373  fi
43374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43375$as_echo "$tst_method" >&6; }
43376  if test "$tst_method" = "unknown"; then
43377    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43378$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43379  fi
43380
43381
43382
43383# Extract the first word of "perl", so it can be a program name with args.
43384set dummy perl; ac_word=$2
43385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43386$as_echo_n "checking for $ac_word... " >&6; }
43387if ${ac_cv_path_PERL+:} false; then :
43388  $as_echo_n "(cached) " >&6
43389else
43390  case $PERL in
43391  [\\/]* | ?:[\\/]*)
43392  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43393  ;;
43394  *)
43395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43396as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43397for as_dir in $as_dummy
43398do
43399  IFS=$as_save_IFS
43400  test -z "$as_dir" && as_dir=.
43401    for ac_exec_ext in '' $ac_executable_extensions; do
43402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43403    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
43404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43405    break 2
43406  fi
43407done
43408  done
43409IFS=$as_save_IFS
43410
43411  ;;
43412esac
43413fi
43414PERL=$ac_cv_path_PERL
43415if test -n "$PERL"; then
43416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43417$as_echo "$PERL" >&6; }
43418else
43419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43420$as_echo "no" >&6; }
43421fi
43422
43423
43424
43425
43426for ac_prog in gnroff nroff
43427do
43428  # Extract the first word of "$ac_prog", so it can be a program name with args.
43429set dummy $ac_prog; ac_word=$2
43430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43431$as_echo_n "checking for $ac_word... " >&6; }
43432if ${ac_cv_path_NROFF+:} false; then :
43433  $as_echo_n "(cached) " >&6
43434else
43435  case $NROFF in
43436  [\\/]* | ?:[\\/]*)
43437  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43438  ;;
43439  *)
43440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43441as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43442for as_dir in $as_dummy
43443do
43444  IFS=$as_save_IFS
43445  test -z "$as_dir" && as_dir=.
43446    for ac_exec_ext in '' $ac_executable_extensions; do
43447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43448    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
43449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43450    break 2
43451  fi
43452done
43453  done
43454IFS=$as_save_IFS
43455
43456  ;;
43457esac
43458fi
43459NROFF=$ac_cv_path_NROFF
43460if test -n "$NROFF"; then
43461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43462$as_echo "$NROFF" >&6; }
43463else
43464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43465$as_echo "no" >&6; }
43466fi
43467
43468
43469  test -n "$NROFF" && break
43470done
43471
43472
43473
43474if test -n "$NROFF"; then
43475
43476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
43477$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
43478  MANOPT="-man"
43479  mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43480  if test -z "$mancheck"; then
43481    MANOPT="-mandoc"
43482   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43483    if test -z "$mancheck"; then
43484      MANOPT=""
43485      { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
43486$as_echo "failed" >&6; }
43487      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
43488$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
43489    else
43490      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43491$as_echo "$MANOPT" >&6; }
43492    fi
43493  else
43494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43495$as_echo "$MANOPT" >&6; }
43496  fi
43497
43498fi
43499
43500if test -z "$MANOPT"
43501then
43502      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
43503$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
43504  USE_MANUAL="no";
43505fi
43506
43507
43508if test "$USE_MANUAL" = "1"; then
43509
43510$as_echo "#define USE_MANUAL 1" >>confdefs.h
43511
43512  curl_manual_msg="enabled"
43513fi
43514
43515 if test x"$USE_MANUAL" = x1; then
43516  USE_MANUAL_TRUE=
43517  USE_MANUAL_FALSE='#'
43518else
43519  USE_MANUAL_TRUE='#'
43520  USE_MANUAL_FALSE=
43521fi
43522
43523
43524
43525
43526
43527  #
43528  if test "$want_ares" = "yes"; then
43529        clean_CPPFLAGS="$CPPFLAGS"
43530    clean_LDFLAGS="$LDFLAGS"
43531    clean_LIBS="$LIBS"
43532    embedded_ares="unknown"
43533    configure_runpath=`pwd`
43534    embedded_ares_builddir="$configure_runpath/ares"
43535    if test -n "$want_ares_path"; then
43536            ARES_PCDIR="$want_ares_path/lib/pkgconfig"
43537
43538    if test -n "$PKG_CONFIG"; then
43539      PKGCONFIG="$PKG_CONFIG"
43540    else
43541      if test -n "$ac_tool_prefix"; then
43542  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43543set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43545$as_echo_n "checking for $ac_word... " >&6; }
43546if ${ac_cv_path_PKGCONFIG+:} false; then :
43547  $as_echo_n "(cached) " >&6
43548else
43549  case $PKGCONFIG in
43550  [\\/]* | ?:[\\/]*)
43551  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43552  ;;
43553  *)
43554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43555as_dummy="$PATH:/usr/bin:/usr/local/bin"
43556for as_dir in $as_dummy
43557do
43558  IFS=$as_save_IFS
43559  test -z "$as_dir" && as_dir=.
43560    for ac_exec_ext in '' $ac_executable_extensions; do
43561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43562    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
43563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43564    break 2
43565  fi
43566done
43567  done
43568IFS=$as_save_IFS
43569
43570  ;;
43571esac
43572fi
43573PKGCONFIG=$ac_cv_path_PKGCONFIG
43574if test -n "$PKGCONFIG"; then
43575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43576$as_echo "$PKGCONFIG" >&6; }
43577else
43578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43579$as_echo "no" >&6; }
43580fi
43581
43582
43583fi
43584if test -z "$ac_cv_path_PKGCONFIG"; then
43585  ac_pt_PKGCONFIG=$PKGCONFIG
43586  # Extract the first word of "pkg-config", so it can be a program name with args.
43587set dummy pkg-config; ac_word=$2
43588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43589$as_echo_n "checking for $ac_word... " >&6; }
43590if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
43591  $as_echo_n "(cached) " >&6
43592else
43593  case $ac_pt_PKGCONFIG in
43594  [\\/]* | ?:[\\/]*)
43595  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43596  ;;
43597  *)
43598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43599as_dummy="$PATH:/usr/bin:/usr/local/bin"
43600for as_dir in $as_dummy
43601do
43602  IFS=$as_save_IFS
43603  test -z "$as_dir" && as_dir=.
43604    for ac_exec_ext in '' $ac_executable_extensions; do
43605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43606    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
43607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43608    break 2
43609  fi
43610done
43611  done
43612IFS=$as_save_IFS
43613
43614  ;;
43615esac
43616fi
43617ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43618if test -n "$ac_pt_PKGCONFIG"; then
43619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43620$as_echo "$ac_pt_PKGCONFIG" >&6; }
43621else
43622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43623$as_echo "no" >&6; }
43624fi
43625
43626  if test "x$ac_pt_PKGCONFIG" = x; then
43627    PKGCONFIG="no"
43628  else
43629    case $cross_compiling:$ac_tool_warned in
43630yes:)
43631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43633ac_tool_warned=yes ;;
43634esac
43635    PKGCONFIG=$ac_pt_PKGCONFIG
43636  fi
43637else
43638  PKGCONFIG="$ac_cv_path_PKGCONFIG"
43639fi
43640
43641    fi
43642
43643    if test "x$PKGCONFIG" != "xno"; then
43644      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43645$as_echo_n "checking for libcares options with pkg-config... " >&6; }
43646            itexists=`
43647    if test -n "$ARES_PCDIR"; then
43648      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43649      export PKG_CONFIG_LIBDIR
43650    fi
43651         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43652
43653      if test -z "$itexists"; then
43654                        PKGCONFIG="no"
43655        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43656$as_echo "no" >&6; }
43657      else
43658        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
43659$as_echo "found" >&6; }
43660      fi
43661    fi
43662
43663      if test "$PKGCONFIG" != "no" ; then
43664        ares_LIBS=`
43665    if test -n "$ARES_PCDIR"; then
43666      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43667      export PKG_CONFIG_LIBDIR
43668    fi
43669
43670          $PKGCONFIG --libs-only-l libcares`
43671        ares_LDFLAGS=`
43672    if test -n "$ARES_PCDIR"; then
43673      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43674      export PKG_CONFIG_LIBDIR
43675    fi
43676
43677          $PKGCONFIG --libs-only-L libcares`
43678        ares_CPPFLAGS=`
43679    if test -n "$ARES_PCDIR"; then
43680      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43681      export PKG_CONFIG_LIBDIR
43682    fi
43683
43684          $PKGCONFIG --cflags-only-I libcares`
43685        { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
43686$as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
43687        { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
43688$as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43689        { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43690$as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43691      else
43692                ares_CPPFLAGS="-I$want_ares_path/include"
43693        ares_LDFLAGS="-L$want_ares_path/lib"
43694        ares_LIBS="-lcares"
43695      fi
43696    else
43697            if test -d "$srcdir/ares"; then
43698                embedded_ares="yes"
43699        subdirs="$subdirs ares"
43700
43701                        ares_CPPFLAGS=""
43702        ares_LDFLAGS="-L$embedded_ares_builddir"
43703        ares_LIBS="-lcares"
43704      else
43705
43706    if test -n "$PKG_CONFIG"; then
43707      PKGCONFIG="$PKG_CONFIG"
43708    else
43709      if test -n "$ac_tool_prefix"; then
43710  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43711set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43713$as_echo_n "checking for $ac_word... " >&6; }
43714if ${ac_cv_path_PKGCONFIG+:} false; then :
43715  $as_echo_n "(cached) " >&6
43716else
43717  case $PKGCONFIG in
43718  [\\/]* | ?:[\\/]*)
43719  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43720  ;;
43721  *)
43722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43723as_dummy="$PATH:/usr/bin:/usr/local/bin"
43724for as_dir in $as_dummy
43725do
43726  IFS=$as_save_IFS
43727  test -z "$as_dir" && as_dir=.
43728    for ac_exec_ext in '' $ac_executable_extensions; do
43729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43730    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
43731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43732    break 2
43733  fi
43734done
43735  done
43736IFS=$as_save_IFS
43737
43738  ;;
43739esac
43740fi
43741PKGCONFIG=$ac_cv_path_PKGCONFIG
43742if test -n "$PKGCONFIG"; then
43743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43744$as_echo "$PKGCONFIG" >&6; }
43745else
43746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43747$as_echo "no" >&6; }
43748fi
43749
43750
43751fi
43752if test -z "$ac_cv_path_PKGCONFIG"; then
43753  ac_pt_PKGCONFIG=$PKGCONFIG
43754  # Extract the first word of "pkg-config", so it can be a program name with args.
43755set dummy pkg-config; ac_word=$2
43756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43757$as_echo_n "checking for $ac_word... " >&6; }
43758if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
43759  $as_echo_n "(cached) " >&6
43760else
43761  case $ac_pt_PKGCONFIG in
43762  [\\/]* | ?:[\\/]*)
43763  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43764  ;;
43765  *)
43766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43767as_dummy="$PATH:/usr/bin:/usr/local/bin"
43768for as_dir in $as_dummy
43769do
43770  IFS=$as_save_IFS
43771  test -z "$as_dir" && as_dir=.
43772    for ac_exec_ext in '' $ac_executable_extensions; do
43773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43774    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
43775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43776    break 2
43777  fi
43778done
43779  done
43780IFS=$as_save_IFS
43781
43782  ;;
43783esac
43784fi
43785ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43786if test -n "$ac_pt_PKGCONFIG"; then
43787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43788$as_echo "$ac_pt_PKGCONFIG" >&6; }
43789else
43790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43791$as_echo "no" >&6; }
43792fi
43793
43794  if test "x$ac_pt_PKGCONFIG" = x; then
43795    PKGCONFIG="no"
43796  else
43797    case $cross_compiling:$ac_tool_warned in
43798yes:)
43799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43801ac_tool_warned=yes ;;
43802esac
43803    PKGCONFIG=$ac_pt_PKGCONFIG
43804  fi
43805else
43806  PKGCONFIG="$ac_cv_path_PKGCONFIG"
43807fi
43808
43809    fi
43810
43811    if test "x$PKGCONFIG" != "xno"; then
43812      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43813$as_echo_n "checking for libcares options with pkg-config... " >&6; }
43814            itexists=`
43815    if test -n ""; then
43816      PKG_CONFIG_LIBDIR=""
43817      export PKG_CONFIG_LIBDIR
43818    fi
43819         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43820
43821      if test -z "$itexists"; then
43822                        PKGCONFIG="no"
43823        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43824$as_echo "no" >&6; }
43825      else
43826        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
43827$as_echo "found" >&6; }
43828      fi
43829    fi
43830
43831        if test "$PKGCONFIG" != "no" ; then
43832          ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
43833          ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
43834          ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
43835          { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
43836$as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
43837          { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
43838$as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43839          { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43840$as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43841        else
43842          ares_CPPFLAGS=""
43843          ares_LDFLAGS=""
43844          ares_LIBS="-lcares"
43845        fi
43846      fi
43847    fi
43848    #
43849    CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
43850    LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
43851    LIBS="$ares_LIBS $clean_LIBS"
43852    #
43853    if test "$embedded_ares" != "yes"; then
43854                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
43855$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
43856      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43857/* end confdefs.h.  */
43858
43859
43860#include <ares.h>
43861          /* set of dummy functions in case c-ares was built with debug */
43862          void curl_dofree() { }
43863          void curl_sclose() { }
43864          void curl_domalloc() { }
43865          void curl_docalloc() { }
43866          void curl_socket() { }
43867
43868int main (void)
43869{
43870
43871          ares_channel channel;
43872          ares_cancel(channel); /* added in 1.2.0 */
43873          ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
43874          ares_dup(&channel, channel); /* added in 1.6.0 */
43875
43876 ;
43877 return 0;
43878}
43879
43880_ACEOF
43881if ac_fn_c_try_link "$LINENO"; then :
43882
43883        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43884$as_echo "yes" >&6; }
43885
43886else
43887
43888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43889$as_echo "no" >&6; }
43890        as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
43891                CPPFLAGS="$clean_CPPFLAGS"
43892        LDFLAGS="$clean_LDFLAGS"
43893        LIBS="$clean_LIBS"
43894        # prevent usage
43895        want_ares="no"
43896
43897fi
43898rm -f core conftest.err conftest.$ac_objext \
43899    conftest$ac_exeext conftest.$ac_ext
43900    fi
43901    if test "$want_ares" = "yes"; then
43902
43903$as_echo "#define USE_ARES 1" >>confdefs.h
43904
43905      USE_ARES=1
43906
43907      curl_res_msg="c-ares"
43908    fi
43909  fi
43910
43911 if test x$embedded_ares = xyes; then
43912  USE_EMBEDDED_ARES_TRUE=
43913  USE_EMBEDDED_ARES_FALSE='#'
43914else
43915  USE_EMBEDDED_ARES_TRUE='#'
43916  USE_EMBEDDED_ARES_FALSE=
43917fi
43918
43919
43920if test "x$curl_cv_native_windows" != "xyes" &&
43921   test "x$enable_shared" = "xyes"; then
43922  build_libhostname=yes
43923else
43924  build_libhostname=no
43925fi
43926 if test x$build_libhostname = xyes; then
43927  BUILD_LIBHOSTNAME_TRUE=
43928  BUILD_LIBHOSTNAME_FALSE='#'
43929else
43930  BUILD_LIBHOSTNAME_TRUE='#'
43931  BUILD_LIBHOSTNAME_FALSE=
43932fi
43933
43934
43935if test "x$want_ares" != xyes; then
43936
43937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
43938$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
43939  OPT_THRES="default"
43940  # Check whether --enable-threaded_resolver was given.
43941if test "${enable_threaded_resolver+set}" = set; then :
43942  enableval=$enable_threaded_resolver; OPT_THRES=$enableval
43943fi
43944
43945  case "$OPT_THRES" in
43946    no)
43947            want_thres="no"
43948      ;;
43949    *)
43950            want_thres="yes"
43951      ;;
43952  esac
43953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
43954$as_echo "$want_thres" >&6; }
43955
43956fi
43957
43958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
43959$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
43960# Check whether --enable-pthreads was given.
43961if test "${enable_pthreads+set}" = set; then :
43962  enableval=$enable_pthreads;  case "$enableval" in
43963  no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43964$as_echo "no" >&6; }
43965       want_pthreads=no
43966       ;;
43967  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43968$as_echo "yes" >&6; }
43969       want_pthreads=yes
43970       ;;
43971  esac
43972else
43973
43974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
43975$as_echo "auto" >&6; }
43976       want_pthreads=auto
43977
43978
43979fi
43980
43981
43982if test "$want_pthreads" != "no"; then
43983  if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
43984    as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
43985  fi
43986  if test "$dontwant_rt" != "no"; then
43987        if test "$want_pthreads" = "yes"; then
43988      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
43989$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
43990    fi
43991    want_pthreads=no
43992  fi
43993fi
43994
43995if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
43996  want_pthreads=no
43997fi
43998
43999if test "$want_pthreads" != "no"; then
44000  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44001if test "x$ac_cv_header_pthread_h" = xyes; then :
44002
44003$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
44004
44005      save_CFLAGS="$CFLAGS"
44006                                    save_LIBS="$LIBS"
44007
44008      LIBS=
44009            ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44010if test "x$ac_cv_func_pthread_create" = xyes; then :
44011  USE_THREADS_POSIX=1
44012fi
44013
44014      LIBS="$save_LIBS"
44015
44016            case $host in
44017      *-hp-hpux*)
44018                  USE_THREADS_POSIX=""
44019         ;;
44020      *)
44021         ;;
44022      esac
44023
44024            if test "$USE_THREADS_POSIX" != "1"
44025      then
44026        CFLAGS="$CFLAGS -pthread"
44027        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44028$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
44029if ${ac_cv_lib_pthread_pthread_create+:} false; then :
44030  $as_echo_n "(cached) " >&6
44031else
44032  ac_check_lib_save_LIBS=$LIBS
44033LIBS="-lpthread  $LIBS"
44034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44035/* end confdefs.h.  */
44036
44037
44038#ifdef __cplusplus
44039extern "C"
44040#endif
44041char pthread_create ();
44042int main (void)
44043{
44044return pthread_create ();
44045 ;
44046 return 0;
44047}
44048_ACEOF
44049if ac_fn_c_try_link "$LINENO"; then :
44050  ac_cv_lib_pthread_pthread_create=yes
44051else
44052  ac_cv_lib_pthread_pthread_create=no
44053fi
44054rm -f core conftest.err conftest.$ac_objext \
44055    conftest$ac_exeext conftest.$ac_ext
44056LIBS=$ac_check_lib_save_LIBS
44057fi
44058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44059$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
44060if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
44061  USE_THREADS_POSIX=1
44062else
44063   CFLAGS="$save_CFLAGS"
44064fi
44065
44066      fi
44067
44068      if test "x$USE_THREADS_POSIX" = "x1"
44069      then
44070
44071$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
44072
44073        curl_res_msg="POSIX threaded"
44074      fi
44075
44076fi
44077
44078
44079fi
44080
44081if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44082  if test "$want_pthreads" = "yes"; then
44083    as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44084  fi
44085    if test "$curl_cv_native_windows" = "yes"; then
44086    USE_THREADS_WIN32=1
44087
44088$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
44089
44090    curl_res_msg="Win32 threaded"
44091  else
44092    as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44093  fi
44094fi
44095
44096
44097      { $as_echo "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44098$as_echo_n "checking convert -I options to -isystem... " >&6; }
44099  if test "$compiler_id" = "GNU_C" ||
44100    test "$compiler_id" = "CLANG"; then
44101    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44102$as_echo "yes" >&6; }
44103    tmp_has_include="no"
44104    tmp_chg_FLAGS="$CFLAGS"
44105    for word1 in $tmp_chg_FLAGS; do
44106      case "$word1" in
44107        -I*)
44108          tmp_has_include="yes"
44109          ;;
44110      esac
44111    done
44112    if test "$tmp_has_include" = "yes"; then
44113      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44114      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44115      CFLAGS="$tmp_chg_FLAGS"
44116      squeeze CFLAGS
44117    fi
44118    tmp_has_include="no"
44119    tmp_chg_FLAGS="$CPPFLAGS"
44120    for word1 in $tmp_chg_FLAGS; do
44121      case "$word1" in
44122        -I*)
44123          tmp_has_include="yes"
44124          ;;
44125      esac
44126    done
44127    if test "$tmp_has_include" = "yes"; then
44128      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44129      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44130      CPPFLAGS="$tmp_chg_FLAGS"
44131      squeeze CPPFLAGS
44132    fi
44133  else
44134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44135$as_echo "no" >&6; }
44136  fi
44137
44138
44139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44140$as_echo_n "checking whether to enable verbose strings... " >&6; }
44141# Check whether --enable-verbose was given.
44142if test "${enable_verbose+set}" = set; then :
44143  enableval=$enable_verbose;  case "$enableval" in
44144  no)
44145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44146$as_echo "no" >&6; }
44147
44148$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44149
44150       curl_verbose_msg="no"
44151       ;;
44152  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44153$as_echo "yes" >&6; }
44154       ;;
44155  esac
44156else
44157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44158$as_echo "yes" >&6; }
44159
44160fi
44161
44162
44163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44164$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44165# Check whether --enable-sspi was given.
44166if test "${enable_sspi+set}" = set; then :
44167  enableval=$enable_sspi;  case "$enableval" in
44168  yes)
44169       if test "$curl_cv_native_windows" = "yes"; then
44170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44171$as_echo "yes" >&6; }
44172
44173$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44174
44175         USE_WINDOWS_SSPI=1
44176
44177         curl_sspi_msg="enabled"
44178       else
44179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44180$as_echo "no" >&6; }
44181         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44182$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44183       fi
44184       ;;
44185  *)
44186       if test "x$SCHANNEL_ENABLED" = "x1"; then
44187         # --with-schannel implies --enable-sspi
44188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44189$as_echo "yes" >&6; }
44190       else
44191         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44192$as_echo "no" >&6; }
44193       fi
44194       ;;
44195  esac
44196else
44197  if test "x$SCHANNEL_ENABLED" = "x1"; then
44198         # --with-schannel implies --enable-sspi
44199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44200$as_echo "yes" >&6; }
44201       else
44202         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44203$as_echo "no" >&6; }
44204       fi
44205
44206fi
44207
44208
44209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
44210$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
44211# Check whether --enable-crypto-auth was given.
44212if test "${enable_crypto_auth+set}" = set; then :
44213  enableval=$enable_crypto_auth;  case "$enableval" in
44214  no)
44215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44216$as_echo "no" >&6; }
44217
44218$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
44219
44220       CURL_DISABLE_CRYPTO_AUTH=1
44221       ;;
44222  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44223$as_echo "yes" >&6; }
44224       ;;
44225  esac
44226else
44227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44228$as_echo "yes" >&6; }
44229
44230fi
44231
44232
44233
44234    OPT_NTLM_WB="default"
44235  # Check whether --enable-ntlm-wb was given.
44236if test "${enable_ntlm_wb+set}" = set; then :
44237  enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44238fi
44239
44240  want_ntlm_wb_file="/usr/bin/ntlm_auth"
44241  case "$OPT_NTLM_WB" in
44242    no)
44243            want_ntlm_wb="no"
44244      ;;
44245    default)
44246            want_ntlm_wb="yes"
44247      ;;
44248    *)
44249            want_ntlm_wb="yes"
44250      if test -n "$enableval" && test "$enableval" != "yes"; then
44251        want_ntlm_wb_file="$enableval"
44252      fi
44253      ;;
44254  esac
44255
44256
44257
44258      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44259$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44260  if test "$curl_cv_native_windows" = "yes" ||
44261    test "x$SSL_ENABLED" = "x"; then
44262    want_ntlm_wb_file=""
44263    want_ntlm_wb="no"
44264  fi
44265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44266$as_echo "$want_ntlm_wb" >&6; }
44267  if test "$want_ntlm_wb" = "yes"; then
44268
44269$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
44270
44271
44272cat >>confdefs.h <<_ACEOF
44273#define NTLM_WB_FILE "$want_ntlm_wb_file"
44274_ACEOF
44275
44276    NTLM_WB_ENABLED=1
44277  fi
44278
44279
44280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44281$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
44282# Check whether --enable-tls-srp was given.
44283if test "${enable_tls_srp+set}" = set; then :
44284  enableval=$enable_tls_srp;  case "$enableval" in
44285  no)
44286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44287$as_echo "no" >&6; }
44288       want_tls_srp=no
44289       ;;
44290  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44291$as_echo "yes" >&6; }
44292       want_tls_srp=yes
44293       ;;
44294  esac
44295else
44296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44297$as_echo "yes" >&6; }
44298       want_tls_srp=yes
44299
44300fi
44301
44302
44303if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
44304
44305$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
44306
44307   USE_TLS_SRP=1
44308   curl_tls_srp_msg="enabled"
44309fi
44310
44311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
44312$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
44313# Check whether --enable-unix-sockets was given.
44314if test "${enable_unix_sockets+set}" = set; then :
44315  enableval=$enable_unix_sockets;  case "$enableval" in
44316  no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44317$as_echo "no" >&6; }
44318       want_unix_sockets=no
44319       ;;
44320  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44321$as_echo "yes" >&6; }
44322       want_unix_sockets=yes
44323       ;;
44324  esac
44325else
44326
44327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44328$as_echo "auto" >&6; }
44329       want_unix_sockets=auto
44330
44331
44332fi
44333
44334if test "x$want_unix_sockets" != "xno"; then
44335  ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
44336    #include <sys/un.h>
44337
44338"
44339if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
44340
44341
44342$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44343
44344    USE_UNIX_SOCKETS=1
44345
44346    curl_unix_sockets_msg="enabled"
44347
44348else
44349
44350    if test "x$want_unix_sockets" = "xyes"; then
44351      as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
44352    fi
44353
44354fi
44355
44356fi
44357
44358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
44359$as_echo_n "checking whether to support cookies... " >&6; }
44360# Check whether --enable-cookies was given.
44361if test "${enable_cookies+set}" = set; then :
44362  enableval=$enable_cookies;  case "$enableval" in
44363  no)
44364       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44365$as_echo "no" >&6; }
44366
44367$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
44368
44369       ;;
44370  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44371$as_echo "yes" >&6; }
44372       ;;
44373  esac
44374else
44375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44376$as_echo "yes" >&6; }
44377
44378fi
44379
44380
44381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
44382$as_echo_n "checking whether to support socketpair... " >&6; }
44383# Check whether --enable-socketpair was given.
44384if test "${enable_socketpair+set}" = set; then :
44385  enableval=$enable_socketpair;  case "$enableval" in
44386  no)
44387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44388$as_echo "no" >&6; }
44389
44390$as_echo "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
44391
44392       ;;
44393  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44394$as_echo "yes" >&6; }
44395       ;;
44396  esac
44397else
44398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44399$as_echo "yes" >&6; }
44400
44401fi
44402
44403
44404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
44405$as_echo_n "checking whether to support HTTP authentication... " >&6; }
44406# Check whether --enable-http-auth was given.
44407if test "${enable_http_auth+set}" = set; then :
44408  enableval=$enable_http_auth;  case "$enableval" in
44409  no)
44410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44411$as_echo "no" >&6; }
44412
44413$as_echo "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
44414
44415       ;;
44416  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44417$as_echo "yes" >&6; }
44418       ;;
44419  esac
44420else
44421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44422$as_echo "yes" >&6; }
44423
44424fi
44425
44426
44427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
44428$as_echo_n "checking whether to support DoH... " >&6; }
44429# Check whether --enable-doh was given.
44430if test "${enable_doh+set}" = set; then :
44431  enableval=$enable_doh;  case "$enableval" in
44432  no)
44433       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44434$as_echo "no" >&6; }
44435
44436$as_echo "#define CURL_DISABLE_DOH 1" >>confdefs.h
44437
44438       ;;
44439  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44440$as_echo "yes" >&6; }
44441       ;;
44442  esac
44443else
44444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44445$as_echo "yes" >&6; }
44446
44447fi
44448
44449
44450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
44451$as_echo_n "checking whether to support the MIME API... " >&6; }
44452# Check whether --enable-mime was given.
44453if test "${enable_mime+set}" = set; then :
44454  enableval=$enable_mime;  case "$enableval" in
44455  no)
44456       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44457$as_echo "no" >&6; }
44458
44459$as_echo "#define CURL_DISABLE_MIME 1" >>confdefs.h
44460
44461       ;;
44462  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44463$as_echo "yes" >&6; }
44464       ;;
44465  esac
44466else
44467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44468$as_echo "yes" >&6; }
44469
44470fi
44471
44472
44473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
44474$as_echo_n "checking whether to support date parsing... " >&6; }
44475# Check whether --enable-dateparse was given.
44476if test "${enable_dateparse+set}" = set; then :
44477  enableval=$enable_dateparse;  case "$enableval" in
44478  no)
44479       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44480$as_echo "no" >&6; }
44481
44482$as_echo "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
44483
44484       ;;
44485  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44486$as_echo "yes" >&6; }
44487       ;;
44488  esac
44489else
44490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44491$as_echo "yes" >&6; }
44492
44493fi
44494
44495
44496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
44497$as_echo_n "checking whether to support netrc parsing... " >&6; }
44498# Check whether --enable-netrc was given.
44499if test "${enable_netrc+set}" = set; then :
44500  enableval=$enable_netrc;  case "$enableval" in
44501  no)
44502       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44503$as_echo "no" >&6; }
44504
44505$as_echo "#define CURL_DISABLE_NETRC 1" >>confdefs.h
44506
44507       ;;
44508  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44509$as_echo "yes" >&6; }
44510       ;;
44511  esac
44512else
44513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44514$as_echo "yes" >&6; }
44515
44516fi
44517
44518
44519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
44520$as_echo_n "checking whether to support progress-meter... " >&6; }
44521# Check whether --enable-progress-meter was given.
44522if test "${enable_progress_meter+set}" = set; then :
44523  enableval=$enable_progress_meter;  case "$enableval" in
44524  no)
44525       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44526$as_echo "no" >&6; }
44527
44528$as_echo "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
44529
44530       ;;
44531  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44532$as_echo "yes" >&6; }
44533       ;;
44534  esac
44535else
44536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44537$as_echo "yes" >&6; }
44538
44539fi
44540
44541
44542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
44543$as_echo_n "checking whether to support DNS shuffling... " >&6; }
44544# Check whether --enable-dnsshuffle was given.
44545if test "${enable_dnsshuffle+set}" = set; then :
44546  enableval=$enable_dnsshuffle;  case "$enableval" in
44547  no)
44548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44549$as_echo "no" >&6; }
44550
44551$as_echo "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
44552
44553       ;;
44554  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44555$as_echo "yes" >&6; }
44556       ;;
44557  esac
44558else
44559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44560$as_echo "yes" >&6; }
44561
44562fi
44563
44564
44565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
44566$as_echo_n "checking whether to support curl_easy_option*... " >&6; }
44567# Check whether --enable-get-easy-option was given.
44568if test "${enable_get_easy_option+set}" = set; then :
44569  enableval=$enable_get_easy_option;  case "$enableval" in
44570  no)
44571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44572$as_echo "no" >&6; }
44573
44574$as_echo "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
44575
44576       ;;
44577  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44578$as_echo "yes" >&6; }
44579       ;;
44580  esac
44581else
44582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44583$as_echo "yes" >&6; }
44584
44585fi
44586
44587
44588curl_altsvc_msg="no      (--enable-alt-svc)";
44589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
44590$as_echo_n "checking whether to support alt-svc... " >&6; }
44591# Check whether --enable-alt-svc was given.
44592if test "${enable_alt_svc+set}" = set; then :
44593  enableval=$enable_alt_svc;  case "$enableval" in
44594  no)
44595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44596$as_echo "no" >&6; }
44597       ;;
44598  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44599$as_echo "yes" >&6; }
44600       curl_altsvc_msg="enabled";
44601       enable_altsvc="yes"
44602       ;;
44603  esac
44604else
44605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44606$as_echo "no" >&6; }
44607
44608fi
44609
44610
44611if test "$enable_altsvc" = "yes"; then
44612
44613$as_echo "#define USE_ALTSVC 1" >>confdefs.h
44614
44615  experimental="$experimental alt-svc"
44616fi
44617
44618if test "x$want_ech" != "xno"; then
44619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
44620$as_echo_n "checking whether ECH support is available... " >&6; }
44621
44622    ECH_ENABLED=0
44623  ECH_SUPPORT=''
44624
44625      if test "x$OPENSSL_ENABLED" = "x1"; then
44626    for ac_func in SSL_get_ech_status
44627do :
44628  ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
44629if test "x$ac_cv_func_SSL_get_ech_status" = xyes; then :
44630  cat >>confdefs.h <<_ACEOF
44631#define HAVE_SSL_GET_ECH_STATUS 1
44632_ACEOF
44633 ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
44634      ECH_ENABLED=1
44635fi
44636done
44637
44638
44639    fi
44640
44641    if test "x$ECH_ENABLED" = "x1"; then
44642
44643$as_echo "#define USE_ECH 1" >>confdefs.h
44644
44645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
44646$as_echo "$ECH_SUPPORT" >&6; }
44647    experimental="$experimental ECH"
44648  else
44649    as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
44650  fi
44651fi
44652
44653
44654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
44655$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
44656  CFLAG_CURL_SYMBOL_HIDING=""
44657  doing_symbol_hiding="no"
44658  if test x"$curl_cv_native_windows" != "xyes" &&
44659    test "$want_symbol_hiding" = "yes" &&
44660    test "$supports_symbol_hiding" = "yes"; then
44661    doing_symbol_hiding="yes"
44662    CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
44663
44664cat >>confdefs.h <<_ACEOF
44665#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
44666_ACEOF
44667
44668    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44669$as_echo "yes" >&6; }
44670  else
44671    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44672$as_echo "no" >&6; }
44673  fi
44674   if test x$doing_symbol_hiding = xyes; then
44675  DOING_CURL_SYMBOL_HIDING_TRUE=
44676  DOING_CURL_SYMBOL_HIDING_FALSE='#'
44677else
44678  DOING_CURL_SYMBOL_HIDING_TRUE='#'
44679  DOING_CURL_SYMBOL_HIDING_FALSE=
44680fi
44681
44682
44683
44684
44685LIBCURL_LIBS=$LIBS
44686
44687
44688
44689
44690
44691BLANK_AT_MAKETIME=
44692
44693
44694 if test x$cross_compiling = xyes; then
44695  CROSSCOMPILING_TRUE=
44696  CROSSCOMPILING_FALSE='#'
44697else
44698  CROSSCOMPILING_TRUE='#'
44699  CROSSCOMPILING_FALSE=
44700fi
44701
44702
44703ENABLE_SHARED="$enable_shared"
44704
44705
44706ENABLE_STATIC="$enable_static"
44707
44708
44709if test "x$enable_shared" = "xno"; then
44710  LIBCURL_NO_SHARED=$LIBCURL_LIBS
44711else
44712  LIBCURL_NO_SHARED=
44713fi
44714
44715
44716
44717if test "x$OPENSSL_ENABLED" = "x1"; then
44718  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44719elif test -n "$SSL_ENABLED"; then
44720  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44721fi
44722if test "x$IPV6_ENABLED" = "x1"; then
44723  SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
44724fi
44725if test "x$USE_UNIX_SOCKETS" = "x1"; then
44726  SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
44727fi
44728if test "x$HAVE_LIBZ" = "x1"; then
44729  SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
44730fi
44731if test "x$HAVE_BROTLI" = "x1"; then
44732  SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
44733fi
44734if test "x$HAVE_ZSTD" = "x1"; then
44735  SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
44736fi
44737if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
44738                            -o "x$USE_THREADS_WIN32" = "x1"; then
44739  SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
44740fi
44741if test "x$IDN_ENABLED" = "x1"; then
44742  SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
44743fi
44744if test "x$USE_WINDOWS_SSPI" = "x1"; then
44745  SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
44746fi
44747
44748if test "x$HAVE_GSSAPI" = "x1"; then
44749  SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
44750fi
44751
44752if test "x$curl_psl_msg" = "xenabled"; then
44753  SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
44754fi
44755
44756if test "x$enable_altsvc" = "xyes"; then
44757  SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
44758fi
44759
44760if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
44761    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
44762  SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
44763fi
44764
44765if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
44766    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
44767  SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
44768fi
44769
44770if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
44771  if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
44772      -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
44773      -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \
44774      -o "x$WOLFSSL_NTLM" = "x1"; then
44775    SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
44776
44777    if test "x$CURL_DISABLE_HTTP" != "x1" -a \
44778        "x$NTLM_WB_ENABLED" = "x1"; then
44779      SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
44780    fi
44781  fi
44782fi
44783
44784if test "x$USE_TLS_SRP" = "x1"; then
44785  SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
44786fi
44787
44788if test "x$USE_NGHTTP2" = "x1"; then
44789  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
44790fi
44791
44792if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1"; then
44793  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
44794fi
44795
44796if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
44797  SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
44798fi
44799
44800if test "x$https_proxy" != "xno"; then
44801  if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
44802      -o "x$NSS_ENABLED" = "x1"; then
44803    SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
44804  fi
44805fi
44806
44807if test "x$ECH_ENABLED" = "x1"; then
44808  SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
44809fi
44810
44811SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
44812
44813
44814if test "x$CURL_DISABLE_HTTP" != "x1"; then
44815  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
44816  if test "x$SSL_ENABLED" = "x1"; then
44817    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
44818  fi
44819fi
44820if test "x$CURL_DISABLE_FTP" != "x1"; then
44821  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
44822  if test "x$SSL_ENABLED" = "x1"; then
44823    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
44824  fi
44825fi
44826if test "x$CURL_DISABLE_FILE" != "x1"; then
44827  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
44828fi
44829if test "x$CURL_DISABLE_TELNET" != "x1"; then
44830  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
44831fi
44832if test "x$CURL_DISABLE_LDAP" != "x1"; then
44833  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
44834  if test "x$CURL_DISABLE_LDAPS" != "x1"; then
44835    if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
44836      (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
44837      SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
44838    fi
44839  fi
44840fi
44841if test "x$CURL_DISABLE_DICT" != "x1"; then
44842  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
44843fi
44844if test "x$CURL_DISABLE_TFTP" != "x1"; then
44845  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
44846fi
44847if test "x$CURL_DISABLE_GOPHER" != "x1"; then
44848  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
44849fi
44850if test "x$CURL_DISABLE_MQTT" != "x1"; then
44851  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
44852fi
44853if test "x$CURL_DISABLE_POP3" != "x1"; then
44854  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
44855  if test "x$SSL_ENABLED" = "x1"; then
44856    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
44857  fi
44858fi
44859if test "x$CURL_DISABLE_IMAP" != "x1"; then
44860  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
44861  if test "x$SSL_ENABLED" = "x1"; then
44862    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
44863  fi
44864fi
44865if test "x$CURL_DISABLE_SMB" != "x1" \
44866    -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
44867    -a \( "x$OPENSSL_ENABLED" = "x1" \
44868      -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
44869      -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \
44870      -o "x$WOLFSSL_NTLM" = "x1" \); then
44871  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
44872  if test "x$SSL_ENABLED" = "x1"; then
44873    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
44874  fi
44875fi
44876if test "x$CURL_DISABLE_SMTP" != "x1"; then
44877  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
44878  if test "x$SSL_ENABLED" = "x1"; then
44879    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
44880  fi
44881fi
44882if test "x$USE_LIBSSH2" = "x1"; then
44883  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
44884  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
44885fi
44886if test "x$USE_LIBSSH" = "x1"; then
44887  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
44888  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
44889fi
44890if test "x$USE_WOLFSSH" = "x1"; then
44891  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
44892fi
44893if test "x$CURL_DISABLE_RTSP" != "x1"; then
44894  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
44895fi
44896if test "x$USE_LIBRTMP" = "x1"; then
44897  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
44898fi
44899
44900SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
44901
44902
44903
44904
44905squeeze CFLAGS
44906squeeze CPPFLAGS
44907squeeze DEFS
44908squeeze LDFLAGS
44909squeeze LIBS
44910
44911squeeze LIBCURL_LIBS
44912squeeze CURL_NETWORK_LIBS
44913squeeze CURL_NETWORK_AND_TIME_LIBS
44914
44915squeeze SUPPORT_FEATURES
44916squeeze SUPPORT_PROTOCOLS
44917
44918
44919
44920  xc_bad_var_libs=no
44921  for xc_word in $LIBS; do
44922    case "$xc_word" in
44923      -l* | --library=*)
44924        :
44925        ;;
44926      *)
44927        xc_bad_var_libs=yes
44928        ;;
44929    esac
44930  done
44931  if test $xc_bad_var_libs = yes; then
44932    { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
44933$as_echo "$as_me: using LIBS: $LIBS" >&6;}
44934    { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
44935$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
44936  fi
44937
44938
44939  xc_bad_var_ldflags=no
44940  for xc_word in $LDFLAGS; do
44941    case "$xc_word" in
44942      -D*)
44943        xc_bad_var_ldflags=yes
44944        ;;
44945      -U*)
44946        xc_bad_var_ldflags=yes
44947        ;;
44948      -I*)
44949        xc_bad_var_ldflags=yes
44950        ;;
44951      -l* | --library=*)
44952        xc_bad_var_ldflags=yes
44953        ;;
44954    esac
44955  done
44956  if test $xc_bad_var_ldflags = yes; then
44957    { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
44958$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
44959    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
44960    for xc_word in $LDFLAGS; do
44961      case "$xc_word" in
44962        -D*)
44963          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
44964$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
44965          ;;
44966        -U*)
44967          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
44968$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
44969          ;;
44970        -I*)
44971          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
44972$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
44973          ;;
44974        -l* | --library=*)
44975          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
44976$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
44977          ;;
44978      esac
44979    done
44980  fi
44981
44982
44983  xc_bad_var_cppflags=no
44984  for xc_word in $CPPFLAGS; do
44985    case "$xc_word" in
44986      -rpath*)
44987        xc_bad_var_cppflags=yes
44988        ;;
44989      -L* | --library-path=*)
44990        xc_bad_var_cppflags=yes
44991        ;;
44992      -l* | --library=*)
44993        xc_bad_var_cppflags=yes
44994        ;;
44995    esac
44996  done
44997  if test $xc_bad_var_cppflags = yes; then
44998    { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
44999$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45000    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45001    for xc_word in $CPPFLAGS; do
45002      case "$xc_word" in
45003        -rpath*)
45004          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45005$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45006          ;;
45007        -L* | --library-path=*)
45008          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45009$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45010          ;;
45011        -l* | --library=*)
45012          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45013$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45014          ;;
45015      esac
45016    done
45017  fi
45018
45019
45020  xc_bad_var_cflags=no
45021  for xc_word in $CFLAGS; do
45022    case "$xc_word" in
45023      -D*)
45024        xc_bad_var_cflags=yes
45025        ;;
45026      -U*)
45027        xc_bad_var_cflags=yes
45028        ;;
45029      -I*)
45030        xc_bad_var_cflags=yes
45031        ;;
45032      -rpath*)
45033        xc_bad_var_cflags=yes
45034        ;;
45035      -L* | --library-path=*)
45036        xc_bad_var_cflags=yes
45037        ;;
45038      -l* | --library=*)
45039        xc_bad_var_cflags=yes
45040        ;;
45041    esac
45042  done
45043  if test $xc_bad_var_cflags = yes; then
45044    { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
45045$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
45046    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
45047    for xc_word in $CFLAGS; do
45048      case "$xc_word" in
45049        -D*)
45050          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45051$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45052          ;;
45053        -U*)
45054          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45055$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45056          ;;
45057        -I*)
45058          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45059$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45060          ;;
45061        -rpath*)
45062          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45063$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45064          ;;
45065        -L* | --library-path=*)
45066          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45067$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45068          ;;
45069        -l* | --library=*)
45070          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45071$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45072          ;;
45073      esac
45074    done
45075  fi
45076
45077  if test $xc_bad_var_libs = yes ||
45078     test $xc_bad_var_cflags = yes ||
45079     test $xc_bad_var_ldflags = yes ||
45080     test $xc_bad_var_cppflags = yes; then
45081     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
45082$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
45083  fi
45084
45085
45086SSL_BACKENDS=${ssl_backends}
45087
45088
45089if test "x$want_curldebug_assumed" = "xyes" &&
45090  test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
45091  ac_configure_args="$ac_configure_args --enable-curldebug"
45092fi
45093
45094ac_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/vms/Makefile curl-config libcurl.pc"
45095
45096cat >confcache <<\_ACEOF
45097# This file is a shell script that caches the results of configure
45098# tests run on this system so they can be shared between configure
45099# scripts and configure runs, see configure's option --config-cache.
45100# It is not useful on other systems.  If it contains results you don't
45101# want to keep, you may remove or edit it.
45102#
45103# config.status only pays attention to the cache file if you give it
45104# the --recheck option to rerun configure.
45105#
45106# `ac_cv_env_foo' variables (set or unset) will be overridden when
45107# loading this file, other *unset* `ac_cv_foo' will be assigned the
45108# following values.
45109
45110_ACEOF
45111
45112# The following way of writing the cache mishandles newlines in values,
45113# but we know of no workaround that is simple, portable, and efficient.
45114# So, we kill variables containing newlines.
45115# Ultrix sh set writes to stderr and can't be redirected directly,
45116# and sets the high bit in the cache file unless we assign to the vars.
45117(
45118  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45119    eval ac_val=\$$ac_var
45120    case $ac_val in #(
45121    *${as_nl}*)
45122      case $ac_var in #(
45123      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45124$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45125      esac
45126      case $ac_var in #(
45127      _ | IFS | as_nl) ;; #(
45128      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45129      *) { eval $ac_var=; unset $ac_var;} ;;
45130      esac ;;
45131    esac
45132  done
45133
45134  (set) 2>&1 |
45135    case $as_nl`(ac_space=' '; set) 2>&1` in #(
45136    *${as_nl}ac_space=\ *)
45137      # `set' does not quote correctly, so add quotes: double-quote
45138      # substitution turns \\\\ into \\, and sed turns \\ into \.
45139      sed -n \
45140	"s/'/'\\\\''/g;
45141	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45142      ;; #(
45143    *)
45144      # `set' quotes correctly as required by POSIX, so do not add quotes.
45145      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45146      ;;
45147    esac |
45148    sort
45149) |
45150  sed '
45151     /^ac_cv_env_/b end
45152     t clear
45153     :clear
45154     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45155     t end
45156     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45157     :end' >>confcache
45158if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45159  if test -w "$cache_file"; then
45160    if test "x$cache_file" != "x/dev/null"; then
45161      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45162$as_echo "$as_me: updating cache $cache_file" >&6;}
45163      if test ! -f "$cache_file" || test -h "$cache_file"; then
45164	cat confcache >"$cache_file"
45165      else
45166        case $cache_file in #(
45167        */* | ?:*)
45168	  mv -f confcache "$cache_file"$$ &&
45169	  mv -f "$cache_file"$$ "$cache_file" ;; #(
45170        *)
45171	  mv -f confcache "$cache_file" ;;
45172	esac
45173      fi
45174    fi
45175  else
45176    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45177$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45178  fi
45179fi
45180rm -f confcache
45181
45182test "x$prefix" = xNONE && prefix=$ac_default_prefix
45183# Let make expand exec_prefix.
45184test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45185
45186DEFS=-DHAVE_CONFIG_H
45187
45188ac_libobjs=
45189ac_ltlibobjs=
45190U=
45191for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45192  # 1. Remove the extension, and $U if already installed.
45193  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45194  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45195  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45196  #    will be set to the directory where LIBOBJS objects are built.
45197  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45198  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45199done
45200LIBOBJS=$ac_libobjs
45201
45202LTLIBOBJS=$ac_ltlibobjs
45203
45204
45205if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
45206  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
45207Usually this means the macro was only invoked conditionally." "$LINENO" 5
45208fi
45209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
45210$as_echo_n "checking that generated files are newer than configure... " >&6; }
45211   if test -n "$am_sleep_pid"; then
45212     # Hide warnings about reused PIDs.
45213     wait $am_sleep_pid 2>/dev/null
45214   fi
45215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
45216$as_echo "done" >&6; }
45217if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45218  as_fn_error $? "conditional \"AMDEP\" was never defined.
45219Usually this means the macro was only invoked conditionally." "$LINENO" 5
45220fi
45221if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45222  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45223Usually this means the macro was only invoked conditionally." "$LINENO" 5
45224fi
45225 if test -n "$EXEEXT"; then
45226  am__EXEEXT_TRUE=
45227  am__EXEEXT_FALSE='#'
45228else
45229  am__EXEEXT_TRUE='#'
45230  am__EXEEXT_FALSE=
45231fi
45232
45233if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
45234  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
45235Usually this means the macro was only invoked conditionally." "$LINENO" 5
45236fi
45237if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
45238  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
45239Usually this means the macro was only invoked conditionally." "$LINENO" 5
45240fi
45241if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
45242  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
45243Usually this means the macro was only invoked conditionally." "$LINENO" 5
45244fi
45245if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
45246  as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
45247Usually this means the macro was only invoked conditionally." "$LINENO" 5
45248fi
45249if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
45250  as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
45251Usually this means the macro was only invoked conditionally." "$LINENO" 5
45252fi
45253if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
45254  as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
45255Usually this means the macro was only invoked conditionally." "$LINENO" 5
45256fi
45257if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
45258  as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
45259Usually this means the macro was only invoked conditionally." "$LINENO" 5
45260fi
45261if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
45262  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
45263Usually this means the macro was only invoked conditionally." "$LINENO" 5
45264fi
45265if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
45266  as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
45267Usually this means the macro was only invoked conditionally." "$LINENO" 5
45268fi
45269if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
45270  as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
45271Usually this means the macro was only invoked conditionally." "$LINENO" 5
45272fi
45273if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
45274  as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
45275Usually this means the macro was only invoked conditionally." "$LINENO" 5
45276fi
45277if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
45278  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
45279Usually this means the macro was only invoked conditionally." "$LINENO" 5
45280fi
45281if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
45282  as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
45283Usually this means the macro was only invoked conditionally." "$LINENO" 5
45284fi
45285if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
45286  as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
45287Usually this means the macro was only invoked conditionally." "$LINENO" 5
45288fi
45289if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
45290  as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
45291Usually this means the macro was only invoked conditionally." "$LINENO" 5
45292fi
45293if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
45294  as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
45295Usually this means the macro was only invoked conditionally." "$LINENO" 5
45296fi
45297if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
45298  as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
45299Usually this means the macro was only invoked conditionally." "$LINENO" 5
45300fi
45301
45302: "${CONFIG_STATUS=./config.status}"
45303ac_write_fail=0
45304ac_clean_files_save=$ac_clean_files
45305ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45306{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45307$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45308as_write_fail=0
45309cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45310#! $SHELL
45311# Generated by $as_me.
45312# Run this file to recreate the current configuration.
45313# Compiler output produced by configure, useful for debugging
45314# configure, is in config.log if it exists.
45315
45316debug=false
45317ac_cs_recheck=false
45318ac_cs_silent=false
45319
45320SHELL=\${CONFIG_SHELL-$SHELL}
45321export SHELL
45322_ASEOF
45323cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45324## -------------------- ##
45325## M4sh Initialization. ##
45326## -------------------- ##
45327
45328# Be more Bourne compatible
45329DUALCASE=1; export DUALCASE # for MKS sh
45330if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
45331  emulate sh
45332  NULLCMD=:
45333  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45334  # is contrary to our usage.  Disable this feature.
45335  alias -g '${1+"$@"}'='"$@"'
45336  setopt NO_GLOB_SUBST
45337else
45338  case `(set -o) 2>/dev/null` in #(
45339  *posix*) :
45340    set -o posix ;; #(
45341  *) :
45342     ;;
45343esac
45344fi
45345
45346
45347as_nl='
45348'
45349export as_nl
45350# Printing a long string crashes Solaris 7 /usr/bin/printf.
45351as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45352as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45353as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45354# Prefer a ksh shell builtin over an external printf program on Solaris,
45355# but without wasting forks for bash or zsh.
45356if test -z "$BASH_VERSION$ZSH_VERSION" \
45357    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45358  as_echo='print -r --'
45359  as_echo_n='print -rn --'
45360elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45361  as_echo='printf %s\n'
45362  as_echo_n='printf %s'
45363else
45364  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45365    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45366    as_echo_n='/usr/ucb/echo -n'
45367  else
45368    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45369    as_echo_n_body='eval
45370      arg=$1;
45371      case $arg in #(
45372      *"$as_nl"*)
45373	expr "X$arg" : "X\\(.*\\)$as_nl";
45374	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45375      esac;
45376      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45377    '
45378    export as_echo_n_body
45379    as_echo_n='sh -c $as_echo_n_body as_echo'
45380  fi
45381  export as_echo_body
45382  as_echo='sh -c $as_echo_body as_echo'
45383fi
45384
45385
45386
45387# IFS
45388# We need space, tab and new line, in precisely that order.  Quoting is
45389# there to prevent editors from complaining about space-tab.
45390# (If _AS_PATH_WALK were called with IFS unset, it would disable word
45391# splitting by setting IFS to empty value.)
45392IFS=" ""	$as_nl"
45393
45394# Find who we are.  Look in the path if we contain no directory separator.
45395as_myself=
45396case $0 in #((
45397  *[\\/]* ) as_myself=$0 ;;
45398  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45399for as_dir in $PATH
45400do
45401  IFS=$as_save_IFS
45402  test -z "$as_dir" && as_dir=.
45403    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45404  done
45405IFS=$as_save_IFS
45406
45407     ;;
45408esac
45409# We did not find ourselves, most probably we were run as `sh COMMAND'
45410# in which case we are not to be found in the path.
45411if test "x$as_myself" = x; then
45412  as_myself=$0
45413fi
45414if test ! -f "$as_myself"; then
45415  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45416  exit 1
45417fi
45418
45419# Unset variables that we do not need and which cause bugs (e.g. in
45420# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
45421# suppresses any "Segmentation fault" message there.  '((' could
45422# trigger a bug in pdksh 5.2.14.
45423for as_var in BASH_ENV ENV MAIL MAILPATH
45424do eval test x\${$as_var+set} = xset \
45425  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45426done
45427PS1='$ '
45428PS2='> '
45429PS4='+ '
45430
45431# NLS nuisances.
45432LC_ALL=C
45433export LC_ALL
45434LANGUAGE=C
45435export LANGUAGE
45436
45437# CDPATH.
45438(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45439
45440
45441# as_fn_error STATUS ERROR [LINENO LOG_FD]
45442# ----------------------------------------
45443# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45444# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45445# script with STATUS, using 1 if that was 0.
45446as_fn_error ()
45447{
45448  as_status=$1; test $as_status -eq 0 && as_status=1
45449  if test "$4"; then
45450    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45451    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45452  fi
45453  $as_echo "$as_me: error: $2" >&2
45454  as_fn_exit $as_status
45455} # as_fn_error
45456
45457
45458# as_fn_set_status STATUS
45459# -----------------------
45460# Set $? to STATUS, without forking.
45461as_fn_set_status ()
45462{
45463  return $1
45464} # as_fn_set_status
45465
45466# as_fn_exit STATUS
45467# -----------------
45468# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45469as_fn_exit ()
45470{
45471  set +e
45472  as_fn_set_status $1
45473  exit $1
45474} # as_fn_exit
45475
45476# as_fn_unset VAR
45477# ---------------
45478# Portably unset VAR.
45479as_fn_unset ()
45480{
45481  { eval $1=; unset $1;}
45482}
45483as_unset=as_fn_unset
45484# as_fn_append VAR VALUE
45485# ----------------------
45486# Append the text in VALUE to the end of the definition contained in VAR. Take
45487# advantage of any shell optimizations that allow amortized linear growth over
45488# repeated appends, instead of the typical quadratic growth present in naive
45489# implementations.
45490if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
45491  eval 'as_fn_append ()
45492  {
45493    eval $1+=\$2
45494  }'
45495else
45496  as_fn_append ()
45497  {
45498    eval $1=\$$1\$2
45499  }
45500fi # as_fn_append
45501
45502# as_fn_arith ARG...
45503# ------------------
45504# Perform arithmetic evaluation on the ARGs, and store the result in the
45505# global $as_val. Take advantage of shells that can avoid forks. The arguments
45506# must be portable across $(()) and expr.
45507if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
45508  eval 'as_fn_arith ()
45509  {
45510    as_val=$(( $* ))
45511  }'
45512else
45513  as_fn_arith ()
45514  {
45515    as_val=`expr "$@" || test $? -eq 1`
45516  }
45517fi # as_fn_arith
45518
45519
45520if expr a : '\(a\)' >/dev/null 2>&1 &&
45521   test "X`expr 00001 : '.*\(...\)'`" = X001; then
45522  as_expr=expr
45523else
45524  as_expr=false
45525fi
45526
45527if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45528  as_basename=basename
45529else
45530  as_basename=false
45531fi
45532
45533if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45534  as_dirname=dirname
45535else
45536  as_dirname=false
45537fi
45538
45539as_me=`$as_basename -- "$0" ||
45540$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45541	 X"$0" : 'X\(//\)$' \| \
45542	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45543$as_echo X/"$0" |
45544    sed '/^.*\/\([^/][^/]*\)\/*$/{
45545	    s//\1/
45546	    q
45547	  }
45548	  /^X\/\(\/\/\)$/{
45549	    s//\1/
45550	    q
45551	  }
45552	  /^X\/\(\/\).*/{
45553	    s//\1/
45554	    q
45555	  }
45556	  s/.*/./; q'`
45557
45558# Avoid depending upon Character Ranges.
45559as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45560as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45561as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45562as_cr_digits='0123456789'
45563as_cr_alnum=$as_cr_Letters$as_cr_digits
45564
45565ECHO_C= ECHO_N= ECHO_T=
45566case `echo -n x` in #(((((
45567-n*)
45568  case `echo 'xy\c'` in
45569  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
45570  xy)  ECHO_C='\c';;
45571  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
45572       ECHO_T='	';;
45573  esac;;
45574*)
45575  ECHO_N='-n';;
45576esac
45577
45578rm -f conf$$ conf$$.exe conf$$.file
45579if test -d conf$$.dir; then
45580  rm -f conf$$.dir/conf$$.file
45581else
45582  rm -f conf$$.dir
45583  mkdir conf$$.dir 2>/dev/null
45584fi
45585if (echo >conf$$.file) 2>/dev/null; then
45586  if ln -s conf$$.file conf$$ 2>/dev/null; then
45587    as_ln_s='ln -s'
45588    # ... but there are two gotchas:
45589    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45590    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45591    # In both cases, we have to default to `cp -pR'.
45592    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45593      as_ln_s='cp -pR'
45594  elif ln conf$$.file conf$$ 2>/dev/null; then
45595    as_ln_s=ln
45596  else
45597    as_ln_s='cp -pR'
45598  fi
45599else
45600  as_ln_s='cp -pR'
45601fi
45602rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45603rmdir conf$$.dir 2>/dev/null
45604
45605
45606# as_fn_mkdir_p
45607# -------------
45608# Create "$as_dir" as a directory, including parents if necessary.
45609as_fn_mkdir_p ()
45610{
45611
45612  case $as_dir in #(
45613  -*) as_dir=./$as_dir;;
45614  esac
45615  test -d "$as_dir" || eval $as_mkdir_p || {
45616    as_dirs=
45617    while :; do
45618      case $as_dir in #(
45619      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45620      *) as_qdir=$as_dir;;
45621      esac
45622      as_dirs="'$as_qdir' $as_dirs"
45623      as_dir=`$as_dirname -- "$as_dir" ||
45624$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45625	 X"$as_dir" : 'X\(//\)[^/]' \| \
45626	 X"$as_dir" : 'X\(//\)$' \| \
45627	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45628$as_echo X"$as_dir" |
45629    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45630	    s//\1/
45631	    q
45632	  }
45633	  /^X\(\/\/\)[^/].*/{
45634	    s//\1/
45635	    q
45636	  }
45637	  /^X\(\/\/\)$/{
45638	    s//\1/
45639	    q
45640	  }
45641	  /^X\(\/\).*/{
45642	    s//\1/
45643	    q
45644	  }
45645	  s/.*/./; q'`
45646      test -d "$as_dir" && break
45647    done
45648    test -z "$as_dirs" || eval "mkdir $as_dirs"
45649  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45650
45651
45652} # as_fn_mkdir_p
45653if mkdir -p . 2>/dev/null; then
45654  as_mkdir_p='mkdir -p "$as_dir"'
45655else
45656  test -d ./-p && rmdir ./-p
45657  as_mkdir_p=false
45658fi
45659
45660
45661# as_fn_executable_p FILE
45662# -----------------------
45663# Test if FILE is an executable regular file.
45664as_fn_executable_p ()
45665{
45666  test -f "$1" && test -x "$1"
45667} # as_fn_executable_p
45668as_test_x='test -x'
45669as_executable_p=as_fn_executable_p
45670
45671# Sed expression to map a string onto a valid CPP name.
45672as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45673
45674# Sed expression to map a string onto a valid variable name.
45675as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45676
45677
45678exec 6>&1
45679## ----------------------------------- ##
45680## Main body of $CONFIG_STATUS script. ##
45681## ----------------------------------- ##
45682_ASEOF
45683test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45684
45685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45686# Save the log message, to keep $0 and so on meaningful, and to
45687# report actual input values of CONFIG_FILES etc. instead of their
45688# values after options handling.
45689ac_log="
45690This file was extended by curl $as_me -, which was
45691generated by GNU Autoconf 2.69.  Invocation command line was
45692
45693  CONFIG_FILES    = $CONFIG_FILES
45694  CONFIG_HEADERS  = $CONFIG_HEADERS
45695  CONFIG_LINKS    = $CONFIG_LINKS
45696  CONFIG_COMMANDS = $CONFIG_COMMANDS
45697  $ $0 $@
45698
45699on `(hostname || uname -n) 2>/dev/null | sed 1q`
45700"
45701
45702_ACEOF
45703
45704case $ac_config_files in *"
45705"*) set x $ac_config_files; shift; ac_config_files=$*;;
45706esac
45707
45708case $ac_config_headers in *"
45709"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45710esac
45711
45712
45713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45714# Files that config.status was made for.
45715config_files="$ac_config_files"
45716config_headers="$ac_config_headers"
45717config_commands="$ac_config_commands"
45718
45719_ACEOF
45720
45721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45722ac_cs_usage="\
45723\`$as_me' instantiates files and other configuration actions
45724from templates according to the current configuration.  Unless the files
45725and actions are specified as TAGs, all are instantiated by default.
45726
45727Usage: $0 [OPTION]... [TAG]...
45728
45729  -h, --help       print this help, then exit
45730  -V, --version    print version number and configuration settings, then exit
45731      --config     print configuration, then exit
45732  -q, --quiet, --silent
45733                   do not print progress messages
45734  -d, --debug      don't remove temporary files
45735      --recheck    update $as_me by reconfiguring in the same conditions
45736      --file=FILE[:TEMPLATE]
45737                   instantiate the configuration file FILE
45738      --header=FILE[:TEMPLATE]
45739                   instantiate the configuration header FILE
45740
45741Configuration files:
45742$config_files
45743
45744Configuration headers:
45745$config_headers
45746
45747Configuration commands:
45748$config_commands
45749
45750Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
45751
45752_ACEOF
45753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45754ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45755ac_cs_version="\\
45756curl config.status -
45757configured by $0, generated by GNU Autoconf 2.69,
45758  with options \\"\$ac_cs_config\\"
45759
45760Copyright (C) 2012 Free Software Foundation, Inc.
45761This config.status script is free software; the Free Software Foundation
45762gives unlimited permission to copy, distribute and modify it."
45763
45764ac_pwd='$ac_pwd'
45765srcdir='$srcdir'
45766INSTALL='$INSTALL'
45767MKDIR_P='$MKDIR_P'
45768AWK='$AWK'
45769test -n "\$AWK" || AWK=awk
45770_ACEOF
45771
45772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45773# The default lists apply if the user does not specify any file.
45774ac_need_defaults=:
45775while test $# != 0
45776do
45777  case $1 in
45778  --*=?*)
45779    ac_option=`expr "X$1" : 'X\([^=]*\)='`
45780    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45781    ac_shift=:
45782    ;;
45783  --*=)
45784    ac_option=`expr "X$1" : 'X\([^=]*\)='`
45785    ac_optarg=
45786    ac_shift=:
45787    ;;
45788  *)
45789    ac_option=$1
45790    ac_optarg=$2
45791    ac_shift=shift
45792    ;;
45793  esac
45794
45795  case $ac_option in
45796  # Handling of the options.
45797  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45798    ac_cs_recheck=: ;;
45799  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45800    $as_echo "$ac_cs_version"; exit ;;
45801  --config | --confi | --conf | --con | --co | --c )
45802    $as_echo "$ac_cs_config"; exit ;;
45803  --debug | --debu | --deb | --de | --d | -d )
45804    debug=: ;;
45805  --file | --fil | --fi | --f )
45806    $ac_shift
45807    case $ac_optarg in
45808    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45809    '') as_fn_error $? "missing file argument" ;;
45810    esac
45811    as_fn_append CONFIG_FILES " '$ac_optarg'"
45812    ac_need_defaults=false;;
45813  --header | --heade | --head | --hea )
45814    $ac_shift
45815    case $ac_optarg in
45816    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45817    esac
45818    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
45819    ac_need_defaults=false;;
45820  --he | --h)
45821    # Conflict between --help and --header
45822    as_fn_error $? "ambiguous option: \`$1'
45823Try \`$0 --help' for more information.";;
45824  --help | --hel | -h )
45825    $as_echo "$ac_cs_usage"; exit ;;
45826  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45827  | -silent | --silent | --silen | --sile | --sil | --si | --s)
45828    ac_cs_silent=: ;;
45829
45830  # This is an error.
45831  -*) as_fn_error $? "unrecognized option: \`$1'
45832Try \`$0 --help' for more information." ;;
45833
45834  *) as_fn_append ac_config_targets " $1"
45835     ac_need_defaults=false ;;
45836
45837  esac
45838  shift
45839done
45840
45841ac_configure_extra_args=
45842
45843if $ac_cs_silent; then
45844  exec 6>/dev/null
45845  ac_configure_extra_args="$ac_configure_extra_args --silent"
45846fi
45847
45848_ACEOF
45849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45850if \$ac_cs_recheck; then
45851  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45852  shift
45853  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
45854  CONFIG_SHELL='$SHELL'
45855  export CONFIG_SHELL
45856  exec "\$@"
45857fi
45858
45859_ACEOF
45860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45861exec 5>>config.log
45862{
45863  echo
45864  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45865## Running $as_me. ##
45866_ASBOX
45867  $as_echo "$ac_log"
45868} >&5
45869
45870_ACEOF
45871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45872#
45873# INIT-COMMANDS
45874#
45875AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
45876
45877
45878# The HP-UX ksh and POSIX shell print the target directory to stdout
45879# if CDPATH is set.
45880(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45881
45882sed_quote_subst='$sed_quote_subst'
45883double_quote_subst='$double_quote_subst'
45884delay_variable_subst='$delay_variable_subst'
45885macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
45886macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
45887AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
45888DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
45889OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
45890enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
45891enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
45892pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
45893enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
45894shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
45895SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
45896ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
45897PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
45898host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
45899host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
45900host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
45901build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
45902build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
45903build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
45904SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
45905Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
45906GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
45907EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
45908FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
45909LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
45910NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
45911LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
45912max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
45913ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
45914exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
45915lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
45916lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
45917lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
45918lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
45919lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
45920reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
45921reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
45922deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
45923file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
45924file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
45925want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
45926sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
45927AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
45928AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
45929archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
45930STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
45931RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
45932old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
45933old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
45934old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
45935lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
45936CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
45937CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
45938compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
45939GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
45940lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
45941lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
45942lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
45943lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
45944lt_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"`'
45945lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
45946nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
45947lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
45948lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
45949objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
45950MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
45951lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
45952lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
45953lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
45954lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
45955lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
45956need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
45957MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
45958DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
45959NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
45960LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
45961OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
45962OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
45963libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
45964shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
45965extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
45966archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
45967enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
45968export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
45969whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
45970compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
45971old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
45972old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
45973archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
45974archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
45975module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
45976module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
45977with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
45978allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
45979no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
45980hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
45981hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
45982hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
45983hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
45984hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
45985hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
45986hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
45987inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
45988link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
45989always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
45990export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
45991exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
45992include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
45993prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
45994postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
45995file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
45996variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
45997need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
45998need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
45999version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46000runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46001shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46002shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46003libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46004library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46005soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46006install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46007postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46008postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46009finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46010finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46011hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46012sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46013configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46014configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46015hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46016enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46017enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46018enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46019old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46020striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46021
46022LTCC='$LTCC'
46023LTCFLAGS='$LTCFLAGS'
46024compiler='$compiler_DEFAULT'
46025
46026# A function that is used when there is no print builtin or printf.
46027func_fallback_echo ()
46028{
46029  eval 'cat <<_LTECHO_EOF
46030\$1
46031_LTECHO_EOF'
46032}
46033
46034# Quote evaled strings.
46035for var in AS \
46036DLLTOOL \
46037OBJDUMP \
46038SHELL \
46039ECHO \
46040PATH_SEPARATOR \
46041SED \
46042GREP \
46043EGREP \
46044FGREP \
46045LD \
46046NM \
46047LN_S \
46048lt_SP2NL \
46049lt_NL2SP \
46050reload_flag \
46051deplibs_check_method \
46052file_magic_cmd \
46053file_magic_glob \
46054want_nocaseglob \
46055sharedlib_from_linklib_cmd \
46056AR \
46057AR_FLAGS \
46058archiver_list_spec \
46059STRIP \
46060RANLIB \
46061CC \
46062CFLAGS \
46063compiler \
46064lt_cv_sys_global_symbol_pipe \
46065lt_cv_sys_global_symbol_to_cdecl \
46066lt_cv_sys_global_symbol_to_import \
46067lt_cv_sys_global_symbol_to_c_name_address \
46068lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46069lt_cv_nm_interface \
46070nm_file_list_spec \
46071lt_cv_truncate_bin \
46072lt_prog_compiler_no_builtin_flag \
46073lt_prog_compiler_pic \
46074lt_prog_compiler_wl \
46075lt_prog_compiler_static \
46076lt_cv_prog_compiler_c_o \
46077need_locks \
46078MANIFEST_TOOL \
46079DSYMUTIL \
46080NMEDIT \
46081LIPO \
46082OTOOL \
46083OTOOL64 \
46084shrext_cmds \
46085export_dynamic_flag_spec \
46086whole_archive_flag_spec \
46087compiler_needs_object \
46088with_gnu_ld \
46089allow_undefined_flag \
46090no_undefined_flag \
46091hardcode_libdir_flag_spec \
46092hardcode_libdir_separator \
46093exclude_expsyms \
46094include_expsyms \
46095file_list_spec \
46096variables_saved_for_relink \
46097libname_spec \
46098library_names_spec \
46099soname_spec \
46100install_override_mode \
46101finish_eval \
46102old_striplib \
46103striplib; do
46104    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46105    *[\\\\\\\`\\"\\\$]*)
46106      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46107      ;;
46108    *)
46109      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46110      ;;
46111    esac
46112done
46113
46114# Double-quote double-evaled strings.
46115for var in reload_cmds \
46116old_postinstall_cmds \
46117old_postuninstall_cmds \
46118old_archive_cmds \
46119extract_expsyms_cmds \
46120old_archive_from_new_cmds \
46121old_archive_from_expsyms_cmds \
46122archive_cmds \
46123archive_expsym_cmds \
46124module_cmds \
46125module_expsym_cmds \
46126export_symbols_cmds \
46127prelink_cmds \
46128postlink_cmds \
46129postinstall_cmds \
46130postuninstall_cmds \
46131finish_cmds \
46132sys_lib_search_path_spec \
46133configure_time_dlsearch_path \
46134configure_time_lt_sys_library_path; do
46135    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46136    *[\\\\\\\`\\"\\\$]*)
46137      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46138      ;;
46139    *)
46140      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46141      ;;
46142    esac
46143done
46144
46145ac_aux_dir='$ac_aux_dir'
46146
46147# See if we are running on zsh, and set the options that allow our
46148# commands through without removal of \ escapes INIT.
46149if test -n "\${ZSH_VERSION+set}"; then
46150   setopt NO_GLOB_SUBST
46151fi
46152
46153
46154    PACKAGE='$PACKAGE'
46155    VERSION='$VERSION'
46156    RM='$RM'
46157    ofile='$ofile'
46158
46159
46160
46161
46162_ACEOF
46163
46164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46165
46166# Handling of arguments.
46167for ac_config_target in $ac_config_targets
46168do
46169  case $ac_config_target in
46170    "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
46171    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46172    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46173    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46174    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
46175    "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
46176    "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
46177    "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
46178    "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
46179    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
46180    "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
46181    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46182    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46183    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46184    "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
46185    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46186    "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
46187    "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
46188    "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
46189    "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
46190    "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
46191    "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
46192    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
46193    "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
46194    "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
46195    "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
46196
46197  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46198  esac
46199done
46200
46201
46202# If the user did not use the arguments to specify the items to instantiate,
46203# then the envvar interface is used.  Set only those that are not.
46204# We use the long form for the default assignment because of an extremely
46205# bizarre bug on SunOS 4.1.3.
46206if $ac_need_defaults; then
46207  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46208  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46209  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46210fi
46211
46212# Have a temporary directory for convenience.  Make it in the build tree
46213# simply because there is no reason against having it here, and in addition,
46214# creating and moving files from /tmp can sometimes cause problems.
46215# Hook for its removal unless debugging.
46216# Note that there is a small window in which the directory will not be cleaned:
46217# after its creation but before its name has been assigned to `$tmp'.
46218$debug ||
46219{
46220  tmp= ac_tmp=
46221  trap 'exit_status=$?
46222  : "${ac_tmp:=$tmp}"
46223  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46224' 0
46225  trap 'as_fn_exit 1' 1 2 13 15
46226}
46227# Create a (secure) tmp directory for tmp files.
46228
46229{
46230  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46231  test -d "$tmp"
46232}  ||
46233{
46234  tmp=./conf$$-$RANDOM
46235  (umask 077 && mkdir "$tmp")
46236} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46237ac_tmp=$tmp
46238
46239# Set up the scripts for CONFIG_FILES section.
46240# No need to generate them if there are no CONFIG_FILES.
46241# This happens for instance with `./config.status config.h'.
46242if test -n "$CONFIG_FILES"; then
46243
46244
46245ac_cr=`echo X | tr X '\015'`
46246# On cygwin, bash can eat \r inside `` if the user requested igncr.
46247# But we know of no other shell where ac_cr would be empty at this
46248# point, so we can use a bashism as a fallback.
46249if test "x$ac_cr" = x; then
46250  eval ac_cr=\$\'\\r\'
46251fi
46252ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46253if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46254  ac_cs_awk_cr='\\r'
46255else
46256  ac_cs_awk_cr=$ac_cr
46257fi
46258
46259echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46260_ACEOF
46261
46262
46263{
46264  echo "cat >conf$$subs.awk <<_ACEOF" &&
46265  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46266  echo "_ACEOF"
46267} >conf$$subs.sh ||
46268  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46269ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46270ac_delim='%!_!# '
46271for ac_last_try in false false false false false :; do
46272  . ./conf$$subs.sh ||
46273    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46274
46275  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46276  if test $ac_delim_n = $ac_delim_num; then
46277    break
46278  elif $ac_last_try; then
46279    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46280  else
46281    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46282  fi
46283done
46284rm -f conf$$subs.sh
46285
46286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46287cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46288_ACEOF
46289sed -n '
46290h
46291s/^/S["/; s/!.*/"]=/
46292p
46293g
46294s/^[^!]*!//
46295:repl
46296t repl
46297s/'"$ac_delim"'$//
46298t delim
46299:nl
46300h
46301s/\(.\{148\}\)..*/\1/
46302t more1
46303s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46304p
46305n
46306b repl
46307:more1
46308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46309p
46310g
46311s/.\{148\}//
46312t nl
46313:delim
46314h
46315s/\(.\{148\}\)..*/\1/
46316t more2
46317s/["\\]/\\&/g; s/^/"/; s/$/"/
46318p
46319b
46320:more2
46321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46322p
46323g
46324s/.\{148\}//
46325t delim
46326' <conf$$subs.awk | sed '
46327/^[^""]/{
46328  N
46329  s/\n//
46330}
46331' >>$CONFIG_STATUS || ac_write_fail=1
46332rm -f conf$$subs.awk
46333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46334_ACAWK
46335cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46336  for (key in S) S_is_set[key] = 1
46337  FS = ""
46338
46339}
46340{
46341  line = $ 0
46342  nfields = split(line, field, "@")
46343  substed = 0
46344  len = length(field[1])
46345  for (i = 2; i < nfields; i++) {
46346    key = field[i]
46347    keylen = length(key)
46348    if (S_is_set[key]) {
46349      value = S[key]
46350      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46351      len += length(value) + length(field[++i])
46352      substed = 1
46353    } else
46354      len += 1 + keylen
46355  }
46356
46357  print line
46358}
46359
46360_ACAWK
46361_ACEOF
46362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46363if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46364  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46365else
46366  cat
46367fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46368  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46369_ACEOF
46370
46371# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46372# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46373# trailing colons and then remove the whole line if VPATH becomes empty
46374# (actually we leave an empty line to preserve line numbers).
46375if test "x$srcdir" = x.; then
46376  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
46377h
46378s///
46379s/^/:/
46380s/[	 ]*$/:/
46381s/:\$(srcdir):/:/g
46382s/:\${srcdir}:/:/g
46383s/:@srcdir@:/:/g
46384s/^:*//
46385s/:*$//
46386x
46387s/\(=[	 ]*\).*/\1/
46388G
46389s/\n//
46390s/^[^=]*=[	 ]*$//
46391}'
46392fi
46393
46394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46395fi # test -n "$CONFIG_FILES"
46396
46397# Set up the scripts for CONFIG_HEADERS section.
46398# No need to generate them if there are no CONFIG_HEADERS.
46399# This happens for instance with `./config.status Makefile'.
46400if test -n "$CONFIG_HEADERS"; then
46401cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46402BEGIN {
46403_ACEOF
46404
46405# Transform confdefs.h into an awk script `defines.awk', embedded as
46406# here-document in config.status, that substitutes the proper values into
46407# config.h.in to produce config.h.
46408
46409# Create a delimiter string that does not exist in confdefs.h, to ease
46410# handling of long lines.
46411ac_delim='%!_!# '
46412for ac_last_try in false false :; do
46413  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46414  if test -z "$ac_tt"; then
46415    break
46416  elif $ac_last_try; then
46417    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46418  else
46419    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46420  fi
46421done
46422
46423# For the awk script, D is an array of macro values keyed by name,
46424# likewise P contains macro parameters if any.  Preserve backslash
46425# newline sequences.
46426
46427ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46428sed -n '
46429s/.\{148\}/&'"$ac_delim"'/g
46430t rset
46431:rset
46432s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
46433t def
46434d
46435:def
46436s/\\$//
46437t bsnl
46438s/["\\]/\\&/g
46439s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
46440D["\1"]=" \3"/p
46441s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
46442d
46443:bsnl
46444s/["\\]/\\&/g
46445s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
46446D["\1"]=" \3\\\\\\n"\\/p
46447t cont
46448s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46449t cont
46450d
46451:cont
46452n
46453s/.\{148\}/&'"$ac_delim"'/g
46454t clear
46455:clear
46456s/\\$//
46457t bsnlc
46458s/["\\]/\\&/g; s/^/"/; s/$/"/p
46459d
46460:bsnlc
46461s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46462b cont
46463' <confdefs.h | sed '
46464s/'"$ac_delim"'/"\\\
46465"/g' >>$CONFIG_STATUS || ac_write_fail=1
46466
46467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46468  for (key in D) D_is_set[key] = 1
46469  FS = ""
46470}
46471/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46472  line = \$ 0
46473  split(line, arg, " ")
46474  if (arg[1] == "#") {
46475    defundef = arg[2]
46476    mac1 = arg[3]
46477  } else {
46478    defundef = substr(arg[1], 2)
46479    mac1 = arg[2]
46480  }
46481  split(mac1, mac2, "(") #)
46482  macro = mac2[1]
46483  prefix = substr(line, 1, index(line, defundef) - 1)
46484  if (D_is_set[macro]) {
46485    # Preserve the white space surrounding the "#".
46486    print prefix "define", macro P[macro] D[macro]
46487    next
46488  } else {
46489    # Replace #undef with comments.  This is necessary, for example,
46490    # in the case of _POSIX_SOURCE, which is predefined and required
46491    # on some systems where configure will not decide to define it.
46492    if (defundef == "undef") {
46493      print "/*", prefix defundef, macro, "*/"
46494      next
46495    }
46496  }
46497}
46498{ print }
46499_ACAWK
46500_ACEOF
46501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46502  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46503fi # test -n "$CONFIG_HEADERS"
46504
46505
46506eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
46507shift
46508for ac_tag
46509do
46510  case $ac_tag in
46511  :[FHLC]) ac_mode=$ac_tag; continue;;
46512  esac
46513  case $ac_mode$ac_tag in
46514  :[FHL]*:*);;
46515  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46516  :[FH]-) ac_tag=-:-;;
46517  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46518  esac
46519  ac_save_IFS=$IFS
46520  IFS=:
46521  set x $ac_tag
46522  IFS=$ac_save_IFS
46523  shift
46524  ac_file=$1
46525  shift
46526
46527  case $ac_mode in
46528  :L) ac_source=$1;;
46529  :[FH])
46530    ac_file_inputs=
46531    for ac_f
46532    do
46533      case $ac_f in
46534      -) ac_f="$ac_tmp/stdin";;
46535      *) # Look for the file first in the build tree, then in the source tree
46536	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
46537	 # because $ac_f cannot contain `:'.
46538	 test -f "$ac_f" ||
46539	   case $ac_f in
46540	   [\\/$]*) false;;
46541	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46542	   esac ||
46543	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46544      esac
46545      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46546      as_fn_append ac_file_inputs " '$ac_f'"
46547    done
46548
46549    # Let's still pretend it is `configure' which instantiates (i.e., don't
46550    # use $as_me), people would be surprised to read:
46551    #    /* config.h.  Generated by config.status.  */
46552    configure_input='Generated from '`
46553	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46554	`' by configure.'
46555    if test x"$ac_file" != x-; then
46556      configure_input="$ac_file.  $configure_input"
46557      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46558$as_echo "$as_me: creating $ac_file" >&6;}
46559    fi
46560    # Neutralize special characters interpreted by sed in replacement strings.
46561    case $configure_input in #(
46562    *\&* | *\|* | *\\* )
46563       ac_sed_conf_input=`$as_echo "$configure_input" |
46564       sed 's/[\\\\&|]/\\\\&/g'`;; #(
46565    *) ac_sed_conf_input=$configure_input;;
46566    esac
46567
46568    case $ac_tag in
46569    *:-:* | *:-) cat >"$ac_tmp/stdin" \
46570      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46571    esac
46572    ;;
46573  esac
46574
46575  ac_dir=`$as_dirname -- "$ac_file" ||
46576$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46577	 X"$ac_file" : 'X\(//\)[^/]' \| \
46578	 X"$ac_file" : 'X\(//\)$' \| \
46579	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46580$as_echo X"$ac_file" |
46581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46582	    s//\1/
46583	    q
46584	  }
46585	  /^X\(\/\/\)[^/].*/{
46586	    s//\1/
46587	    q
46588	  }
46589	  /^X\(\/\/\)$/{
46590	    s//\1/
46591	    q
46592	  }
46593	  /^X\(\/\).*/{
46594	    s//\1/
46595	    q
46596	  }
46597	  s/.*/./; q'`
46598  as_dir="$ac_dir"; as_fn_mkdir_p
46599  ac_builddir=.
46600
46601case "$ac_dir" in
46602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46603*)
46604  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
46605  # A ".." for each directory in $ac_dir_suffix.
46606  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46607  case $ac_top_builddir_sub in
46608  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46609  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46610  esac ;;
46611esac
46612ac_abs_top_builddir=$ac_pwd
46613ac_abs_builddir=$ac_pwd$ac_dir_suffix
46614# for backward compatibility:
46615ac_top_builddir=$ac_top_build_prefix
46616
46617case $srcdir in
46618  .)  # We are building in place.
46619    ac_srcdir=.
46620    ac_top_srcdir=$ac_top_builddir_sub
46621    ac_abs_top_srcdir=$ac_pwd ;;
46622  [\\/]* | ?:[\\/]* )  # Absolute name.
46623    ac_srcdir=$srcdir$ac_dir_suffix;
46624    ac_top_srcdir=$srcdir
46625    ac_abs_top_srcdir=$srcdir ;;
46626  *) # Relative name.
46627    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46628    ac_top_srcdir=$ac_top_build_prefix$srcdir
46629    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46630esac
46631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46632
46633
46634  case $ac_mode in
46635  :F)
46636  #
46637  # CONFIG_FILE
46638  #
46639
46640  case $INSTALL in
46641  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46642  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46643  esac
46644  ac_MKDIR_P=$MKDIR_P
46645  case $MKDIR_P in
46646  [\\/$]* | ?:[\\/]* ) ;;
46647  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
46648  esac
46649_ACEOF
46650
46651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46652# If the template does not know about datarootdir, expand it.
46653# FIXME: This hack should be removed a few years after 2.60.
46654ac_datarootdir_hack=; ac_datarootdir_seen=
46655ac_sed_dataroot='
46656/datarootdir/ {
46657  p
46658  q
46659}
46660/@datadir@/p
46661/@docdir@/p
46662/@infodir@/p
46663/@localedir@/p
46664/@mandir@/p'
46665case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
46666*datarootdir*) ac_datarootdir_seen=yes;;
46667*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46668  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46669$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46670_ACEOF
46671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46672  ac_datarootdir_hack='
46673  s&@datadir@&$datadir&g
46674  s&@docdir@&$docdir&g
46675  s&@infodir@&$infodir&g
46676  s&@localedir@&$localedir&g
46677  s&@mandir@&$mandir&g
46678  s&\\\${datarootdir}&$datarootdir&g' ;;
46679esac
46680_ACEOF
46681
46682# Neutralize VPATH when `$srcdir' = `.'.
46683# Shell code in configure.ac might set extrasub.
46684# FIXME: do we really want to maintain this feature?
46685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46686ac_sed_extra="$ac_vpsub
46687$extrasub
46688_ACEOF
46689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46690:t
46691/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46692s|@configure_input@|$ac_sed_conf_input|;t t
46693s&@top_builddir@&$ac_top_builddir_sub&;t t
46694s&@top_build_prefix@&$ac_top_build_prefix&;t t
46695s&@srcdir@&$ac_srcdir&;t t
46696s&@abs_srcdir@&$ac_abs_srcdir&;t t
46697s&@top_srcdir@&$ac_top_srcdir&;t t
46698s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46699s&@builddir@&$ac_builddir&;t t
46700s&@abs_builddir@&$ac_abs_builddir&;t t
46701s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46702s&@INSTALL@&$ac_INSTALL&;t t
46703s&@MKDIR_P@&$ac_MKDIR_P&;t t
46704$ac_datarootdir_hack
46705"
46706eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
46707  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46708
46709test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46710  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
46711  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
46712      "$ac_tmp/out"`; test -z "$ac_out"; } &&
46713  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46714which seems to be undefined.  Please make sure it is defined" >&5
46715$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46716which seems to be undefined.  Please make sure it is defined" >&2;}
46717
46718  rm -f "$ac_tmp/stdin"
46719  case $ac_file in
46720  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
46721  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
46722  esac \
46723  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46724 ;;
46725  :H)
46726  #
46727  # CONFIG_HEADER
46728  #
46729  if test x"$ac_file" != x-; then
46730    {
46731      $as_echo "/* $configure_input  */" \
46732      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
46733    } >"$ac_tmp/config.h" \
46734      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46735    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
46736      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
46737$as_echo "$as_me: $ac_file is unchanged" >&6;}
46738    else
46739      rm -f "$ac_file"
46740      mv "$ac_tmp/config.h" "$ac_file" \
46741	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
46742    fi
46743  else
46744    $as_echo "/* $configure_input  */" \
46745      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
46746      || as_fn_error $? "could not create -" "$LINENO" 5
46747  fi
46748# Compute "$ac_file"'s index in $config_headers.
46749_am_arg="$ac_file"
46750_am_stamp_count=1
46751for _am_header in $config_headers :; do
46752  case $_am_header in
46753    $_am_arg | $_am_arg:* )
46754      break ;;
46755    * )
46756      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46757  esac
46758done
46759echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
46760$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46761	 X"$_am_arg" : 'X\(//\)[^/]' \| \
46762	 X"$_am_arg" : 'X\(//\)$' \| \
46763	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
46764$as_echo X"$_am_arg" |
46765    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46766	    s//\1/
46767	    q
46768	  }
46769	  /^X\(\/\/\)[^/].*/{
46770	    s//\1/
46771	    q
46772	  }
46773	  /^X\(\/\/\)$/{
46774	    s//\1/
46775	    q
46776	  }
46777	  /^X\(\/\).*/{
46778	    s//\1/
46779	    q
46780	  }
46781	  s/.*/./; q'`/stamp-h$_am_stamp_count
46782 ;;
46783
46784  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
46785$as_echo "$as_me: executing $ac_file commands" >&6;}
46786 ;;
46787  esac
46788
46789
46790  case $ac_file$ac_mode in
46791    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
46792  # Older Autoconf quotes --file arguments for eval, but not when files
46793  # are listed without --file.  Let's play safe and only enable the eval
46794  # if we detect the quoting.
46795  # TODO: see whether this extra hack can be removed once we start
46796  # requiring Autoconf 2.70 or later.
46797  case $CONFIG_FILES in #(
46798  *\'*) :
46799    eval set x "$CONFIG_FILES" ;; #(
46800  *) :
46801    set x $CONFIG_FILES ;; #(
46802  *) :
46803     ;;
46804esac
46805  shift
46806  # Used to flag and report bootstrapping failures.
46807  am_rc=0
46808  for am_mf
46809  do
46810    # Strip MF so we end up with the name of the file.
46811    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
46812    # Check whether this is an Automake generated Makefile which includes
46813    # dependency-tracking related rules and includes.
46814    # Grep'ing the whole file directly is not great: AIX grep has a line
46815    # limit of 2048, but all sed's we know have understand at least 4000.
46816    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
46817      || continue
46818    am_dirpart=`$as_dirname -- "$am_mf" ||
46819$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46820	 X"$am_mf" : 'X\(//\)[^/]' \| \
46821	 X"$am_mf" : 'X\(//\)$' \| \
46822	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
46823$as_echo X"$am_mf" |
46824    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46825	    s//\1/
46826	    q
46827	  }
46828	  /^X\(\/\/\)[^/].*/{
46829	    s//\1/
46830	    q
46831	  }
46832	  /^X\(\/\/\)$/{
46833	    s//\1/
46834	    q
46835	  }
46836	  /^X\(\/\).*/{
46837	    s//\1/
46838	    q
46839	  }
46840	  s/.*/./; q'`
46841    am_filepart=`$as_basename -- "$am_mf" ||
46842$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
46843	 X"$am_mf" : 'X\(//\)$' \| \
46844	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
46845$as_echo X/"$am_mf" |
46846    sed '/^.*\/\([^/][^/]*\)\/*$/{
46847	    s//\1/
46848	    q
46849	  }
46850	  /^X\/\(\/\/\)$/{
46851	    s//\1/
46852	    q
46853	  }
46854	  /^X\/\(\/\).*/{
46855	    s//\1/
46856	    q
46857	  }
46858	  s/.*/./; q'`
46859    { echo "$as_me:$LINENO: cd "$am_dirpart" \
46860      && sed -e '/# am--include-marker/d' "$am_filepart" \
46861        | $MAKE -f - am--depfiles" >&5
46862   (cd "$am_dirpart" \
46863      && sed -e '/# am--include-marker/d' "$am_filepart" \
46864        | $MAKE -f - am--depfiles) >&5 2>&5
46865   ac_status=$?
46866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46867   (exit $ac_status); } || am_rc=$?
46868  done
46869  if test $am_rc -ne 0; then
46870    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46872as_fn_error $? "Something went wrong bootstrapping makefile fragments
46873    for automatic dependency tracking.  If GNU make was not used, consider
46874    re-running the configure script with MAKE=\"gmake\" (or whatever is
46875    necessary).  You can also try re-running configure with the
46876    '--disable-dependency-tracking' option to at least be able to build
46877    the package (albeit without support for automatic dependency tracking).
46878See \`config.log' for more details" "$LINENO" 5; }
46879  fi
46880  { am_dirpart=; unset am_dirpart;}
46881  { am_filepart=; unset am_filepart;}
46882  { am_mf=; unset am_mf;}
46883  { am_rc=; unset am_rc;}
46884  rm -f conftest-deps.mk
46885}
46886 ;;
46887    "libtool":C)
46888
46889    # See if we are running on zsh, and set the options that allow our
46890    # commands through without removal of \ escapes.
46891    if test -n "${ZSH_VERSION+set}"; then
46892      setopt NO_GLOB_SUBST
46893    fi
46894
46895    cfgfile=${ofile}T
46896    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46897    $RM "$cfgfile"
46898
46899    cat <<_LT_EOF >> "$cfgfile"
46900#! $SHELL
46901# Generated automatically by $as_me ($PACKAGE) $VERSION
46902# NOTE: Changes made to this file will be lost: look at ltmain.sh.
46903
46904# Provide generalized library-building support services.
46905# Written by Gordon Matzigkeit, 1996
46906
46907# Copyright (C) 2014 Free Software Foundation, Inc.
46908# This is free software; see the source for copying conditions.  There is NO
46909# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
46910
46911# GNU Libtool is free software; you can redistribute it and/or modify
46912# it under the terms of the GNU General Public License as published by
46913# the Free Software Foundation; either version 2 of of the License, or
46914# (at your option) any later version.
46915#
46916# As a special exception to the GNU General Public License, if you
46917# distribute this file as part of a program or library that is built
46918# using GNU Libtool, you may include this file under the  same
46919# distribution terms that you use for the rest of that program.
46920#
46921# GNU Libtool is distributed in the hope that it will be useful, but
46922# WITHOUT ANY WARRANTY; without even the implied warranty of
46923# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46924# GNU General Public License for more details.
46925#
46926# You should have received a copy of the GNU General Public License
46927# along with this program.  If not, see <http://www.gnu.org/licenses/>.
46928
46929
46930# The names of the tagged configurations supported by this script.
46931available_tags=''
46932
46933# Configured defaults for sys_lib_dlsearch_path munging.
46934: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
46935
46936# ### BEGIN LIBTOOL CONFIG
46937
46938# Which release of libtool.m4 was used?
46939macro_version=$macro_version
46940macro_revision=$macro_revision
46941
46942# Assembler program.
46943AS=$lt_AS
46944
46945# DLL creation program.
46946DLLTOOL=$lt_DLLTOOL
46947
46948# Object dumper program.
46949OBJDUMP=$lt_OBJDUMP
46950
46951# Whether or not to build shared libraries.
46952build_libtool_libs=$enable_shared
46953
46954# Whether or not to build static libraries.
46955build_old_libs=$enable_static
46956
46957# What type of objects to build.
46958pic_mode=$pic_mode
46959
46960# Whether or not to optimize for fast installation.
46961fast_install=$enable_fast_install
46962
46963# Shared archive member basename,for filename based shared library versioning on AIX.
46964shared_archive_member_spec=$shared_archive_member_spec
46965
46966# Shell to use when invoking shell scripts.
46967SHELL=$lt_SHELL
46968
46969# An echo program that protects backslashes.
46970ECHO=$lt_ECHO
46971
46972# The PATH separator for the build system.
46973PATH_SEPARATOR=$lt_PATH_SEPARATOR
46974
46975# The host system.
46976host_alias=$host_alias
46977host=$host
46978host_os=$host_os
46979
46980# The build system.
46981build_alias=$build_alias
46982build=$build
46983build_os=$build_os
46984
46985# A sed program that does not truncate output.
46986SED=$lt_SED
46987
46988# Sed that helps us avoid accidentally triggering echo(1) options like -n.
46989Xsed="\$SED -e 1s/^X//"
46990
46991# A grep program that handles long lines.
46992GREP=$lt_GREP
46993
46994# An ERE matcher.
46995EGREP=$lt_EGREP
46996
46997# A literal string matcher.
46998FGREP=$lt_FGREP
46999
47000# A BSD- or MS-compatible name lister.
47001NM=$lt_NM
47002
47003# Whether we need soft or hard links.
47004LN_S=$lt_LN_S
47005
47006# What is the maximum length of a command?
47007max_cmd_len=$max_cmd_len
47008
47009# Object file suffix (normally "o").
47010objext=$ac_objext
47011
47012# Executable file suffix (normally "").
47013exeext=$exeext
47014
47015# whether the shell understands "unset".
47016lt_unset=$lt_unset
47017
47018# turn spaces into newlines.
47019SP2NL=$lt_lt_SP2NL
47020
47021# turn newlines into spaces.
47022NL2SP=$lt_lt_NL2SP
47023
47024# convert \$build file names to \$host format.
47025to_host_file_cmd=$lt_cv_to_host_file_cmd
47026
47027# convert \$build files to toolchain format.
47028to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47029
47030# Method to check whether dependent libraries are shared objects.
47031deplibs_check_method=$lt_deplibs_check_method
47032
47033# Command to use when deplibs_check_method = "file_magic".
47034file_magic_cmd=$lt_file_magic_cmd
47035
47036# How to find potential files when deplibs_check_method = "file_magic".
47037file_magic_glob=$lt_file_magic_glob
47038
47039# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47040want_nocaseglob=$lt_want_nocaseglob
47041
47042# Command to associate shared and link libraries.
47043sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47044
47045# The archiver.
47046AR=$lt_AR
47047
47048# Flags to create an archive.
47049AR_FLAGS=$lt_AR_FLAGS
47050
47051# How to feed a file listing to the archiver.
47052archiver_list_spec=$lt_archiver_list_spec
47053
47054# A symbol stripping program.
47055STRIP=$lt_STRIP
47056
47057# Commands used to install an old-style archive.
47058RANLIB=$lt_RANLIB
47059old_postinstall_cmds=$lt_old_postinstall_cmds
47060old_postuninstall_cmds=$lt_old_postuninstall_cmds
47061
47062# Whether to use a lock for old archive extraction.
47063lock_old_archive_extraction=$lock_old_archive_extraction
47064
47065# A C compiler.
47066LTCC=$lt_CC
47067
47068# LTCC compiler flags.
47069LTCFLAGS=$lt_CFLAGS
47070
47071# Take the output of nm and produce a listing of raw symbols and C names.
47072global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47073
47074# Transform the output of nm in a proper C declaration.
47075global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47076
47077# Transform the output of nm into a list of symbols to manually relocate.
47078global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
47079
47080# Transform the output of nm in a C name address pair.
47081global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47082
47083# Transform the output of nm in a C name address pair when lib prefix is needed.
47084global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47085
47086# The name lister interface.
47087nm_interface=$lt_lt_cv_nm_interface
47088
47089# Specify filename containing input files for \$NM.
47090nm_file_list_spec=$lt_nm_file_list_spec
47091
47092# The root where to search for dependent libraries,and where our libraries should be installed.
47093lt_sysroot=$lt_sysroot
47094
47095# Command to truncate a binary pipe.
47096lt_truncate_bin=$lt_lt_cv_truncate_bin
47097
47098# The name of the directory that contains temporary libtool files.
47099objdir=$objdir
47100
47101# Used to examine libraries when file_magic_cmd begins with "file".
47102MAGIC_CMD=$MAGIC_CMD
47103
47104# Must we lock files when doing compilation?
47105need_locks=$lt_need_locks
47106
47107# Manifest tool.
47108MANIFEST_TOOL=$lt_MANIFEST_TOOL
47109
47110# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47111DSYMUTIL=$lt_DSYMUTIL
47112
47113# Tool to change global to local symbols on Mac OS X.
47114NMEDIT=$lt_NMEDIT
47115
47116# Tool to manipulate fat objects and archives on Mac OS X.
47117LIPO=$lt_LIPO
47118
47119# ldd/readelf like tool for Mach-O binaries on Mac OS X.
47120OTOOL=$lt_OTOOL
47121
47122# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47123OTOOL64=$lt_OTOOL64
47124
47125# Old archive suffix (normally "a").
47126libext=$libext
47127
47128# Shared library suffix (normally ".so").
47129shrext_cmds=$lt_shrext_cmds
47130
47131# The commands to extract the exported symbol list from a shared archive.
47132extract_expsyms_cmds=$lt_extract_expsyms_cmds
47133
47134# Variables whose values should be saved in libtool wrapper scripts and
47135# restored at link time.
47136variables_saved_for_relink=$lt_variables_saved_for_relink
47137
47138# Do we need the "lib" prefix for modules?
47139need_lib_prefix=$need_lib_prefix
47140
47141# Do we need a version for libraries?
47142need_version=$need_version
47143
47144# Library versioning type.
47145version_type=$version_type
47146
47147# Shared library runtime path variable.
47148runpath_var=$runpath_var
47149
47150# Shared library path variable.
47151shlibpath_var=$shlibpath_var
47152
47153# Is shlibpath searched before the hard-coded library search path?
47154shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47155
47156# Format of library name prefix.
47157libname_spec=$lt_libname_spec
47158
47159# List of archive names.  First name is the real one, the rest are links.
47160# The last name is the one that the linker finds with -lNAME
47161library_names_spec=$lt_library_names_spec
47162
47163# The coded name of the library, if different from the real name.
47164soname_spec=$lt_soname_spec
47165
47166# Permission mode override for installation of shared libraries.
47167install_override_mode=$lt_install_override_mode
47168
47169# Command to use after installation of a shared archive.
47170postinstall_cmds=$lt_postinstall_cmds
47171
47172# Command to use after uninstallation of a shared archive.
47173postuninstall_cmds=$lt_postuninstall_cmds
47174
47175# Commands used to finish a libtool library installation in a directory.
47176finish_cmds=$lt_finish_cmds
47177
47178# As "finish_cmds", except a single script fragment to be evaled but
47179# not shown.
47180finish_eval=$lt_finish_eval
47181
47182# Whether we should hardcode library paths into libraries.
47183hardcode_into_libs=$hardcode_into_libs
47184
47185# Compile-time system search path for libraries.
47186sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47187
47188# Detected run-time system search path for libraries.
47189sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
47190
47191# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
47192configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
47193
47194# Whether dlopen is supported.
47195dlopen_support=$enable_dlopen
47196
47197# Whether dlopen of programs is supported.
47198dlopen_self=$enable_dlopen_self
47199
47200# Whether dlopen of statically linked programs is supported.
47201dlopen_self_static=$enable_dlopen_self_static
47202
47203# Commands to strip libraries.
47204old_striplib=$lt_old_striplib
47205striplib=$lt_striplib
47206
47207
47208# The linker used to build libraries.
47209LD=$lt_LD
47210
47211# How to create reloadable object files.
47212reload_flag=$lt_reload_flag
47213reload_cmds=$lt_reload_cmds
47214
47215# Commands used to build an old-style archive.
47216old_archive_cmds=$lt_old_archive_cmds
47217
47218# A language specific compiler.
47219CC=$lt_compiler
47220
47221# Is the compiler the GNU compiler?
47222with_gcc=$GCC
47223
47224# Compiler flag to turn off builtin functions.
47225no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47226
47227# Additional compiler flags for building library objects.
47228pic_flag=$lt_lt_prog_compiler_pic
47229
47230# How to pass a linker flag through the compiler.
47231wl=$lt_lt_prog_compiler_wl
47232
47233# Compiler flag to prevent dynamic linking.
47234link_static_flag=$lt_lt_prog_compiler_static
47235
47236# Does compiler simultaneously support -c and -o options?
47237compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47238
47239# Whether or not to add -lc for building shared libraries.
47240build_libtool_need_lc=$archive_cmds_need_lc
47241
47242# Whether or not to disallow shared libs when runtime libs are static.
47243allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47244
47245# Compiler flag to allow reflexive dlopens.
47246export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47247
47248# Compiler flag to generate shared objects directly from archives.
47249whole_archive_flag_spec=$lt_whole_archive_flag_spec
47250
47251# Whether the compiler copes with passing no objects directly.
47252compiler_needs_object=$lt_compiler_needs_object
47253
47254# Create an old-style archive from a shared archive.
47255old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47256
47257# Create a temporary old-style archive to link instead of a shared archive.
47258old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47259
47260# Commands used to build a shared archive.
47261archive_cmds=$lt_archive_cmds
47262archive_expsym_cmds=$lt_archive_expsym_cmds
47263
47264# Commands used to build a loadable module if different from building
47265# a shared archive.
47266module_cmds=$lt_module_cmds
47267module_expsym_cmds=$lt_module_expsym_cmds
47268
47269# Whether we are building with GNU ld or not.
47270with_gnu_ld=$lt_with_gnu_ld
47271
47272# Flag that allows shared libraries with undefined symbols to be built.
47273allow_undefined_flag=$lt_allow_undefined_flag
47274
47275# Flag that enforces no undefined symbols.
47276no_undefined_flag=$lt_no_undefined_flag
47277
47278# Flag to hardcode \$libdir into a binary during linking.
47279# This must work even if \$libdir does not exist
47280hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47281
47282# Whether we need a single "-rpath" flag with a separated argument.
47283hardcode_libdir_separator=$lt_hardcode_libdir_separator
47284
47285# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47286# DIR into the resulting binary.
47287hardcode_direct=$hardcode_direct
47288
47289# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47290# DIR into the resulting binary and the resulting library dependency is
47291# "absolute",i.e impossible to change by setting \$shlibpath_var if the
47292# library is relocated.
47293hardcode_direct_absolute=$hardcode_direct_absolute
47294
47295# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47296# into the resulting binary.
47297hardcode_minus_L=$hardcode_minus_L
47298
47299# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47300# into the resulting binary.
47301hardcode_shlibpath_var=$hardcode_shlibpath_var
47302
47303# Set to "yes" if building a shared library automatically hardcodes DIR
47304# into the library and all subsequent libraries and executables linked
47305# against it.
47306hardcode_automatic=$hardcode_automatic
47307
47308# Set to yes if linker adds runtime paths of dependent libraries
47309# to runtime path list.
47310inherit_rpath=$inherit_rpath
47311
47312# Whether libtool must link a program against all its dependency libraries.
47313link_all_deplibs=$link_all_deplibs
47314
47315# Set to "yes" if exported symbols are required.
47316always_export_symbols=$always_export_symbols
47317
47318# The commands to list exported symbols.
47319export_symbols_cmds=$lt_export_symbols_cmds
47320
47321# Symbols that should not be listed in the preloaded symbols.
47322exclude_expsyms=$lt_exclude_expsyms
47323
47324# Symbols that must always be exported.
47325include_expsyms=$lt_include_expsyms
47326
47327# Commands necessary for linking programs (against libraries) with templates.
47328prelink_cmds=$lt_prelink_cmds
47329
47330# Commands necessary for finishing linking programs.
47331postlink_cmds=$lt_postlink_cmds
47332
47333# Specify filename containing input files.
47334file_list_spec=$lt_file_list_spec
47335
47336# How to hardcode a shared library path into an executable.
47337hardcode_action=$hardcode_action
47338
47339# ### END LIBTOOL CONFIG
47340
47341_LT_EOF
47342
47343    cat <<'_LT_EOF' >> "$cfgfile"
47344
47345# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
47346
47347# func_munge_path_list VARIABLE PATH
47348# -----------------------------------
47349# VARIABLE is name of variable containing _space_ separated list of
47350# directories to be munged by the contents of PATH, which is string
47351# having a format:
47352# "DIR[:DIR]:"
47353#       string "DIR[ DIR]" will be prepended to VARIABLE
47354# ":DIR[:DIR]"
47355#       string "DIR[ DIR]" will be appended to VARIABLE
47356# "DIRP[:DIRP]::[DIRA:]DIRA"
47357#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
47358#       "DIRA[ DIRA]" will be appended to VARIABLE
47359# "DIR[:DIR]"
47360#       VARIABLE will be replaced by "DIR[ DIR]"
47361func_munge_path_list ()
47362{
47363    case x$2 in
47364    x)
47365        ;;
47366    *:)
47367        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
47368        ;;
47369    x:*)
47370        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
47371        ;;
47372    *::*)
47373        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
47374        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
47375        ;;
47376    *)
47377        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
47378        ;;
47379    esac
47380}
47381
47382
47383# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
47384func_cc_basename ()
47385{
47386    for cc_temp in $*""; do
47387      case $cc_temp in
47388        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47389        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47390        \-*) ;;
47391        *) break;;
47392      esac
47393    done
47394    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
47395}
47396
47397
47398# ### END FUNCTIONS SHARED WITH CONFIGURE
47399
47400_LT_EOF
47401
47402  case $host_os in
47403  aix3*)
47404    cat <<\_LT_EOF >> "$cfgfile"
47405# AIX sometimes has problems with the GCC collect2 program.  For some
47406# reason, if we set the COLLECT_NAMES environment variable, the problems
47407# vanish in a puff of smoke.
47408if test set != "${COLLECT_NAMES+set}"; then
47409  COLLECT_NAMES=
47410  export COLLECT_NAMES
47411fi
47412_LT_EOF
47413    ;;
47414  esac
47415
47416
47417ltmain=$ac_aux_dir/ltmain.sh
47418
47419
47420  # We use sed instead of cat because bash on DJGPP gets confused if
47421  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47422  # text mode, it properly converts lines to CR/LF.  This bash problem
47423  # is reportedly fixed, but why not run on old versions too?
47424  sed '$q' "$ltmain" >> "$cfgfile" \
47425     || (rm -f "$cfgfile"; exit 1)
47426
47427   mv -f "$cfgfile" "$ofile" ||
47428    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47429  chmod +x "$ofile"
47430
47431 ;;
47432
47433  esac
47434done # for ac_tag
47435
47436
47437as_fn_exit 0
47438_ACEOF
47439ac_clean_files=$ac_clean_files_save
47440
47441test $ac_write_fail = 0 ||
47442  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47443
47444
47445# configure is writing to config.log, and then calls config.status.
47446# config.status does its own redirection, appending to config.log.
47447# Unfortunately, on DOS this fails, as config.log is still kept open
47448# by configure, so config.status won't be able to write to it; its
47449# output is simply discarded.  So we exec the FD to /dev/null,
47450# effectively closing config.log, so it can be properly (re)opened and
47451# appended to by config.status.  When coming back to configure, we
47452# need to make the FD available again.
47453if test "$no_create" != yes; then
47454  ac_cs_success=:
47455  ac_config_status_args=
47456  test "$silent" = yes &&
47457    ac_config_status_args="$ac_config_status_args --quiet"
47458  exec 5>/dev/null
47459  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47460  exec 5>>config.log
47461  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47462  # would make configure fail if this is the last instruction.
47463  $ac_cs_success || as_fn_exit 1
47464fi
47465
47466#
47467# CONFIG_SUBDIRS section.
47468#
47469if test "$no_recursion" != yes; then
47470
47471  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
47472  # so they do not pile up.
47473  ac_sub_configure_args=
47474  ac_prev=
47475  eval "set x $ac_configure_args"
47476  shift
47477  for ac_arg
47478  do
47479    if test -n "$ac_prev"; then
47480      ac_prev=
47481      continue
47482    fi
47483    case $ac_arg in
47484    -cache-file | --cache-file | --cache-fil | --cache-fi \
47485    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
47486      ac_prev=cache_file ;;
47487    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
47488    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
47489    | --c=*)
47490      ;;
47491    --config-cache | -C)
47492      ;;
47493    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
47494      ac_prev=srcdir ;;
47495    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47496      ;;
47497    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
47498      ac_prev=prefix ;;
47499    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47500      ;;
47501    --disable-option-checking)
47502      ;;
47503    *)
47504      case $ac_arg in
47505      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
47506      esac
47507      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
47508    esac
47509  done
47510
47511  # Always prepend --prefix to ensure using the same prefix
47512  # in subdir configurations.
47513  ac_arg="--prefix=$prefix"
47514  case $ac_arg in
47515  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
47516  esac
47517  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
47518
47519  # Pass --silent
47520  if test "$silent" = yes; then
47521    ac_sub_configure_args="--silent $ac_sub_configure_args"
47522  fi
47523
47524  # Always prepend --disable-option-checking to silence warnings, since
47525  # different subdirs can have different --enable and --with options.
47526  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
47527
47528  ac_popdir=`pwd`
47529  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
47530
47531    # Do not complain, so a configure script can configure whichever
47532    # parts of a large source tree are present.
47533    test -d "$srcdir/$ac_dir" || continue
47534
47535    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
47536    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
47537    $as_echo "$ac_msg" >&6
47538    as_dir="$ac_dir"; as_fn_mkdir_p
47539    ac_builddir=.
47540
47541case "$ac_dir" in
47542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47543*)
47544  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47545  # A ".." for each directory in $ac_dir_suffix.
47546  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47547  case $ac_top_builddir_sub in
47548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47550  esac ;;
47551esac
47552ac_abs_top_builddir=$ac_pwd
47553ac_abs_builddir=$ac_pwd$ac_dir_suffix
47554# for backward compatibility:
47555ac_top_builddir=$ac_top_build_prefix
47556
47557case $srcdir in
47558  .)  # We are building in place.
47559    ac_srcdir=.
47560    ac_top_srcdir=$ac_top_builddir_sub
47561    ac_abs_top_srcdir=$ac_pwd ;;
47562  [\\/]* | ?:[\\/]* )  # Absolute name.
47563    ac_srcdir=$srcdir$ac_dir_suffix;
47564    ac_top_srcdir=$srcdir
47565    ac_abs_top_srcdir=$srcdir ;;
47566  *) # Relative name.
47567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47568    ac_top_srcdir=$ac_top_build_prefix$srcdir
47569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47570esac
47571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47572
47573
47574    cd "$ac_dir"
47575
47576    # Check for guested configure; otherwise get Cygnus style configure.
47577    if test -f "$ac_srcdir/configure.gnu"; then
47578      ac_sub_configure=$ac_srcdir/configure.gnu
47579    elif test -f "$ac_srcdir/configure"; then
47580      ac_sub_configure=$ac_srcdir/configure
47581    elif test -f "$ac_srcdir/configure.in"; then
47582      # This should be Cygnus configure.
47583      ac_sub_configure=$ac_aux_dir/configure
47584    else
47585      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
47586$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
47587      ac_sub_configure=
47588    fi
47589
47590    # The recursion is here.
47591    if test -n "$ac_sub_configure"; then
47592      # Make the cache file name correct relative to the subdirectory.
47593      case $cache_file in
47594      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47595      *) # Relative name.
47596	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
47597      esac
47598
47599      { $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
47600$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
47601      # The eval makes quoting arguments work.
47602      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
47603	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
47604	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
47605    fi
47606
47607    cd "$ac_popdir"
47608  done
47609fi
47610if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47611  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47612$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47613fi
47614
47615
47616
47617    tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
47618  if test -z "$tmp_cpp"; then
47619    tmp_cpp='cpp'
47620  fi
47621  cat >./tests/configurehelp.pm <<_EOF
47622# This is a generated file.  Do not edit.
47623
47624package configurehelp;
47625
47626use strict;
47627use warnings;
47628use Exporter;
47629
47630use vars qw(
47631    @ISA
47632    @EXPORT_OK
47633    \$Cpreprocessor
47634    );
47635
47636@ISA = qw(Exporter);
47637
47638@EXPORT_OK = qw(
47639    \$Cpreprocessor
47640    );
47641
47642\$Cpreprocessor = '$tmp_cpp';
47643
476441;
47645_EOF
47646
47647
47648
47649## ---------------------------------- ##
47650##  Start of distclean amending code  ##
47651## ---------------------------------- ##
47652
47653for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
47654do
47655
47656if test ! -f "$xc_subdir/Makefile"; then
47657  echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
47658  exit 1
47659fi
47660
47661# Fetch dependency tracking file list from Makefile include lines.
47662
47663xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
47664xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
47665
47666# --disable-dependency-tracking might have been used, consequently
47667# there is nothing to amend without a dependency tracking file list.
47668
47669if test $xc_cnt_words -gt 0; then
47670
47671{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
47672$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
47673
47674# Build Makefile specific patch hunk.
47675
47676xc_p="$xc_subdir/xc_patch.tmp"
47677
47678xc_rm_depfiles=`echo "$xc_inc_lines" \
47679  | $SED 's%include%	-rm -f%' 2>/dev/null`
47680
47681xc_dep_subdirs=`echo "$xc_inc_lines" \
47682  | $SED 's%include[ ][ ]*%%' 2>/dev/null \
47683  | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
47684  | sort | uniq`
47685
47686echo "$xc_rm_depfiles" >$xc_p
47687
47688for xc_dep_dir in $xc_dep_subdirs; do
47689  echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
47690  echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
47691  echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
47692  echo "${xc_tab}fi"                                                                >>$xc_p
47693done
47694
47695# Build Makefile patching sed scripts.
47696
47697xc_s1="$xc_subdir/xc_script_1.tmp"
47698xc_s2="$xc_subdir/xc_script_2.tmp"
47699xc_s3="$xc_subdir/xc_script_3.tmp"
47700
47701cat >$xc_s1 <<\_EOT
47702/^distclean[ ]*:/,/^[^	][^	]*:/{
47703  s/^.*(DEPDIR)/___xc_depdir_line___/
47704}
47705/^maintainer-clean[ ]*:/,/^[^	][^	]*:/{
47706  s/^.*(DEPDIR)/___xc_depdir_line___/
47707}
47708_EOT
47709
47710cat >$xc_s2 <<\_EOT
47711/___xc_depdir_line___$/{
47712  N
47713  /___xc_depdir_line___$/D
47714}
47715_EOT
47716
47717cat >$xc_s3 <<_EOT
47718/^___xc_depdir_line___/{
47719  r $xc_p
47720  d
47721}
47722_EOT
47723
47724# Apply patch to Makefile and cleanup.
47725
47726$SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
47727$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
47728$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
47729
47730if test -f "$xc_subdir/Makefile.tmp3"; then
47731  mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
47732fi
47733
47734test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
47735test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
47736test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
47737
47738test -f "$xc_p"  && rm -f "$xc_p"
47739test -f "$xc_s1" && rm -f "$xc_s1"
47740test -f "$xc_s2" && rm -f "$xc_s2"
47741test -f "$xc_s3" && rm -f "$xc_s3"
47742
47743fi
47744
47745done
47746
47747## -------------------------------- ##
47748##  End of distclean amending code  ##
47749## -------------------------------- ##
47750
47751
47752
47753{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
47754
47755  Host setup:       ${host}
47756  Install prefix:   ${prefix}
47757  Compiler:         ${CC}
47758   CFLAGS:          ${CFLAGS}
47759   CPPFLAGS:        ${CPPFLAGS}
47760   LDFLAGS:         ${LDFLAGS}
47761   LIBS:            ${LIBS}
47762
47763  curl version:     ${CURLVERSION}
47764  SSL:              ${curl_ssl_msg}
47765  SSH:              ${curl_ssh_msg}
47766  zlib:             ${curl_zlib_msg}
47767  brotli:           ${curl_brotli_msg}
47768  zstd:             ${curl_zstd_msg}
47769  GSS-API:          ${curl_gss_msg}
47770  TLS-SRP:          ${curl_tls_srp_msg}
47771  resolver:         ${curl_res_msg}
47772  IPv6:             ${curl_ipv6_msg}
47773  Unix sockets:     ${curl_unix_sockets_msg}
47774  IDN:              ${curl_idn_msg}
47775  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
47776  Built-in manual:  ${curl_manual_msg}
47777  --libcurl option: ${curl_libcurl_msg}
47778  Verbose errors:   ${curl_verbose_msg}
47779  Code coverage:    ${curl_coverage_msg}
47780  SSPI:             ${curl_sspi_msg}
47781  ca cert bundle:   ${ca}${ca_warning}
47782  ca cert path:     ${capath}${capath_warning}
47783  ca fallback:      ${with_ca_fallback}
47784  LDAP:             ${curl_ldap_msg}
47785  LDAPS:            ${curl_ldaps_msg}
47786  RTSP:             ${curl_rtsp_msg}
47787  RTMP:             ${curl_rtmp_msg}
47788  Metalink:         ${curl_mtlnk_msg}
47789  PSL:              ${curl_psl_msg}
47790  Alt-svc:          ${curl_altsvc_msg}
47791  HTTP2:            ${curl_h2_msg}
47792  HTTP3:            ${curl_h3_msg}
47793  ECH:              ${curl_ech_msg}
47794  Protocols:        ${SUPPORT_PROTOCOLS}
47795  Features:         ${SUPPORT_FEATURES}
47796" >&5
47797$as_echo "$as_me: Configured to build curl/libcurl:
47798
47799  Host setup:       ${host}
47800  Install prefix:   ${prefix}
47801  Compiler:         ${CC}
47802   CFLAGS:          ${CFLAGS}
47803   CPPFLAGS:        ${CPPFLAGS}
47804   LDFLAGS:         ${LDFLAGS}
47805   LIBS:            ${LIBS}
47806
47807  curl version:     ${CURLVERSION}
47808  SSL:              ${curl_ssl_msg}
47809  SSH:              ${curl_ssh_msg}
47810  zlib:             ${curl_zlib_msg}
47811  brotli:           ${curl_brotli_msg}
47812  zstd:             ${curl_zstd_msg}
47813  GSS-API:          ${curl_gss_msg}
47814  TLS-SRP:          ${curl_tls_srp_msg}
47815  resolver:         ${curl_res_msg}
47816  IPv6:             ${curl_ipv6_msg}
47817  Unix sockets:     ${curl_unix_sockets_msg}
47818  IDN:              ${curl_idn_msg}
47819  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
47820  Built-in manual:  ${curl_manual_msg}
47821  --libcurl option: ${curl_libcurl_msg}
47822  Verbose errors:   ${curl_verbose_msg}
47823  Code coverage:    ${curl_coverage_msg}
47824  SSPI:             ${curl_sspi_msg}
47825  ca cert bundle:   ${ca}${ca_warning}
47826  ca cert path:     ${capath}${capath_warning}
47827  ca fallback:      ${with_ca_fallback}
47828  LDAP:             ${curl_ldap_msg}
47829  LDAPS:            ${curl_ldaps_msg}
47830  RTSP:             ${curl_rtsp_msg}
47831  RTMP:             ${curl_rtmp_msg}
47832  Metalink:         ${curl_mtlnk_msg}
47833  PSL:              ${curl_psl_msg}
47834  Alt-svc:          ${curl_altsvc_msg}
47835  HTTP2:            ${curl_h2_msg}
47836  HTTP3:            ${curl_h3_msg}
47837  ECH:              ${curl_ech_msg}
47838  Protocols:        ${SUPPORT_PROTOCOLS}
47839  Features:         ${SUPPORT_FEATURES}
47840" >&6;}
47841if test -n "$experimental"; then
47842 cat >&2 << _EOF
47843  WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
47844_EOF
47845fi
47846