• 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.71 for curl -.
4#
5# Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14#
15# Copyright (C) Daniel Stenberg, <daniel@haxx.se>
16# This configure script may be copied, distributed and modified under the
17# terms of the curl license; see COPYING for more details
18
19## -------------------------------- ##
20##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
21## -------------------------------- ##
22
23xc_configure_preamble_ver_major='1'
24xc_configure_preamble_ver_minor='0'
25
26#
27# Set IFS to space, tab and newline.
28#
29
30xc_space=' '
31xc_tab='	'
32xc_newline='
33'
34IFS="$xc_space$xc_tab$xc_newline"
35
36#
37# Set internationalization behavior variables.
38#
39
40LANG='C'
41LC_ALL='C'
42LANGUAGE='C'
43export LANG
44export LC_ALL
45export LANGUAGE
46
47#
48# Some useful variables.
49#
50
51xc_msg_warn='configure: WARNING:'
52xc_msg_abrt='Can not continue.'
53xc_msg_err='configure: error:'
54
55#
56# Verify that 'echo' command is available, otherwise abort.
57#
58
59xc_tst_str='unknown'
60(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
61case "x$xc_tst_str" in # ((
62  xsuccess)
63    :
64    ;;
65  *)
66    # Try built-in echo, and fail.
67    echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
68    exit 1
69    ;;
70esac
71
72#
73# Verify that 'test' command is available, otherwise abort.
74#
75
76xc_tst_str='unknown'
77(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
78case "x$xc_tst_str" in # ((
79  xsuccess)
80    :
81    ;;
82  *)
83    echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
84    exit 1
85    ;;
86esac
87
88#
89# Verify that 'PATH' variable is set, otherwise abort.
90#
91
92xc_tst_str='unknown'
93(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
94case "x$xc_tst_str" in # ((
95  xsuccess)
96    :
97    ;;
98  *)
99    echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
100    exit 1
101    ;;
102esac
103
104#
105# Verify that 'expr' command is available, otherwise abort.
106#
107
108xc_tst_str='unknown'
109xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
110case "x$xc_tst_str" in # ((
111  x7)
112    :
113    ;;
114  *)
115    echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
116    exit 1
117    ;;
118esac
119
120#
121# Verify that 'sed' utility is found within 'PATH', otherwise abort.
122#
123
124xc_tst_str='unknown'
125xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
126  | sed -e 's:unknown:success:' 2>/dev/null`
127case "x$xc_tst_str" in # ((
128  xsuccess)
129    :
130    ;;
131  *)
132    echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
133    exit 1
134    ;;
135esac
136
137#
138# Verify that 'grep' utility is found within 'PATH', otherwise abort.
139#
140
141xc_tst_str='unknown'
142(`echo "$xc_tst_str" 2>/dev/null \
143  | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
144case "x$xc_tst_str" in # ((
145  xsuccess)
146    :
147    ;;
148  *)
149    echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
150    exit 1
151    ;;
152esac
153
154#
155# Verify that 'tr' utility is found within 'PATH', otherwise abort.
156#
157
158xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
159xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
160  | tr -d "0123456789$xc_tab" 2>/dev/null`
161case "x$xc_tst_str" in # ((
162  xsuccess)
163    :
164    ;;
165  *)
166    echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
167    exit 1
168    ;;
169esac
170
171#
172# Verify that 'wc' utility is found within 'PATH', otherwise abort.
173#
174
175xc_tst_str='unknown unknown unknown unknown'
176xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
177  | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
178case "x$xc_tst_str" in # ((
179  x4)
180    :
181    ;;
182  *)
183    echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
184    exit 1
185    ;;
186esac
187
188#
189# Verify that 'cat' utility is found within 'PATH', otherwise abort.
190#
191
192xc_tst_str='unknown'
193xc_tst_str=`cat <<_EOT 2>/dev/null \
194  | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
195unknown
196unknown
197unknown
198_EOT`
199case "x$xc_tst_str" in # ((
200  x3)
201    :
202    ;;
203  *)
204    echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
205    exit 1
206    ;;
207esac
208
209#
210# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
211#
212
213# Directory count in 'PATH' when using a colon separator.
214xc_tst_dirs_col='x'
215xc_tst_prev_IFS=$IFS; IFS=':'
216for xc_tst_dir in $PATH; do
217  IFS=$xc_tst_prev_IFS
218  xc_tst_dirs_col="x$xc_tst_dirs_col"
219done
220IFS=$xc_tst_prev_IFS
221xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
222
223# Directory count in 'PATH' when using a semicolon separator.
224xc_tst_dirs_sem='x'
225xc_tst_prev_IFS=$IFS; IFS=';'
226for xc_tst_dir in $PATH; do
227  IFS=$xc_tst_prev_IFS
228  xc_tst_dirs_sem="x$xc_tst_dirs_sem"
229done
230IFS=$xc_tst_prev_IFS
231xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
232
233if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
234  # When both counting methods give the same result we do not want to
235  # chose one over the other, and consider auto-detection not possible.
236  if test -z "$PATH_SEPARATOR"; then
237    # User should provide the correct 'PATH_SEPARATOR' definition.
238    # Until then, guess that it is colon!
239    echo "$xc_msg_warn path separator not determined, guessing colon" >&2
240    PATH_SEPARATOR=':'
241  fi
242else
243  # Separator with the greater directory count is the auto-detected one.
244  if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
245    xc_tst_auto_separator=';'
246  else
247    xc_tst_auto_separator=':'
248  fi
249  if test -z "$PATH_SEPARATOR"; then
250    # Simply use the auto-detected one when not already set.
251    PATH_SEPARATOR=$xc_tst_auto_separator
252  elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
253    echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
254  fi
255fi
256xc_PATH_SEPARATOR=$PATH_SEPARATOR
257
258xc_configure_preamble_result='yes'
259
260
261## -------------------- ##
262## M4sh Initialization. ##
263## -------------------- ##
264
265# Be more Bourne compatible
266DUALCASE=1; export DUALCASE # for MKS sh
267as_nop=:
268if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
269then :
270  emulate sh
271  NULLCMD=:
272  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
273  # is contrary to our usage.  Disable this feature.
274  alias -g '${1+"$@"}'='"$@"'
275  setopt NO_GLOB_SUBST
276else $as_nop
277  case `(set -o) 2>/dev/null` in #(
278  *posix*) :
279    set -o posix ;; #(
280  *) :
281     ;;
282esac
283fi
284
285
286
287# Reset variables that may have inherited troublesome values from
288# the environment.
289
290# IFS needs to be set, to space, tab, and newline, in precisely that order.
291# (If _AS_PATH_WALK were called with IFS unset, it would have the
292# side effect of setting IFS to empty, thus disabling word splitting.)
293# Quoting is to prevent editors from complaining about space-tab.
294as_nl='
295'
296export as_nl
297IFS=" ""	$as_nl"
298
299PS1='$ '
300PS2='> '
301PS4='+ '
302
303# Ensure predictable behavior from utilities with locale-dependent output.
304LC_ALL=C
305export LC_ALL
306LANGUAGE=C
307export LANGUAGE
308
309# We cannot yet rely on "unset" to work, but we need these variables
310# to be unset--not just set to an empty or harmless value--now, to
311# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
312# also avoids known problems related to "unset" and subshell syntax
313# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
314for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
315do eval test \${$as_var+y} \
316  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
317done
318
319# Ensure that fds 0, 1, and 2 are open.
320if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
321if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
322if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
323
324
325
326# Find who we are.  Look in the path if we contain no directory separator.
327as_myself=
328case $0 in #((
329  *[\\/]* ) as_myself=$0 ;;
330  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
331for as_dir in $PATH
332do
333  IFS=$as_save_IFS
334  case $as_dir in #(((
335    '') as_dir=./ ;;
336    */) ;;
337    *) as_dir=$as_dir/ ;;
338  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352  exit 1
353fi
354
355
356# Use a proper internal environment variable to ensure we don't fall
357  # into an infinite loop, continuously re-executing ourselves.
358  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
359    _as_can_reexec=no; export _as_can_reexec;
360    # We cannot yet assume a decent shell, so we have to provide a
361# neutralization value for shells without unset; and this also
362# works around shells that cannot unset nonexistent variables.
363# Preserve -v and -x to the replacement shell.
364BASH_ENV=/dev/null
365ENV=/dev/null
366(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367case $- in # ((((
368  *v*x* | *x*v* ) as_opts=-vx ;;
369  *v* ) as_opts=-v ;;
370  *x* ) as_opts=-x ;;
371  * ) as_opts= ;;
372esac
373exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
374# Admittedly, this is quite paranoid, since all the known shells bail
375# out after a failed `exec'.
376printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
377exit 255
378  fi
379  # We don't want this to propagate to other subprocesses.
380          { _as_can_reexec=; unset _as_can_reexec;}
381if test "x$CONFIG_SHELL" = x; then
382  as_bourne_compatible="as_nop=:
383if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
384then :
385  emulate sh
386  NULLCMD=:
387  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
388  # is contrary to our usage.  Disable this feature.
389  alias -g '\${1+\"\$@\"}'='\"\$@\"'
390  setopt NO_GLOB_SUBST
391else \$as_nop
392  case \`(set -o) 2>/dev/null\` in #(
393  *posix*) :
394    set -o posix ;; #(
395  *) :
396     ;;
397esac
398fi
399"
400  as_required="as_fn_return () { (exit \$1); }
401as_fn_success () { as_fn_return 0; }
402as_fn_failure () { as_fn_return 1; }
403as_fn_ret_success () { return 0; }
404as_fn_ret_failure () { return 1; }
405
406exitcode=0
407as_fn_success || { exitcode=1; echo as_fn_success failed.; }
408as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
409as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
410as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
411if ( set x; as_fn_ret_success y && test x = \"\$1\" )
412then :
413
414else \$as_nop
415  exitcode=1; echo positional parameters were not saved.
416fi
417test x\$exitcode = x0 || exit 1
418blah=\$(echo \$(echo blah))
419test x\"\$blah\" = xblah || exit 1
420test -x / || exit 1"
421  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
422  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
423  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
424  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
425test \$(( 1 + 1 )) = 2 || exit 1
426
427  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
428    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
429    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
430    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
431    PATH=/empty FPATH=/empty; export PATH FPATH
432    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
433      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
434  if (eval "$as_required") 2>/dev/null
435then :
436  as_have_required=yes
437else $as_nop
438  as_have_required=no
439fi
440  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
441then :
442
443else $as_nop
444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
445as_found=false
446for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
447do
448  IFS=$as_save_IFS
449  case $as_dir in #(((
450    '') as_dir=./ ;;
451    */) ;;
452    *) as_dir=$as_dir/ ;;
453  esac
454  as_found=:
455  case $as_dir in #(
456	 /*)
457	   for as_base in sh bash ksh sh5; do
458	     # Try only shells that exist, to save several forks.
459	     as_shell=$as_dir$as_base
460	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
461		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
462then :
463  CONFIG_SHELL=$as_shell as_have_required=yes
464		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
465then :
466  break 2
467fi
468fi
469	   done;;
470       esac
471  as_found=false
472done
473IFS=$as_save_IFS
474if $as_found
475then :
476
477else $as_nop
478  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
479	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
480then :
481  CONFIG_SHELL=$SHELL as_have_required=yes
482fi
483fi
484
485
486      if test "x$CONFIG_SHELL" != x
487then :
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'.
505printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
506exit 255
507fi
508
509    if test x$as_have_required = xno
510then :
511  printf "%s\n" "$0: This script requires a shell more modern than all"
512  printf "%s\n" "$0: the shells that I found on your system."
513  if test ${ZSH_VERSION+y} ; then
514    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
515    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
516  else
517    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and a suitable curl
518$0: mailing list: https://curl.se/mail/ about your system,
519$0: including any error possibly output before this
520$0: message. Then install a modern shell, or manually run
521$0: the script under such a shell if you do have one."
522  fi
523  exit 1
524fi
525fi
526fi
527SHELL=${CONFIG_SHELL-/bin/sh}
528export SHELL
529# Unset more variables known to interfere with behavior of common tools.
530CLICOLOR_FORCE= GREP_OPTIONS=
531unset CLICOLOR_FORCE GREP_OPTIONS
532
533## --------------------- ##
534## M4sh Shell Functions. ##
535## --------------------- ##
536# as_fn_unset VAR
537# ---------------
538# Portably unset VAR.
539as_fn_unset ()
540{
541  { eval $1=; unset $1;}
542}
543as_unset=as_fn_unset
544
545
546# as_fn_set_status STATUS
547# -----------------------
548# Set $? to STATUS, without forking.
549as_fn_set_status ()
550{
551  return $1
552} # as_fn_set_status
553
554# as_fn_exit STATUS
555# -----------------
556# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
557as_fn_exit ()
558{
559  set +e
560  as_fn_set_status $1
561  exit $1
562} # as_fn_exit
563# as_fn_nop
564# ---------
565# Do nothing but, unlike ":", preserve the value of $?.
566as_fn_nop ()
567{
568  return $?
569}
570as_nop=as_fn_nop
571
572# as_fn_mkdir_p
573# -------------
574# Create "$as_dir" as a directory, including parents if necessary.
575as_fn_mkdir_p ()
576{
577
578  case $as_dir in #(
579  -*) as_dir=./$as_dir;;
580  esac
581  test -d "$as_dir" || eval $as_mkdir_p || {
582    as_dirs=
583    while :; do
584      case $as_dir in #(
585      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
586      *) as_qdir=$as_dir;;
587      esac
588      as_dirs="'$as_qdir' $as_dirs"
589      as_dir=`$as_dirname -- "$as_dir" ||
590$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
591	 X"$as_dir" : 'X\(//\)[^/]' \| \
592	 X"$as_dir" : 'X\(//\)$' \| \
593	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
594printf "%s\n" X"$as_dir" |
595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
596	    s//\1/
597	    q
598	  }
599	  /^X\(\/\/\)[^/].*/{
600	    s//\1/
601	    q
602	  }
603	  /^X\(\/\/\)$/{
604	    s//\1/
605	    q
606	  }
607	  /^X\(\/\).*/{
608	    s//\1/
609	    q
610	  }
611	  s/.*/./; q'`
612      test -d "$as_dir" && break
613    done
614    test -z "$as_dirs" || eval "mkdir $as_dirs"
615  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
616
617
618} # as_fn_mkdir_p
619
620# as_fn_executable_p FILE
621# -----------------------
622# Test if FILE is an executable regular file.
623as_fn_executable_p ()
624{
625  test -f "$1" && test -x "$1"
626} # as_fn_executable_p
627# as_fn_append VAR VALUE
628# ----------------------
629# Append the text in VALUE to the end of the definition contained in VAR. Take
630# advantage of any shell optimizations that allow amortized linear growth over
631# repeated appends, instead of the typical quadratic growth present in naive
632# implementations.
633if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
634then :
635  eval 'as_fn_append ()
636  {
637    eval $1+=\$2
638  }'
639else $as_nop
640  as_fn_append ()
641  {
642    eval $1=\$$1\$2
643  }
644fi # as_fn_append
645
646# as_fn_arith ARG...
647# ------------------
648# Perform arithmetic evaluation on the ARGs, and store the result in the
649# global $as_val. Take advantage of shells that can avoid forks. The arguments
650# must be portable across $(()) and expr.
651if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
652then :
653  eval 'as_fn_arith ()
654  {
655    as_val=$(( $* ))
656  }'
657else $as_nop
658  as_fn_arith ()
659  {
660    as_val=`expr "$@" || test $? -eq 1`
661  }
662fi # as_fn_arith
663
664# as_fn_nop
665# ---------
666# Do nothing but, unlike ":", preserve the value of $?.
667as_fn_nop ()
668{
669  return $?
670}
671as_nop=as_fn_nop
672
673# as_fn_error STATUS ERROR [LINENO LOG_FD]
674# ----------------------------------------
675# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
676# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
677# script with STATUS, using 1 if that was 0.
678as_fn_error ()
679{
680  as_status=$1; test $as_status -eq 0 && as_status=1
681  if test "$4"; then
682    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
683    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
684  fi
685  printf "%s\n" "$as_me: error: $2" >&2
686  as_fn_exit $as_status
687} # as_fn_error
688
689if expr a : '\(a\)' >/dev/null 2>&1 &&
690   test "X`expr 00001 : '.*\(...\)'`" = X001; then
691  as_expr=expr
692else
693  as_expr=false
694fi
695
696if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
697  as_basename=basename
698else
699  as_basename=false
700fi
701
702if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
703  as_dirname=dirname
704else
705  as_dirname=false
706fi
707
708as_me=`$as_basename -- "$0" ||
709$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
710	 X"$0" : 'X\(//\)$' \| \
711	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
712printf "%s\n" X/"$0" |
713    sed '/^.*\/\([^/][^/]*\)\/*$/{
714	    s//\1/
715	    q
716	  }
717	  /^X\/\(\/\/\)$/{
718	    s//\1/
719	    q
720	  }
721	  /^X\/\(\/\).*/{
722	    s//\1/
723	    q
724	  }
725	  s/.*/./; q'`
726
727# Avoid depending upon Character Ranges.
728as_cr_letters='abcdefghijklmnopqrstuvwxyz'
729as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
730as_cr_Letters=$as_cr_letters$as_cr_LETTERS
731as_cr_digits='0123456789'
732as_cr_alnum=$as_cr_Letters$as_cr_digits
733
734
735  as_lineno_1=$LINENO as_lineno_1a=$LINENO
736  as_lineno_2=$LINENO as_lineno_2a=$LINENO
737  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
738  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
739  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
740  sed -n '
741    p
742    /[$]LINENO/=
743  ' <$as_myself |
744    sed '
745      s/[$]LINENO.*/&-/
746      t lineno
747      b
748      :lineno
749      N
750      :loop
751      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
752      t loop
753      s/-\n.*//
754    ' >$as_me.lineno &&
755  chmod +x "$as_me.lineno" ||
756    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
757
758  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
759  # already done that, so ensure we don't try to do so again and fall
760  # in an infinite loop.  This has already happened in practice.
761  _as_can_reexec=no; export _as_can_reexec
762  # Don't try to exec as it changes $[0], causing all sort of problems
763  # (the dirname of $[0] is not the place where we might find the
764  # original and so on.  Autoconf is especially sensitive to this).
765  . "./$as_me.lineno"
766  # Exit status is that of the last command.
767  exit
768}
769
770
771# Determine whether it's possible to make 'echo' print without a newline.
772# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
773# for compatibility with existing Makefiles.
774ECHO_C= ECHO_N= ECHO_T=
775case `echo -n x` in #(((((
776-n*)
777  case `echo 'xy\c'` in
778  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
779  xy)  ECHO_C='\c';;
780  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
781       ECHO_T='	';;
782  esac;;
783*)
784  ECHO_N='-n';;
785esac
786
787# For backward compatibility with old third-party macros, we provide
788# the shell variables $as_echo and $as_echo_n.  New code should use
789# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
790as_echo='printf %s\n'
791as_echo_n='printf %s'
792
793
794rm -f conf$$ conf$$.exe conf$$.file
795if test -d conf$$.dir; then
796  rm -f conf$$.dir/conf$$.file
797else
798  rm -f conf$$.dir
799  mkdir conf$$.dir 2>/dev/null
800fi
801if (echo >conf$$.file) 2>/dev/null; then
802  if ln -s conf$$.file conf$$ 2>/dev/null; then
803    as_ln_s='ln -s'
804    # ... but there are two gotchas:
805    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
806    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
807    # In both cases, we have to default to `cp -pR'.
808    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
809      as_ln_s='cp -pR'
810  elif ln conf$$.file conf$$ 2>/dev/null; then
811    as_ln_s=ln
812  else
813    as_ln_s='cp -pR'
814  fi
815else
816  as_ln_s='cp -pR'
817fi
818rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
819rmdir conf$$.dir 2>/dev/null
820
821if mkdir -p . 2>/dev/null; then
822  as_mkdir_p='mkdir -p "$as_dir"'
823else
824  test -d ./-p && rmdir ./-p
825  as_mkdir_p=false
826fi
827
828as_test_x='test -x'
829as_executable_p=as_fn_executable_p
830
831# Sed expression to map a string onto a valid CPP name.
832as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
833
834# Sed expression to map a string onto a valid variable name.
835as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
836
837SHELL=${CONFIG_SHELL-/bin/sh}
838
839
840test -n "$DJDIR" || exec 7<&0 </dev/null
841exec 6>&1
842
843# Name of the host.
844# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
845# so uname gets run too.
846ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
847
848#
849# Initializations.
850#
851ac_default_prefix=/usr/local
852ac_clean_files=
853ac_config_libobj_dir=.
854LIBOBJS=
855cross_compiling=no
856subdirs=
857MFLAGS=
858MAKEFLAGS=
859
860# Identity of this package.
861PACKAGE_NAME='curl'
862PACKAGE_TARNAME='curl'
863PACKAGE_VERSION='-'
864PACKAGE_STRING='curl -'
865PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
866PACKAGE_URL=''
867
868ac_unique_file="lib/urldata.h"
869# Factoring default headers for most tests.
870ac_includes_default="\
871#include <stddef.h>
872#ifdef HAVE_STDIO_H
873# include <stdio.h>
874#endif
875#ifdef HAVE_STDLIB_H
876# include <stdlib.h>
877#endif
878#ifdef HAVE_STRING_H
879# include <string.h>
880#endif
881#ifdef HAVE_INTTYPES_H
882# include <inttypes.h>
883#endif
884#ifdef HAVE_STDINT_H
885# include <stdint.h>
886#endif
887#ifdef HAVE_STRINGS_H
888# include <strings.h>
889#endif
890#ifdef HAVE_SYS_TYPES_H
891# include <sys/types.h>
892#endif
893#ifdef HAVE_SYS_STAT_H
894# include <sys/stat.h>
895#endif
896#ifdef HAVE_UNISTD_H
897# include <unistd.h>
898#endif"
899
900ac_header_c_list=
901ac_subst_vars='am__EXEEXT_FALSE
902am__EXEEXT_TRUE
903LTLIBOBJS
904LIBOBJS
905SSL_BACKENDS
906SUPPORT_PROTOCOLS
907SUPPORT_FEATURES
908LIBCURL_NO_SHARED
909ENABLE_STATIC
910ENABLE_SHARED
911CROSSCOMPILING_FALSE
912CROSSCOMPILING_TRUE
913BLANK_AT_MAKETIME
914CURL_NETWORK_AND_TIME_LIBS
915CURL_NETWORK_LIBS
916LIBCURL_LIBS
917CFLAG_CURL_SYMBOL_HIDING
918DOING_CURL_SYMBOL_HIDING_FALSE
919DOING_CURL_SYMBOL_HIDING_TRUE
920USE_UNIX_SOCKETS
921BUILD_LIBHOSTNAME_FALSE
922BUILD_LIBHOSTNAME_TRUE
923USE_ARES
924USE_MANUAL_FALSE
925USE_MANUAL_TRUE
926BUILD_DOCS_FALSE
927BUILD_DOCS_TRUE
928PERL
929USE_FISH_COMPLETION_FALSE
930USE_FISH_COMPLETION_TRUE
931FISH_FUNCTIONS_DIR
932USE_ZSH_COMPLETION_FALSE
933USE_ZSH_COMPLETION_TRUE
934ZSH_FUNCTIONS_DIR
935USE_MSH3
936USE_QUICHE
937USE_OPENSSL_H3
938USE_NGTCP2_H3
939USE_NGHTTP3
940USE_OPENSSL_QUIC
941USE_NGTCP2_CRYPTO_WOLFSSL
942USE_NGTCP2_CRYPTO_GNUTLS
943USE_NGTCP2_CRYPTO_BORINGSSL
944USE_NGTCP2_CRYPTO_QUICTLS
945USE_NGTCP2
946USE_NGHTTP2
947IDN_ENABLED
948CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
949CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
950CURL_LT_SHLIB_VERSIONED_FLAVOUR
951USE_LIBRTMP
952USE_WOLFSSH
953USE_LIBSSH
954USE_LIBSSH2
955USE_GSASL_FALSE
956USE_GSASL_TRUE
957USE_LIBPSL_FALSE
958USE_LIBPSL_TRUE
959USE_LIBPSL
960CURL_CA_BUNDLE
961CURL_WITH_MULTI_SSL
962SSL_ENABLED
963USE_RUSTLS
964USE_BEARSSL
965USE_WOLFSSL
966USE_MBEDTLS
967HAVE_GNUTLS_SRP
968USE_GNUTLS
969HAVE_OPENSSL_QUIC
970HAVE_OPENSSL_SRP
971RANDOM_FILE
972SSL_LIBS
973USE_SECTRANSP
974USE_WINDOWS_SSPI
975USE_SCHANNEL
976DEFAULT_SSL_BACKEND
977BUILD_STUB_GSS_FALSE
978BUILD_STUB_GSS_TRUE
979IPV6_ENABLED
980USE_OPENLDAP
981HAVE_ZSTD
982HAVE_BROTLI
983ZLIB_LIBS
984HAVE_LIBZ_FALSE
985HAVE_LIBZ_TRUE
986HAVE_LIBZ
987HAVE_PROTO_BSDSOCKET_H
988CURL_DISABLE_MQTT
989CURL_DISABLE_GOPHER
990CURL_DISABLE_SMTP
991CURL_DISABLE_SMB
992CURL_DISABLE_IMAP
993CURL_DISABLE_POP3
994CURL_DISABLE_TFTP
995CURL_DISABLE_TELNET
996CURL_DISABLE_DICT
997CURL_DISABLE_PROXY
998USE_HYPER
999PKGCONFIG
1000HAVE_LDAP_SSL
1001CURL_DISABLE_LDAPS
1002CURL_DISABLE_LDAP
1003CURL_DISABLE_FILE
1004CURL_DISABLE_FTP
1005CURL_DISABLE_RTSP
1006CURL_DISABLE_HTTP
1007HAVE_WINDRES_FALSE
1008HAVE_WINDRES_TRUE
1009USE_WIN32_CRYPTO
1010USE_WIN32_SMALL_FILES
1011USE_WIN32_LARGE_FILES
1012BUILD_UNITTESTS_FALSE
1013BUILD_UNITTESTS_TRUE
1014CURLDEBUG_FALSE
1015CURLDEBUG_TRUE
1016CURL_CFLAG_EXTRAS
1017DOING_NATIVE_WINDOWS_FALSE
1018DOING_NATIVE_WINDOWS_TRUE
1019USE_EXPLICIT_LIB_DEPS_FALSE
1020USE_EXPLICIT_LIB_DEPS_TRUE
1021REQUIRE_LIB_DEPS
1022CPPFLAG_CURL_STATICLIB
1023USE_CPPFLAG_CURL_STATICLIB_FALSE
1024USE_CPPFLAG_CURL_STATICLIB_TRUE
1025CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1026CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1027CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1028CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1029CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1030CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1031RC
1032LT_SYS_LIBRARY_PATH
1033OTOOL64
1034OTOOL
1035LIPO
1036NMEDIT
1037DSYMUTIL
1038MANIFEST_TOOL
1039RANLIB
1040ac_ct_AR
1041FILECMD
1042LN_S
1043NM
1044ac_ct_DUMPBIN
1045DUMPBIN
1046LD
1047FGREP
1048LIBTOOL
1049OBJDUMP
1050DLLTOOL
1051AS
1052AR_FLAGS
1053host_os
1054host_vendor
1055host_cpu
1056host
1057build_os
1058build_vendor
1059build_cpu
1060build
1061HTTPD_NGHTTPX
1062APACHECTL
1063HTTPD
1064APXS
1065VSFTPD
1066CADDY
1067TEST_NGHTTPX
1068PKGADD_VENDOR
1069PKGADD_NAME
1070PKGADD_PKG
1071VERSIONNUM
1072CURLVERSION
1073CSCOPE
1074ETAGS
1075CTAGS
1076am__fastdepCC_FALSE
1077am__fastdepCC_TRUE
1078CCDEPMODE
1079am__nodep
1080AMDEPBACKSLASH
1081AMDEP_FALSE
1082AMDEP_TRUE
1083am__include
1084DEPDIR
1085am__untar
1086am__tar
1087AMTAR
1088am__leading_dot
1089SET_MAKE
1090AWK
1091mkdir_p
1092MKDIR_P
1093INSTALL_STRIP_PROGRAM
1094STRIP
1095install_sh
1096MAKEINFO
1097AUTOHEADER
1098AUTOMAKE
1099AUTOCONF
1100ACLOCAL
1101VERSION
1102PACKAGE
1103CYGPATH_W
1104am__isrc
1105LCOV
1106GCOV
1107CPP
1108OBJEXT
1109EXEEXT
1110ac_ct_CC
1111CPPFLAGS
1112LDFLAGS
1113CFLAGS
1114CC
1115INSTALL_DATA
1116INSTALL_SCRIPT
1117INSTALL_PROGRAM
1118libext
1119AR
1120EGREP
1121GREP
1122SED
1123CONFIGURE_OPTIONS
1124AM_BACKSLASH
1125AM_DEFAULT_VERBOSITY
1126AM_DEFAULT_V
1127AM_V
1128MAINT
1129MAINTAINER_MODE_FALSE
1130MAINTAINER_MODE_TRUE
1131target_alias
1132host_alias
1133build_alias
1134LIBS
1135ECHO_T
1136ECHO_N
1137ECHO_C
1138DEFS
1139mandir
1140localedir
1141libdir
1142psdir
1143pdfdir
1144dvidir
1145htmldir
1146infodir
1147docdir
1148oldincludedir
1149includedir
1150runstatedir
1151localstatedir
1152sharedstatedir
1153sysconfdir
1154datadir
1155datarootdir
1156libexecdir
1157sbindir
1158bindir
1159program_transform_name
1160prefix
1161exec_prefix
1162PACKAGE_URL
1163PACKAGE_BUGREPORT
1164PACKAGE_STRING
1165PACKAGE_VERSION
1166PACKAGE_TARNAME
1167PACKAGE_NAME
1168SHELL
1169PATH_SEPARATOR
1170am__quote'
1171ac_subst_files=''
1172ac_user_opts='
1173enable_option_checking
1174enable_maintainer_mode
1175enable_silent_rules
1176enable_debug
1177enable_optimize
1178enable_warnings
1179enable_werror
1180enable_curldebug
1181enable_symbol_hiding
1182enable_ares
1183enable_rt
1184enable_httpsrr
1185enable_ech
1186enable_code_coverage
1187enable_dependency_tracking
1188with_schannel
1189with_secure_transport
1190with_amissl
1191with_ssl
1192with_openssl
1193with_gnutls
1194with_mbedtls
1195with_wolfssl
1196with_bearssl
1197with_rustls
1198with_test_nghttpx
1199with_test_caddy
1200with_test_vsftpd
1201with_test_httpd
1202with_darwinssl
1203enable_largefile
1204enable_shared
1205enable_static
1206with_pic
1207enable_fast_install
1208with_aix_soname
1209with_gnu_ld
1210with_sysroot
1211enable_libtool_lock
1212enable_http
1213enable_ftp
1214enable_file
1215enable_ldap
1216enable_ldaps
1217with_hyper
1218enable_rtsp
1219enable_proxy
1220enable_dict
1221enable_telnet
1222enable_tftp
1223enable_pop3
1224enable_imap
1225enable_smb
1226enable_smtp
1227enable_gopher
1228enable_mqtt
1229enable_manual
1230enable_docs
1231enable_libcurl_option
1232enable_libgcc
1233with_zlib
1234with_brotli
1235with_zstd
1236with_ldap_lib
1237with_lber_lib
1238enable_ipv6
1239with_gssapi_includes
1240with_gssapi_libs
1241with_gssapi
1242with_default_ssl_backend
1243with_random
1244enable_openssl_auto_load_config
1245with_ca_bundle
1246with_ca_path
1247with_ca_fallback
1248with_libpsl
1249with_libgsasl
1250with_libmetalink
1251with_libssh2
1252with_libssh
1253with_wolfssh
1254with_librtmp
1255enable_versioned_symbols
1256with_winidn
1257with_libidn2
1258with_nghttp2
1259with_ngtcp2
1260with_openssl_quic
1261with_nghttp3
1262with_quiche
1263with_msh3
1264with_zsh_functions_dir
1265with_fish_functions_dir
1266enable_threaded_resolver
1267enable_pthreads
1268enable_verbose
1269enable_sspi
1270enable_basic_auth
1271enable_bearer_auth
1272enable_digest_auth
1273enable_kerberos_auth
1274enable_negotiate_auth
1275enable_aws
1276enable_ntlm
1277enable_tls_srp
1278enable_unix_sockets
1279enable_cookies
1280enable_socketpair
1281enable_http_auth
1282enable_doh
1283enable_mime
1284enable_bindlocal
1285enable_form_api
1286enable_dateparse
1287enable_netrc
1288enable_progress_meter
1289enable_dnsshuffle
1290enable_get_easy_options
1291enable_alt_svc
1292enable_headers_api
1293enable_hsts
1294enable_websockets
1295'
1296      ac_precious_vars='build_alias
1297host_alias
1298target_alias
1299CC
1300CFLAGS
1301LDFLAGS
1302LIBS
1303CPPFLAGS
1304CPP
1305LT_SYS_LIBRARY_PATH'
1306
1307
1308# Initialize some variables set by options.
1309ac_init_help=
1310ac_init_version=false
1311ac_unrecognized_opts=
1312ac_unrecognized_sep=
1313# The variables have the same names as the options, with
1314# dashes changed to underlines.
1315cache_file=/dev/null
1316exec_prefix=NONE
1317no_create=
1318no_recursion=
1319prefix=NONE
1320program_prefix=NONE
1321program_suffix=NONE
1322program_transform_name=s,x,x,
1323silent=
1324site=
1325srcdir=
1326verbose=
1327x_includes=NONE
1328x_libraries=NONE
1329
1330# Installation directory options.
1331# These are left unexpanded so users can "make install exec_prefix=/foo"
1332# and all the variables that are supposed to be based on exec_prefix
1333# by default will actually change.
1334# Use braces instead of parens because sh, perl, etc. also accept them.
1335# (The list follows the same order as the GNU Coding Standards.)
1336bindir='${exec_prefix}/bin'
1337sbindir='${exec_prefix}/sbin'
1338libexecdir='${exec_prefix}/libexec'
1339datarootdir='${prefix}/share'
1340datadir='${datarootdir}'
1341sysconfdir='${prefix}/etc'
1342sharedstatedir='${prefix}/com'
1343localstatedir='${prefix}/var'
1344runstatedir='${localstatedir}/run'
1345includedir='${prefix}/include'
1346oldincludedir='/usr/include'
1347docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1348infodir='${datarootdir}/info'
1349htmldir='${docdir}'
1350dvidir='${docdir}'
1351pdfdir='${docdir}'
1352psdir='${docdir}'
1353libdir='${exec_prefix}/lib'
1354localedir='${datarootdir}/locale'
1355mandir='${datarootdir}/man'
1356
1357ac_prev=
1358ac_dashdash=
1359for ac_option
1360do
1361  # If the previous option needs an argument, assign it.
1362  if test -n "$ac_prev"; then
1363    eval $ac_prev=\$ac_option
1364    ac_prev=
1365    continue
1366  fi
1367
1368  case $ac_option in
1369  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1370  *=)   ac_optarg= ;;
1371  *)    ac_optarg=yes ;;
1372  esac
1373
1374  case $ac_dashdash$ac_option in
1375  --)
1376    ac_dashdash=yes ;;
1377
1378  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1379    ac_prev=bindir ;;
1380  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1381    bindir=$ac_optarg ;;
1382
1383  -build | --build | --buil | --bui | --bu)
1384    ac_prev=build_alias ;;
1385  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1386    build_alias=$ac_optarg ;;
1387
1388  -cache-file | --cache-file | --cache-fil | --cache-fi \
1389  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1390    ac_prev=cache_file ;;
1391  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1392  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1393    cache_file=$ac_optarg ;;
1394
1395  --config-cache | -C)
1396    cache_file=config.cache ;;
1397
1398  -datadir | --datadir | --datadi | --datad)
1399    ac_prev=datadir ;;
1400  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1401    datadir=$ac_optarg ;;
1402
1403  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1404  | --dataroo | --dataro | --datar)
1405    ac_prev=datarootdir ;;
1406  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1407  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1408    datarootdir=$ac_optarg ;;
1409
1410  -disable-* | --disable-*)
1411    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1412    # Reject names that are not valid shell variable names.
1413    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1414      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1415    ac_useropt_orig=$ac_useropt
1416    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1417    case $ac_user_opts in
1418      *"
1419"enable_$ac_useropt"
1420"*) ;;
1421      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1422	 ac_unrecognized_sep=', ';;
1423    esac
1424    eval enable_$ac_useropt=no ;;
1425
1426  -docdir | --docdir | --docdi | --doc | --do)
1427    ac_prev=docdir ;;
1428  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1429    docdir=$ac_optarg ;;
1430
1431  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1432    ac_prev=dvidir ;;
1433  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1434    dvidir=$ac_optarg ;;
1435
1436  -enable-* | --enable-*)
1437    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1438    # Reject names that are not valid shell variable names.
1439    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1440      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1441    ac_useropt_orig=$ac_useropt
1442    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1443    case $ac_user_opts in
1444      *"
1445"enable_$ac_useropt"
1446"*) ;;
1447      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1448	 ac_unrecognized_sep=', ';;
1449    esac
1450    eval enable_$ac_useropt=\$ac_optarg ;;
1451
1452  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1453  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1454  | --exec | --exe | --ex)
1455    ac_prev=exec_prefix ;;
1456  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1457  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1458  | --exec=* | --exe=* | --ex=*)
1459    exec_prefix=$ac_optarg ;;
1460
1461  -gas | --gas | --ga | --g)
1462    # Obsolete; use --with-gas.
1463    with_gas=yes ;;
1464
1465  -help | --help | --hel | --he | -h)
1466    ac_init_help=long ;;
1467  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1468    ac_init_help=recursive ;;
1469  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1470    ac_init_help=short ;;
1471
1472  -host | --host | --hos | --ho)
1473    ac_prev=host_alias ;;
1474  -host=* | --host=* | --hos=* | --ho=*)
1475    host_alias=$ac_optarg ;;
1476
1477  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1478    ac_prev=htmldir ;;
1479  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1480  | --ht=*)
1481    htmldir=$ac_optarg ;;
1482
1483  -includedir | --includedir | --includedi | --included | --include \
1484  | --includ | --inclu | --incl | --inc)
1485    ac_prev=includedir ;;
1486  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1487  | --includ=* | --inclu=* | --incl=* | --inc=*)
1488    includedir=$ac_optarg ;;
1489
1490  -infodir | --infodir | --infodi | --infod | --info | --inf)
1491    ac_prev=infodir ;;
1492  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1493    infodir=$ac_optarg ;;
1494
1495  -libdir | --libdir | --libdi | --libd)
1496    ac_prev=libdir ;;
1497  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1498    libdir=$ac_optarg ;;
1499
1500  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1501  | --libexe | --libex | --libe)
1502    ac_prev=libexecdir ;;
1503  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1504  | --libexe=* | --libex=* | --libe=*)
1505    libexecdir=$ac_optarg ;;
1506
1507  -localedir | --localedir | --localedi | --localed | --locale)
1508    ac_prev=localedir ;;
1509  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1510    localedir=$ac_optarg ;;
1511
1512  -localstatedir | --localstatedir | --localstatedi | --localstated \
1513  | --localstate | --localstat | --localsta | --localst | --locals)
1514    ac_prev=localstatedir ;;
1515  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1516  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1517    localstatedir=$ac_optarg ;;
1518
1519  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1520    ac_prev=mandir ;;
1521  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1522    mandir=$ac_optarg ;;
1523
1524  -nfp | --nfp | --nf)
1525    # Obsolete; use --without-fp.
1526    with_fp=no ;;
1527
1528  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1529  | --no-cr | --no-c | -n)
1530    no_create=yes ;;
1531
1532  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1533  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1534    no_recursion=yes ;;
1535
1536  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1537  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1538  | --oldin | --oldi | --old | --ol | --o)
1539    ac_prev=oldincludedir ;;
1540  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1541  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1542  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1543    oldincludedir=$ac_optarg ;;
1544
1545  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1546    ac_prev=prefix ;;
1547  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1548    prefix=$ac_optarg ;;
1549
1550  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1551  | --program-pre | --program-pr | --program-p)
1552    ac_prev=program_prefix ;;
1553  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1554  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1555    program_prefix=$ac_optarg ;;
1556
1557  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1558  | --program-suf | --program-su | --program-s)
1559    ac_prev=program_suffix ;;
1560  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1561  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1562    program_suffix=$ac_optarg ;;
1563
1564  -program-transform-name | --program-transform-name \
1565  | --program-transform-nam | --program-transform-na \
1566  | --program-transform-n | --program-transform- \
1567  | --program-transform | --program-transfor \
1568  | --program-transfo | --program-transf \
1569  | --program-trans | --program-tran \
1570  | --progr-tra | --program-tr | --program-t)
1571    ac_prev=program_transform_name ;;
1572  -program-transform-name=* | --program-transform-name=* \
1573  | --program-transform-nam=* | --program-transform-na=* \
1574  | --program-transform-n=* | --program-transform-=* \
1575  | --program-transform=* | --program-transfor=* \
1576  | --program-transfo=* | --program-transf=* \
1577  | --program-trans=* | --program-tran=* \
1578  | --progr-tra=* | --program-tr=* | --program-t=*)
1579    program_transform_name=$ac_optarg ;;
1580
1581  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1582    ac_prev=pdfdir ;;
1583  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1584    pdfdir=$ac_optarg ;;
1585
1586  -psdir | --psdir | --psdi | --psd | --ps)
1587    ac_prev=psdir ;;
1588  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1589    psdir=$ac_optarg ;;
1590
1591  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1592  | -silent | --silent | --silen | --sile | --sil)
1593    silent=yes ;;
1594
1595  -runstatedir | --runstatedir | --runstatedi | --runstated \
1596  | --runstate | --runstat | --runsta | --runst | --runs \
1597  | --run | --ru | --r)
1598    ac_prev=runstatedir ;;
1599  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1600  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1601  | --run=* | --ru=* | --r=*)
1602    runstatedir=$ac_optarg ;;
1603
1604  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1605    ac_prev=sbindir ;;
1606  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1607  | --sbi=* | --sb=*)
1608    sbindir=$ac_optarg ;;
1609
1610  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1611  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1612  | --sharedst | --shareds | --shared | --share | --shar \
1613  | --sha | --sh)
1614    ac_prev=sharedstatedir ;;
1615  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1616  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1617  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1618  | --sha=* | --sh=*)
1619    sharedstatedir=$ac_optarg ;;
1620
1621  -site | --site | --sit)
1622    ac_prev=site ;;
1623  -site=* | --site=* | --sit=*)
1624    site=$ac_optarg ;;
1625
1626  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1627    ac_prev=srcdir ;;
1628  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1629    srcdir=$ac_optarg ;;
1630
1631  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1632  | --syscon | --sysco | --sysc | --sys | --sy)
1633    ac_prev=sysconfdir ;;
1634  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1635  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1636    sysconfdir=$ac_optarg ;;
1637
1638  -target | --target | --targe | --targ | --tar | --ta | --t)
1639    ac_prev=target_alias ;;
1640  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1641    target_alias=$ac_optarg ;;
1642
1643  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1644    verbose=yes ;;
1645
1646  -version | --version | --versio | --versi | --vers | -V)
1647    ac_init_version=: ;;
1648
1649  -with-* | --with-*)
1650    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1651    # Reject names that are not valid shell variable names.
1652    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1653      as_fn_error $? "invalid package name: \`$ac_useropt'"
1654    ac_useropt_orig=$ac_useropt
1655    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1656    case $ac_user_opts in
1657      *"
1658"with_$ac_useropt"
1659"*) ;;
1660      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1661	 ac_unrecognized_sep=', ';;
1662    esac
1663    eval with_$ac_useropt=\$ac_optarg ;;
1664
1665  -without-* | --without-*)
1666    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1667    # Reject names that are not valid shell variable names.
1668    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1669      as_fn_error $? "invalid package name: \`$ac_useropt'"
1670    ac_useropt_orig=$ac_useropt
1671    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1672    case $ac_user_opts in
1673      *"
1674"with_$ac_useropt"
1675"*) ;;
1676      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1677	 ac_unrecognized_sep=', ';;
1678    esac
1679    eval with_$ac_useropt=no ;;
1680
1681  --x)
1682    # Obsolete; use --with-x.
1683    with_x=yes ;;
1684
1685  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1686  | --x-incl | --x-inc | --x-in | --x-i)
1687    ac_prev=x_includes ;;
1688  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1689  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1690    x_includes=$ac_optarg ;;
1691
1692  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1693  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1694    ac_prev=x_libraries ;;
1695  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1696  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1697    x_libraries=$ac_optarg ;;
1698
1699  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1700Try \`$0 --help' for more information"
1701    ;;
1702
1703  *=*)
1704    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1705    # Reject names that are not valid shell variable names.
1706    case $ac_envvar in #(
1707      '' | [0-9]* | *[!_$as_cr_alnum]* )
1708      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1709    esac
1710    eval $ac_envvar=\$ac_optarg
1711    export $ac_envvar ;;
1712
1713  *)
1714    # FIXME: should be removed in autoconf 3.0.
1715    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1716    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1717      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1718    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1719    ;;
1720
1721  esac
1722done
1723
1724if test -n "$ac_prev"; then
1725  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1726  as_fn_error $? "missing argument to $ac_option"
1727fi
1728
1729if test -n "$ac_unrecognized_opts"; then
1730  case $enable_option_checking in
1731    no) ;;
1732    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1733    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1734  esac
1735fi
1736
1737# Check all directory arguments for consistency.
1738for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1739		datadir sysconfdir sharedstatedir localstatedir includedir \
1740		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1741		libdir localedir mandir runstatedir
1742do
1743  eval ac_val=\$$ac_var
1744  # Remove trailing slashes.
1745  case $ac_val in
1746    */ )
1747      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1748      eval $ac_var=\$ac_val;;
1749  esac
1750  # Be sure to have absolute directory names.
1751  case $ac_val in
1752    [\\/$]* | ?:[\\/]* )  continue;;
1753    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1754  esac
1755  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1756done
1757
1758# There might be people who depend on the old broken behavior: `$host'
1759# used to hold the argument of --host etc.
1760# FIXME: To remove some day.
1761build=$build_alias
1762host=$host_alias
1763target=$target_alias
1764
1765# FIXME: To remove some day.
1766if test "x$host_alias" != x; then
1767  if test "x$build_alias" = x; then
1768    cross_compiling=maybe
1769  elif test "x$build_alias" != "x$host_alias"; then
1770    cross_compiling=yes
1771  fi
1772fi
1773
1774ac_tool_prefix=
1775test -n "$host_alias" && ac_tool_prefix=$host_alias-
1776
1777test "$silent" = yes && exec 6>/dev/null
1778
1779
1780ac_pwd=`pwd` && test -n "$ac_pwd" &&
1781ac_ls_di=`ls -di .` &&
1782ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1783  as_fn_error $? "working directory cannot be determined"
1784test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1785  as_fn_error $? "pwd does not report name of working directory"
1786
1787
1788# Find the source files, if location was not specified.
1789if test -z "$srcdir"; then
1790  ac_srcdir_defaulted=yes
1791  # Try the directory containing this script, then the parent directory.
1792  ac_confdir=`$as_dirname -- "$as_myself" ||
1793$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1794	 X"$as_myself" : 'X\(//\)[^/]' \| \
1795	 X"$as_myself" : 'X\(//\)$' \| \
1796	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1797printf "%s\n" X"$as_myself" |
1798    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1799	    s//\1/
1800	    q
1801	  }
1802	  /^X\(\/\/\)[^/].*/{
1803	    s//\1/
1804	    q
1805	  }
1806	  /^X\(\/\/\)$/{
1807	    s//\1/
1808	    q
1809	  }
1810	  /^X\(\/\).*/{
1811	    s//\1/
1812	    q
1813	  }
1814	  s/.*/./; q'`
1815  srcdir=$ac_confdir
1816  if test ! -r "$srcdir/$ac_unique_file"; then
1817    srcdir=..
1818  fi
1819else
1820  ac_srcdir_defaulted=no
1821fi
1822if test ! -r "$srcdir/$ac_unique_file"; then
1823  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1824  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1825fi
1826ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1827ac_abs_confdir=`(
1828	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1829	pwd)`
1830# When building in place, set srcdir=.
1831if test "$ac_abs_confdir" = "$ac_pwd"; then
1832  srcdir=.
1833fi
1834# Remove unnecessary trailing slashes from srcdir.
1835# Double slashes in file names in object file debugging info
1836# mess up M-x gdb in Emacs.
1837case $srcdir in
1838*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1839esac
1840for ac_var in $ac_precious_vars; do
1841  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1842  eval ac_env_${ac_var}_value=\$${ac_var}
1843  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1844  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1845done
1846
1847#
1848# Report the --help message.
1849#
1850if test "$ac_init_help" = "long"; then
1851  # Omit some internal or obsolete options to make the list less imposing.
1852  # This message is too long to be a string in the A/UX 3.1 sh.
1853  cat <<_ACEOF
1854\`configure' configures curl - to adapt to many kinds of systems.
1855
1856Usage: $0 [OPTION]... [VAR=VALUE]...
1857
1858To assign environment variables (e.g., CC, CFLAGS...), specify them as
1859VAR=VALUE.  See below for descriptions of some of the useful variables.
1860
1861Defaults for the options are specified in brackets.
1862
1863Configuration:
1864  -h, --help              display this help and exit
1865      --help=short        display options specific to this package
1866      --help=recursive    display the short help of all the included packages
1867  -V, --version           display version information and exit
1868  -q, --quiet, --silent   do not print \`checking ...' messages
1869      --cache-file=FILE   cache test results in FILE [disabled]
1870  -C, --config-cache      alias for \`--cache-file=config.cache'
1871  -n, --no-create         do not create output files
1872      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1873
1874Installation directories:
1875  --prefix=PREFIX         install architecture-independent files in PREFIX
1876                          [$ac_default_prefix]
1877  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1878                          [PREFIX]
1879
1880By default, \`make install' will install all the files in
1881\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1882an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1883for instance \`--prefix=\$HOME'.
1884
1885For better control, use the options below.
1886
1887Fine tuning of the installation directories:
1888  --bindir=DIR            user executables [EPREFIX/bin]
1889  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1890  --libexecdir=DIR        program executables [EPREFIX/libexec]
1891  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1892  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1893  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1894  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1895  --libdir=DIR            object code libraries [EPREFIX/lib]
1896  --includedir=DIR        C header files [PREFIX/include]
1897  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1898  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1899  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1900  --infodir=DIR           info documentation [DATAROOTDIR/info]
1901  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1902  --mandir=DIR            man documentation [DATAROOTDIR/man]
1903  --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1904  --htmldir=DIR           html documentation [DOCDIR]
1905  --dvidir=DIR            dvi documentation [DOCDIR]
1906  --pdfdir=DIR            pdf documentation [DOCDIR]
1907  --psdir=DIR             ps documentation [DOCDIR]
1908_ACEOF
1909
1910  cat <<\_ACEOF
1911
1912Program names:
1913  --program-prefix=PREFIX            prepend PREFIX to installed program names
1914  --program-suffix=SUFFIX            append SUFFIX to installed program names
1915  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1916
1917System types:
1918  --build=BUILD     configure for building on BUILD [guessed]
1919  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1920_ACEOF
1921fi
1922
1923if test -n "$ac_init_help"; then
1924  case $ac_init_help in
1925     short | recursive ) echo "Configuration of curl -:";;
1926   esac
1927  cat <<\_ACEOF
1928
1929Optional Features:
1930  --disable-option-checking  ignore unrecognized --enable/--with options
1931  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1932  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1933  --enable-maintainer-mode
1934                          enable make rules and dependencies not useful (and
1935                          sometimes confusing) to the casual installer
1936  --enable-silent-rules   less verbose build output (undo: "make V=1")
1937  --disable-silent-rules  verbose build output (undo: "make V=0")
1938  --enable-debug          Enable debug build options
1939  --disable-debug         Disable debug build options
1940  --enable-optimize       Enable compiler optimizations
1941  --disable-optimize      Disable compiler optimizations
1942  --enable-warnings       Enable strict compiler warnings
1943  --disable-warnings      Disable strict compiler warnings
1944  --enable-werror         Enable compiler warnings as errors
1945  --disable-werror        Disable compiler warnings as errors
1946  --enable-curldebug      Enable curl debug memory tracking
1947  --disable-curldebug     Disable curl debug memory tracking
1948  --enable-symbol-hiding  Enable hiding of library internal symbols
1949  --disable-symbol-hiding Disable hiding of library internal symbols
1950  --enable-ares[=PATH]    Enable c-ares for DNS lookups
1951  --disable-ares          Disable c-ares for DNS lookups
1952  --disable-rt            disable dependency on -lrt
1953  --enable-httpsrr        Enable HTTPSRR support
1954  --disable-httpsrr       Disable HTTPSRR support
1955  --enable-ech            Enable ECH support
1956  --disable-ech           Disable ECH support
1957  --enable-code-coverage  Provide code coverage
1958  --enable-dependency-tracking
1959                          do not reject slow dependency extractors
1960  --disable-dependency-tracking
1961                          speeds up one-time build
1962  --disable-largefile     omit support for large files
1963  --enable-shared[=PKGS]  build shared libraries [default=yes]
1964  --enable-static[=PKGS]  build static libraries [default=yes]
1965  --enable-fast-install[=PKGS]
1966                          optimize for fast installation [default=yes]
1967  --disable-libtool-lock  avoid locking (might break parallel builds)
1968  --enable-http           Enable HTTP support
1969  --disable-http          Disable HTTP support
1970  --enable-ftp            Enable FTP support
1971  --disable-ftp           Disable FTP support
1972  --enable-file           Enable FILE support
1973  --disable-file          Disable FILE support
1974  --enable-ldap           Enable LDAP support
1975  --disable-ldap          Disable LDAP support
1976  --enable-ldaps          Enable LDAPS support
1977  --disable-ldaps         Disable LDAPS support
1978  --enable-rtsp           Enable RTSP support
1979  --disable-rtsp          Disable RTSP support
1980  --enable-proxy          Enable proxy support
1981  --disable-proxy         Disable proxy support
1982  --enable-dict           Enable DICT support
1983  --disable-dict          Disable DICT support
1984  --enable-telnet         Enable TELNET support
1985  --disable-telnet        Disable TELNET support
1986  --enable-tftp           Enable TFTP support
1987  --disable-tftp          Disable TFTP support
1988  --enable-pop3           Enable POP3 support
1989  --disable-pop3          Disable POP3 support
1990  --enable-imap           Enable IMAP support
1991  --disable-imap          Disable IMAP support
1992  --enable-smb            Enable SMB/CIFS support
1993  --disable-smb           Disable SMB/CIFS support
1994  --enable-smtp           Enable SMTP support
1995  --disable-smtp          Disable SMTP support
1996  --enable-gopher         Enable Gopher support
1997  --disable-gopher        Disable Gopher support
1998  --enable-mqtt           Enable MQTT support
1999  --disable-mqtt          Disable MQTT support
2000  --enable-manual         Enable built-in manual
2001  --disable-manual        Disable built-in manual
2002  --enable-docs           Enable documentation
2003  --disable-docs          Disable documentation
2004  --enable-libcurl-option Enable --libcurl C code generation support
2005  --disable-libcurl-option
2006                          Disable --libcurl C code generation support
2007  --enable-libgcc         use libgcc when linking
2008  --enable-ipv6           Enable IPv6 (with IPv4) support
2009  --disable-ipv6          Disable IPv6 support
2010  --enable-openssl-auto-load-config
2011                          Enable automatic loading of OpenSSL configuration
2012  --disable-openssl-auto-load-config
2013                          Disable automatic loading of OpenSSL configuration
2014  --enable-versioned-symbols
2015                          Enable versioned symbols in shared library
2016  --disable-versioned-symbols
2017                          Disable versioned symbols in shared library
2018  --enable-threaded-resolver
2019                          Enable threaded resolver
2020  --disable-threaded-resolver
2021                          Disable threaded resolver
2022  --enable-pthreads       Enable POSIX threads (default for threaded resolver)
2023  --disable-pthreads      Disable POSIX threads
2024  --enable-verbose        Enable verbose strings
2025  --disable-verbose       Disable verbose strings
2026  --enable-sspi           Enable SSPI
2027  --disable-sspi          Disable SSPI
2028  --enable-basic-auth     Enable basic authentication (default)
2029  --disable-basic-auth    Disable basic authentication
2030  --enable-bearer-auth    Enable bearer authentication (default)
2031  --disable-bearer-auth   Disable bearer authentication
2032  --enable-digest-auth    Enable digest authentication (default)
2033  --disable-digest-auth   Disable digest authentication
2034  --enable-kerberos-auth  Enable kerberos authentication (default)
2035  --disable-kerberos-auth Disable kerberos authentication
2036  --enable-negotiate-auth Enable negotiate authentication (default)
2037  --disable-negotiate-auth
2038                          Disable negotiate authentication
2039  --enable-aws            Enable AWS sig support (default)
2040  --disable-aws           Disable AWS sig support
2041  --enable-ntlm           Enable NTLM support
2042  --disable-ntlm          Disable NTLM support
2043  --enable-tls-srp        Enable TLS-SRP authentication
2044  --disable-tls-srp       Disable TLS-SRP authentication
2045  --enable-unix-sockets   Enable Unix domain sockets
2046  --disable-unix-sockets  Disable Unix domain sockets
2047  --enable-cookies        Enable cookies support
2048  --disable-cookies       Disable cookies support
2049  --enable-socketpair     Enable socketpair support
2050  --disable-socketpair    Disable socketpair support
2051  --enable-http-auth      Enable HTTP authentication support
2052  --disable-http-auth     Disable HTTP authentication support
2053  --enable-doh            Enable DoH support
2054  --disable-doh           Disable DoH support
2055  --enable-mime           Enable mime API support
2056  --disable-mime          Disable mime API support
2057  --enable-bindlocal      Enable local binding support
2058  --disable-bindlocal     Disable local binding support
2059  --enable-form-api       Enable form API support
2060  --disable-form-api      Disable form API support
2061  --enable-dateparse      Enable date parsing
2062  --disable-dateparse     Disable date parsing
2063  --enable-netrc          Enable netrc parsing
2064  --disable-netrc         Disable netrc parsing
2065  --enable-progress-meter Enable progress-meter
2066  --disable-progress-meter
2067                          Disable progress-meter
2068  --enable-dnsshuffle     Enable DNS shuffling
2069  --disable-dnsshuffle    Disable DNS shuffling
2070  --enable-get-easy-options
2071                          Enable curl_easy_options
2072  --disable-get-easy-options
2073                          Disable curl_easy_options
2074  --enable-alt-svc        Enable alt-svc support
2075  --disable-alt-svc       Disable alt-svc support
2076  --enable-headers-api    Enable headers-api support
2077  --disable-headers-api   Disable headers-api support
2078  --enable-hsts           Enable HSTS support
2079  --disable-hsts          Disable HSTS support
2080  --enable-websockets     Enable WebSockets support
2081  --disable-websockets    Disable WebSockets support
2082
2083Optional Packages:
2084  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2085  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2086  --with-schannel         enable Windows native SSL/TLS
2087  --with-secure-transport enable Apple OS native SSL/TLS
2088  --with-amissl           enable Amiga native SSL/TLS (AmiSSL)
2089  --with-ssl=PATH         old version of --with-openssl
2090  --without-ssl           build without any TLS library
2091  --with-openssl=PATH     Where to look for OpenSSL, PATH points to the SSL
2092                          installation (default: /usr/local/ssl); when
2093                          possible, set the PKG_CONFIG_PATH environment
2094                          variable instead of using this option
2095  --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
2096                          installation root
2097  --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2098                          installation root
2099  --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2100                          installation root (default: system lib default)
2101  --with-bearssl=PATH     where to look for BearSSL, PATH points to the
2102                          installation root
2103  --with-rustls=PATH      where to look for rustls, PATH points to the
2104                          installation root
2105  --with-test-nghttpx=PATH
2106                          where to find nghttpx for testing
2107  --with-test-caddy=PATH  where to find caddy for testing
2108  --with-test-vsftpd=PATH where to find vsftpd for testing
2109  --with-test-httpd=PATH  where to find httpd/apache2 for testing
2110
2111  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2112                          both]
2113  --with-aix-soname=aix|svr4|both
2114                          shared library versioning (aka "SONAME") variant to
2115                          provide on AIX, [default=aix].
2116  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2117  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2118                          compiler's sysroot if not specified).
2119  --with-hyper=PATH       Enable hyper usage
2120  --without-hyper         Disable hyper usage
2121  --with-zlib=PATH        search for zlib in PATH
2122  --without-zlib          disable use of zlib
2123  --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
2124                          installation; when possible, set the PKG_CONFIG_PATH
2125                          environment variable instead of using this option
2126  --without-brotli        disable BROTLI
2127  --with-zstd=PATH        Where to look for libzstd, PATH points to the
2128                          libzstd installation; when possible, set the
2129                          PKG_CONFIG_PATH environment variable instead of
2130                          using this option
2131  --without-zstd          disable libzstd
2132  --with-ldap-lib=libname Specify name of ldap lib file
2133  --with-lber-lib=libname Specify name of lber lib file
2134  --with-gssapi-includes=DIR
2135                          Specify location of GSS-API headers
2136  --with-gssapi-libs=DIR  Specify location of GSS-API libs
2137  --with-gssapi=DIR       Where to look for GSS-API
2138  --with-default-ssl-backend=NAME
2139                          Use NAME as default SSL backend
2140  --without-default-ssl-backend
2141                          Use implicit default SSL backend
2142  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
2143  --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2144                          /etc/ca-bundle.crt)
2145  --without-ca-bundle     Don't use a default CA bundle
2146  --with-ca-path=DIRECTORY
2147                          Path to a directory containing CA certificates
2148                          stored individually, with their filenames in a hash
2149                          format. This option can be used with the OpenSSL,
2150                          GnuTLS, mbedTLS and wolfSSL backends. Refer to
2151                          OpenSSL c_rehash for details. (example:
2152                          /etc/certificates)
2153  --without-ca-path       Don't use a default CA path
2154  --with-ca-fallback      Use the built in CA store of the SSL library
2155  --without-ca-fallback   Don't use the built in CA store of the SSL library
2156  --with-libpsl=PATH      Where to look for libpsl, PATH points to the LIBPSL
2157                          installation; when possible, set the PKG_CONFIG_PATH
2158                          environment variable instead of using this option
2159  --without-libpsl        disable LIBPSL
2160  --without-libgsasl      disable libgsasl support for SCRAM
2161  --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2162                          libssh2 installation; when possible, set the
2163                          PKG_CONFIG_PATH environment variable instead of
2164                          using this option
2165  --with-libssh2          enable libssh2
2166  --with-libssh=PATH      Where to look for libssh, PATH points to the libssh
2167                          installation; when possible, set the PKG_CONFIG_PATH
2168                          environment variable instead of using this option
2169  --with-libssh           enable libssh
2170  --with-wolfssh=PATH     Where to look for wolfssh, PATH points to the
2171                          wolfSSH installation; when possible, set the
2172                          PKG_CONFIG_PATH environment variable instead of
2173                          using this option
2174  --with-wolfssh          enable wolfssh
2175  --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2176                          LIBRTMP installation; when possible, set the
2177                          PKG_CONFIG_PATH environment variable instead of
2178                          using this option
2179  --without-librtmp       disable LIBRTMP
2180  --with-winidn=PATH      enable Windows native IDN
2181  --without-winidn        disable Windows native IDN
2182  --with-libidn2=PATH     Enable libidn2 usage
2183  --without-libidn2       Disable libidn2 usage
2184  --with-nghttp2=PATH     Enable nghttp2 usage
2185  --without-nghttp2       Disable nghttp2 usage
2186  --with-ngtcp2=PATH      Enable ngtcp2 usage
2187  --without-ngtcp2        Disable ngtcp2 usage
2188  --with-openssl-quic     Enable OpenSSL QUIC usage
2189  --without-openssl-quic  Disable OpenSSL QUIC usage
2190  --with-nghttp3=PATH     Enable nghttp3 usage
2191  --without-nghttp3       Disable nghttp3 usage
2192  --with-quiche=PATH      Enable quiche usage
2193  --without-quiche        Disable quiche usage
2194  --with-msh3=PATH        Enable msh3 usage
2195  --without-msh3          Disable msh3 usage
2196  --with-zsh-functions-dir=PATH
2197                          Install zsh completions to PATH
2198  --without-zsh-functions-dir
2199                          Do not install zsh completions
2200  --with-fish-functions-dir=PATH
2201                          Install fish completions to PATH
2202  --without-fish-functions-dir
2203                          Do not install fish completions
2204
2205Some influential environment variables:
2206  CC          C compiler command
2207  CFLAGS      C compiler flags
2208  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2209              nonstandard directory <lib dir>
2210  LIBS        libraries to pass to the linker, e.g. -l<library>
2211  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2212              you have headers in a nonstandard directory <include dir>
2213  CPP         C preprocessor
2214  LT_SYS_LIBRARY_PATH
2215              User-defined run-time library search path.
2216
2217Use these variables to override the choices made by `configure' or to help
2218it to find libraries and programs with nonstandard names/locations.
2219
2220Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2221_ACEOF
2222ac_status=$?
2223fi
2224
2225if test "$ac_init_help" = "recursive"; then
2226  # If there are subdirs, report their specific --help.
2227  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2228    test -d "$ac_dir" ||
2229      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2230      continue
2231    ac_builddir=.
2232
2233case "$ac_dir" in
2234.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2235*)
2236  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2237  # A ".." for each directory in $ac_dir_suffix.
2238  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2239  case $ac_top_builddir_sub in
2240  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2241  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2242  esac ;;
2243esac
2244ac_abs_top_builddir=$ac_pwd
2245ac_abs_builddir=$ac_pwd$ac_dir_suffix
2246# for backward compatibility:
2247ac_top_builddir=$ac_top_build_prefix
2248
2249case $srcdir in
2250  .)  # We are building in place.
2251    ac_srcdir=.
2252    ac_top_srcdir=$ac_top_builddir_sub
2253    ac_abs_top_srcdir=$ac_pwd ;;
2254  [\\/]* | ?:[\\/]* )  # Absolute name.
2255    ac_srcdir=$srcdir$ac_dir_suffix;
2256    ac_top_srcdir=$srcdir
2257    ac_abs_top_srcdir=$srcdir ;;
2258  *) # Relative name.
2259    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2260    ac_top_srcdir=$ac_top_build_prefix$srcdir
2261    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2262esac
2263ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2264
2265    cd "$ac_dir" || { ac_status=$?; continue; }
2266    # Check for configure.gnu first; this name is used for a wrapper for
2267    # Metaconfig's "Configure" on case-insensitive file systems.
2268    if test -f "$ac_srcdir/configure.gnu"; then
2269      echo &&
2270      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2271    elif test -f "$ac_srcdir/configure"; then
2272      echo &&
2273      $SHELL "$ac_srcdir/configure" --help=recursive
2274    else
2275      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2276    fi || ac_status=$?
2277    cd "$ac_pwd" || { ac_status=$?; break; }
2278  done
2279fi
2280
2281test -n "$ac_init_help" && exit $ac_status
2282if $ac_init_version; then
2283  cat <<\_ACEOF
2284curl configure -
2285generated by GNU Autoconf 2.71
2286
2287Copyright (C) 2021 Free Software Foundation, Inc.
2288This configure script is free software; the Free Software Foundation
2289gives unlimited permission to copy, distribute and modify it.
2290
2291Copyright (C) Daniel Stenberg, <daniel@haxx.se>
2292This configure script may be copied, distributed and modified under the
2293terms of the curl license; see COPYING for more details
2294_ACEOF
2295  exit
2296fi
2297
2298## ------------------------ ##
2299## Autoconf initialization. ##
2300## ------------------------ ##
2301
2302# ac_fn_c_try_compile LINENO
2303# --------------------------
2304# Try to compile conftest.$ac_ext, and return whether this succeeded.
2305ac_fn_c_try_compile ()
2306{
2307  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308  rm -f conftest.$ac_objext conftest.beam
2309  if { { ac_try="$ac_compile"
2310case "(($ac_try" in
2311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312  *) ac_try_echo=$ac_try;;
2313esac
2314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315printf "%s\n" "$ac_try_echo"; } >&5
2316  (eval "$ac_compile") 2>conftest.err
2317  ac_status=$?
2318  if test -s conftest.err; then
2319    grep -v '^ *+' conftest.err >conftest.er1
2320    cat conftest.er1 >&5
2321    mv -f conftest.er1 conftest.err
2322  fi
2323  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324  test $ac_status = 0; } && {
2325	 test -z "$ac_c_werror_flag" ||
2326	 test ! -s conftest.err
2327       } && test -s conftest.$ac_objext
2328then :
2329  ac_retval=0
2330else $as_nop
2331  printf "%s\n" "$as_me: failed program was:" >&5
2332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334	ac_retval=1
2335fi
2336  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337  as_fn_set_status $ac_retval
2338
2339} # ac_fn_c_try_compile
2340
2341# ac_fn_c_try_cpp LINENO
2342# ----------------------
2343# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2344ac_fn_c_try_cpp ()
2345{
2346  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347  if { { ac_try="$ac_cpp conftest.$ac_ext"
2348case "(($ac_try" in
2349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350  *) ac_try_echo=$ac_try;;
2351esac
2352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2353printf "%s\n" "$ac_try_echo"; } >&5
2354  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2355  ac_status=$?
2356  if test -s conftest.err; then
2357    grep -v '^ *+' conftest.err >conftest.er1
2358    cat conftest.er1 >&5
2359    mv -f conftest.er1 conftest.err
2360  fi
2361  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362  test $ac_status = 0; } > conftest.i && {
2363	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2364	 test ! -s conftest.err
2365       }
2366then :
2367  ac_retval=0
2368else $as_nop
2369  printf "%s\n" "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372    ac_retval=1
2373fi
2374  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375  as_fn_set_status $ac_retval
2376
2377} # ac_fn_c_try_cpp
2378
2379# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2380# -------------------------------------------------------
2381# Tests whether HEADER exists and can be compiled using the include files in
2382# INCLUDES, setting the cache variable VAR accordingly.
2383ac_fn_c_check_header_compile ()
2384{
2385  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387printf %s "checking for $2... " >&6; }
2388if eval test \${$3+y}
2389then :
2390  printf %s "(cached) " >&6
2391else $as_nop
2392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393/* end confdefs.h.  */
2394$4
2395#include <$2>
2396_ACEOF
2397if ac_fn_c_try_compile "$LINENO"
2398then :
2399  eval "$3=yes"
2400else $as_nop
2401  eval "$3=no"
2402fi
2403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2404fi
2405eval ac_res=\$$3
2406	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407printf "%s\n" "$ac_res" >&6; }
2408  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409
2410} # ac_fn_c_check_header_compile
2411
2412# ac_fn_c_try_link LINENO
2413# -----------------------
2414# Try to link conftest.$ac_ext, and return whether this succeeded.
2415ac_fn_c_try_link ()
2416{
2417  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2419  if { { ac_try="$ac_link"
2420case "(($ac_try" in
2421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422  *) ac_try_echo=$ac_try;;
2423esac
2424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425printf "%s\n" "$ac_try_echo"; } >&5
2426  (eval "$ac_link") 2>conftest.err
2427  ac_status=$?
2428  if test -s conftest.err; then
2429    grep -v '^ *+' conftest.err >conftest.er1
2430    cat conftest.er1 >&5
2431    mv -f conftest.er1 conftest.err
2432  fi
2433  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434  test $ac_status = 0; } && {
2435	 test -z "$ac_c_werror_flag" ||
2436	 test ! -s conftest.err
2437       } && test -s conftest$ac_exeext && {
2438	 test "$cross_compiling" = yes ||
2439	 test -x conftest$ac_exeext
2440       }
2441then :
2442  ac_retval=0
2443else $as_nop
2444  printf "%s\n" "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447	ac_retval=1
2448fi
2449  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2450  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2451  # interfere with the next link command; also delete a directory that is
2452  # left behind by Apple's compiler.  We do this before executing the actions.
2453  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2454  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455  as_fn_set_status $ac_retval
2456
2457} # ac_fn_c_try_link
2458
2459# ac_fn_c_check_func LINENO FUNC VAR
2460# ----------------------------------
2461# Tests whether FUNC exists, setting the cache variable VAR accordingly
2462ac_fn_c_check_func ()
2463{
2464  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2466printf %s "checking for $2... " >&6; }
2467if eval test \${$3+y}
2468then :
2469  printf %s "(cached) " >&6
2470else $as_nop
2471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472/* end confdefs.h.  */
2473
2474#define $2 innocuous_$2
2475#ifdef __STDC__
2476# include <limits.h>
2477#else
2478# include <assert.h>
2479#endif
2480#undef $2
2481#ifdef __cplusplus
2482extern "C"
2483#endif
2484char $2 ();
2485#if defined __stub_$2 || defined __stub___$2
2486choke me
2487#endif
2488
2489int main (void)
2490{
2491return $2 ();
2492 ;
2493 return 0;
2494}
2495_ACEOF
2496if ac_fn_c_try_link "$LINENO"
2497then :
2498  eval "$3=yes"
2499else $as_nop
2500  eval "$3=no"
2501fi
2502rm -f core conftest.err conftest.$ac_objext conftest.beam \
2503    conftest$ac_exeext conftest.$ac_ext
2504fi
2505eval ac_res=\$$3
2506	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2507printf "%s\n" "$ac_res" >&6; }
2508  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2509
2510} # ac_fn_c_check_func
2511
2512# ac_fn_c_try_run LINENO
2513# ----------------------
2514# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2515# executables *can* be run.
2516ac_fn_c_try_run ()
2517{
2518  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519  if { { ac_try="$ac_link"
2520case "(($ac_try" in
2521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522  *) ac_try_echo=$ac_try;;
2523esac
2524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2525printf "%s\n" "$ac_try_echo"; } >&5
2526  (eval "$ac_link") 2>&5
2527  ac_status=$?
2528  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2530  { { case "(($ac_try" in
2531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532  *) ac_try_echo=$ac_try;;
2533esac
2534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535printf "%s\n" "$ac_try_echo"; } >&5
2536  (eval "$ac_try") 2>&5
2537  ac_status=$?
2538  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539  test $ac_status = 0; }; }
2540then :
2541  ac_retval=0
2542else $as_nop
2543  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2544       printf "%s\n" "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547       ac_retval=$ac_status
2548fi
2549  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2550  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551  as_fn_set_status $ac_retval
2552
2553} # ac_fn_c_try_run
2554
2555# ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
2556# -------------------------------------------------------
2557# Tests whether TYPE exists after having included INCLUDES, setting cache
2558# variable VAR accordingly.
2559ac_fn_c_check_type ()
2560{
2561  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563printf %s "checking for $2... " >&6; }
2564if eval test \${$3+y}
2565then :
2566  printf %s "(cached) " >&6
2567else $as_nop
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"
2581then :
2582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583/* end confdefs.h.  */
2584$4
2585int main (void)
2586{
2587if (sizeof (($2)))
2588	    return 0;
2589 ;
2590 return 0;
2591}
2592_ACEOF
2593if ac_fn_c_try_compile "$LINENO"
2594then :
2595
2596else $as_nop
2597  eval "$3=yes"
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2602fi
2603eval ac_res=\$$3
2604	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605printf "%s\n" "$ac_res" >&6; }
2606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2607
2608} # ac_fn_c_check_type
2609
2610# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2611# ------------------------------------------------------------------
2612# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2613# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2614ac_fn_check_decl ()
2615{
2616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617  as_decl_name=`echo $2|sed 's/ *(.*//'`
2618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2619printf %s "checking whether $as_decl_name is declared... " >&6; }
2620if eval test \${$3+y}
2621then :
2622  printf %s "(cached) " >&6
2623else $as_nop
2624  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2625  eval ac_save_FLAGS=\$$6
2626  as_fn_append $6 " $5"
2627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628/* end confdefs.h.  */
2629$4
2630int main (void)
2631{
2632#ifndef $as_decl_name
2633#ifdef __cplusplus
2634  (void) $as_decl_use;
2635#else
2636  (void) $as_decl_name;
2637#endif
2638#endif
2639
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644if ac_fn_c_try_compile "$LINENO"
2645then :
2646  eval "$3=yes"
2647else $as_nop
2648  eval "$3=no"
2649fi
2650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2651  eval $6=\$ac_save_FLAGS
2652
2653fi
2654eval ac_res=\$$3
2655	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2656printf "%s\n" "$ac_res" >&6; }
2657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2658
2659} # ac_fn_check_decl
2660
2661# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2662# ----------------------------------------------------
2663# Tries to find if the field MEMBER exists in type AGGR, after including
2664# INCLUDES, setting cache variable VAR accordingly.
2665ac_fn_c_check_member ()
2666{
2667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2669printf %s "checking for $2.$3... " >&6; }
2670if eval test \${$4+y}
2671then :
2672  printf %s "(cached) " >&6
2673else $as_nop
2674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675/* end confdefs.h.  */
2676$5
2677int main (void)
2678{
2679static $2 ac_aggr;
2680if (ac_aggr.$3)
2681return 0;
2682 ;
2683 return 0;
2684}
2685_ACEOF
2686if ac_fn_c_try_compile "$LINENO"
2687then :
2688  eval "$4=yes"
2689else $as_nop
2690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691/* end confdefs.h.  */
2692$5
2693int main (void)
2694{
2695static $2 ac_aggr;
2696if (sizeof ac_aggr.$3)
2697return 0;
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702if ac_fn_c_try_compile "$LINENO"
2703then :
2704  eval "$4=yes"
2705else $as_nop
2706  eval "$4=no"
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2709fi
2710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2711fi
2712eval ac_res=\$$4
2713	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2714printf "%s\n" "$ac_res" >&6; }
2715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2716
2717} # ac_fn_c_check_member
2718ac_configure_args_raw=
2719for ac_arg
2720do
2721  case $ac_arg in
2722  *\'*)
2723    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2724  esac
2725  as_fn_append ac_configure_args_raw " '$ac_arg'"
2726done
2727
2728case $ac_configure_args_raw in
2729  *$as_nl*)
2730    ac_safe_unquote= ;;
2731  *)
2732    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2733    ac_unsafe_a="$ac_unsafe_z#~"
2734    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2735    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2736esac
2737
2738cat >config.log <<_ACEOF
2739This file contains any messages produced by compilers while
2740running configure, to aid debugging if configure makes a mistake.
2741
2742It was created by curl $as_me -, which was
2743generated by GNU Autoconf 2.71.  Invocation command line was
2744
2745  $ $0$ac_configure_args_raw
2746
2747_ACEOF
2748exec 5>>config.log
2749{
2750cat <<_ASUNAME
2751## --------- ##
2752## Platform. ##
2753## --------- ##
2754
2755hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2756uname -m = `(uname -m) 2>/dev/null || echo unknown`
2757uname -r = `(uname -r) 2>/dev/null || echo unknown`
2758uname -s = `(uname -s) 2>/dev/null || echo unknown`
2759uname -v = `(uname -v) 2>/dev/null || echo unknown`
2760
2761/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2762/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2763
2764/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2765/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2766/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2767/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2768/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2769/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2770/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2771
2772_ASUNAME
2773
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777  IFS=$as_save_IFS
2778  case $as_dir in #(((
2779    '') as_dir=./ ;;
2780    */) ;;
2781    *) as_dir=$as_dir/ ;;
2782  esac
2783    printf "%s\n" "PATH: $as_dir"
2784  done
2785IFS=$as_save_IFS
2786
2787} >&5
2788
2789cat >&5 <<_ACEOF
2790
2791
2792## ----------- ##
2793## Core tests. ##
2794## ----------- ##
2795
2796_ACEOF
2797
2798
2799# Keep a trace of the command line.
2800# Strip out --no-create and --no-recursion so they do not pile up.
2801# Strip out --silent because we don't want to record it for future runs.
2802# Also quote any args containing shell meta-characters.
2803# Make two passes to allow for proper duplicate-argument suppression.
2804ac_configure_args=
2805ac_configure_args0=
2806ac_configure_args1=
2807ac_must_keep_next=false
2808for ac_pass in 1 2
2809do
2810  for ac_arg
2811  do
2812    case $ac_arg in
2813    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2814    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2815    | -silent | --silent | --silen | --sile | --sil)
2816      continue ;;
2817    *\'*)
2818      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2819    esac
2820    case $ac_pass in
2821    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2822    2)
2823      as_fn_append ac_configure_args1 " '$ac_arg'"
2824      if test $ac_must_keep_next = true; then
2825	ac_must_keep_next=false # Got value, back to normal.
2826      else
2827	case $ac_arg in
2828	  *=* | --config-cache | -C | -disable-* | --disable-* \
2829	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2830	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2831	  | -with-* | --with-* | -without-* | --without-* | --x)
2832	    case "$ac_configure_args0 " in
2833	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2834	    esac
2835	    ;;
2836	  -* ) ac_must_keep_next=true ;;
2837	esac
2838      fi
2839      as_fn_append ac_configure_args " '$ac_arg'"
2840      ;;
2841    esac
2842  done
2843done
2844{ ac_configure_args0=; unset ac_configure_args0;}
2845{ ac_configure_args1=; unset ac_configure_args1;}
2846
2847# When interrupted or exit'd, cleanup temporary files, and complete
2848# config.log.  We remove comments because anyway the quotes in there
2849# would cause problems or look ugly.
2850# WARNING: Use '\'' to represent an apostrophe within the trap.
2851# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2852trap 'exit_status=$?
2853  # Sanitize IFS.
2854  IFS=" ""	$as_nl"
2855  # Save into config.log some information that might help in debugging.
2856  {
2857    echo
2858
2859    printf "%s\n" "## ---------------- ##
2860## Cache variables. ##
2861## ---------------- ##"
2862    echo
2863    # The following way of writing the cache mishandles newlines in values,
2864(
2865  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2866    eval ac_val=\$$ac_var
2867    case $ac_val in #(
2868    *${as_nl}*)
2869      case $ac_var in #(
2870      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2872      esac
2873      case $ac_var in #(
2874      _ | IFS | as_nl) ;; #(
2875      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876      *) { eval $ac_var=; unset $ac_var;} ;;
2877      esac ;;
2878    esac
2879  done
2880  (set) 2>&1 |
2881    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2882    *${as_nl}ac_space=\ *)
2883      sed -n \
2884	"s/'\''/'\''\\\\'\'''\''/g;
2885	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2886      ;; #(
2887    *)
2888      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2889      ;;
2890    esac |
2891    sort
2892)
2893    echo
2894
2895    printf "%s\n" "## ----------------- ##
2896## Output variables. ##
2897## ----------------- ##"
2898    echo
2899    for ac_var in $ac_subst_vars
2900    do
2901      eval ac_val=\$$ac_var
2902      case $ac_val in
2903      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2904      esac
2905      printf "%s\n" "$ac_var='\''$ac_val'\''"
2906    done | sort
2907    echo
2908
2909    if test -n "$ac_subst_files"; then
2910      printf "%s\n" "## ------------------- ##
2911## File substitutions. ##
2912## ------------------- ##"
2913      echo
2914      for ac_var in $ac_subst_files
2915      do
2916	eval ac_val=\$$ac_var
2917	case $ac_val in
2918	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2919	esac
2920	printf "%s\n" "$ac_var='\''$ac_val'\''"
2921      done | sort
2922      echo
2923    fi
2924
2925    if test -s confdefs.h; then
2926      printf "%s\n" "## ----------- ##
2927## confdefs.h. ##
2928## ----------- ##"
2929      echo
2930      cat confdefs.h
2931      echo
2932    fi
2933    test "$ac_signal" != 0 &&
2934      printf "%s\n" "$as_me: caught signal $ac_signal"
2935    printf "%s\n" "$as_me: exit $exit_status"
2936  } >&5
2937  rm -f core *.core core.conftest.* &&
2938    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2939    exit $exit_status
2940' 0
2941for ac_signal in 1 2 13 15; do
2942  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2943done
2944ac_signal=0
2945
2946# confdefs.h avoids OS command line length limits that DEFS can exceed.
2947rm -f -r conftest* confdefs.h
2948
2949printf "%s\n" "/* confdefs.h */" > confdefs.h
2950
2951# Predefined preprocessor variables.
2952
2953printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2954
2955printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2956
2957printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2958
2959printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2960
2961printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2962
2963printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2964
2965
2966# Let the site file select an alternate cache file if it wants to.
2967# Prefer an explicitly selected file to automatically selected ones.
2968if test -n "$CONFIG_SITE"; then
2969  ac_site_files="$CONFIG_SITE"
2970elif test "x$prefix" != xNONE; then
2971  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2972else
2973  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2974fi
2975
2976for ac_site_file in $ac_site_files
2977do
2978  case $ac_site_file in #(
2979  */*) :
2980     ;; #(
2981  *) :
2982    ac_site_file=./$ac_site_file ;;
2983esac
2984  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2985    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2986printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2987    sed 's/^/| /' "$ac_site_file" >&5
2988    . "$ac_site_file" \
2989      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2991as_fn_error $? "failed to load site script $ac_site_file
2992See \`config.log' for more details" "$LINENO" 5; }
2993  fi
2994done
2995
2996if test -r "$cache_file"; then
2997  # Some versions of bash will fail to source /dev/null (special files
2998  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2999  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3000    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3001printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3002    case $cache_file in
3003      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3004      *)                      . "./$cache_file";;
3005    esac
3006  fi
3007else
3008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3009printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3010  >$cache_file
3011fi
3012
3013# Test code for whether the C compiler supports C89 (global declarations)
3014ac_c_conftest_c89_globals='
3015/* Does the compiler advertise C89 conformance?
3016   Do not test the value of __STDC__, because some compilers set it to 0
3017   while being otherwise adequately conformant. */
3018#if !defined __STDC__
3019# error "Compiler does not advertise C89 conformance"
3020#endif
3021
3022#include <stddef.h>
3023#include <stdarg.h>
3024struct stat;
3025/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3026struct buf { int x; };
3027struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3028static char *e (p, i)
3029     char **p;
3030     int i;
3031{
3032  return p[i];
3033}
3034static char *f (char * (*g) (char **, int), char **p, ...)
3035{
3036  char *s;
3037  va_list v;
3038  va_start (v,p);
3039  s = g (p, va_arg (v,int));
3040  va_end (v);
3041  return s;
3042}
3043
3044/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3045   function prototypes and stuff, but not \xHH hex character constants.
3046   These do not provoke an error unfortunately, instead are silently treated
3047   as an "x".  The following induces an error, until -std is added to get
3048   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3049   array size at least.  It is necessary to write \x00 == 0 to get something
3050   that is true only with -std.  */
3051int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3052
3053/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3054   inside strings and character constants.  */
3055#define FOO(x) '\''x'\''
3056int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3057
3058int test (int i, double x);
3059struct s1 {int (*f) (int a);};
3060struct s2 {int (*f) (double a);};
3061int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3062               int, int);'
3063
3064# Test code for whether the C compiler supports C89 (body of main).
3065ac_c_conftest_c89_main='
3066ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3067'
3068
3069# Test code for whether the C compiler supports C99 (global declarations)
3070ac_c_conftest_c99_globals='
3071// Does the compiler advertise C99 conformance?
3072#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3073# error "Compiler does not advertise C99 conformance"
3074#endif
3075
3076#include <stdbool.h>
3077extern int puts (const char *);
3078extern int printf (const char *, ...);
3079extern int dprintf (int, const char *, ...);
3080extern void *malloc (size_t);
3081
3082// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3083// dprintf is used instead of fprintf to avoid needing to declare
3084// FILE and stderr.
3085#define debug(...) dprintf (2, __VA_ARGS__)
3086#define showlist(...) puts (#__VA_ARGS__)
3087#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3088static void
3089test_varargs_macros (void)
3090{
3091  int x = 1234;
3092  int y = 5678;
3093  debug ("Flag");
3094  debug ("X = %d\n", x);
3095  showlist (The first, second, and third items.);
3096  report (x>y, "x is %d but y is %d", x, y);
3097}
3098
3099// Check long long types.
3100#define BIG64 18446744073709551615ull
3101#define BIG32 4294967295ul
3102#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3103#if !BIG_OK
3104  #error "your preprocessor is broken"
3105#endif
3106#if BIG_OK
3107#else
3108  #error "your preprocessor is broken"
3109#endif
3110static long long int bignum = -9223372036854775807LL;
3111static unsigned long long int ubignum = BIG64;
3112
3113struct incomplete_array
3114{
3115  int datasize;
3116  double data[];
3117};
3118
3119struct named_init {
3120  int number;
3121  const wchar_t *name;
3122  double average;
3123};
3124
3125typedef const char *ccp;
3126
3127static inline int
3128test_restrict (ccp restrict text)
3129{
3130  // See if C++-style comments work.
3131  // Iterate through items via the restricted pointer.
3132  // Also check for declarations in for loops.
3133  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3134    continue;
3135  return 0;
3136}
3137
3138// Check varargs and va_copy.
3139static bool
3140test_varargs (const char *format, ...)
3141{
3142  va_list args;
3143  va_start (args, format);
3144  va_list args_copy;
3145  va_copy (args_copy, args);
3146
3147  const char *str = "";
3148  int number = 0;
3149  float fnumber = 0;
3150
3151  while (*format)
3152    {
3153      switch (*format++)
3154	{
3155	case '\''s'\'': // string
3156	  str = va_arg (args_copy, const char *);
3157	  break;
3158	case '\''d'\'': // int
3159	  number = va_arg (args_copy, int);
3160	  break;
3161	case '\''f'\'': // float
3162	  fnumber = va_arg (args_copy, double);
3163	  break;
3164	default:
3165	  break;
3166	}
3167    }
3168  va_end (args_copy);
3169  va_end (args);
3170
3171  return *str && number && fnumber;
3172}
3173'
3174
3175# Test code for whether the C compiler supports C99 (body of main).
3176ac_c_conftest_c99_main='
3177  // Check bool.
3178  _Bool success = false;
3179  success |= (argc != 0);
3180
3181  // Check restrict.
3182  if (test_restrict ("String literal") == 0)
3183    success = true;
3184  char *restrict newvar = "Another string";
3185
3186  // Check varargs.
3187  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3188  test_varargs_macros ();
3189
3190  // Check flexible array members.
3191  struct incomplete_array *ia =
3192    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3193  ia->datasize = 10;
3194  for (int i = 0; i < ia->datasize; ++i)
3195    ia->data[i] = i * 1.234;
3196
3197  // Check named initializers.
3198  struct named_init ni = {
3199    .number = 34,
3200    .name = L"Test wide string",
3201    .average = 543.34343,
3202  };
3203
3204  ni.number = 58;
3205
3206  int dynamic_array[ni.number];
3207  dynamic_array[0] = argv[0][0];
3208  dynamic_array[ni.number - 1] = 543;
3209
3210  // work around unused variable warnings
3211  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3212	 || dynamic_array[ni.number - 1] != 543);
3213'
3214
3215# Test code for whether the C compiler supports C11 (global declarations)
3216ac_c_conftest_c11_globals='
3217// Does the compiler advertise C11 conformance?
3218#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3219# error "Compiler does not advertise C11 conformance"
3220#endif
3221
3222// Check _Alignas.
3223char _Alignas (double) aligned_as_double;
3224char _Alignas (0) no_special_alignment;
3225extern char aligned_as_int;
3226char _Alignas (0) _Alignas (int) aligned_as_int;
3227
3228// Check _Alignof.
3229enum
3230{
3231  int_alignment = _Alignof (int),
3232  int_array_alignment = _Alignof (int[100]),
3233  char_alignment = _Alignof (char)
3234};
3235_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3236
3237// Check _Noreturn.
3238int _Noreturn does_not_return (void) { for (;;) continue; }
3239
3240// Check _Static_assert.
3241struct test_static_assert
3242{
3243  int x;
3244  _Static_assert (sizeof (int) <= sizeof (long int),
3245                  "_Static_assert does not work in struct");
3246  long int y;
3247};
3248
3249// Check UTF-8 literals.
3250#define u8 syntax error!
3251char const utf8_literal[] = u8"happens to be ASCII" "another string";
3252
3253// Check duplicate typedefs.
3254typedef long *long_ptr;
3255typedef long int *long_ptr;
3256typedef long_ptr long_ptr;
3257
3258// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3259struct anonymous
3260{
3261  union {
3262    struct { int i; int j; };
3263    struct { int k; long int l; } w;
3264  };
3265  int m;
3266} v1;
3267'
3268
3269# Test code for whether the C compiler supports C11 (body of main).
3270ac_c_conftest_c11_main='
3271  _Static_assert ((offsetof (struct anonymous, i)
3272		   == offsetof (struct anonymous, w.k)),
3273		  "Anonymous union alignment botch");
3274  v1.i = 2;
3275  v1.w.k = 5;
3276  ok |= v1.i != 5;
3277'
3278
3279# Test code for whether the C compiler supports C11 (complete).
3280ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3281${ac_c_conftest_c99_globals}
3282${ac_c_conftest_c11_globals}
3283
3284int
3285main (int argc, char **argv)
3286{
3287  int ok = 0;
3288  ${ac_c_conftest_c89_main}
3289  ${ac_c_conftest_c99_main}
3290  ${ac_c_conftest_c11_main}
3291  return ok;
3292}
3293"
3294
3295# Test code for whether the C compiler supports C99 (complete).
3296ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3297${ac_c_conftest_c99_globals}
3298
3299int
3300main (int argc, char **argv)
3301{
3302  int ok = 0;
3303  ${ac_c_conftest_c89_main}
3304  ${ac_c_conftest_c99_main}
3305  return ok;
3306}
3307"
3308
3309# Test code for whether the C compiler supports C89 (complete).
3310ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3311
3312int
3313main (int argc, char **argv)
3314{
3315  int ok = 0;
3316  ${ac_c_conftest_c89_main}
3317  return ok;
3318}
3319"
3320
3321as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3322as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3323as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3324as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3325as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3326as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3327as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3328as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3329as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3330
3331# Auxiliary files required by this configure script.
3332ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3333
3334# Locations in which to look for auxiliary files.
3335ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3336
3337# Search for a directory containing all of the required auxiliary files,
3338# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3339# If we don't find one directory that contains all the files we need,
3340# we report the set of missing files from the *first* directory in
3341# $ac_aux_dir_candidates and give up.
3342ac_missing_aux_files=""
3343ac_first_candidate=:
3344printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346as_found=false
3347for as_dir in $ac_aux_dir_candidates
3348do
3349  IFS=$as_save_IFS
3350  case $as_dir in #(((
3351    '') as_dir=./ ;;
3352    */) ;;
3353    *) as_dir=$as_dir/ ;;
3354  esac
3355  as_found=:
3356
3357  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3358  ac_aux_dir_found=yes
3359  ac_install_sh=
3360  for ac_aux in $ac_aux_files
3361  do
3362    # As a special case, if "install-sh" is required, that requirement
3363    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3364    # and $ac_install_sh is set appropriately for whichever one is found.
3365    if test x"$ac_aux" = x"install-sh"
3366    then
3367      if test -f "${as_dir}install-sh"; then
3368        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3369        ac_install_sh="${as_dir}install-sh -c"
3370      elif test -f "${as_dir}install.sh"; then
3371        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3372        ac_install_sh="${as_dir}install.sh -c"
3373      elif test -f "${as_dir}shtool"; then
3374        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3375        ac_install_sh="${as_dir}shtool install -c"
3376      else
3377        ac_aux_dir_found=no
3378        if $ac_first_candidate; then
3379          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3380        else
3381          break
3382        fi
3383      fi
3384    else
3385      if test -f "${as_dir}${ac_aux}"; then
3386        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3387      else
3388        ac_aux_dir_found=no
3389        if $ac_first_candidate; then
3390          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3391        else
3392          break
3393        fi
3394      fi
3395    fi
3396  done
3397  if test "$ac_aux_dir_found" = yes; then
3398    ac_aux_dir="$as_dir"
3399    break
3400  fi
3401  ac_first_candidate=false
3402
3403  as_found=false
3404done
3405IFS=$as_save_IFS
3406if $as_found
3407then :
3408
3409else $as_nop
3410  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3411fi
3412
3413
3414# These three variables are undocumented and unsupported,
3415# and are intended to be withdrawn in a future Autoconf release.
3416# They can cause serious problems if a builder's source tree is in a directory
3417# whose full name contains unusual characters.
3418if test -f "${ac_aux_dir}config.guess"; then
3419  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3420fi
3421if test -f "${ac_aux_dir}config.sub"; then
3422  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3423fi
3424if test -f "$ac_aux_dir/configure"; then
3425  ac_configure="$SHELL ${ac_aux_dir}configure"
3426fi
3427
3428# Check that the precious variables saved in the cache have kept the same
3429# value.
3430ac_cache_corrupted=false
3431for ac_var in $ac_precious_vars; do
3432  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3433  eval ac_new_set=\$ac_env_${ac_var}_set
3434  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3435  eval ac_new_val=\$ac_env_${ac_var}_value
3436  case $ac_old_set,$ac_new_set in
3437    set,)
3438      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3439printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3440      ac_cache_corrupted=: ;;
3441    ,set)
3442      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3443printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3444      ac_cache_corrupted=: ;;
3445    ,);;
3446    *)
3447      if test "x$ac_old_val" != "x$ac_new_val"; then
3448	# differences in whitespace do not lead to failure.
3449	ac_old_val_w=`echo x $ac_old_val`
3450	ac_new_val_w=`echo x $ac_new_val`
3451	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3452	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3453printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3454	  ac_cache_corrupted=:
3455	else
3456	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3457printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3458	  eval $ac_var=\$ac_old_val
3459	fi
3460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3461printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3463printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3464      fi;;
3465  esac
3466  # Pass precious variables to config.status.
3467  if test "$ac_new_set" = set; then
3468    case $ac_new_val in
3469    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3470    *) ac_arg=$ac_var=$ac_new_val ;;
3471    esac
3472    case " $ac_configure_args " in
3473      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3474      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3475    esac
3476  fi
3477done
3478if $ac_cache_corrupted; then
3479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3482printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3483  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3484	    and start over" "$LINENO" 5
3485fi
3486## -------------------- ##
3487## Main body of script. ##
3488## -------------------- ##
3489
3490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
3497
3498
3499
3500
3501
3502# using curl-override.m4
3503
3504
3505
3506
3507
3508ac_config_headers="$ac_config_headers lib/curl_config.h"
3509
3510
3511
3512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3513printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3514    # Check whether --enable-maintainer-mode was given.
3515if test ${enable_maintainer_mode+y}
3516then :
3517  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3518else $as_nop
3519  USE_MAINTAINER_MODE=no
3520fi
3521
3522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3523printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3524   if test $USE_MAINTAINER_MODE = yes; then
3525  MAINTAINER_MODE_TRUE=
3526  MAINTAINER_MODE_FALSE='#'
3527else
3528  MAINTAINER_MODE_TRUE='#'
3529  MAINTAINER_MODE_FALSE=
3530fi
3531
3532  MAINT=$MAINTAINER_MODE_TRUE
3533
3534
3535# Check whether --enable-silent-rules was given.
3536if test ${enable_silent_rules+y}
3537then :
3538  enableval=$enable_silent_rules;
3539fi
3540
3541case $enable_silent_rules in # (((
3542  yes) AM_DEFAULT_VERBOSITY=0;;
3543   no) AM_DEFAULT_VERBOSITY=1;;
3544    *) AM_DEFAULT_VERBOSITY=0;;
3545esac
3546am_make=${MAKE-make}
3547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3548printf %s "checking whether $am_make supports nested variables... " >&6; }
3549if test ${am_cv_make_support_nested_variables+y}
3550then :
3551  printf %s "(cached) " >&6
3552else $as_nop
3553  if printf "%s\n" 'TRUE=$(BAR$(V))
3554BAR0=false
3555BAR1=true
3556V=1
3557am__doit:
3558	@$(TRUE)
3559.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3560  am_cv_make_support_nested_variables=yes
3561else
3562  am_cv_make_support_nested_variables=no
3563fi
3564fi
3565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3566printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3567if test $am_cv_make_support_nested_variables = yes; then
3568    AM_V='$(V)'
3569  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3570else
3571  AM_V=$AM_DEFAULT_VERBOSITY
3572  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3573fi
3574AM_BACKSLASH='\'
3575
3576
3577
3578        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3579printf %s "checking whether to enable debug build options... " >&6; }
3580  OPT_DEBUG_BUILD="default"
3581  # Check whether --enable-debug was given.
3582if test ${enable_debug+y}
3583then :
3584  enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3585fi
3586
3587  case "$OPT_DEBUG_BUILD" in
3588    no)
3589            want_debug="no"
3590      ;;
3591    default)
3592            want_debug="no"
3593      ;;
3594    *)
3595            want_debug="yes"
3596
3597printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3598
3599      ;;
3600  esac
3601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3602printf "%s\n" "$want_debug" >&6; }
3603
3604
3605      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3606printf %s "checking whether to enable compiler optimizer... " >&6; }
3607  OPT_COMPILER_OPTIMIZE="default"
3608  # Check whether --enable-optimize was given.
3609if test ${enable_optimize+y}
3610then :
3611  enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3612fi
3613
3614  case "$OPT_COMPILER_OPTIMIZE" in
3615    no)
3616                              want_optimize="no"
3617      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618printf "%s\n" "no" >&6; }
3619      ;;
3620    default)
3621                                                                        if test "$want_debug" = "yes"; then
3622        want_optimize="assume_no"
3623        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3624printf "%s\n" "(assumed) no" >&6; }
3625      else
3626        want_optimize="assume_yes"
3627        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3628printf "%s\n" "(assumed) yes" >&6; }
3629      fi
3630      ;;
3631    *)
3632                              want_optimize="yes"
3633      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3634printf "%s\n" "yes" >&6; }
3635      ;;
3636  esac
3637
3638
3639        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3640printf %s "checking whether to enable strict compiler warnings... " >&6; }
3641  OPT_COMPILER_WARNINGS="default"
3642  # Check whether --enable-warnings was given.
3643if test ${enable_warnings+y}
3644then :
3645  enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3646fi
3647
3648  case "$OPT_COMPILER_WARNINGS" in
3649    no)
3650            want_warnings="no"
3651      ;;
3652    default)
3653                  want_warnings="$want_debug"
3654      ;;
3655    *)
3656            want_warnings="yes"
3657      ;;
3658  esac
3659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3660printf "%s\n" "$want_warnings" >&6; }
3661
3662
3663    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3664printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3665  OPT_COMPILER_WERROR="default"
3666  # Check whether --enable-werror was given.
3667if test ${enable_werror+y}
3668then :
3669  enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3670fi
3671
3672  case "$OPT_COMPILER_WERROR" in
3673    no)
3674            want_werror="no"
3675      ;;
3676    default)
3677            want_werror="no"
3678      ;;
3679    *)
3680            want_werror="yes"
3681      ;;
3682  esac
3683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3684printf "%s\n" "$want_werror" >&6; }
3685
3686
3687    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3688printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3689  OPT_CURLDEBUG_BUILD="default"
3690  # Check whether --enable-curldebug was given.
3691if test ${enable_curldebug+y}
3692then :
3693  enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3694fi
3695
3696  case "$OPT_CURLDEBUG_BUILD" in
3697    no)
3698            want_curldebug="no"
3699      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700printf "%s\n" "no" >&6; }
3701      ;;
3702    default)
3703                                          if test "$want_debug" = "yes"; then
3704        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3705printf "%s\n" "(assumed) yes" >&6; }
3706
3707printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3708
3709      else
3710        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711printf "%s\n" "no" >&6; }
3712      fi
3713      want_curldebug_assumed="yes"
3714      want_curldebug="$want_debug"
3715      ;;
3716    *)
3717                                                      want_curldebug="yes"
3718
3719printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3720
3721      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722printf "%s\n" "yes" >&6; }
3723      ;;
3724  esac
3725
3726
3727    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3728printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3729  OPT_SYMBOL_HIDING="default"
3730  # Check whether --enable-symbol-hiding was given.
3731if test ${enable_symbol_hiding+y}
3732then :
3733  enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3734fi
3735
3736  case "$OPT_SYMBOL_HIDING" in
3737    no)
3738                              want_symbol_hiding="no"
3739      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740printf "%s\n" "no" >&6; }
3741      ;;
3742    default)
3743                  want_symbol_hiding="yes"
3744      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3745printf "%s\n" "yes" >&6; }
3746      ;;
3747    *)
3748                        want_symbol_hiding="yes"
3749      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3750printf "%s\n" "yes" >&6; }
3751      ;;
3752  esac
3753
3754
3755    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3756printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3757  OPT_ARES="default"
3758  # Check whether --enable-ares was given.
3759if test ${enable_ares+y}
3760then :
3761  enableval=$enable_ares; OPT_ARES=$enableval
3762fi
3763
3764  case "$OPT_ARES" in
3765    no)
3766            want_ares="no"
3767      ;;
3768    default)
3769            want_ares="no"
3770      ;;
3771    *)
3772            want_ares="yes"
3773      if test -n "$enableval" && test "$enableval" != "yes"; then
3774        want_ares_path="$enableval"
3775      fi
3776      ;;
3777  esac
3778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3779printf "%s\n" "$want_ares" >&6; }
3780
3781
3782    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3783printf %s "checking whether to disable dependency on -lrt... " >&6; }
3784  OPT_RT="default"
3785  # Check whether --enable-rt was given.
3786if test ${enable_rt+y}
3787then :
3788  enableval=$enable_rt; OPT_RT=$enableval
3789fi
3790
3791  case "$OPT_RT" in
3792    no)
3793            dontwant_rt="yes"
3794      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3795printf "%s\n" "yes" >&6; }
3796      ;;
3797    default)
3798            dontwant_rt="no"
3799      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3800printf "%s\n" "(assumed no)" >&6; }
3801      ;;
3802    *)
3803            dontwant_rt="no"
3804      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805printf "%s\n" "no" >&6; }
3806      ;;
3807  esac
3808
3809
3810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable HTTPSRR support" >&5
3811printf %s "checking whether to enable HTTPSRR support... " >&6; }
3812  OPT_HTTPSRR="default"
3813  # Check whether --enable-httpsrr was given.
3814if test ${enable_httpsrr+y}
3815then :
3816  enableval=$enable_httpsrr; OPT_HTTPSRR=$enableval
3817fi
3818
3819  case "$OPT_HTTPSRR" in
3820    no)
3821            want_httpsrr="no"
3822      curl_httpsrr_msg="no      (--enable-httpsrr)"
3823      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824printf "%s\n" "no" >&6; }
3825      ;;
3826    default)
3827            want_httpsrr="no"
3828      curl_httpsrr_msg="no      (--enable-httpsrr)"
3829      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830printf "%s\n" "no" >&6; }
3831      ;;
3832    *)
3833            want_httpsrr="yes"
3834      curl_httpsrr_msg="enabled (--disable-httpsrr)"
3835      experimental="httpsrr"
3836      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837printf "%s\n" "yes" >&6; }
3838      ;;
3839  esac
3840
3841
3842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3843printf %s "checking whether to enable ECH support... " >&6; }
3844  OPT_ECH="default"
3845  # Check whether --enable-ech was given.
3846if test ${enable_ech+y}
3847then :
3848  enableval=$enable_ech; OPT_ECH=$enableval
3849fi
3850
3851  case "$OPT_ECH" in
3852    no)
3853            want_ech="no"
3854      curl_ech_msg="no      (--enable-ech)"
3855      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856printf "%s\n" "no" >&6; }
3857      ;;
3858    default)
3859            want_ech="no"
3860      curl_ech_msg="no      (--enable-ech)"
3861      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862printf "%s\n" "no" >&6; }
3863      ;;
3864    *)
3865            want_ech="yes"
3866      curl_ech_msg="enabled (--disable-ech)"
3867      experimental="ech"
3868      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869printf "%s\n" "yes" >&6; }
3870      ;;
3871  esac
3872
3873
3874#
3875# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3876#
3877
3878if test -z "$xc_configure_preamble_result"; then
3879  as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3880fi
3881
3882#
3883# Check that 'PATH_SEPARATOR' has already been set.
3884#
3885
3886if test -z "$xc_PATH_SEPARATOR"; then
3887  as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3888fi
3889if test -z "$PATH_SEPARATOR"; then
3890  as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3891fi
3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3893printf %s "checking for path separator... " >&6; }
3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3895printf "%s\n" "$PATH_SEPARATOR" >&6; }
3896if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3898printf %s "checking for initial path separator... " >&6; }
3899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3900printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3901  as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3902fi
3903
3904
3905#
3906# save the configure arguments
3907#
3908CONFIGURE_OPTIONS="\"$ac_configure_args\""
3909
3910
3911if test -z "$SED"; then
3912    # Extract the first word of "sed", so it can be a program name with args.
3913set dummy sed; ac_word=$2
3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915printf %s "checking for $ac_word... " >&6; }
3916if test ${ac_cv_path_SED+y}
3917then :
3918  printf %s "(cached) " >&6
3919else $as_nop
3920  case $SED in
3921  [\\/]* | ?:[\\/]*)
3922  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3923  ;;
3924  *)
3925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926as_dummy="$PATH:/usr/bin:/usr/local/bin"
3927for as_dir in $as_dummy
3928do
3929  IFS=$as_save_IFS
3930  case $as_dir in #(((
3931    '') as_dir=./ ;;
3932    */) ;;
3933    *) as_dir=$as_dir/ ;;
3934  esac
3935    for ac_exec_ext in '' $ac_executable_extensions; do
3936  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3937    ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3938    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3939    break 2
3940  fi
3941done
3942  done
3943IFS=$as_save_IFS
3944
3945  test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3946  ;;
3947esac
3948fi
3949SED=$ac_cv_path_SED
3950if test -n "$SED"; then
3951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3952printf "%s\n" "$SED" >&6; }
3953else
3954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955printf "%s\n" "no" >&6; }
3956fi
3957
3958
3959  if test -z "$SED" || test "$SED" = "not_found"; then
3960    as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3961  fi
3962fi
3963
3964
3965if test -z "$GREP"; then
3966    # Extract the first word of "grep", so it can be a program name with args.
3967set dummy grep; ac_word=$2
3968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969printf %s "checking for $ac_word... " >&6; }
3970if test ${ac_cv_path_GREP+y}
3971then :
3972  printf %s "(cached) " >&6
3973else $as_nop
3974  case $GREP in
3975  [\\/]* | ?:[\\/]*)
3976  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3977  ;;
3978  *)
3979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980as_dummy="$PATH:/usr/bin:/usr/local/bin"
3981for as_dir in $as_dummy
3982do
3983  IFS=$as_save_IFS
3984  case $as_dir in #(((
3985    '') as_dir=./ ;;
3986    */) ;;
3987    *) as_dir=$as_dir/ ;;
3988  esac
3989    for ac_exec_ext in '' $ac_executable_extensions; do
3990  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3991    ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3993    break 2
3994  fi
3995done
3996  done
3997IFS=$as_save_IFS
3998
3999  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
4000  ;;
4001esac
4002fi
4003GREP=$ac_cv_path_GREP
4004if test -n "$GREP"; then
4005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
4006printf "%s\n" "$GREP" >&6; }
4007else
4008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009printf "%s\n" "no" >&6; }
4010fi
4011
4012
4013  if test -z "$GREP" || test "$GREP" = "not_found"; then
4014    as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
4015  fi
4016fi
4017
4018
4019if test -z "$EGREP"; then
4020    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5
4021printf %s "checking that grep -E works... " >&6; }
4022  if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
4023    EGREP="$GREP -E"
4024    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025printf "%s\n" "yes" >&6; }
4026  else
4027    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028printf "%s\n" "no" >&6; }
4029    # Extract the first word of "egrep", so it can be a program name with args.
4030set dummy egrep; ac_word=$2
4031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032printf %s "checking for $ac_word... " >&6; }
4033if test ${ac_cv_path_EGREP+y}
4034then :
4035  printf %s "(cached) " >&6
4036else $as_nop
4037  case $EGREP in
4038  [\\/]* | ?:[\\/]*)
4039  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4040  ;;
4041  *)
4042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043as_dummy="$PATH:/usr/bin:/usr/local/bin"
4044for as_dir in $as_dummy
4045do
4046  IFS=$as_save_IFS
4047  case $as_dir in #(((
4048    '') as_dir=./ ;;
4049    */) ;;
4050    *) as_dir=$as_dir/ ;;
4051  esac
4052    for ac_exec_ext in '' $ac_executable_extensions; do
4053  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4054    ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
4055    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4056    break 2
4057  fi
4058done
4059  done
4060IFS=$as_save_IFS
4061
4062  test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4063  ;;
4064esac
4065fi
4066EGREP=$ac_cv_path_EGREP
4067if test -n "$EGREP"; then
4068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4069printf "%s\n" "$EGREP" >&6; }
4070else
4071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072printf "%s\n" "no" >&6; }
4073fi
4074
4075
4076  fi
4077fi
4078if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4079  as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5
4080fi
4081
4082
4083if test -z "$AR"; then
4084    if test -n "$ac_tool_prefix"; then
4085  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4086set dummy ${ac_tool_prefix}ar; ac_word=$2
4087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088printf %s "checking for $ac_word... " >&6; }
4089if test ${ac_cv_path_AR+y}
4090then :
4091  printf %s "(cached) " >&6
4092else $as_nop
4093  case $AR in
4094  [\\/]* | ?:[\\/]*)
4095  ac_cv_path_AR="$AR" # Let the user override the test with a path.
4096  ;;
4097  *)
4098  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099as_dummy="$PATH:/usr/bin:/usr/local/bin"
4100for as_dir in $as_dummy
4101do
4102  IFS=$as_save_IFS
4103  case $as_dir in #(((
4104    '') as_dir=./ ;;
4105    */) ;;
4106    *) as_dir=$as_dir/ ;;
4107  esac
4108    for ac_exec_ext in '' $ac_executable_extensions; do
4109  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4110    ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4111    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4112    break 2
4113  fi
4114done
4115  done
4116IFS=$as_save_IFS
4117
4118  ;;
4119esac
4120fi
4121AR=$ac_cv_path_AR
4122if test -n "$AR"; then
4123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4124printf "%s\n" "$AR" >&6; }
4125else
4126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127printf "%s\n" "no" >&6; }
4128fi
4129
4130
4131fi
4132if test -z "$ac_cv_path_AR"; then
4133  ac_pt_AR=$AR
4134  # Extract the first word of "ar", so it can be a program name with args.
4135set dummy ar; ac_word=$2
4136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137printf %s "checking for $ac_word... " >&6; }
4138if test ${ac_cv_path_ac_pt_AR+y}
4139then :
4140  printf %s "(cached) " >&6
4141else $as_nop
4142  case $ac_pt_AR in
4143  [\\/]* | ?:[\\/]*)
4144  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4145  ;;
4146  *)
4147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148as_dummy="$PATH:/usr/bin:/usr/local/bin"
4149for as_dir in $as_dummy
4150do
4151  IFS=$as_save_IFS
4152  case $as_dir in #(((
4153    '') as_dir=./ ;;
4154    */) ;;
4155    *) as_dir=$as_dir/ ;;
4156  esac
4157    for ac_exec_ext in '' $ac_executable_extensions; do
4158  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4159    ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4160    printf "%s\n" "$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
4167  ;;
4168esac
4169fi
4170ac_pt_AR=$ac_cv_path_ac_pt_AR
4171if test -n "$ac_pt_AR"; then
4172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4173printf "%s\n" "$ac_pt_AR" >&6; }
4174else
4175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176printf "%s\n" "no" >&6; }
4177fi
4178
4179  if test "x$ac_pt_AR" = x; then
4180    AR="not_found"
4181  else
4182    case $cross_compiling:$ac_tool_warned in
4183yes:)
4184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186ac_tool_warned=yes ;;
4187esac
4188    AR=$ac_pt_AR
4189  fi
4190else
4191  AR="$ac_cv_path_AR"
4192fi
4193
4194  if test -z "$AR" || test "$AR" = "not_found"; then
4195    as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4196  fi
4197fi
4198
4199
4200
4201
4202CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4203
4204  xc_prog_cc_prev_IFS=$IFS
4205  xc_prog_cc_prev_LIBS=$LIBS
4206  xc_prog_cc_prev_CFLAGS=$CFLAGS
4207  xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4208  xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4209
4210
4211
4212  xc_bad_var_libs=no
4213  for xc_word in $LIBS; do
4214    case "$xc_word" in
4215      -l* | --library=*)
4216        :
4217        ;;
4218      *)
4219        xc_bad_var_libs=yes
4220        ;;
4221    esac
4222  done
4223  if test $xc_bad_var_libs = yes; then
4224    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4225printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4227printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4228  fi
4229
4230
4231  xc_bad_var_ldflags=no
4232  for xc_word in $LDFLAGS; do
4233    case "$xc_word" in
4234      -D*)
4235        xc_bad_var_ldflags=yes
4236        ;;
4237      -U*)
4238        xc_bad_var_ldflags=yes
4239        ;;
4240      -I*)
4241        xc_bad_var_ldflags=yes
4242        ;;
4243      -l* | --library=*)
4244        xc_bad_var_ldflags=yes
4245        ;;
4246    esac
4247  done
4248  if test $xc_bad_var_ldflags = yes; then
4249    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4250printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4251    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4252    for xc_word in $LDFLAGS; do
4253      case "$xc_word" in
4254        -D*)
4255          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4256printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4257          ;;
4258        -U*)
4259          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4260printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4261          ;;
4262        -I*)
4263          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4264printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4265          ;;
4266        -l* | --library=*)
4267          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4268printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4269          ;;
4270      esac
4271    done
4272  fi
4273
4274
4275  xc_bad_var_cppflags=no
4276  for xc_word in $CPPFLAGS; do
4277    case "$xc_word" in
4278      -rpath*)
4279        xc_bad_var_cppflags=yes
4280        ;;
4281      -L* | --library-path=*)
4282        xc_bad_var_cppflags=yes
4283        ;;
4284      -l* | --library=*)
4285        xc_bad_var_cppflags=yes
4286        ;;
4287    esac
4288  done
4289  if test $xc_bad_var_cppflags = yes; then
4290    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4291printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4292    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4293    for xc_word in $CPPFLAGS; do
4294      case "$xc_word" in
4295        -rpath*)
4296          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4297printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4298          ;;
4299        -L* | --library-path=*)
4300          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4301printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4302          ;;
4303        -l* | --library=*)
4304          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4305printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4306          ;;
4307      esac
4308    done
4309  fi
4310
4311
4312  xc_bad_var_cflags=no
4313  for xc_word in $CFLAGS; do
4314    case "$xc_word" in
4315      -D*)
4316        xc_bad_var_cflags=yes
4317        ;;
4318      -U*)
4319        xc_bad_var_cflags=yes
4320        ;;
4321      -I*)
4322        xc_bad_var_cflags=yes
4323        ;;
4324      -rpath*)
4325        xc_bad_var_cflags=yes
4326        ;;
4327      -L* | --library-path=*)
4328        xc_bad_var_cflags=yes
4329        ;;
4330      -l* | --library=*)
4331        xc_bad_var_cflags=yes
4332        ;;
4333    esac
4334  done
4335  if test $xc_bad_var_cflags = yes; then
4336    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4337printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4338    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4339    for xc_word in $CFLAGS; do
4340      case "$xc_word" in
4341        -D*)
4342          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4343printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4344          ;;
4345        -U*)
4346          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4347printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4348          ;;
4349        -I*)
4350          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4351printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4352          ;;
4353        -rpath*)
4354          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4355printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4356          ;;
4357        -L* | --library-path=*)
4358          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4359printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4360          ;;
4361        -l* | --library=*)
4362          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4363printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4364          ;;
4365      esac
4366    done
4367  fi
4368
4369  if test $xc_bad_var_libs = yes ||
4370     test $xc_bad_var_cflags = yes ||
4371     test $xc_bad_var_ldflags = yes ||
4372     test $xc_bad_var_cppflags = yes; then
4373     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4374printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4375  fi
4376
4377
4378
4379  # Find a good install program.  We prefer a C program (faster),
4380# so one script is as good as another.  But avoid the broken or
4381# incompatible versions:
4382# SysV /etc/install, /usr/sbin/install
4383# SunOS /usr/etc/install
4384# IRIX /sbin/install
4385# AIX /bin/install
4386# AmigaOS /C/install, which installs bootblocks on floppy discs
4387# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4388# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4389# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4390# OS/2's system install, which has a completely different semantic
4391# ./install, which can be erroneously created by make from ./install.sh.
4392# Reject install programs that cannot install multiple files.
4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4394printf %s "checking for a BSD-compatible install... " >&6; }
4395if test -z "$INSTALL"; then
4396if test ${ac_cv_path_install+y}
4397then :
4398  printf %s "(cached) " >&6
4399else $as_nop
4400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403  IFS=$as_save_IFS
4404  case $as_dir in #(((
4405    '') as_dir=./ ;;
4406    */) ;;
4407    *) as_dir=$as_dir/ ;;
4408  esac
4409    # Account for fact that we put trailing slashes in our PATH walk.
4410case $as_dir in #((
4411  ./ | /[cC]/* | \
4412  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4413  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4414  /usr/ucb/* ) ;;
4415  *)
4416    # OSF1 and SCO ODT 3.0 have their own names for install.
4417    # Don't use installbsd from OSF since it installs stuff as root
4418    # by default.
4419    for ac_prog in ginstall scoinst install; do
4420      for ac_exec_ext in '' $ac_executable_extensions; do
4421	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4422	  if test $ac_prog = install &&
4423	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4424	    # AIX install.  It has an incompatible calling convention.
4425	    :
4426	  elif test $ac_prog = install &&
4427	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4428	    # program-specific install script used by HP pwplus--don't use.
4429	    :
4430	  else
4431	    rm -rf conftest.one conftest.two conftest.dir
4432	    echo one > conftest.one
4433	    echo two > conftest.two
4434	    mkdir conftest.dir
4435	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4436	      test -s conftest.one && test -s conftest.two &&
4437	      test -s conftest.dir/conftest.one &&
4438	      test -s conftest.dir/conftest.two
4439	    then
4440	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4441	      break 3
4442	    fi
4443	  fi
4444	fi
4445      done
4446    done
4447    ;;
4448esac
4449
4450  done
4451IFS=$as_save_IFS
4452
4453rm -rf conftest.one conftest.two conftest.dir
4454
4455fi
4456  if test ${ac_cv_path_install+y}; then
4457    INSTALL=$ac_cv_path_install
4458  else
4459    # As a last resort, use the slow shell script.  Don't cache a
4460    # value for INSTALL within a source directory, because that will
4461    # break other packages using the cache if that directory is
4462    # removed, or if the value is a relative name.
4463    INSTALL=$ac_install_sh
4464  fi
4465fi
4466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4467printf "%s\n" "$INSTALL" >&6; }
4468
4469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4470# It thinks the first close brace ends the variable substitution.
4471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4472
4473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4474
4475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487# Expand $ac_aux_dir to an absolute path.
4488am_aux_dir=`cd "$ac_aux_dir" && pwd`
4489
4490ac_ext=c
4491ac_cpp='$CPP $CPPFLAGS'
4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495if test -n "$ac_tool_prefix"; then
4496  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4497set dummy ${ac_tool_prefix}gcc; ac_word=$2
4498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499printf %s "checking for $ac_word... " >&6; }
4500if test ${ac_cv_prog_CC+y}
4501then :
4502  printf %s "(cached) " >&6
4503else $as_nop
4504  if test -n "$CC"; then
4505  ac_cv_prog_CC="$CC" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510  IFS=$as_save_IFS
4511  case $as_dir in #(((
4512    '') as_dir=./ ;;
4513    */) ;;
4514    *) as_dir=$as_dir/ ;;
4515  esac
4516    for ac_exec_ext in '' $ac_executable_extensions; do
4517  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4518    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4519    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4520    break 2
4521  fi
4522done
4523  done
4524IFS=$as_save_IFS
4525
4526fi
4527fi
4528CC=$ac_cv_prog_CC
4529if test -n "$CC"; then
4530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4531printf "%s\n" "$CC" >&6; }
4532else
4533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534printf "%s\n" "no" >&6; }
4535fi
4536
4537
4538fi
4539if test -z "$ac_cv_prog_CC"; then
4540  ac_ct_CC=$CC
4541  # Extract the first word of "gcc", so it can be a program name with args.
4542set dummy gcc; ac_word=$2
4543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544printf %s "checking for $ac_word... " >&6; }
4545if test ${ac_cv_prog_ac_ct_CC+y}
4546then :
4547  printf %s "(cached) " >&6
4548else $as_nop
4549  if test -n "$ac_ct_CC"; then
4550  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555  IFS=$as_save_IFS
4556  case $as_dir in #(((
4557    '') as_dir=./ ;;
4558    */) ;;
4559    *) as_dir=$as_dir/ ;;
4560  esac
4561    for ac_exec_ext in '' $ac_executable_extensions; do
4562  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4563    ac_cv_prog_ac_ct_CC="gcc"
4564    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4565    break 2
4566  fi
4567done
4568  done
4569IFS=$as_save_IFS
4570
4571fi
4572fi
4573ac_ct_CC=$ac_cv_prog_ac_ct_CC
4574if test -n "$ac_ct_CC"; then
4575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4576printf "%s\n" "$ac_ct_CC" >&6; }
4577else
4578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579printf "%s\n" "no" >&6; }
4580fi
4581
4582  if test "x$ac_ct_CC" = x; then
4583    CC=""
4584  else
4585    case $cross_compiling:$ac_tool_warned in
4586yes:)
4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4589ac_tool_warned=yes ;;
4590esac
4591    CC=$ac_ct_CC
4592  fi
4593else
4594  CC="$ac_cv_prog_CC"
4595fi
4596
4597if test -z "$CC"; then
4598          if test -n "$ac_tool_prefix"; then
4599    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4600set dummy ${ac_tool_prefix}cc; ac_word=$2
4601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602printf %s "checking for $ac_word... " >&6; }
4603if test ${ac_cv_prog_CC+y}
4604then :
4605  printf %s "(cached) " >&6
4606else $as_nop
4607  if test -n "$CC"; then
4608  ac_cv_prog_CC="$CC" # Let the user override the test.
4609else
4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH
4612do
4613  IFS=$as_save_IFS
4614  case $as_dir in #(((
4615    '') as_dir=./ ;;
4616    */) ;;
4617    *) as_dir=$as_dir/ ;;
4618  esac
4619    for ac_exec_ext in '' $ac_executable_extensions; do
4620  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4621    ac_cv_prog_CC="${ac_tool_prefix}cc"
4622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4623    break 2
4624  fi
4625done
4626  done
4627IFS=$as_save_IFS
4628
4629fi
4630fi
4631CC=$ac_cv_prog_CC
4632if test -n "$CC"; then
4633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4634printf "%s\n" "$CC" >&6; }
4635else
4636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637printf "%s\n" "no" >&6; }
4638fi
4639
4640
4641  fi
4642fi
4643if test -z "$CC"; then
4644  # Extract the first word of "cc", so it can be a program name with args.
4645set dummy cc; ac_word=$2
4646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647printf %s "checking for $ac_word... " >&6; }
4648if test ${ac_cv_prog_CC+y}
4649then :
4650  printf %s "(cached) " >&6
4651else $as_nop
4652  if test -n "$CC"; then
4653  ac_cv_prog_CC="$CC" # Let the user override the test.
4654else
4655  ac_prog_rejected=no
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659  IFS=$as_save_IFS
4660  case $as_dir in #(((
4661    '') as_dir=./ ;;
4662    */) ;;
4663    *) as_dir=$as_dir/ ;;
4664  esac
4665    for ac_exec_ext in '' $ac_executable_extensions; do
4666  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4667    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4668       ac_prog_rejected=yes
4669       continue
4670     fi
4671    ac_cv_prog_CC="cc"
4672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4673    break 2
4674  fi
4675done
4676  done
4677IFS=$as_save_IFS
4678
4679if test $ac_prog_rejected = yes; then
4680  # We found a bogon in the path, so make sure we never use it.
4681  set dummy $ac_cv_prog_CC
4682  shift
4683  if test $# != 0; then
4684    # We chose a different compiler from the bogus one.
4685    # However, it has the same basename, so the bogon will be chosen
4686    # first if we set CC to just the basename; use the full file name.
4687    shift
4688    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4689  fi
4690fi
4691fi
4692fi
4693CC=$ac_cv_prog_CC
4694if test -n "$CC"; then
4695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4696printf "%s\n" "$CC" >&6; }
4697else
4698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699printf "%s\n" "no" >&6; }
4700fi
4701
4702
4703fi
4704if test -z "$CC"; then
4705  if test -n "$ac_tool_prefix"; then
4706  for ac_prog in cl.exe
4707  do
4708    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711printf %s "checking for $ac_word... " >&6; }
4712if test ${ac_cv_prog_CC+y}
4713then :
4714  printf %s "(cached) " >&6
4715else $as_nop
4716  if test -n "$CC"; then
4717  ac_cv_prog_CC="$CC" # Let the user override the test.
4718else
4719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722  IFS=$as_save_IFS
4723  case $as_dir in #(((
4724    '') as_dir=./ ;;
4725    */) ;;
4726    *) as_dir=$as_dir/ ;;
4727  esac
4728    for ac_exec_ext in '' $ac_executable_extensions; do
4729  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4730    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4731    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4732    break 2
4733  fi
4734done
4735  done
4736IFS=$as_save_IFS
4737
4738fi
4739fi
4740CC=$ac_cv_prog_CC
4741if test -n "$CC"; then
4742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4743printf "%s\n" "$CC" >&6; }
4744else
4745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746printf "%s\n" "no" >&6; }
4747fi
4748
4749
4750    test -n "$CC" && break
4751  done
4752fi
4753if test -z "$CC"; then
4754  ac_ct_CC=$CC
4755  for ac_prog in cl.exe
4756do
4757  # Extract the first word of "$ac_prog", so it can be a program name with args.
4758set dummy $ac_prog; ac_word=$2
4759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760printf %s "checking for $ac_word... " >&6; }
4761if test ${ac_cv_prog_ac_ct_CC+y}
4762then :
4763  printf %s "(cached) " >&6
4764else $as_nop
4765  if test -n "$ac_ct_CC"; then
4766  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771  IFS=$as_save_IFS
4772  case $as_dir in #(((
4773    '') as_dir=./ ;;
4774    */) ;;
4775    *) as_dir=$as_dir/ ;;
4776  esac
4777    for ac_exec_ext in '' $ac_executable_extensions; do
4778  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4779    ac_cv_prog_ac_ct_CC="$ac_prog"
4780    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4781    break 2
4782  fi
4783done
4784  done
4785IFS=$as_save_IFS
4786
4787fi
4788fi
4789ac_ct_CC=$ac_cv_prog_ac_ct_CC
4790if test -n "$ac_ct_CC"; then
4791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4792printf "%s\n" "$ac_ct_CC" >&6; }
4793else
4794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795printf "%s\n" "no" >&6; }
4796fi
4797
4798
4799  test -n "$ac_ct_CC" && break
4800done
4801
4802  if test "x$ac_ct_CC" = x; then
4803    CC=""
4804  else
4805    case $cross_compiling:$ac_tool_warned in
4806yes:)
4807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4808printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4809ac_tool_warned=yes ;;
4810esac
4811    CC=$ac_ct_CC
4812  fi
4813fi
4814
4815fi
4816if test -z "$CC"; then
4817  if test -n "$ac_tool_prefix"; then
4818  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4819set dummy ${ac_tool_prefix}clang; ac_word=$2
4820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821printf %s "checking for $ac_word... " >&6; }
4822if test ${ac_cv_prog_CC+y}
4823then :
4824  printf %s "(cached) " >&6
4825else $as_nop
4826  if test -n "$CC"; then
4827  ac_cv_prog_CC="$CC" # Let the user override the test.
4828else
4829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832  IFS=$as_save_IFS
4833  case $as_dir in #(((
4834    '') as_dir=./ ;;
4835    */) ;;
4836    *) as_dir=$as_dir/ ;;
4837  esac
4838    for ac_exec_ext in '' $ac_executable_extensions; do
4839  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4840    ac_cv_prog_CC="${ac_tool_prefix}clang"
4841    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4842    break 2
4843  fi
4844done
4845  done
4846IFS=$as_save_IFS
4847
4848fi
4849fi
4850CC=$ac_cv_prog_CC
4851if test -n "$CC"; then
4852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4853printf "%s\n" "$CC" >&6; }
4854else
4855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856printf "%s\n" "no" >&6; }
4857fi
4858
4859
4860fi
4861if test -z "$ac_cv_prog_CC"; then
4862  ac_ct_CC=$CC
4863  # Extract the first word of "clang", so it can be a program name with args.
4864set dummy clang; ac_word=$2
4865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866printf %s "checking for $ac_word... " >&6; }
4867if test ${ac_cv_prog_ac_ct_CC+y}
4868then :
4869  printf %s "(cached) " >&6
4870else $as_nop
4871  if test -n "$ac_ct_CC"; then
4872  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  case $as_dir in #(((
4879    '') as_dir=./ ;;
4880    */) ;;
4881    *) as_dir=$as_dir/ ;;
4882  esac
4883    for ac_exec_ext in '' $ac_executable_extensions; do
4884  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4885    ac_cv_prog_ac_ct_CC="clang"
4886    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4887    break 2
4888  fi
4889done
4890  done
4891IFS=$as_save_IFS
4892
4893fi
4894fi
4895ac_ct_CC=$ac_cv_prog_ac_ct_CC
4896if test -n "$ac_ct_CC"; then
4897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4898printf "%s\n" "$ac_ct_CC" >&6; }
4899else
4900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901printf "%s\n" "no" >&6; }
4902fi
4903
4904  if test "x$ac_ct_CC" = x; then
4905    CC=""
4906  else
4907    case $cross_compiling:$ac_tool_warned in
4908yes:)
4909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911ac_tool_warned=yes ;;
4912esac
4913    CC=$ac_ct_CC
4914  fi
4915else
4916  CC="$ac_cv_prog_CC"
4917fi
4918
4919fi
4920
4921
4922test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4924as_fn_error $? "no acceptable C compiler found in \$PATH
4925See \`config.log' for more details" "$LINENO" 5; }
4926
4927# Provide some information about the compiler.
4928printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4929set X $ac_compile
4930ac_compiler=$2
4931for ac_option in --version -v -V -qversion -version; do
4932  { { ac_try="$ac_compiler $ac_option >&5"
4933case "(($ac_try" in
4934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935  *) ac_try_echo=$ac_try;;
4936esac
4937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4938printf "%s\n" "$ac_try_echo"; } >&5
4939  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4940  ac_status=$?
4941  if test -s conftest.err; then
4942    sed '10a\
4943... rest of stderr output deleted ...
4944         10q' conftest.err >conftest.er1
4945    cat conftest.er1 >&5
4946  fi
4947  rm -f conftest.er1 conftest.err
4948  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949  test $ac_status = 0; }
4950done
4951
4952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953/* end confdefs.h.  */
4954
4955int main (void)
4956{
4957
4958 ;
4959 return 0;
4960}
4961_ACEOF
4962ac_clean_files_save=$ac_clean_files
4963ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4964# Try to create an executable without -o first, disregard a.out.
4965# It will help us diagnose broken compilers, and finding out an intuition
4966# of exeext.
4967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4968printf %s "checking whether the C compiler works... " >&6; }
4969ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4970
4971# The possible output files:
4972ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4973
4974ac_rmfiles=
4975for ac_file in $ac_files
4976do
4977  case $ac_file in
4978    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4979    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4980  esac
4981done
4982rm -f $ac_rmfiles
4983
4984if { { ac_try="$ac_link_default"
4985case "(($ac_try" in
4986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987  *) ac_try_echo=$ac_try;;
4988esac
4989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4990printf "%s\n" "$ac_try_echo"; } >&5
4991  (eval "$ac_link_default") 2>&5
4992  ac_status=$?
4993  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4994  test $ac_status = 0; }
4995then :
4996  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4997# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4998# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4999# so that the user can short-circuit this test for compilers unknown to
5000# Autoconf.
5001for ac_file in $ac_files ''
5002do
5003  test -f "$ac_file" || continue
5004  case $ac_file in
5005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5006	;;
5007    [ab].out )
5008	# We found the default executable, but exeext='' is most
5009	# certainly right.
5010	break;;
5011    *.* )
5012	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5013	then :; else
5014	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5015	fi
5016	# We set ac_cv_exeext here because the later test for it is not
5017	# safe: cross compilers may not add the suffix if given an `-o'
5018	# argument, so we may need to know it at that point already.
5019	# Even if this section looks crufty: it has the advantage of
5020	# actually working.
5021	break;;
5022    * )
5023	break;;
5024  esac
5025done
5026test "$ac_cv_exeext" = no && ac_cv_exeext=
5027
5028else $as_nop
5029  ac_file=''
5030fi
5031if test -z "$ac_file"
5032then :
5033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034printf "%s\n" "no" >&6; }
5035printf "%s\n" "$as_me: failed program was:" >&5
5036sed 's/^/| /' conftest.$ac_ext >&5
5037
5038{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5039printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5040as_fn_error 77 "C compiler cannot create executables
5041See \`config.log' for more details" "$LINENO" 5; }
5042else $as_nop
5043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5044printf "%s\n" "yes" >&6; }
5045fi
5046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5047printf %s "checking for C compiler default output file name... " >&6; }
5048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5049printf "%s\n" "$ac_file" >&6; }
5050ac_exeext=$ac_cv_exeext
5051
5052rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5053ac_clean_files=$ac_clean_files_save
5054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5055printf %s "checking for suffix of executables... " >&6; }
5056if { { ac_try="$ac_link"
5057case "(($ac_try" in
5058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059  *) ac_try_echo=$ac_try;;
5060esac
5061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5062printf "%s\n" "$ac_try_echo"; } >&5
5063  (eval "$ac_link") 2>&5
5064  ac_status=$?
5065  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5066  test $ac_status = 0; }
5067then :
5068  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5069# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5070# work properly (i.e., refer to `conftest.exe'), while it won't with
5071# `rm'.
5072for ac_file in conftest.exe conftest conftest.*; do
5073  test -f "$ac_file" || continue
5074  case $ac_file in
5075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5076    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5077	  break;;
5078    * ) break;;
5079  esac
5080done
5081else $as_nop
5082  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5084as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5085See \`config.log' for more details" "$LINENO" 5; }
5086fi
5087rm -f conftest conftest$ac_cv_exeext
5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5089printf "%s\n" "$ac_cv_exeext" >&6; }
5090
5091rm -f conftest.$ac_ext
5092EXEEXT=$ac_cv_exeext
5093ac_exeext=$EXEEXT
5094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h.  */
5096#include <stdio.h>
5097int main (void)
5098{
5099FILE *f = fopen ("conftest.out", "w");
5100 return ferror (f) || fclose (f) != 0;
5101
5102 ;
5103 return 0;
5104}
5105_ACEOF
5106ac_clean_files="$ac_clean_files conftest.out"
5107# Check that the compiler produces executables we can run.  If not, either
5108# the compiler is broken, or we cross compile.
5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5110printf %s "checking whether we are cross compiling... " >&6; }
5111if test "$cross_compiling" != yes; then
5112  { { ac_try="$ac_link"
5113case "(($ac_try" in
5114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115  *) ac_try_echo=$ac_try;;
5116esac
5117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5118printf "%s\n" "$ac_try_echo"; } >&5
5119  (eval "$ac_link") 2>&5
5120  ac_status=$?
5121  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122  test $ac_status = 0; }
5123  if { ac_try='./conftest$ac_cv_exeext'
5124  { { case "(($ac_try" in
5125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126  *) ac_try_echo=$ac_try;;
5127esac
5128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5129printf "%s\n" "$ac_try_echo"; } >&5
5130  (eval "$ac_try") 2>&5
5131  ac_status=$?
5132  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5133  test $ac_status = 0; }; }; then
5134    cross_compiling=no
5135  else
5136    if test "$cross_compiling" = maybe; then
5137	cross_compiling=yes
5138    else
5139	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5140printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5141as_fn_error 77 "cannot run C compiled programs.
5142If you meant to cross compile, use \`--host'.
5143See \`config.log' for more details" "$LINENO" 5; }
5144    fi
5145  fi
5146fi
5147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5148printf "%s\n" "$cross_compiling" >&6; }
5149
5150rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5151ac_clean_files=$ac_clean_files_save
5152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5153printf %s "checking for suffix of object files... " >&6; }
5154if test ${ac_cv_objext+y}
5155then :
5156  printf %s "(cached) " >&6
5157else $as_nop
5158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159/* end confdefs.h.  */
5160
5161int main (void)
5162{
5163
5164 ;
5165 return 0;
5166}
5167_ACEOF
5168rm -f conftest.o conftest.obj
5169if { { ac_try="$ac_compile"
5170case "(($ac_try" in
5171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172  *) ac_try_echo=$ac_try;;
5173esac
5174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5175printf "%s\n" "$ac_try_echo"; } >&5
5176  (eval "$ac_compile") 2>&5
5177  ac_status=$?
5178  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5179  test $ac_status = 0; }
5180then :
5181  for ac_file in conftest.o conftest.obj conftest.*; do
5182  test -f "$ac_file" || continue;
5183  case $ac_file in
5184    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5185    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5186       break;;
5187  esac
5188done
5189else $as_nop
5190  printf "%s\n" "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
5193{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5194printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5195as_fn_error $? "cannot compute suffix of object files: cannot compile
5196See \`config.log' for more details" "$LINENO" 5; }
5197fi
5198rm -f conftest.$ac_cv_objext conftest.$ac_ext
5199fi
5200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5201printf "%s\n" "$ac_cv_objext" >&6; }
5202OBJEXT=$ac_cv_objext
5203ac_objext=$OBJEXT
5204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5205printf %s "checking whether the compiler supports GNU C... " >&6; }
5206if test ${ac_cv_c_compiler_gnu+y}
5207then :
5208  printf %s "(cached) " >&6
5209else $as_nop
5210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212
5213int main (void)
5214{
5215#ifndef __GNUC__
5216       choke me
5217#endif
5218
5219 ;
5220 return 0;
5221}
5222_ACEOF
5223if ac_fn_c_try_compile "$LINENO"
5224then :
5225  ac_compiler_gnu=yes
5226else $as_nop
5227  ac_compiler_gnu=no
5228fi
5229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5230ac_cv_c_compiler_gnu=$ac_compiler_gnu
5231
5232fi
5233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5234printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5235ac_compiler_gnu=$ac_cv_c_compiler_gnu
5236
5237if test $ac_compiler_gnu = yes; then
5238  GCC=yes
5239else
5240  GCC=
5241fi
5242ac_test_CFLAGS=${CFLAGS+y}
5243ac_save_CFLAGS=$CFLAGS
5244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5245printf %s "checking whether $CC accepts -g... " >&6; }
5246if test ${ac_cv_prog_cc_g+y}
5247then :
5248  printf %s "(cached) " >&6
5249else $as_nop
5250  ac_save_c_werror_flag=$ac_c_werror_flag
5251   ac_c_werror_flag=yes
5252   ac_cv_prog_cc_g=no
5253   CFLAGS="-g"
5254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255/* end confdefs.h.  */
5256
5257int main (void)
5258{
5259
5260 ;
5261 return 0;
5262}
5263_ACEOF
5264if ac_fn_c_try_compile "$LINENO"
5265then :
5266  ac_cv_prog_cc_g=yes
5267else $as_nop
5268  CFLAGS=""
5269      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h.  */
5271
5272int main (void)
5273{
5274
5275 ;
5276 return 0;
5277}
5278_ACEOF
5279if ac_fn_c_try_compile "$LINENO"
5280then :
5281
5282else $as_nop
5283  ac_c_werror_flag=$ac_save_c_werror_flag
5284	 CFLAGS="-g"
5285	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h.  */
5287
5288int main (void)
5289{
5290
5291 ;
5292 return 0;
5293}
5294_ACEOF
5295if ac_fn_c_try_compile "$LINENO"
5296then :
5297  ac_cv_prog_cc_g=yes
5298fi
5299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5300fi
5301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5304   ac_c_werror_flag=$ac_save_c_werror_flag
5305fi
5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5307printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5308if test $ac_test_CFLAGS; then
5309  CFLAGS=$ac_save_CFLAGS
5310elif test $ac_cv_prog_cc_g = yes; then
5311  if test "$GCC" = yes; then
5312    CFLAGS="-g -O2"
5313  else
5314    CFLAGS="-g"
5315  fi
5316else
5317  if test "$GCC" = yes; then
5318    CFLAGS="-O2"
5319  else
5320    CFLAGS=
5321  fi
5322fi
5323ac_prog_cc_stdc=no
5324if test x$ac_prog_cc_stdc = xno
5325then :
5326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5327printf %s "checking for $CC option to enable C11 features... " >&6; }
5328if test ${ac_cv_prog_cc_c11+y}
5329then :
5330  printf %s "(cached) " >&6
5331else $as_nop
5332  ac_cv_prog_cc_c11=no
5333ac_save_CC=$CC
5334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h.  */
5336$ac_c_conftest_c11_program
5337_ACEOF
5338for ac_arg in '' -std=gnu11
5339do
5340  CC="$ac_save_CC $ac_arg"
5341  if ac_fn_c_try_compile "$LINENO"
5342then :
5343  ac_cv_prog_cc_c11=$ac_arg
5344fi
5345rm -f core conftest.err conftest.$ac_objext conftest.beam
5346  test "x$ac_cv_prog_cc_c11" != "xno" && break
5347done
5348rm -f conftest.$ac_ext
5349CC=$ac_save_CC
5350fi
5351
5352if test "x$ac_cv_prog_cc_c11" = xno
5353then :
5354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5355printf "%s\n" "unsupported" >&6; }
5356else $as_nop
5357  if test "x$ac_cv_prog_cc_c11" = x
5358then :
5359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5360printf "%s\n" "none needed" >&6; }
5361else $as_nop
5362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5363printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5364     CC="$CC $ac_cv_prog_cc_c11"
5365fi
5366  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5367  ac_prog_cc_stdc=c11
5368fi
5369fi
5370if test x$ac_prog_cc_stdc = xno
5371then :
5372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5373printf %s "checking for $CC option to enable C99 features... " >&6; }
5374if test ${ac_cv_prog_cc_c99+y}
5375then :
5376  printf %s "(cached) " >&6
5377else $as_nop
5378  ac_cv_prog_cc_c99=no
5379ac_save_CC=$CC
5380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381/* end confdefs.h.  */
5382$ac_c_conftest_c99_program
5383_ACEOF
5384for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5385do
5386  CC="$ac_save_CC $ac_arg"
5387  if ac_fn_c_try_compile "$LINENO"
5388then :
5389  ac_cv_prog_cc_c99=$ac_arg
5390fi
5391rm -f core conftest.err conftest.$ac_objext conftest.beam
5392  test "x$ac_cv_prog_cc_c99" != "xno" && break
5393done
5394rm -f conftest.$ac_ext
5395CC=$ac_save_CC
5396fi
5397
5398if test "x$ac_cv_prog_cc_c99" = xno
5399then :
5400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5401printf "%s\n" "unsupported" >&6; }
5402else $as_nop
5403  if test "x$ac_cv_prog_cc_c99" = x
5404then :
5405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5406printf "%s\n" "none needed" >&6; }
5407else $as_nop
5408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5409printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5410     CC="$CC $ac_cv_prog_cc_c99"
5411fi
5412  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5413  ac_prog_cc_stdc=c99
5414fi
5415fi
5416if test x$ac_prog_cc_stdc = xno
5417then :
5418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5419printf %s "checking for $CC option to enable C89 features... " >&6; }
5420if test ${ac_cv_prog_cc_c89+y}
5421then :
5422  printf %s "(cached) " >&6
5423else $as_nop
5424  ac_cv_prog_cc_c89=no
5425ac_save_CC=$CC
5426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427/* end confdefs.h.  */
5428$ac_c_conftest_c89_program
5429_ACEOF
5430for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5431do
5432  CC="$ac_save_CC $ac_arg"
5433  if ac_fn_c_try_compile "$LINENO"
5434then :
5435  ac_cv_prog_cc_c89=$ac_arg
5436fi
5437rm -f core conftest.err conftest.$ac_objext conftest.beam
5438  test "x$ac_cv_prog_cc_c89" != "xno" && break
5439done
5440rm -f conftest.$ac_ext
5441CC=$ac_save_CC
5442fi
5443
5444if test "x$ac_cv_prog_cc_c89" = xno
5445then :
5446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5447printf "%s\n" "unsupported" >&6; }
5448else $as_nop
5449  if test "x$ac_cv_prog_cc_c89" = x
5450then :
5451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5452printf "%s\n" "none needed" >&6; }
5453else $as_nop
5454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5455printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5456     CC="$CC $ac_cv_prog_cc_c89"
5457fi
5458  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5459  ac_prog_cc_stdc=c89
5460fi
5461fi
5462
5463ac_ext=c
5464ac_cpp='$CPP $CPPFLAGS'
5465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468
5469
5470  ac_ext=c
5471ac_cpp='$CPP $CPPFLAGS'
5472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5476printf %s "checking whether $CC understands -c and -o together... " >&6; }
5477if test ${am_cv_prog_cc_c_o+y}
5478then :
5479  printf %s "(cached) " >&6
5480else $as_nop
5481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483
5484int main (void)
5485{
5486
5487 ;
5488 return 0;
5489}
5490_ACEOF
5491  # Make sure it works both with $CC and with simple cc.
5492  # Following AC_PROG_CC_C_O, we do the test twice because some
5493  # compilers refuse to overwrite an existing .o file with -o,
5494  # though they will create one.
5495  am_cv_prog_cc_c_o=yes
5496  for am_i in 1 2; do
5497    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5498   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } \
5502         && test -f conftest2.$ac_objext; then
5503      : OK
5504    else
5505      am_cv_prog_cc_c_o=no
5506      break
5507    fi
5508  done
5509  rm -f core conftest*
5510  unset am_i
5511fi
5512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5513printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5514if test "$am_cv_prog_cc_c_o" != yes; then
5515   # Losing compiler, so override with the script.
5516   # FIXME: It is wrong to rewrite CC.
5517   # But if we don't then we get into trouble of one sort or another.
5518   # A longer-term fix would be to have automake use am__CC in this case,
5519   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5520   CC="$am_aux_dir/compile $CC"
5521fi
5522ac_ext=c
5523ac_cpp='$CPP $CPPFLAGS'
5524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526ac_compiler_gnu=$ac_cv_c_compiler_gnu
5527
5528
5529
5530ac_ext=c
5531ac_cpp='$CPP $CPPFLAGS'
5532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5536printf %s "checking how to run the C preprocessor... " >&6; }
5537# On Suns, sometimes $CPP names a directory.
5538if test -n "$CPP" && test -d "$CPP"; then
5539  CPP=
5540fi
5541if test -z "$CPP"; then
5542  if test ${ac_cv_prog_CPP+y}
5543then :
5544  printf %s "(cached) " >&6
5545else $as_nop
5546      # Double quotes because $CC needs to be expanded
5547    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5548    do
5549      ac_preproc_ok=false
5550for ac_c_preproc_warn_flag in '' yes
5551do
5552  # Use a header file that comes with gcc, so configuring glibc
5553  # with a fresh cross-compiler works.
5554  # On the NeXT, cc -E runs the code through the compiler's parser,
5555  # not just through cpp. "Syntax error" is here to catch this case.
5556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558#include <limits.h>
5559		     Syntax error
5560_ACEOF
5561if ac_fn_c_try_cpp "$LINENO"
5562then :
5563
5564else $as_nop
5565  # Broken: fails on valid input.
5566continue
5567fi
5568rm -f conftest.err conftest.i conftest.$ac_ext
5569
5570  # OK, works on sane cases.  Now check whether nonexistent headers
5571  # can be detected and how.
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574#include <ac_nonexistent.h>
5575_ACEOF
5576if ac_fn_c_try_cpp "$LINENO"
5577then :
5578  # Broken: success on invalid input.
5579continue
5580else $as_nop
5581  # Passes both tests.
5582ac_preproc_ok=:
5583break
5584fi
5585rm -f conftest.err conftest.i conftest.$ac_ext
5586
5587done
5588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5589rm -f conftest.i conftest.err conftest.$ac_ext
5590if $ac_preproc_ok
5591then :
5592  break
5593fi
5594
5595    done
5596    ac_cv_prog_CPP=$CPP
5597
5598fi
5599  CPP=$ac_cv_prog_CPP
5600else
5601  ac_cv_prog_CPP=$CPP
5602fi
5603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5604printf "%s\n" "$CPP" >&6; }
5605ac_preproc_ok=false
5606for ac_c_preproc_warn_flag in '' yes
5607do
5608  # Use a header file that comes with gcc, so configuring glibc
5609  # with a fresh cross-compiler works.
5610  # On the NeXT, cc -E runs the code through the compiler's parser,
5611  # not just through cpp. "Syntax error" is here to catch this case.
5612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h.  */
5614#include <limits.h>
5615		     Syntax error
5616_ACEOF
5617if ac_fn_c_try_cpp "$LINENO"
5618then :
5619
5620else $as_nop
5621  # Broken: fails on valid input.
5622continue
5623fi
5624rm -f conftest.err conftest.i conftest.$ac_ext
5625
5626  # OK, works on sane cases.  Now check whether nonexistent headers
5627  # can be detected and how.
5628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h.  */
5630#include <ac_nonexistent.h>
5631_ACEOF
5632if ac_fn_c_try_cpp "$LINENO"
5633then :
5634  # Broken: success on invalid input.
5635continue
5636else $as_nop
5637  # Passes both tests.
5638ac_preproc_ok=:
5639break
5640fi
5641rm -f conftest.err conftest.i conftest.$ac_ext
5642
5643done
5644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5645rm -f conftest.i conftest.err conftest.$ac_ext
5646if $ac_preproc_ok
5647then :
5648
5649else $as_nop
5650  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5651printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5652as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5653See \`config.log' for more details" "$LINENO" 5; }
5654fi
5655
5656ac_ext=c
5657ac_cpp='$CPP $CPPFLAGS'
5658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661
5662
5663  IFS=$xc_prog_cc_prev_IFS
5664  LIBS=$xc_prog_cc_prev_LIBS
5665  CFLAGS=$xc_prog_cc_prev_CFLAGS
5666  LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5667  CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5668
5669
5670
5671
5672
5673
5674ac_header= ac_cache=
5675for ac_item in $ac_header_c_list
5676do
5677  if test $ac_cache; then
5678    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5679    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5680      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5681    fi
5682    ac_header= ac_cache=
5683  elif test $ac_header; then
5684    ac_cache=$ac_item
5685  else
5686    ac_header=$ac_item
5687  fi
5688done
5689
5690
5691
5692
5693
5694
5695
5696
5697if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5698then :
5699
5700printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5701
5702fi
5703
5704         for ac_header in stdatomic.h
5705do :
5706  ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5707if test "x$ac_cv_header_stdatomic_h" = xyes
5708then :
5709  printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5710
5711    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
5712printf %s "checking if _Atomic is available... " >&6; }
5713    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714/* end confdefs.h.  */
5715
5716
5717        $curl_includes_unistd
5718
5719int main (void)
5720{
5721
5722        _Atomic int i = 0;
5723        i = 4;  // Force an atomic-write operation.
5724
5725 ;
5726 return 0;
5727}
5728
5729_ACEOF
5730if ac_fn_c_try_link "$LINENO"
5731then :
5732
5733      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5734printf "%s\n" "yes" >&6; }
5735
5736printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
5737
5738      tst_atomic="yes"
5739
5740else $as_nop
5741
5742      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743printf "%s\n" "no" >&6; }
5744      tst_atomic="no"
5745
5746fi
5747rm -f core conftest.err conftest.$ac_objext conftest.beam \
5748    conftest$ac_exeext conftest.$ac_ext
5749
5750fi
5751
5752done
5753
5754
5755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5756printf %s "checking for a sed that does not truncate output... " >&6; }
5757if test ${ac_cv_path_SED+y}
5758then :
5759  printf %s "(cached) " >&6
5760else $as_nop
5761            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5762     for ac_i in 1 2 3 4 5 6 7; do
5763       ac_script="$ac_script$as_nl$ac_script"
5764     done
5765     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5766     { ac_script=; unset ac_script;}
5767     if test -z "$SED"; then
5768  ac_path_SED_found=false
5769  # Loop through the user's path and test for each of PROGNAME-LIST
5770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773  IFS=$as_save_IFS
5774  case $as_dir in #(((
5775    '') as_dir=./ ;;
5776    */) ;;
5777    *) as_dir=$as_dir/ ;;
5778  esac
5779    for ac_prog in sed gsed
5780   do
5781    for ac_exec_ext in '' $ac_executable_extensions; do
5782      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5783      as_fn_executable_p "$ac_path_SED" || continue
5784# Check for GNU ac_path_SED and select it if it is found.
5785  # Check for GNU $ac_path_SED
5786case `"$ac_path_SED" --version 2>&1` in
5787*GNU*)
5788  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5789*)
5790  ac_count=0
5791  printf %s 0123456789 >"conftest.in"
5792  while :
5793  do
5794    cat "conftest.in" "conftest.in" >"conftest.tmp"
5795    mv "conftest.tmp" "conftest.in"
5796    cp "conftest.in" "conftest.nl"
5797    printf "%s\n" '' >> "conftest.nl"
5798    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5799    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5800    as_fn_arith $ac_count + 1 && ac_count=$as_val
5801    if test $ac_count -gt ${ac_path_SED_max-0}; then
5802      # Best one so far, save it but keep looking for a better one
5803      ac_cv_path_SED="$ac_path_SED"
5804      ac_path_SED_max=$ac_count
5805    fi
5806    # 10*(2^10) chars as input seems more than enough
5807    test $ac_count -gt 10 && break
5808  done
5809  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5810esac
5811
5812      $ac_path_SED_found && break 3
5813    done
5814  done
5815  done
5816IFS=$as_save_IFS
5817  if test -z "$ac_cv_path_SED"; then
5818    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5819  fi
5820else
5821  ac_cv_path_SED=$SED
5822fi
5823
5824fi
5825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5826printf "%s\n" "$ac_cv_path_SED" >&6; }
5827 SED="$ac_cv_path_SED"
5828  rm -f conftest.sed
5829
5830
5831
5832
5833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5834printf %s "checking for code coverage support... " >&6; }
5835  coverage="no"
5836  curl_coverage_msg="disabled"
5837
5838    # Check whether --enable-code-coverage was given.
5839if test ${enable_code_coverage+y}
5840then :
5841  enableval=$enable_code_coverage; coverage="$enableval"
5842fi
5843
5844
5845    if  test "$GCC" != "yes"
5846then :
5847  coverage="no"
5848fi
5849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5850printf "%s\n" "$coverage" >&6; }
5851
5852  if test "x$coverage" = "xyes"; then
5853    curl_coverage_msg="enabled"
5854
5855    if test -n "$ac_tool_prefix"; then
5856  # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5857set dummy ${ac_tool_prefix}gcov; ac_word=$2
5858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859printf %s "checking for $ac_word... " >&6; }
5860if test ${ac_cv_prog_GCOV+y}
5861then :
5862  printf %s "(cached) " >&6
5863else $as_nop
5864  if test -n "$GCOV"; then
5865  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  case $as_dir in #(((
5872    '') as_dir=./ ;;
5873    */) ;;
5874    *) as_dir=$as_dir/ ;;
5875  esac
5876    for ac_exec_ext in '' $ac_executable_extensions; do
5877  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5878    ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5879    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5880    break 2
5881  fi
5882done
5883  done
5884IFS=$as_save_IFS
5885
5886fi
5887fi
5888GCOV=$ac_cv_prog_GCOV
5889if test -n "$GCOV"; then
5890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5891printf "%s\n" "$GCOV" >&6; }
5892else
5893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894printf "%s\n" "no" >&6; }
5895fi
5896
5897
5898fi
5899if test -z "$ac_cv_prog_GCOV"; then
5900  ac_ct_GCOV=$GCOV
5901  # Extract the first word of "gcov", so it can be a program name with args.
5902set dummy gcov; ac_word=$2
5903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904printf %s "checking for $ac_word... " >&6; }
5905if test ${ac_cv_prog_ac_ct_GCOV+y}
5906then :
5907  printf %s "(cached) " >&6
5908else $as_nop
5909  if test -n "$ac_ct_GCOV"; then
5910  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915  IFS=$as_save_IFS
5916  case $as_dir in #(((
5917    '') as_dir=./ ;;
5918    */) ;;
5919    *) as_dir=$as_dir/ ;;
5920  esac
5921    for ac_exec_ext in '' $ac_executable_extensions; do
5922  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5923    ac_cv_prog_ac_ct_GCOV="gcov"
5924    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5925    break 2
5926  fi
5927done
5928  done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5934if test -n "$ac_ct_GCOV"; then
5935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5936printf "%s\n" "$ac_ct_GCOV" >&6; }
5937else
5938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939printf "%s\n" "no" >&6; }
5940fi
5941
5942  if test "x$ac_ct_GCOV" = x; then
5943    GCOV="gcov"
5944  else
5945    case $cross_compiling:$ac_tool_warned in
5946yes:)
5947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5949ac_tool_warned=yes ;;
5950esac
5951    GCOV=$ac_ct_GCOV
5952  fi
5953else
5954  GCOV="$ac_cv_prog_GCOV"
5955fi
5956
5957    if test -z "$GCOV"; then
5958      as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5959    fi
5960    # Extract the first word of "lcov", so it can be a program name with args.
5961set dummy lcov; ac_word=$2
5962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963printf %s "checking for $ac_word... " >&6; }
5964if test ${ac_cv_prog_LCOV+y}
5965then :
5966  printf %s "(cached) " >&6
5967else $as_nop
5968  if test -n "$LCOV"; then
5969  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5970else
5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974  IFS=$as_save_IFS
5975  case $as_dir in #(((
5976    '') as_dir=./ ;;
5977    */) ;;
5978    *) as_dir=$as_dir/ ;;
5979  esac
5980    for ac_exec_ext in '' $ac_executable_extensions; do
5981  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5982    ac_cv_prog_LCOV="lcov"
5983    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5984    break 2
5985  fi
5986done
5987  done
5988IFS=$as_save_IFS
5989
5990fi
5991fi
5992LCOV=$ac_cv_prog_LCOV
5993if test -n "$LCOV"; then
5994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5995printf "%s\n" "$LCOV" >&6; }
5996else
5997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998printf "%s\n" "no" >&6; }
5999fi
6000
6001
6002    if test -z "$LCOV"; then
6003      as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
6004    fi
6005
6006    CPPFLAGS="$CPPFLAGS -DNDEBUG"
6007    CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
6008    LIBS="$LIBS -lgcov"
6009  fi
6010
6011
6012am__api_version='1.16'
6013
6014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6015printf %s "checking whether build environment is sane... " >&6; }
6016# Reject unsafe characters in $srcdir or the absolute working directory
6017# name.  Accept space and tab only in the latter.
6018am_lf='
6019'
6020case `pwd` in
6021  *[\\\"\#\$\&\'\`$am_lf]*)
6022    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6023esac
6024case $srcdir in
6025  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
6026    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6027esac
6028
6029# Do 'set' in a subshell so we don't clobber the current shell's
6030# arguments.  Must try -L first in case configure is actually a
6031# symlink; some systems play weird games with the mod time of symlinks
6032# (eg FreeBSD returns the mod time of the symlink's containing
6033# directory).
6034if (
6035   am_has_slept=no
6036   for am_try in 1 2; do
6037     echo "timestamp, slept: $am_has_slept" > conftest.file
6038     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6039     if test "$*" = "X"; then
6040	# -L didn't work.
6041	set X `ls -t "$srcdir/configure" conftest.file`
6042     fi
6043     if test "$*" != "X $srcdir/configure conftest.file" \
6044	&& test "$*" != "X conftest.file $srcdir/configure"; then
6045
6046	# If neither matched, then we have a broken ls.  This can happen
6047	# if, for instance, CONFIG_SHELL is bash and it inherits a
6048	# broken ls alias from the environment.  This has actually
6049	# happened.  Such a system could not be considered "sane".
6050	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6051  alias in your environment" "$LINENO" 5
6052     fi
6053     if test "$2" = conftest.file || test $am_try -eq 2; then
6054       break
6055     fi
6056     # Just in case.
6057     sleep 1
6058     am_has_slept=yes
6059   done
6060   test "$2" = conftest.file
6061   )
6062then
6063   # Ok.
6064   :
6065else
6066   as_fn_error $? "newly created file is older than distributed files!
6067Check your system clock" "$LINENO" 5
6068fi
6069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6070printf "%s\n" "yes" >&6; }
6071# If we didn't sleep, we still need to ensure time stamps of config.status and
6072# generated files are strictly newer.
6073am_sleep_pid=
6074if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6075  ( sleep 1 ) &
6076  am_sleep_pid=$!
6077fi
6078
6079rm -f conftest.file
6080
6081test "$program_prefix" != NONE &&
6082  program_transform_name="s&^&$program_prefix&;$program_transform_name"
6083# Use a double $ so make ignores it.
6084test "$program_suffix" != NONE &&
6085  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6086# Double any \ or $.
6087# By default was `s,x,x', remove it if useless.
6088ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6089program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6090
6091
6092  if test x"${MISSING+set}" != xset; then
6093  MISSING="\${SHELL} '$am_aux_dir/missing'"
6094fi
6095# Use eval to expand $SHELL
6096if eval "$MISSING --is-lightweight"; then
6097  am_missing_run="$MISSING "
6098else
6099  am_missing_run=
6100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6101printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6102fi
6103
6104if test x"${install_sh+set}" != xset; then
6105  case $am_aux_dir in
6106  *\ * | *\	*)
6107    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6108  *)
6109    install_sh="\${SHELL} $am_aux_dir/install-sh"
6110  esac
6111fi
6112
6113# Installed binaries are usually stripped using 'strip' when the user
6114# run "make install-strip".  However 'strip' might not be the right
6115# tool to use in cross-compilation environments, therefore Automake
6116# will honor the 'STRIP' environment variable to overrule this program.
6117if test "$cross_compiling" != no; then
6118  if test -n "$ac_tool_prefix"; then
6119  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6120set dummy ${ac_tool_prefix}strip; ac_word=$2
6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122printf %s "checking for $ac_word... " >&6; }
6123if test ${ac_cv_prog_STRIP+y}
6124then :
6125  printf %s "(cached) " >&6
6126else $as_nop
6127  if test -n "$STRIP"; then
6128  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6129else
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133  IFS=$as_save_IFS
6134  case $as_dir in #(((
6135    '') as_dir=./ ;;
6136    */) ;;
6137    *) as_dir=$as_dir/ ;;
6138  esac
6139    for ac_exec_ext in '' $ac_executable_extensions; do
6140  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6141    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6142    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6143    break 2
6144  fi
6145done
6146  done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151STRIP=$ac_cv_prog_STRIP
6152if test -n "$STRIP"; then
6153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6154printf "%s\n" "$STRIP" >&6; }
6155else
6156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157printf "%s\n" "no" >&6; }
6158fi
6159
6160
6161fi
6162if test -z "$ac_cv_prog_STRIP"; then
6163  ac_ct_STRIP=$STRIP
6164  # Extract the first word of "strip", so it can be a program name with args.
6165set dummy strip; ac_word=$2
6166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167printf %s "checking for $ac_word... " >&6; }
6168if test ${ac_cv_prog_ac_ct_STRIP+y}
6169then :
6170  printf %s "(cached) " >&6
6171else $as_nop
6172  if test -n "$ac_ct_STRIP"; then
6173  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6174else
6175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176for as_dir in $PATH
6177do
6178  IFS=$as_save_IFS
6179  case $as_dir in #(((
6180    '') as_dir=./ ;;
6181    */) ;;
6182    *) as_dir=$as_dir/ ;;
6183  esac
6184    for ac_exec_ext in '' $ac_executable_extensions; do
6185  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6186    ac_cv_prog_ac_ct_STRIP="strip"
6187    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6188    break 2
6189  fi
6190done
6191  done
6192IFS=$as_save_IFS
6193
6194fi
6195fi
6196ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6197if test -n "$ac_ct_STRIP"; then
6198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6199printf "%s\n" "$ac_ct_STRIP" >&6; }
6200else
6201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202printf "%s\n" "no" >&6; }
6203fi
6204
6205  if test "x$ac_ct_STRIP" = x; then
6206    STRIP=":"
6207  else
6208    case $cross_compiling:$ac_tool_warned in
6209yes:)
6210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212ac_tool_warned=yes ;;
6213esac
6214    STRIP=$ac_ct_STRIP
6215  fi
6216else
6217  STRIP="$ac_cv_prog_STRIP"
6218fi
6219
6220fi
6221INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6222
6223
6224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6225printf %s "checking for a race-free mkdir -p... " >&6; }
6226if test -z "$MKDIR_P"; then
6227  if test ${ac_cv_path_mkdir+y}
6228then :
6229  printf %s "(cached) " >&6
6230else $as_nop
6231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6233do
6234  IFS=$as_save_IFS
6235  case $as_dir in #(((
6236    '') as_dir=./ ;;
6237    */) ;;
6238    *) as_dir=$as_dir/ ;;
6239  esac
6240    for ac_prog in mkdir gmkdir; do
6241	 for ac_exec_ext in '' $ac_executable_extensions; do
6242	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6243	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6244	     'mkdir ('*'coreutils) '* | \
6245	     'BusyBox '* | \
6246	     'mkdir (fileutils) '4.1*)
6247	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6248	       break 3;;
6249	   esac
6250	 done
6251       done
6252  done
6253IFS=$as_save_IFS
6254
6255fi
6256
6257  test -d ./--version && rmdir ./--version
6258  if test ${ac_cv_path_mkdir+y}; then
6259    MKDIR_P="$ac_cv_path_mkdir -p"
6260  else
6261    # As a last resort, use the slow shell script.  Don't cache a
6262    # value for MKDIR_P within a source directory, because that will
6263    # break other packages using the cache if that directory is
6264    # removed, or if the value is a relative name.
6265    MKDIR_P="$ac_install_sh -d"
6266  fi
6267fi
6268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6269printf "%s\n" "$MKDIR_P" >&6; }
6270
6271for ac_prog in gawk mawk nawk awk
6272do
6273  # Extract the first word of "$ac_prog", so it can be a program name with args.
6274set dummy $ac_prog; ac_word=$2
6275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276printf %s "checking for $ac_word... " >&6; }
6277if test ${ac_cv_prog_AWK+y}
6278then :
6279  printf %s "(cached) " >&6
6280else $as_nop
6281  if test -n "$AWK"; then
6282  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287  IFS=$as_save_IFS
6288  case $as_dir in #(((
6289    '') as_dir=./ ;;
6290    */) ;;
6291    *) as_dir=$as_dir/ ;;
6292  esac
6293    for ac_exec_ext in '' $ac_executable_extensions; do
6294  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6295    ac_cv_prog_AWK="$ac_prog"
6296    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300  done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305AWK=$ac_cv_prog_AWK
6306if test -n "$AWK"; then
6307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6308printf "%s\n" "$AWK" >&6; }
6309else
6310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311printf "%s\n" "no" >&6; }
6312fi
6313
6314
6315  test -n "$AWK" && break
6316done
6317
6318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6319printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6320set x ${MAKE-make}
6321ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6322if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6323then :
6324  printf %s "(cached) " >&6
6325else $as_nop
6326  cat >conftest.make <<\_ACEOF
6327SHELL = /bin/sh
6328all:
6329	@echo '@@@%%%=$(MAKE)=@@@%%%'
6330_ACEOF
6331# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6332case `${MAKE-make} -f conftest.make 2>/dev/null` in
6333  *@@@%%%=?*=@@@%%%*)
6334    eval ac_cv_prog_make_${ac_make}_set=yes;;
6335  *)
6336    eval ac_cv_prog_make_${ac_make}_set=no;;
6337esac
6338rm -f conftest.make
6339fi
6340if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6342printf "%s\n" "yes" >&6; }
6343  SET_MAKE=
6344else
6345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346printf "%s\n" "no" >&6; }
6347  SET_MAKE="MAKE=${MAKE-make}"
6348fi
6349
6350rm -rf .tst 2>/dev/null
6351mkdir .tst 2>/dev/null
6352if test -d .tst; then
6353  am__leading_dot=.
6354else
6355  am__leading_dot=_
6356fi
6357rmdir .tst 2>/dev/null
6358
6359DEPDIR="${am__leading_dot}deps"
6360
6361ac_config_commands="$ac_config_commands depfiles"
6362
6363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6364printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6365cat > confinc.mk << 'END'
6366am__doit:
6367	@echo this is the am__doit target >confinc.out
6368.PHONY: am__doit
6369END
6370am__include="#"
6371am__quote=
6372# BSD make does it like this.
6373echo '.include "confinc.mk" # ignored' > confmf.BSD
6374# Other make implementations (GNU, Solaris 10, AIX) do it like this.
6375echo 'include confinc.mk # ignored' > confmf.GNU
6376_am_result=no
6377for s in GNU BSD; do
6378  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6379   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }
6383  case $?:`cat confinc.out 2>/dev/null` in #(
6384  '0:this is the am__doit target') :
6385    case $s in #(
6386  BSD) :
6387    am__include='.include' am__quote='"' ;; #(
6388  *) :
6389    am__include='include' am__quote='' ;;
6390esac ;; #(
6391  *) :
6392     ;;
6393esac
6394  if test "$am__include" != "#"; then
6395    _am_result="yes ($s style)"
6396    break
6397  fi
6398done
6399rm -f confinc.* confmf.*
6400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6401printf "%s\n" "${_am_result}" >&6; }
6402
6403# Check whether --enable-dependency-tracking was given.
6404if test ${enable_dependency_tracking+y}
6405then :
6406  enableval=$enable_dependency_tracking;
6407fi
6408
6409if test "x$enable_dependency_tracking" != xno; then
6410  am_depcomp="$ac_aux_dir/depcomp"
6411  AMDEPBACKSLASH='\'
6412  am__nodep='_no'
6413fi
6414 if test "x$enable_dependency_tracking" != xno; then
6415  AMDEP_TRUE=
6416  AMDEP_FALSE='#'
6417else
6418  AMDEP_TRUE='#'
6419  AMDEP_FALSE=
6420fi
6421
6422
6423## --------------------------------------- ##
6424##  Start of automake initialization code  ##
6425## --------------------------------------- ##
6426
6427if test "`cd $srcdir && pwd`" != "`pwd`"; then
6428  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6429  # is not polluted with repeated "-I."
6430  am__isrc=' -I$(srcdir)'
6431  # test to see if srcdir already configured
6432  if test -f $srcdir/config.status; then
6433    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6434  fi
6435fi
6436
6437# test whether we have cygpath
6438if test -z "$CYGPATH_W"; then
6439  if (cygpath --version) >/dev/null 2>/dev/null; then
6440    CYGPATH_W='cygpath -w'
6441  else
6442    CYGPATH_W=echo
6443  fi
6444fi
6445
6446
6447# Define the identity of the package.
6448 PACKAGE='curl'
6449 VERSION='-'
6450
6451
6452printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6453
6454
6455printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6456
6457# Some tools Automake needs.
6458
6459ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6460
6461
6462AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6463
6464
6465AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6466
6467
6468AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6469
6470
6471MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6472
6473# For better backward compatibility.  To be removed once Automake 1.9.x
6474# dies out for good.  For more background, see:
6475# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6476# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6477mkdir_p='$(MKDIR_P)'
6478
6479# We need awk for the "check" target (and possibly the TAP driver).  The
6480# system "awk" is bad on some platforms.
6481# Always define AMTAR for backward compatibility.  Yes, it's still used
6482# in the wild :-(  We should find a proper way to deprecate it ...
6483AMTAR='$${TAR-tar}'
6484
6485
6486# We'll loop over all known methods to create a tar archive until one works.
6487_am_tools='gnutar  pax cpio none'
6488
6489am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6490
6491
6492
6493
6494
6495depcc="$CC"   am_compiler_list=
6496
6497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6498printf %s "checking dependency style of $depcc... " >&6; }
6499if test ${am_cv_CC_dependencies_compiler_type+y}
6500then :
6501  printf %s "(cached) " >&6
6502else $as_nop
6503  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6504  # We make a subdir and do the tests there.  Otherwise we can end up
6505  # making bogus files that we don't know about and never remove.  For
6506  # instance it was reported that on HP-UX the gcc test will end up
6507  # making a dummy file named 'D' -- because '-MD' means "put the output
6508  # in D".
6509  rm -rf conftest.dir
6510  mkdir conftest.dir
6511  # Copy depcomp to subdir because otherwise we won't find it if we're
6512  # using a relative directory.
6513  cp "$am_depcomp" conftest.dir
6514  cd conftest.dir
6515  # We will build objects and dependencies in a subdirectory because
6516  # it helps to detect inapplicable dependency modes.  For instance
6517  # both Tru64's cc and ICC support -MD to output dependencies as a
6518  # side effect of compilation, but ICC will put the dependencies in
6519  # the current directory while Tru64 will put them in the object
6520  # directory.
6521  mkdir sub
6522
6523  am_cv_CC_dependencies_compiler_type=none
6524  if test "$am_compiler_list" = ""; then
6525     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6526  fi
6527  am__universal=false
6528  case " $depcc " in #(
6529     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6530     esac
6531
6532  for depmode in $am_compiler_list; do
6533    # Setup a source with many dependencies, because some compilers
6534    # like to wrap large dependency lists on column 80 (with \), and
6535    # we should not choose a depcomp mode which is confused by this.
6536    #
6537    # We need to recreate these files for each test, as the compiler may
6538    # overwrite some of them when testing with obscure command lines.
6539    # This happens at least with the AIX C compiler.
6540    : > sub/conftest.c
6541    for i in 1 2 3 4 5 6; do
6542      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6543      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6544      # Solaris 10 /bin/sh.
6545      echo '/* dummy */' > sub/conftst$i.h
6546    done
6547    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6548
6549    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6550    # mode.  It turns out that the SunPro C++ compiler does not properly
6551    # handle '-M -o', and we need to detect this.  Also, some Intel
6552    # versions had trouble with output in subdirs.
6553    am__obj=sub/conftest.${OBJEXT-o}
6554    am__minus_obj="-o $am__obj"
6555    case $depmode in
6556    gcc)
6557      # This depmode causes a compiler race in universal mode.
6558      test "$am__universal" = false || continue
6559      ;;
6560    nosideeffect)
6561      # After this tag, mechanisms are not by side-effect, so they'll
6562      # only be used when explicitly requested.
6563      if test "x$enable_dependency_tracking" = xyes; then
6564	continue
6565      else
6566	break
6567      fi
6568      ;;
6569    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6570      # This compiler won't grok '-c -o', but also, the minuso test has
6571      # not run yet.  These depmodes are late enough in the game, and
6572      # so weak that their functioning should not be impacted.
6573      am__obj=conftest.${OBJEXT-o}
6574      am__minus_obj=
6575      ;;
6576    none) break ;;
6577    esac
6578    if depmode=$depmode \
6579       source=sub/conftest.c object=$am__obj \
6580       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6581       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6582         >/dev/null 2>conftest.err &&
6583       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6584       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6585       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6586       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6587      # icc doesn't choke on unknown options, it will just issue warnings
6588      # or remarks (even with -Werror).  So we grep stderr for any message
6589      # that says an option was ignored or not supported.
6590      # When given -MP, icc 7.0 and 7.1 complain thusly:
6591      #   icc: Command line warning: ignoring option '-M'; no argument required
6592      # The diagnosis changed in icc 8.0:
6593      #   icc: Command line remark: option '-MP' not supported
6594      if (grep 'ignoring option' conftest.err ||
6595          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6596        am_cv_CC_dependencies_compiler_type=$depmode
6597        break
6598      fi
6599    fi
6600  done
6601
6602  cd ..
6603  rm -rf conftest.dir
6604else
6605  am_cv_CC_dependencies_compiler_type=none
6606fi
6607
6608fi
6609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6610printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6611CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6612
6613 if
6614  test "x$enable_dependency_tracking" != xno \
6615  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6616  am__fastdepCC_TRUE=
6617  am__fastdepCC_FALSE='#'
6618else
6619  am__fastdepCC_TRUE='#'
6620  am__fastdepCC_FALSE=
6621fi
6622
6623
6624# Variables for tags utilities; see am/tags.am
6625if test -z "$CTAGS"; then
6626  CTAGS=ctags
6627fi
6628
6629if test -z "$ETAGS"; then
6630  ETAGS=etags
6631fi
6632
6633if test -z "$CSCOPE"; then
6634  CSCOPE=cscope
6635fi
6636
6637
6638
6639# POSIX will say in a future version that running "rm -f" with no argument
6640# is OK; and we want to be able to make that assumption in our Makefile
6641# recipes.  So use an aggressive probe to check that the usage we want is
6642# actually supported "in the wild" to an acceptable degree.
6643# See automake bug#10828.
6644# To make any issue more visible, cause the running configure to be aborted
6645# by default if the 'rm' program in use doesn't match our expectations; the
6646# user can still override this though.
6647if rm -f && rm -fr && rm -rf; then : OK; else
6648  cat >&2 <<'END'
6649Oops!
6650
6651Your 'rm' program seems unable to run without file operands specified
6652on the command line, even when the '-f' option is present.  This is contrary
6653to the behaviour of most rm programs out there, and not conforming with
6654the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6655
6656Please tell bug-automake@gnu.org about your system, including the value
6657of your $PATH and any error possibly output before this message.  This
6658can help us improve future automake versions.
6659
6660END
6661  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6662    echo 'Configuration will proceed anyway, since you have set the' >&2
6663    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6664    echo >&2
6665  else
6666    cat >&2 <<'END'
6667Aborting the configuration process, to ensure you take notice of the issue.
6668
6669You can download and install GNU coreutils to get an 'rm' implementation
6670that behaves properly: <https://www.gnu.org/software/coreutils/>.
6671
6672If you want to complete the configuration process using your problematic
6673'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6674to "yes", and re-run configure.
6675
6676END
6677    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6678  fi
6679fi
6680
6681## ------------------------------------- ##
6682##  End of automake initialization code  ##
6683## ------------------------------------- ##
6684
6685
6686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6687printf %s "checking curl version... " >&6; }
6688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6689printf "%s\n" "$CURLVERSION" >&6; }
6690
6691
6692
6693VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6694
6695
6696PKGADD_PKG="HAXXcurl"
6697PKGADD_NAME="curl - a client that groks URLs"
6698PKGADD_VENDOR="curl.se"
6699
6700
6701
6702
6703    curl_ssl_msg="no      (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
6704    curl_ssh_msg="no      (--with-{libssh,libssh2})"
6705   curl_zlib_msg="no      (--with-zlib)"
6706 curl_brotli_msg="no      (--with-brotli)"
6707   curl_zstd_msg="no      (--with-zstd)"
6708    curl_gss_msg="no      (--with-gssapi)"
6709  curl_gsasl_msg="no      (--with-gsasl)"
6710curl_tls_srp_msg="no      (--enable-tls-srp)"
6711    curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6712   curl_ipv6_msg="no      (--enable-ipv6)"
6713curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6714    curl_idn_msg="no      (--with-{libidn2,winidn})"
6715   curl_docs_msg="enabled (--disable-docs)"
6716 curl_manual_msg="no      (--enable-manual)"
6717curl_libcurl_msg="enabled (--disable-libcurl-option)"
6718curl_verbose_msg="enabled (--disable-verbose)"
6719   curl_sspi_msg="no      (--enable-sspi)"
6720   curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6721  curl_ldaps_msg="no      (--enable-ldaps)"
6722   curl_rtsp_msg="no      (--enable-rtsp)"
6723   curl_rtmp_msg="no      (--with-librtmp)"
6724    curl_psl_msg="no      (--with-libpsl)"
6725 curl_altsvc_msg="enabled (--disable-alt-svc)"
6726curl_headers_msg="enabled (--disable-headers-api)"
6727   curl_hsts_msg="enabled (--disable-hsts)"
6728     curl_ws_msg="no      (--enable-websockets)"
6729    ssl_backends=
6730     curl_h1_msg="enabled (internal)"
6731     curl_h2_msg="no      (--with-nghttp2)"
6732     curl_h3_msg="no      (--with-ngtcp2 --with-nghttp3, --with-quiche, --with-openssl-quic, --with-msh3)"
6733
6734enable_altsvc="yes"
6735hsts="yes"
6736
6737INITIAL_LDFLAGS=$LDFLAGS
6738INITIAL_LIBS=$LIBS
6739
6740compilersh="run-compiler"
6741CURL_SAVED_CC="$CC"
6742export CURL_SAVED_CC
6743CURL_SAVED_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
6744export CURL_SAVED_LD_LIBRARY_PATH
6745cat <<\EOF > "$compilersh"
6746CC="$CURL_SAVED_CC"
6747export CC
6748LD_LIBRARY_PATH="$CURL_SAVED_LD_LIBRARY_PATH"
6749export LD_LIBRARY_PATH
6750exec $CC "$@"
6751EOF
6752
6753OPT_SCHANNEL=no
6754
6755# Check whether --with-schannel was given.
6756if test ${with_schannel+y}
6757then :
6758  withval=$with_schannel; OPT_SCHANNEL=$withval
6759  TLSCHOICE="schannel"
6760fi
6761
6762
6763OPT_SECURETRANSPORT=no
6764
6765# Check whether --with-secure-transport was given.
6766if test ${with_secure_transport+y}
6767then :
6768  withval=$with_secure_transport;
6769  OPT_SECURETRANSPORT=$withval
6770  TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
6771
6772fi
6773
6774
6775OPT_AMISSL=no
6776
6777# Check whether --with-amissl was given.
6778if test ${with_amissl+y}
6779then :
6780  withval=$with_amissl;
6781  OPT_AMISSL=$withval
6782  TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
6783
6784fi
6785
6786
6787OPT_OPENSSL=no
6788ca="no"
6789
6790# Check whether --with-ssl was given.
6791if test ${with_ssl+y}
6792then :
6793  withval=$with_ssl;
6794  OPT_SSL=$withval
6795  OPT_OPENSSL=$withval
6796  if test X"$withval" != Xno; then
6797    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6798  else
6799    SSL_DISABLED="D"
6800  fi
6801
6802fi
6803
6804
6805
6806# Check whether --with-openssl was given.
6807if test ${with_openssl+y}
6808then :
6809  withval=$with_openssl;
6810  OPT_OPENSSL=$withval
6811  if test X"$withval" != Xno; then
6812    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6813  fi
6814
6815fi
6816
6817
6818OPT_GNUTLS=no
6819
6820# Check whether --with-gnutls was given.
6821if test ${with_gnutls+y}
6822then :
6823  withval=$with_gnutls;
6824  OPT_GNUTLS=$withval
6825  if test X"$withval" != Xno; then
6826    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
6827  fi
6828
6829fi
6830
6831
6832OPT_MBEDTLS=no
6833
6834# Check whether --with-mbedtls was given.
6835if test ${with_mbedtls+y}
6836then :
6837  withval=$with_mbedtls;
6838  OPT_MBEDTLS=$withval
6839  if test X"$withval" != Xno; then
6840    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
6841  fi
6842
6843fi
6844
6845
6846OPT_WOLFSSL=no
6847
6848# Check whether --with-wolfssl was given.
6849if test ${with_wolfssl+y}
6850then :
6851  withval=$with_wolfssl;
6852  OPT_WOLFSSL=$withval
6853  if test X"$withval" != Xno; then
6854    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
6855  fi
6856
6857fi
6858
6859
6860OPT_BEARSSL=no
6861
6862# Check whether --with-bearssl was given.
6863if test ${with_bearssl+y}
6864then :
6865  withval=$with_bearssl;
6866  OPT_BEARSSL=$withval
6867  if test X"$withval" != Xno; then
6868    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
6869  fi
6870
6871fi
6872
6873
6874OPT_RUSTLS=no
6875
6876# Check whether --with-rustls was given.
6877if test ${with_rustls+y}
6878then :
6879  withval=$with_rustls;
6880  OPT_RUSTLS=$withval
6881  if test X"$withval" != Xno; then
6882    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
6883    experimental="$experimental rustls"
6884  fi
6885
6886fi
6887
6888
6889TEST_NGHTTPX=nghttpx
6890
6891# Check whether --with-test-nghttpx was given.
6892if test ${with_test_nghttpx+y}
6893then :
6894  withval=$with_test_nghttpx; TEST_NGHTTPX=$withval
6895  if test X"$OPT_TEST_NGHTTPX" = "Xno" ; then
6896      TEST_NGHTTPX=""
6897  fi
6898
6899fi
6900
6901
6902
6903CADDY=/usr/bin/caddy
6904
6905# Check whether --with-test-caddy was given.
6906if test ${with_test_caddy+y}
6907then :
6908  withval=$with_test_caddy; CADDY=$withval
6909  if test X"$OPT_CADDY" = "Xno" ; then
6910      CADDY=""
6911  fi
6912
6913fi
6914
6915
6916
6917VSFTPD=/usr/sbin/vsftpd
6918
6919# Check whether --with-test-vsftpd was given.
6920if test ${with_test_vsftpd+y}
6921then :
6922  withval=$with_test_vsftpd; VSFTPD=$withval
6923  if test X"$OPT_VSFTPD" = "Xno" ; then
6924      VSFTPD=""
6925  fi
6926
6927fi
6928
6929
6930
6931HTTPD_ENABLED="maybe"
6932
6933# Check whether --with-test-httpd was given.
6934if test ${with_test_httpd+y}
6935then :
6936  withval=$with_test_httpd; request_httpd=$withval
6937else $as_nop
6938  request_httpd=check
6939fi
6940
6941if test x"$request_httpd" = "xcheck" -o x"$request_httpd" = "xyes"; then
6942  if test -x "/usr/sbin/apache2" -a -x "/usr/sbin/apache2ctl"; then
6943    # common location on distros (debian/ubuntu)
6944    HTTPD="/usr/sbin/apache2"
6945    APACHECTL="/usr/sbin/apache2ctl"
6946    # Extract the first word of "apxs", so it can be a program name with args.
6947set dummy apxs; ac_word=$2
6948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949printf %s "checking for $ac_word... " >&6; }
6950if test ${ac_cv_path_APXS+y}
6951then :
6952  printf %s "(cached) " >&6
6953else $as_nop
6954  case $APXS in
6955  [\\/]* | ?:[\\/]*)
6956  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
6957  ;;
6958  *)
6959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962  IFS=$as_save_IFS
6963  case $as_dir in #(((
6964    '') as_dir=./ ;;
6965    */) ;;
6966    *) as_dir=$as_dir/ ;;
6967  esac
6968    for ac_exec_ext in '' $ac_executable_extensions; do
6969  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6970    ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
6971    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6972    break 2
6973  fi
6974done
6975  done
6976IFS=$as_save_IFS
6977
6978  ;;
6979esac
6980fi
6981APXS=$ac_cv_path_APXS
6982if test -n "$APXS"; then
6983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
6984printf "%s\n" "$APXS" >&6; }
6985else
6986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987printf "%s\n" "no" >&6; }
6988fi
6989
6990
6991    if test "x$APXS" = "x"; then
6992      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apache2-dev not installed, httpd tests disabled" >&5
6993printf "%s\n" "$as_me: apache2-dev not installed, httpd tests disabled" >&6;}
6994      HTTPD_ENABLED="no"
6995    fi
6996  else
6997    # Extract the first word of "httpd", so it can be a program name with args.
6998set dummy httpd; ac_word=$2
6999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000printf %s "checking for $ac_word... " >&6; }
7001if test ${ac_cv_path_HTTPD+y}
7002then :
7003  printf %s "(cached) " >&6
7004else $as_nop
7005  case $HTTPD in
7006  [\\/]* | ?:[\\/]*)
7007  ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
7008  ;;
7009  *)
7010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013  IFS=$as_save_IFS
7014  case $as_dir in #(((
7015    '') as_dir=./ ;;
7016    */) ;;
7017    *) as_dir=$as_dir/ ;;
7018  esac
7019    for ac_exec_ext in '' $ac_executable_extensions; do
7020  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7021    ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
7022    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7023    break 2
7024  fi
7025done
7026  done
7027IFS=$as_save_IFS
7028
7029  ;;
7030esac
7031fi
7032HTTPD=$ac_cv_path_HTTPD
7033if test -n "$HTTPD"; then
7034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
7035printf "%s\n" "$HTTPD" >&6; }
7036else
7037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038printf "%s\n" "no" >&6; }
7039fi
7040
7041
7042    if test "x$HTTPD" = "x"; then
7043      # Extract the first word of "apache2", so it can be a program name with args.
7044set dummy apache2; ac_word=$2
7045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046printf %s "checking for $ac_word... " >&6; }
7047if test ${ac_cv_path_HTTPD+y}
7048then :
7049  printf %s "(cached) " >&6
7050else $as_nop
7051  case $HTTPD in
7052  [\\/]* | ?:[\\/]*)
7053  ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
7054  ;;
7055  *)
7056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059  IFS=$as_save_IFS
7060  case $as_dir in #(((
7061    '') as_dir=./ ;;
7062    */) ;;
7063    *) as_dir=$as_dir/ ;;
7064  esac
7065    for ac_exec_ext in '' $ac_executable_extensions; do
7066  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7067    ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
7068    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7069    break 2
7070  fi
7071done
7072  done
7073IFS=$as_save_IFS
7074
7075  ;;
7076esac
7077fi
7078HTTPD=$ac_cv_path_HTTPD
7079if test -n "$HTTPD"; then
7080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
7081printf "%s\n" "$HTTPD" >&6; }
7082else
7083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084printf "%s\n" "no" >&6; }
7085fi
7086
7087
7088    fi
7089    # Extract the first word of "apachectl", so it can be a program name with args.
7090set dummy apachectl; ac_word=$2
7091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092printf %s "checking for $ac_word... " >&6; }
7093if test ${ac_cv_path_APACHECTL+y}
7094then :
7095  printf %s "(cached) " >&6
7096else $as_nop
7097  case $APACHECTL in
7098  [\\/]* | ?:[\\/]*)
7099  ac_cv_path_APACHECTL="$APACHECTL" # Let the user override the test with a path.
7100  ;;
7101  *)
7102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105  IFS=$as_save_IFS
7106  case $as_dir in #(((
7107    '') as_dir=./ ;;
7108    */) ;;
7109    *) as_dir=$as_dir/ ;;
7110  esac
7111    for ac_exec_ext in '' $ac_executable_extensions; do
7112  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7113    ac_cv_path_APACHECTL="$as_dir$ac_word$ac_exec_ext"
7114    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7115    break 2
7116  fi
7117done
7118  done
7119IFS=$as_save_IFS
7120
7121  ;;
7122esac
7123fi
7124APACHECTL=$ac_cv_path_APACHECTL
7125if test -n "$APACHECTL"; then
7126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APACHECTL" >&5
7127printf "%s\n" "$APACHECTL" >&6; }
7128else
7129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130printf "%s\n" "no" >&6; }
7131fi
7132
7133
7134    # Extract the first word of "apxs", so it can be a program name with args.
7135set dummy apxs; ac_word=$2
7136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137printf %s "checking for $ac_word... " >&6; }
7138if test ${ac_cv_path_APXS+y}
7139then :
7140  printf %s "(cached) " >&6
7141else $as_nop
7142  case $APXS in
7143  [\\/]* | ?:[\\/]*)
7144  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
7145  ;;
7146  *)
7147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150  IFS=$as_save_IFS
7151  case $as_dir in #(((
7152    '') as_dir=./ ;;
7153    */) ;;
7154    *) as_dir=$as_dir/ ;;
7155  esac
7156    for ac_exec_ext in '' $ac_executable_extensions; do
7157  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7158    ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
7159    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7160    break 2
7161  fi
7162done
7163  done
7164IFS=$as_save_IFS
7165
7166  ;;
7167esac
7168fi
7169APXS=$ac_cv_path_APXS
7170if test -n "$APXS"; then
7171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
7172printf "%s\n" "$APXS" >&6; }
7173else
7174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175printf "%s\n" "no" >&6; }
7176fi
7177
7178
7179    if test "x$HTTPD" = "x" -o "x$APACHECTL" = "x"; then
7180      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd/apache2 not in PATH, http tests disabled" >&5
7181printf "%s\n" "$as_me: httpd/apache2 not in PATH, http tests disabled" >&6;}
7182      HTTPD_ENABLED="no"
7183    fi
7184    if test "x$APXS" = "x"; then
7185      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not in PATH, http tests disabled" >&5
7186printf "%s\n" "$as_me: apxs not in PATH, http tests disabled" >&6;}
7187      HTTPD_ENABLED="no"
7188    fi
7189  fi
7190elif test x"$request_httpd" != "xno"; then
7191  HTTPD="${request_httpd}/bin/httpd"
7192  APACHECTL="${request_httpd}/bin/apachectl"
7193  APXS="${request_httpd}/bin/apxs"
7194  if test ! -x "${HTTPD}"; then
7195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd not found as ${HTTPD}, http tests disabled" >&5
7196printf "%s\n" "$as_me: httpd not found as ${HTTPD}, http tests disabled" >&6;}
7197    HTTPD_ENABLED="no"
7198  elif test ! -x "${APACHECTL}"; then
7199    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apachectl not found as ${APACHECTL}, http tests disabled" >&5
7200printf "%s\n" "$as_me: apachectl not found as ${APACHECTL}, http tests disabled" >&6;}
7201    HTTPD_ENABLED="no"
7202  elif test ! -x "${APXS}"; then
7203    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not found as ${APXS}, http tests disabled" >&5
7204printf "%s\n" "$as_me: apxs not found as ${APXS}, http tests disabled" >&6;}
7205    HTTPD_ENABLED="no"
7206  else
7207    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using HTTPD=$HTTPD for tests" >&5
7208printf "%s\n" "$as_me: using HTTPD=$HTTPD for tests" >&6;}
7209  fi
7210fi
7211if test x"$HTTPD_ENABLED" = "xno"; then
7212  HTTPD=""
7213  APACHECTL=""
7214  APXS=""
7215fi
7216
7217
7218
7219
7220if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then
7221  HTTPD_NGHTTPX="$TEST_NGHTTPX"
7222else
7223  # Extract the first word of "nghttpx", so it can be a program name with args.
7224set dummy nghttpx; ac_word=$2
7225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226printf %s "checking for $ac_word... " >&6; }
7227if test ${ac_cv_path_HTTPD_NGHTTPX+y}
7228then :
7229  printf %s "(cached) " >&6
7230else $as_nop
7231  case $HTTPD_NGHTTPX in
7232  [\\/]* | ?:[\\/]*)
7233  ac_cv_path_HTTPD_NGHTTPX="$HTTPD_NGHTTPX" # Let the user override the test with a path.
7234  ;;
7235  *)
7236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237as_dummy="$PATH:/usr/bin:/usr/local/bin"
7238for as_dir in $as_dummy
7239do
7240  IFS=$as_save_IFS
7241  case $as_dir in #(((
7242    '') as_dir=./ ;;
7243    */) ;;
7244    *) as_dir=$as_dir/ ;;
7245  esac
7246    for ac_exec_ext in '' $ac_executable_extensions; do
7247  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7248    ac_cv_path_HTTPD_NGHTTPX="$as_dir$ac_word$ac_exec_ext"
7249    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7250    break 2
7251  fi
7252done
7253  done
7254IFS=$as_save_IFS
7255
7256  ;;
7257esac
7258fi
7259HTTPD_NGHTTPX=$ac_cv_path_HTTPD_NGHTTPX
7260if test -n "$HTTPD_NGHTTPX"; then
7261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD_NGHTTPX" >&5
7262printf "%s\n" "$HTTPD_NGHTTPX" >&6; }
7263else
7264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265printf "%s\n" "no" >&6; }
7266fi
7267
7268
7269fi
7270
7271
7272if test "x$TEST_CADDY" != "x"; then
7273  CADDY="$TEST_CADDY"
7274else
7275  # Extract the first word of "caddy", so it can be a program name with args.
7276set dummy caddy; ac_word=$2
7277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278printf %s "checking for $ac_word... " >&6; }
7279if test ${ac_cv_path_CADDY+y}
7280then :
7281  printf %s "(cached) " >&6
7282else $as_nop
7283  case $CADDY in
7284  [\\/]* | ?:[\\/]*)
7285  ac_cv_path_CADDY="$CADDY" # Let the user override the test with a path.
7286  ;;
7287  *)
7288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  case $as_dir in #(((
7293    '') as_dir=./ ;;
7294    */) ;;
7295    *) as_dir=$as_dir/ ;;
7296  esac
7297    for ac_exec_ext in '' $ac_executable_extensions; do
7298  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7299    ac_cv_path_CADDY="$as_dir$ac_word$ac_exec_ext"
7300    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7301    break 2
7302  fi
7303done
7304  done
7305IFS=$as_save_IFS
7306
7307  ;;
7308esac
7309fi
7310CADDY=$ac_cv_path_CADDY
7311if test -n "$CADDY"; then
7312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CADDY" >&5
7313printf "%s\n" "$CADDY" >&6; }
7314else
7315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316printf "%s\n" "no" >&6; }
7317fi
7318
7319
7320fi
7321
7322
7323if test -z "$TLSCHOICE"; then
7324  if test "x$OPT_SSL" != "xno"; then
7325    as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
7326
7327Select from these:
7328
7329  --with-amissl
7330  --with-bearssl
7331  --with-gnutls
7332  --with-mbedtls
7333  --with-openssl (also works for BoringSSL and libressl)
7334  --with-rustls
7335  --with-schannel
7336  --with-secure-transport
7337  --with-wolfssl
7338" "$LINENO" 5
7339  fi
7340fi
7341
7342
7343# Check whether --with-darwinssl was given.
7344if test ${with_darwinssl+y}
7345then :
7346  withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl and --without-darwin-ssl no longer work!" "$LINENO" 5
7347fi
7348
7349
7350
7351
7352
7353  # Make sure we can run config.sub.
7354$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7355  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7356
7357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7358printf %s "checking build system type... " >&6; }
7359if test ${ac_cv_build+y}
7360then :
7361  printf %s "(cached) " >&6
7362else $as_nop
7363  ac_build_alias=$build_alias
7364test "x$ac_build_alias" = x &&
7365  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7366test "x$ac_build_alias" = x &&
7367  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7368ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7369  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7370
7371fi
7372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7373printf "%s\n" "$ac_cv_build" >&6; }
7374case $ac_cv_build in
7375*-*-*) ;;
7376*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7377esac
7378build=$ac_cv_build
7379ac_save_IFS=$IFS; IFS='-'
7380set x $ac_cv_build
7381shift
7382build_cpu=$1
7383build_vendor=$2
7384shift; shift
7385# Remember, the first character of IFS is used to create $*,
7386# except with old shells:
7387build_os=$*
7388IFS=$ac_save_IFS
7389case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7390
7391
7392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7393printf %s "checking host system type... " >&6; }
7394if test ${ac_cv_host+y}
7395then :
7396  printf %s "(cached) " >&6
7397else $as_nop
7398  if test "x$host_alias" = x; then
7399  ac_cv_host=$ac_cv_build
7400else
7401  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7402    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7403fi
7404
7405fi
7406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7407printf "%s\n" "$ac_cv_host" >&6; }
7408case $ac_cv_host in
7409*-*-*) ;;
7410*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7411esac
7412host=$ac_cv_host
7413ac_save_IFS=$IFS; IFS='-'
7414set x $ac_cv_host
7415shift
7416host_cpu=$1
7417host_vendor=$2
7418shift; shift
7419# Remember, the first character of IFS is used to create $*,
7420# except with old shells:
7421host_os=$*
7422IFS=$ac_save_IFS
7423case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7424
7425
7426
7427printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
7428
7429
7430# Silence warning: ar: 'u' modifier ignored since 'D' is the default
7431AR_FLAGS=cr
7432
7433
7434
7435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7436printf %s "checking for grep that handles long lines and -e... " >&6; }
7437if test ${ac_cv_path_GREP+y}
7438then :
7439  printf %s "(cached) " >&6
7440else $as_nop
7441  if test -z "$GREP"; then
7442  ac_path_GREP_found=false
7443  # Loop through the user's path and test for each of PROGNAME-LIST
7444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7446do
7447  IFS=$as_save_IFS
7448  case $as_dir in #(((
7449    '') as_dir=./ ;;
7450    */) ;;
7451    *) as_dir=$as_dir/ ;;
7452  esac
7453    for ac_prog in grep ggrep
7454   do
7455    for ac_exec_ext in '' $ac_executable_extensions; do
7456      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7457      as_fn_executable_p "$ac_path_GREP" || continue
7458# Check for GNU ac_path_GREP and select it if it is found.
7459  # Check for GNU $ac_path_GREP
7460case `"$ac_path_GREP" --version 2>&1` in
7461*GNU*)
7462  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7463*)
7464  ac_count=0
7465  printf %s 0123456789 >"conftest.in"
7466  while :
7467  do
7468    cat "conftest.in" "conftest.in" >"conftest.tmp"
7469    mv "conftest.tmp" "conftest.in"
7470    cp "conftest.in" "conftest.nl"
7471    printf "%s\n" 'GREP' >> "conftest.nl"
7472    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7473    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7474    as_fn_arith $ac_count + 1 && ac_count=$as_val
7475    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7476      # Best one so far, save it but keep looking for a better one
7477      ac_cv_path_GREP="$ac_path_GREP"
7478      ac_path_GREP_max=$ac_count
7479    fi
7480    # 10*(2^10) chars as input seems more than enough
7481    test $ac_count -gt 10 && break
7482  done
7483  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7484esac
7485
7486      $ac_path_GREP_found && break 3
7487    done
7488  done
7489  done
7490IFS=$as_save_IFS
7491  if test -z "$ac_cv_path_GREP"; then
7492    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7493  fi
7494else
7495  ac_cv_path_GREP=$GREP
7496fi
7497
7498fi
7499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7500printf "%s\n" "$ac_cv_path_GREP" >&6; }
7501 GREP="$ac_cv_path_GREP"
7502
7503
7504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7505printf %s "checking for egrep... " >&6; }
7506if test ${ac_cv_path_EGREP+y}
7507then :
7508  printf %s "(cached) " >&6
7509else $as_nop
7510  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7511   then ac_cv_path_EGREP="$GREP -E"
7512   else
7513     if test -z "$EGREP"; then
7514  ac_path_EGREP_found=false
7515  # Loop through the user's path and test for each of PROGNAME-LIST
7516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7518do
7519  IFS=$as_save_IFS
7520  case $as_dir in #(((
7521    '') as_dir=./ ;;
7522    */) ;;
7523    *) as_dir=$as_dir/ ;;
7524  esac
7525    for ac_prog in egrep
7526   do
7527    for ac_exec_ext in '' $ac_executable_extensions; do
7528      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7529      as_fn_executable_p "$ac_path_EGREP" || continue
7530# Check for GNU ac_path_EGREP and select it if it is found.
7531  # Check for GNU $ac_path_EGREP
7532case `"$ac_path_EGREP" --version 2>&1` in
7533*GNU*)
7534  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7535*)
7536  ac_count=0
7537  printf %s 0123456789 >"conftest.in"
7538  while :
7539  do
7540    cat "conftest.in" "conftest.in" >"conftest.tmp"
7541    mv "conftest.tmp" "conftest.in"
7542    cp "conftest.in" "conftest.nl"
7543    printf "%s\n" 'EGREP' >> "conftest.nl"
7544    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7545    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7546    as_fn_arith $ac_count + 1 && ac_count=$as_val
7547    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7548      # Best one so far, save it but keep looking for a better one
7549      ac_cv_path_EGREP="$ac_path_EGREP"
7550      ac_path_EGREP_max=$ac_count
7551    fi
7552    # 10*(2^10) chars as input seems more than enough
7553    test $ac_count -gt 10 && break
7554  done
7555  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7556esac
7557
7558      $ac_path_EGREP_found && break 3
7559    done
7560  done
7561  done
7562IFS=$as_save_IFS
7563  if test -z "$ac_cv_path_EGREP"; then
7564    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7565  fi
7566else
7567  ac_cv_path_EGREP=$EGREP
7568fi
7569
7570   fi
7571fi
7572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7573printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7574 EGREP="$ac_cv_path_EGREP"
7575
7576
7577
7578
7579      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7580printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582/* end confdefs.h.  */
7583
7584#ifdef _AIX
7585   yes_this_is_aix
7586#endif
7587
7588_ACEOF
7589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7590  $EGREP "yes_this_is_aix" >/dev/null 2>&1
7591then :
7592
7593    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7594printf "%s\n" "yes" >&6; }
7595    printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7596
7597
7598else $as_nop
7599
7600    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601printf "%s\n" "no" >&6; }
7602
7603fi
7604rm -rf conftest*
7605
7606
7607
7608
7609    #
7610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7611printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h.  */
7614
7615
7616
7617int main (void)
7618{
7619
7620#ifdef _THREAD_SAFE
7621      int dummy=1;
7622#else
7623      force compilation error
7624#endif
7625
7626 ;
7627 return 0;
7628}
7629
7630_ACEOF
7631if ac_fn_c_try_compile "$LINENO"
7632then :
7633
7634    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7635printf "%s\n" "yes" >&6; }
7636    tmp_thread_safe_initially_defined="yes"
7637
7638else $as_nop
7639
7640    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641printf "%s\n" "no" >&6; }
7642    tmp_thread_safe_initially_defined="no"
7643
7644fi
7645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7646  #
7647  if test "$tmp_thread_safe_initially_defined" = "no"; then
7648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7649printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7650
7651  case $host_os in
7652    aix[123].* | aix4.[012].*)
7653            tmp_need_thread_safe="no"
7654      ;;
7655    aix*)
7656            tmp_need_thread_safe="yes"
7657      ;;
7658    *)
7659      tmp_need_thread_safe="no"
7660      ;;
7661  esac
7662
7663    if test "$tmp_need_thread_safe" = "yes"; then
7664      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7665printf "%s\n" "yes" >&6; }
7666    else
7667      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668printf "%s\n" "no" >&6; }
7669    fi
7670  fi
7671  #
7672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7673printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7674  if test "$tmp_thread_safe_initially_defined" = "yes" ||
7675    test "$tmp_need_thread_safe" = "yes"; then
7676
7677
7678printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7679
7680cat >>confdefs.h <<_EOF
7681#ifndef _THREAD_SAFE
7682#  define _THREAD_SAFE
7683#endif
7684_EOF
7685
7686    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687printf "%s\n" "yes" >&6; }
7688  else
7689    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690printf "%s\n" "no" >&6; }
7691  fi
7692  #
7693
7694
7695    #
7696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7697printf %s "checking if _REENTRANT is already defined... " >&6; }
7698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h.  */
7700
7701
7702
7703int main (void)
7704{
7705
7706#ifdef _REENTRANT
7707      int dummy=1;
7708#else
7709      force compilation error
7710#endif
7711
7712 ;
7713 return 0;
7714}
7715
7716_ACEOF
7717if ac_fn_c_try_compile "$LINENO"
7718then :
7719
7720    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7721printf "%s\n" "yes" >&6; }
7722    tmp_reentrant_initially_defined="yes"
7723
7724else $as_nop
7725
7726    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727printf "%s\n" "no" >&6; }
7728    tmp_reentrant_initially_defined="no"
7729
7730fi
7731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7732  #
7733  if test "$tmp_reentrant_initially_defined" = "no"; then
7734    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7735printf %s "checking if _REENTRANT is actually needed... " >&6; }
7736
7737  case $host_os in
7738    solaris*)
7739      tmp_need_reentrant="yes"
7740      ;;
7741    *)
7742      tmp_need_reentrant="no"
7743      ;;
7744  esac
7745
7746    if test "$tmp_need_reentrant" = "no"; then
7747
7748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749/* end confdefs.h.  */
7750
7751
7752#include <errno.h>
7753
7754int main (void)
7755{
7756
7757      if(0 != errno)
7758        return 1;
7759
7760 ;
7761 return 0;
7762}
7763
7764_ACEOF
7765if ac_fn_c_try_compile "$LINENO"
7766then :
7767
7768    tmp_errno="yes"
7769
7770else $as_nop
7771
7772    tmp_errno="no"
7773
7774fi
7775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7776  if test "$tmp_errno" = "yes"; then
7777    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778/* end confdefs.h.  */
7779
7780
7781#include <errno.h>
7782
7783int main (void)
7784{
7785
7786#ifdef errno
7787        int dummy=1;
7788#else
7789        force compilation error
7790#endif
7791
7792 ;
7793 return 0;
7794}
7795
7796_ACEOF
7797if ac_fn_c_try_compile "$LINENO"
7798then :
7799
7800      tmp_errno="errno_macro_defined"
7801
7802else $as_nop
7803
7804      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h.  */
7806
7807
7808#define _REENTRANT
7809#include <errno.h>
7810
7811int main (void)
7812{
7813
7814#ifdef errno
7815          int dummy=1;
7816#else
7817          force compilation error
7818#endif
7819
7820 ;
7821 return 0;
7822}
7823
7824_ACEOF
7825if ac_fn_c_try_compile "$LINENO"
7826then :
7827
7828        tmp_errno="errno_macro_needs_reentrant"
7829        tmp_need_reentrant="yes"
7830
7831fi
7832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7833
7834fi
7835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7836  fi
7837
7838    fi
7839    if test "$tmp_need_reentrant" = "no"; then
7840
7841  if test "$tmp_need_reentrant" = "no"; then
7842
7843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h.  */
7845
7846
7847#define gmtime_r innocuous_gmtime_r
7848#ifdef __STDC__
7849# include <limits.h>
7850#else
7851# include <assert.h>
7852#endif
7853#undef gmtime_r
7854#ifdef __cplusplus
7855extern "C"
7856#endif
7857char gmtime_r ();
7858#if defined __stub_gmtime_r || defined __stub___gmtime_r
7859choke me
7860#endif
7861
7862int main (void)
7863{
7864return gmtime_r ();
7865 ;
7866 return 0;
7867}
7868
7869_ACEOF
7870if ac_fn_c_try_link "$LINENO"
7871then :
7872
7873    tmp_gmtime_r="yes"
7874
7875else $as_nop
7876
7877    tmp_gmtime_r="no"
7878
7879fi
7880rm -f core conftest.err conftest.$ac_objext conftest.beam \
7881    conftest$ac_exeext conftest.$ac_ext
7882  if test "$tmp_gmtime_r" = "yes"; then
7883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h.  */
7885
7886#include <sys/types.h>
7887#include <time.h>
7888
7889_ACEOF
7890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891  $EGREP "gmtime_r" >/dev/null 2>&1
7892then :
7893
7894      tmp_gmtime_r="proto_declared"
7895
7896else $as_nop
7897
7898      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900
7901#define _REENTRANT
7902#include <sys/types.h>
7903#include <time.h>
7904
7905_ACEOF
7906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7907  $EGREP "gmtime_r" >/dev/null 2>&1
7908then :
7909
7910        tmp_gmtime_r="proto_needs_reentrant"
7911        tmp_need_reentrant="yes"
7912
7913fi
7914rm -rf conftest*
7915
7916
7917fi
7918rm -rf conftest*
7919
7920  fi
7921
7922  fi
7923  if test "$tmp_need_reentrant" = "no"; then
7924
7925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926/* end confdefs.h.  */
7927
7928
7929#define localtime_r innocuous_localtime_r
7930#ifdef __STDC__
7931# include <limits.h>
7932#else
7933# include <assert.h>
7934#endif
7935#undef localtime_r
7936#ifdef __cplusplus
7937extern "C"
7938#endif
7939char localtime_r ();
7940#if defined __stub_localtime_r || defined __stub___localtime_r
7941choke me
7942#endif
7943
7944int main (void)
7945{
7946return localtime_r ();
7947 ;
7948 return 0;
7949}
7950
7951_ACEOF
7952if ac_fn_c_try_link "$LINENO"
7953then :
7954
7955    tmp_localtime_r="yes"
7956
7957else $as_nop
7958
7959    tmp_localtime_r="no"
7960
7961fi
7962rm -f core conftest.err conftest.$ac_objext conftest.beam \
7963    conftest$ac_exeext conftest.$ac_ext
7964  if test "$tmp_localtime_r" = "yes"; then
7965    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h.  */
7967
7968#include <sys/types.h>
7969#include <time.h>
7970
7971_ACEOF
7972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973  $EGREP "localtime_r" >/dev/null 2>&1
7974then :
7975
7976      tmp_localtime_r="proto_declared"
7977
7978else $as_nop
7979
7980      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h.  */
7982
7983#define _REENTRANT
7984#include <sys/types.h>
7985#include <time.h>
7986
7987_ACEOF
7988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7989  $EGREP "localtime_r" >/dev/null 2>&1
7990then :
7991
7992        tmp_localtime_r="proto_needs_reentrant"
7993        tmp_need_reentrant="yes"
7994
7995fi
7996rm -rf conftest*
7997
7998
7999fi
8000rm -rf conftest*
8001
8002  fi
8003
8004  fi
8005  if test "$tmp_need_reentrant" = "no"; then
8006
8007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008/* end confdefs.h.  */
8009
8010
8011#define strerror_r innocuous_strerror_r
8012#ifdef __STDC__
8013# include <limits.h>
8014#else
8015# include <assert.h>
8016#endif
8017#undef strerror_r
8018#ifdef __cplusplus
8019extern "C"
8020#endif
8021char strerror_r ();
8022#if defined __stub_strerror_r || defined __stub___strerror_r
8023choke me
8024#endif
8025
8026int main (void)
8027{
8028return strerror_r ();
8029 ;
8030 return 0;
8031}
8032
8033_ACEOF
8034if ac_fn_c_try_link "$LINENO"
8035then :
8036
8037    tmp_strerror_r="yes"
8038
8039else $as_nop
8040
8041    tmp_strerror_r="no"
8042
8043fi
8044rm -f core conftest.err conftest.$ac_objext conftest.beam \
8045    conftest$ac_exeext conftest.$ac_ext
8046  if test "$tmp_strerror_r" = "yes"; then
8047    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h.  */
8049
8050#include <sys/types.h>
8051#include <string.h>
8052
8053_ACEOF
8054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8055  $EGREP "strerror_r" >/dev/null 2>&1
8056then :
8057
8058      tmp_strerror_r="proto_declared"
8059
8060else $as_nop
8061
8062      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064
8065#define _REENTRANT
8066#include <sys/types.h>
8067#include <string.h>
8068
8069_ACEOF
8070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8071  $EGREP "strerror_r" >/dev/null 2>&1
8072then :
8073
8074        tmp_strerror_r="proto_needs_reentrant"
8075        tmp_need_reentrant="yes"
8076
8077fi
8078rm -rf conftest*
8079
8080
8081fi
8082rm -rf conftest*
8083
8084  fi
8085
8086  fi
8087  if test "$tmp_need_reentrant" = "no"; then
8088
8089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h.  */
8091
8092
8093#define strtok_r innocuous_strtok_r
8094#ifdef __STDC__
8095# include <limits.h>
8096#else
8097# include <assert.h>
8098#endif
8099#undef strtok_r
8100#ifdef __cplusplus
8101extern "C"
8102#endif
8103char strtok_r ();
8104#if defined __stub_strtok_r || defined __stub___strtok_r
8105choke me
8106#endif
8107
8108int main (void)
8109{
8110return strtok_r ();
8111 ;
8112 return 0;
8113}
8114
8115_ACEOF
8116if ac_fn_c_try_link "$LINENO"
8117then :
8118
8119    tmp_strtok_r="yes"
8120
8121else $as_nop
8122
8123    tmp_strtok_r="no"
8124
8125fi
8126rm -f core conftest.err conftest.$ac_objext conftest.beam \
8127    conftest$ac_exeext conftest.$ac_ext
8128  if test "$tmp_strtok_r" = "yes"; then
8129    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130/* end confdefs.h.  */
8131
8132#include <sys/types.h>
8133#include <string.h>
8134
8135_ACEOF
8136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8137  $EGREP "strtok_r" >/dev/null 2>&1
8138then :
8139
8140      tmp_strtok_r="proto_declared"
8141
8142else $as_nop
8143
8144      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h.  */
8146
8147#define _REENTRANT
8148#include <sys/types.h>
8149#include <string.h>
8150
8151_ACEOF
8152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8153  $EGREP "strtok_r" >/dev/null 2>&1
8154then :
8155
8156        tmp_strtok_r="proto_needs_reentrant"
8157        tmp_need_reentrant="yes"
8158
8159fi
8160rm -rf conftest*
8161
8162
8163fi
8164rm -rf conftest*
8165
8166  fi
8167
8168  fi
8169  if test "$tmp_need_reentrant" = "no"; then
8170
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173
8174
8175#define gethostbyname_r innocuous_gethostbyname_r
8176#ifdef __STDC__
8177# include <limits.h>
8178#else
8179# include <assert.h>
8180#endif
8181#undef gethostbyname_r
8182#ifdef __cplusplus
8183extern "C"
8184#endif
8185char gethostbyname_r ();
8186#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
8187choke me
8188#endif
8189
8190int main (void)
8191{
8192return gethostbyname_r ();
8193 ;
8194 return 0;
8195}
8196
8197_ACEOF
8198if ac_fn_c_try_link "$LINENO"
8199then :
8200
8201    tmp_gethostbyname_r="yes"
8202
8203else $as_nop
8204
8205    tmp_gethostbyname_r="no"
8206
8207fi
8208rm -f core conftest.err conftest.$ac_objext conftest.beam \
8209    conftest$ac_exeext conftest.$ac_ext
8210  if test "$tmp_gethostbyname_r" = "yes"; then
8211    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212/* end confdefs.h.  */
8213
8214#include <sys/types.h>
8215#include <netdb.h>
8216
8217_ACEOF
8218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8219  $EGREP "gethostbyname_r" >/dev/null 2>&1
8220then :
8221
8222      tmp_gethostbyname_r="proto_declared"
8223
8224else $as_nop
8225
8226      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228
8229#define _REENTRANT
8230#include <sys/types.h>
8231#include <netdb.h>
8232
8233_ACEOF
8234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8235  $EGREP "gethostbyname_r" >/dev/null 2>&1
8236then :
8237
8238        tmp_gethostbyname_r="proto_needs_reentrant"
8239        tmp_need_reentrant="yes"
8240
8241fi
8242rm -rf conftest*
8243
8244
8245fi
8246rm -rf conftest*
8247
8248  fi
8249
8250  fi
8251  if test "$tmp_need_reentrant" = "no"; then
8252
8253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254/* end confdefs.h.  */
8255
8256
8257#define getprotobyname_r innocuous_getprotobyname_r
8258#ifdef __STDC__
8259# include <limits.h>
8260#else
8261# include <assert.h>
8262#endif
8263#undef getprotobyname_r
8264#ifdef __cplusplus
8265extern "C"
8266#endif
8267char getprotobyname_r ();
8268#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
8269choke me
8270#endif
8271
8272int main (void)
8273{
8274return getprotobyname_r ();
8275 ;
8276 return 0;
8277}
8278
8279_ACEOF
8280if ac_fn_c_try_link "$LINENO"
8281then :
8282
8283    tmp_getprotobyname_r="yes"
8284
8285else $as_nop
8286
8287    tmp_getprotobyname_r="no"
8288
8289fi
8290rm -f core conftest.err conftest.$ac_objext conftest.beam \
8291    conftest$ac_exeext conftest.$ac_ext
8292  if test "$tmp_getprotobyname_r" = "yes"; then
8293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h.  */
8295
8296#include <sys/types.h>
8297#include <netdb.h>
8298
8299_ACEOF
8300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8301  $EGREP "getprotobyname_r" >/dev/null 2>&1
8302then :
8303
8304      tmp_getprotobyname_r="proto_declared"
8305
8306else $as_nop
8307
8308      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309/* end confdefs.h.  */
8310
8311#define _REENTRANT
8312#include <sys/types.h>
8313#include <netdb.h>
8314
8315_ACEOF
8316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8317  $EGREP "getprotobyname_r" >/dev/null 2>&1
8318then :
8319
8320        tmp_getprotobyname_r="proto_needs_reentrant"
8321        tmp_need_reentrant="yes"
8322
8323fi
8324rm -rf conftest*
8325
8326
8327fi
8328rm -rf conftest*
8329
8330  fi
8331
8332  fi
8333
8334    fi
8335    if test "$tmp_need_reentrant" = "yes"; then
8336      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8337printf "%s\n" "yes" >&6; }
8338    else
8339      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340printf "%s\n" "no" >&6; }
8341    fi
8342  fi
8343  #
8344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
8345printf %s "checking if _REENTRANT is onwards defined... " >&6; }
8346  if test "$tmp_reentrant_initially_defined" = "yes" ||
8347    test "$tmp_need_reentrant" = "yes"; then
8348
8349
8350printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
8351
8352cat >>confdefs.h <<_EOF
8353#ifndef _REENTRANT
8354#  define _REENTRANT
8355#endif
8356_EOF
8357
8358    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8359printf "%s\n" "yes" >&6; }
8360  else
8361    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362printf "%s\n" "no" >&6; }
8363  fi
8364  #
8365
8366
8367# Check whether --enable-largefile was given.
8368if test ${enable_largefile+y}
8369then :
8370  enableval=$enable_largefile;
8371fi
8372
8373if test "$enable_largefile" != no; then
8374
8375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8376printf %s "checking for special C compiler options needed for large files... " >&6; }
8377if test ${ac_cv_sys_largefile_CC+y}
8378then :
8379  printf %s "(cached) " >&6
8380else $as_nop
8381  ac_cv_sys_largefile_CC=no
8382     if test "$GCC" != yes; then
8383       ac_save_CC=$CC
8384       while :; do
8385	 # IRIX 6.2 and later do not support large files by default,
8386	 # so use the C compiler's -n32 option if that helps.
8387	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h.  */
8389#include <sys/types.h>
8390 /* Check that off_t can represent 2**63 - 1 correctly.
8391    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8392    since some C++ compilers masquerading as C compilers
8393    incorrectly reject 9223372036854775807.  */
8394#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8395  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8396		       && LARGE_OFF_T % 2147483647 == 1)
8397		      ? 1 : -1];
8398int main (void)
8399{
8400
8401 ;
8402 return 0;
8403}
8404_ACEOF
8405	 if ac_fn_c_try_compile "$LINENO"
8406then :
8407  break
8408fi
8409rm -f core conftest.err conftest.$ac_objext conftest.beam
8410	 CC="$CC -n32"
8411	 if ac_fn_c_try_compile "$LINENO"
8412then :
8413  ac_cv_sys_largefile_CC=' -n32'; break
8414fi
8415rm -f core conftest.err conftest.$ac_objext conftest.beam
8416	 break
8417       done
8418       CC=$ac_save_CC
8419       rm -f conftest.$ac_ext
8420    fi
8421fi
8422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8423printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8424  if test "$ac_cv_sys_largefile_CC" != no; then
8425    CC=$CC$ac_cv_sys_largefile_CC
8426  fi
8427
8428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8429printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8430if test ${ac_cv_sys_file_offset_bits+y}
8431then :
8432  printf %s "(cached) " >&6
8433else $as_nop
8434  while :; do
8435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437#include <sys/types.h>
8438 /* Check that off_t can represent 2**63 - 1 correctly.
8439    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8440    since some C++ compilers masquerading as C compilers
8441    incorrectly reject 9223372036854775807.  */
8442#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8443  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8444		       && LARGE_OFF_T % 2147483647 == 1)
8445		      ? 1 : -1];
8446int main (void)
8447{
8448
8449 ;
8450 return 0;
8451}
8452_ACEOF
8453if ac_fn_c_try_compile "$LINENO"
8454then :
8455  ac_cv_sys_file_offset_bits=no; break
8456fi
8457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h.  */
8460#define _FILE_OFFSET_BITS 64
8461#include <sys/types.h>
8462 /* Check that off_t can represent 2**63 - 1 correctly.
8463    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8464    since some C++ compilers masquerading as C compilers
8465    incorrectly reject 9223372036854775807.  */
8466#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8467  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8468		       && LARGE_OFF_T % 2147483647 == 1)
8469		      ? 1 : -1];
8470int main (void)
8471{
8472
8473 ;
8474 return 0;
8475}
8476_ACEOF
8477if ac_fn_c_try_compile "$LINENO"
8478then :
8479  ac_cv_sys_file_offset_bits=64; break
8480fi
8481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8482  ac_cv_sys_file_offset_bits=unknown
8483  break
8484done
8485fi
8486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8487printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8488case $ac_cv_sys_file_offset_bits in #(
8489  no | unknown) ;;
8490  *)
8491printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8492;;
8493esac
8494rm -rf conftest*
8495  if test $ac_cv_sys_file_offset_bits = unknown; then
8496    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8497printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8498if test ${ac_cv_sys_large_files+y}
8499then :
8500  printf %s "(cached) " >&6
8501else $as_nop
8502  while :; do
8503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h.  */
8505#include <sys/types.h>
8506 /* Check that off_t can represent 2**63 - 1 correctly.
8507    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8508    since some C++ compilers masquerading as C compilers
8509    incorrectly reject 9223372036854775807.  */
8510#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8511  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8512		       && LARGE_OFF_T % 2147483647 == 1)
8513		      ? 1 : -1];
8514int main (void)
8515{
8516
8517 ;
8518 return 0;
8519}
8520_ACEOF
8521if ac_fn_c_try_compile "$LINENO"
8522then :
8523  ac_cv_sys_large_files=no; break
8524fi
8525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527/* end confdefs.h.  */
8528#define _LARGE_FILES 1
8529#include <sys/types.h>
8530 /* Check that off_t can represent 2**63 - 1 correctly.
8531    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8532    since some C++ compilers masquerading as C compilers
8533    incorrectly reject 9223372036854775807.  */
8534#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8535  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8536		       && LARGE_OFF_T % 2147483647 == 1)
8537		      ? 1 : -1];
8538int main (void)
8539{
8540
8541 ;
8542 return 0;
8543}
8544_ACEOF
8545if ac_fn_c_try_compile "$LINENO"
8546then :
8547  ac_cv_sys_large_files=1; break
8548fi
8549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8550  ac_cv_sys_large_files=unknown
8551  break
8552done
8553fi
8554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8555printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8556case $ac_cv_sys_large_files in #(
8557  no | unknown) ;;
8558  *)
8559printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8560;;
8561esac
8562rm -rf conftest*
8563  fi
8564fi
8565
8566
8567case `pwd` in
8568  *\ * | *\	*)
8569    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8570printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8571esac
8572
8573
8574
8575macro_version='2.4.7'
8576macro_revision='2.4.7'
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591ltmain=$ac_aux_dir/ltmain.sh
8592
8593# Backslashify metacharacters that are still active within
8594# double-quoted strings.
8595sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8596
8597# Same as above, but do not quote variable references.
8598double_quote_subst='s/\(["`\\]\)/\\\1/g'
8599
8600# Sed substitution to delay expansion of an escaped shell variable in a
8601# double_quote_subst'ed string.
8602delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8603
8604# Sed substitution to delay expansion of an escaped single quote.
8605delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8606
8607# Sed substitution to avoid accidental globbing in evaled expressions
8608no_glob_subst='s/\*/\\\*/g'
8609
8610ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8611ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8612ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8613
8614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8615printf %s "checking how to print strings... " >&6; }
8616# Test print first, because it will be a builtin if present.
8617if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8618   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8619  ECHO='print -r --'
8620elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8621  ECHO='printf %s\n'
8622else
8623  # Use this function as a fallback that always works.
8624  func_fallback_echo ()
8625  {
8626    eval 'cat <<_LTECHO_EOF
8627$1
8628_LTECHO_EOF'
8629  }
8630  ECHO='func_fallback_echo'
8631fi
8632
8633# func_echo_all arg...
8634# Invoke $ECHO with all args, space-separated.
8635func_echo_all ()
8636{
8637    $ECHO ""
8638}
8639
8640case $ECHO in
8641  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8642printf "%s\n" "printf" >&6; } ;;
8643  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8644printf "%s\n" "print -r" >&6; } ;;
8645  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8646printf "%s\n" "cat" >&6; } ;;
8647esac
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8663printf %s "checking for a sed that does not truncate output... " >&6; }
8664if test ${ac_cv_path_SED+y}
8665then :
8666  printf %s "(cached) " >&6
8667else $as_nop
8668            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8669     for ac_i in 1 2 3 4 5 6 7; do
8670       ac_script="$ac_script$as_nl$ac_script"
8671     done
8672     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8673     { ac_script=; unset ac_script;}
8674     if test -z "$SED"; then
8675  ac_path_SED_found=false
8676  # Loop through the user's path and test for each of PROGNAME-LIST
8677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678for as_dir in $PATH
8679do
8680  IFS=$as_save_IFS
8681  case $as_dir in #(((
8682    '') as_dir=./ ;;
8683    */) ;;
8684    *) as_dir=$as_dir/ ;;
8685  esac
8686    for ac_prog in sed gsed
8687   do
8688    for ac_exec_ext in '' $ac_executable_extensions; do
8689      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8690      as_fn_executable_p "$ac_path_SED" || continue
8691# Check for GNU ac_path_SED and select it if it is found.
8692  # Check for GNU $ac_path_SED
8693case `"$ac_path_SED" --version 2>&1` in
8694*GNU*)
8695  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8696*)
8697  ac_count=0
8698  printf %s 0123456789 >"conftest.in"
8699  while :
8700  do
8701    cat "conftest.in" "conftest.in" >"conftest.tmp"
8702    mv "conftest.tmp" "conftest.in"
8703    cp "conftest.in" "conftest.nl"
8704    printf "%s\n" '' >> "conftest.nl"
8705    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8706    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8707    as_fn_arith $ac_count + 1 && ac_count=$as_val
8708    if test $ac_count -gt ${ac_path_SED_max-0}; then
8709      # Best one so far, save it but keep looking for a better one
8710      ac_cv_path_SED="$ac_path_SED"
8711      ac_path_SED_max=$ac_count
8712    fi
8713    # 10*(2^10) chars as input seems more than enough
8714    test $ac_count -gt 10 && break
8715  done
8716  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8717esac
8718
8719      $ac_path_SED_found && break 3
8720    done
8721  done
8722  done
8723IFS=$as_save_IFS
8724  if test -z "$ac_cv_path_SED"; then
8725    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8726  fi
8727else
8728  ac_cv_path_SED=$SED
8729fi
8730
8731fi
8732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8733printf "%s\n" "$ac_cv_path_SED" >&6; }
8734 SED="$ac_cv_path_SED"
8735  rm -f conftest.sed
8736
8737test -z "$SED" && SED=sed
8738Xsed="$SED -e 1s/^X//"
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8751printf %s "checking for fgrep... " >&6; }
8752if test ${ac_cv_path_FGREP+y}
8753then :
8754  printf %s "(cached) " >&6
8755else $as_nop
8756  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8757   then ac_cv_path_FGREP="$GREP -F"
8758   else
8759     if test -z "$FGREP"; then
8760  ac_path_FGREP_found=false
8761  # Loop through the user's path and test for each of PROGNAME-LIST
8762  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8764do
8765  IFS=$as_save_IFS
8766  case $as_dir in #(((
8767    '') as_dir=./ ;;
8768    */) ;;
8769    *) as_dir=$as_dir/ ;;
8770  esac
8771    for ac_prog in fgrep
8772   do
8773    for ac_exec_ext in '' $ac_executable_extensions; do
8774      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8775      as_fn_executable_p "$ac_path_FGREP" || continue
8776# Check for GNU ac_path_FGREP and select it if it is found.
8777  # Check for GNU $ac_path_FGREP
8778case `"$ac_path_FGREP" --version 2>&1` in
8779*GNU*)
8780  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8781*)
8782  ac_count=0
8783  printf %s 0123456789 >"conftest.in"
8784  while :
8785  do
8786    cat "conftest.in" "conftest.in" >"conftest.tmp"
8787    mv "conftest.tmp" "conftest.in"
8788    cp "conftest.in" "conftest.nl"
8789    printf "%s\n" 'FGREP' >> "conftest.nl"
8790    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8791    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8792    as_fn_arith $ac_count + 1 && ac_count=$as_val
8793    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8794      # Best one so far, save it but keep looking for a better one
8795      ac_cv_path_FGREP="$ac_path_FGREP"
8796      ac_path_FGREP_max=$ac_count
8797    fi
8798    # 10*(2^10) chars as input seems more than enough
8799    test $ac_count -gt 10 && break
8800  done
8801  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8802esac
8803
8804      $ac_path_FGREP_found && break 3
8805    done
8806  done
8807  done
8808IFS=$as_save_IFS
8809  if test -z "$ac_cv_path_FGREP"; then
8810    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8811  fi
8812else
8813  ac_cv_path_FGREP=$FGREP
8814fi
8815
8816   fi
8817fi
8818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8819printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8820 FGREP="$ac_cv_path_FGREP"
8821
8822
8823test -z "$GREP" && GREP=grep
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843# Check whether --with-gnu-ld was given.
8844if test ${with_gnu_ld+y}
8845then :
8846  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8847else $as_nop
8848  with_gnu_ld=no
8849fi
8850
8851ac_prog=ld
8852if test yes = "$GCC"; then
8853  # Check if gcc -print-prog-name=ld gives a path.
8854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8855printf %s "checking for ld used by $CC... " >&6; }
8856  case $host in
8857  *-*-mingw*)
8858    # gcc leaves a trailing carriage return, which upsets mingw
8859    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8860  *)
8861    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8862  esac
8863  case $ac_prog in
8864    # Accept absolute paths.
8865    [\\/]* | ?:[\\/]*)
8866      re_direlt='/[^/][^/]*/\.\./'
8867      # Canonicalize the pathname of ld
8868      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8869      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8870	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8871      done
8872      test -z "$LD" && LD=$ac_prog
8873      ;;
8874  "")
8875    # If it fails, then pretend we aren't using GCC.
8876    ac_prog=ld
8877    ;;
8878  *)
8879    # If it is relative, then search for the first ld in PATH.
8880    with_gnu_ld=unknown
8881    ;;
8882  esac
8883elif test yes = "$with_gnu_ld"; then
8884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8885printf %s "checking for GNU ld... " >&6; }
8886else
8887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8888printf %s "checking for non-GNU ld... " >&6; }
8889fi
8890if test ${lt_cv_path_LD+y}
8891then :
8892  printf %s "(cached) " >&6
8893else $as_nop
8894  if test -z "$LD"; then
8895  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8896  for ac_dir in $PATH; do
8897    IFS=$lt_save_ifs
8898    test -z "$ac_dir" && ac_dir=.
8899    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8900      lt_cv_path_LD=$ac_dir/$ac_prog
8901      # Check to see if the program is GNU ld.  I'd rather use --version,
8902      # but apparently some variants of GNU ld only accept -v.
8903      # Break only if it was the GNU/non-GNU ld that we prefer.
8904      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8905      *GNU* | *'with BFD'*)
8906	test no != "$with_gnu_ld" && break
8907	;;
8908      *)
8909	test yes != "$with_gnu_ld" && break
8910	;;
8911      esac
8912    fi
8913  done
8914  IFS=$lt_save_ifs
8915else
8916  lt_cv_path_LD=$LD # Let the user override the test with a path.
8917fi
8918fi
8919
8920LD=$lt_cv_path_LD
8921if test -n "$LD"; then
8922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8923printf "%s\n" "$LD" >&6; }
8924else
8925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926printf "%s\n" "no" >&6; }
8927fi
8928test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8930printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8931if test ${lt_cv_prog_gnu_ld+y}
8932then :
8933  printf %s "(cached) " >&6
8934else $as_nop
8935  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8936case `$LD -v 2>&1 </dev/null` in
8937*GNU* | *'with BFD'*)
8938  lt_cv_prog_gnu_ld=yes
8939  ;;
8940*)
8941  lt_cv_prog_gnu_ld=no
8942  ;;
8943esac
8944fi
8945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8946printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8947with_gnu_ld=$lt_cv_prog_gnu_ld
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8958printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8959if test ${lt_cv_path_NM+y}
8960then :
8961  printf %s "(cached) " >&6
8962else $as_nop
8963  if test -n "$NM"; then
8964  # Let the user override the test.
8965  lt_cv_path_NM=$NM
8966else
8967  lt_nm_to_check=${ac_tool_prefix}nm
8968  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8969    lt_nm_to_check="$lt_nm_to_check nm"
8970  fi
8971  for lt_tmp_nm in $lt_nm_to_check; do
8972    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8973    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8974      IFS=$lt_save_ifs
8975      test -z "$ac_dir" && ac_dir=.
8976      tmp_nm=$ac_dir/$lt_tmp_nm
8977      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8978	# Check to see if the nm accepts a BSD-compat flag.
8979	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8980	#   nm: unknown option "B" ignored
8981	# Tru64's nm complains that /dev/null is an invalid object file
8982	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8983	case $build_os in
8984	mingw*) lt_bad_file=conftest.nm/nofile ;;
8985	*) lt_bad_file=/dev/null ;;
8986	esac
8987	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8988	*$lt_bad_file* | *'Invalid file or object type'*)
8989	  lt_cv_path_NM="$tmp_nm -B"
8990	  break 2
8991	  ;;
8992	*)
8993	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8994	  */dev/null*)
8995	    lt_cv_path_NM="$tmp_nm -p"
8996	    break 2
8997	    ;;
8998	  *)
8999	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9000	    continue # so that we can try to find one that supports BSD flags
9001	    ;;
9002	  esac
9003	  ;;
9004	esac
9005      fi
9006    done
9007    IFS=$lt_save_ifs
9008  done
9009  : ${lt_cv_path_NM=no}
9010fi
9011fi
9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9013printf "%s\n" "$lt_cv_path_NM" >&6; }
9014if test no != "$lt_cv_path_NM"; then
9015  NM=$lt_cv_path_NM
9016else
9017  # Didn't find any BSD compatible name lister, look for dumpbin.
9018  if test -n "$DUMPBIN"; then :
9019    # Let the user override the test.
9020  else
9021    if test -n "$ac_tool_prefix"; then
9022  for ac_prog in dumpbin "link -dump"
9023  do
9024    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027printf %s "checking for $ac_word... " >&6; }
9028if test ${ac_cv_prog_DUMPBIN+y}
9029then :
9030  printf %s "(cached) " >&6
9031else $as_nop
9032  if test -n "$DUMPBIN"; then
9033  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9034else
9035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036for as_dir in $PATH
9037do
9038  IFS=$as_save_IFS
9039  case $as_dir in #(((
9040    '') as_dir=./ ;;
9041    */) ;;
9042    *) as_dir=$as_dir/ ;;
9043  esac
9044    for ac_exec_ext in '' $ac_executable_extensions; do
9045  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9046    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9047    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9048    break 2
9049  fi
9050done
9051  done
9052IFS=$as_save_IFS
9053
9054fi
9055fi
9056DUMPBIN=$ac_cv_prog_DUMPBIN
9057if test -n "$DUMPBIN"; then
9058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9059printf "%s\n" "$DUMPBIN" >&6; }
9060else
9061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062printf "%s\n" "no" >&6; }
9063fi
9064
9065
9066    test -n "$DUMPBIN" && break
9067  done
9068fi
9069if test -z "$DUMPBIN"; then
9070  ac_ct_DUMPBIN=$DUMPBIN
9071  for ac_prog in dumpbin "link -dump"
9072do
9073  # Extract the first word of "$ac_prog", so it can be a program name with args.
9074set dummy $ac_prog; ac_word=$2
9075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076printf %s "checking for $ac_word... " >&6; }
9077if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9078then :
9079  printf %s "(cached) " >&6
9080else $as_nop
9081  if test -n "$ac_ct_DUMPBIN"; then
9082  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9083else
9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087  IFS=$as_save_IFS
9088  case $as_dir in #(((
9089    '') as_dir=./ ;;
9090    */) ;;
9091    *) as_dir=$as_dir/ ;;
9092  esac
9093    for ac_exec_ext in '' $ac_executable_extensions; do
9094  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9095    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9096    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9097    break 2
9098  fi
9099done
9100  done
9101IFS=$as_save_IFS
9102
9103fi
9104fi
9105ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9106if test -n "$ac_ct_DUMPBIN"; then
9107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9108printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9109else
9110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111printf "%s\n" "no" >&6; }
9112fi
9113
9114
9115  test -n "$ac_ct_DUMPBIN" && break
9116done
9117
9118  if test "x$ac_ct_DUMPBIN" = x; then
9119    DUMPBIN=":"
9120  else
9121    case $cross_compiling:$ac_tool_warned in
9122yes:)
9123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9124printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9125ac_tool_warned=yes ;;
9126esac
9127    DUMPBIN=$ac_ct_DUMPBIN
9128  fi
9129fi
9130
9131    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9132    *COFF*)
9133      DUMPBIN="$DUMPBIN -symbols -headers"
9134      ;;
9135    *)
9136      DUMPBIN=:
9137      ;;
9138    esac
9139  fi
9140
9141  if test : != "$DUMPBIN"; then
9142    NM=$DUMPBIN
9143  fi
9144fi
9145test -z "$NM" && NM=nm
9146
9147
9148
9149
9150
9151
9152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9153printf %s "checking the name lister ($NM) interface... " >&6; }
9154if test ${lt_cv_nm_interface+y}
9155then :
9156  printf %s "(cached) " >&6
9157else $as_nop
9158  lt_cv_nm_interface="BSD nm"
9159  echo "int some_variable = 0;" > conftest.$ac_ext
9160  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9161  (eval "$ac_compile" 2>conftest.err)
9162  cat conftest.err >&5
9163  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9164  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9165  cat conftest.err >&5
9166  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9167  cat conftest.out >&5
9168  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9169    lt_cv_nm_interface="MS dumpbin"
9170  fi
9171  rm -f conftest*
9172fi
9173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9174printf "%s\n" "$lt_cv_nm_interface" >&6; }
9175
9176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9177printf %s "checking whether ln -s works... " >&6; }
9178LN_S=$as_ln_s
9179if test "$LN_S" = "ln -s"; then
9180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9181printf "%s\n" "yes" >&6; }
9182else
9183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9184printf "%s\n" "no, using $LN_S" >&6; }
9185fi
9186
9187# find the maximum length of command line arguments
9188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9189printf %s "checking the maximum length of command line arguments... " >&6; }
9190if test ${lt_cv_sys_max_cmd_len+y}
9191then :
9192  printf %s "(cached) " >&6
9193else $as_nop
9194    i=0
9195  teststring=ABCD
9196
9197  case $build_os in
9198  msdosdjgpp*)
9199    # On DJGPP, this test can blow up pretty badly due to problems in libc
9200    # (any single argument exceeding 2000 bytes causes a buffer overrun
9201    # during glob expansion).  Even if it were fixed, the result of this
9202    # check would be larger than it should be.
9203    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9204    ;;
9205
9206  gnu*)
9207    # Under GNU Hurd, this test is not required because there is
9208    # no limit to the length of command line arguments.
9209    # Libtool will interpret -1 as no limit whatsoever
9210    lt_cv_sys_max_cmd_len=-1;
9211    ;;
9212
9213  cygwin* | mingw* | cegcc*)
9214    # On Win9x/ME, this test blows up -- it succeeds, but takes
9215    # about 5 minutes as the teststring grows exponentially.
9216    # Worse, since 9x/ME are not pre-emptively multitasking,
9217    # you end up with a "frozen" computer, even though with patience
9218    # the test eventually succeeds (with a max line length of 256k).
9219    # Instead, let's just punt: use the minimum linelength reported by
9220    # all of the supported platforms: 8192 (on NT/2K/XP).
9221    lt_cv_sys_max_cmd_len=8192;
9222    ;;
9223
9224  mint*)
9225    # On MiNT this can take a long time and run out of memory.
9226    lt_cv_sys_max_cmd_len=8192;
9227    ;;
9228
9229  amigaos*)
9230    # On AmigaOS with pdksh, this test takes hours, literally.
9231    # So we just punt and use a minimum line length of 8192.
9232    lt_cv_sys_max_cmd_len=8192;
9233    ;;
9234
9235  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9236    # This has been around since 386BSD, at least.  Likely further.
9237    if test -x /sbin/sysctl; then
9238      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9239    elif test -x /usr/sbin/sysctl; then
9240      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9241    else
9242      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9243    fi
9244    # And add a safety zone
9245    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9246    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9247    ;;
9248
9249  interix*)
9250    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9251    lt_cv_sys_max_cmd_len=196608
9252    ;;
9253
9254  os2*)
9255    # The test takes a long time on OS/2.
9256    lt_cv_sys_max_cmd_len=8192
9257    ;;
9258
9259  osf*)
9260    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9261    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9262    # nice to cause kernel panics so lets avoid the loop below.
9263    # First set a reasonable default.
9264    lt_cv_sys_max_cmd_len=16384
9265    #
9266    if test -x /sbin/sysconfig; then
9267      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9268        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9269      esac
9270    fi
9271    ;;
9272  sco3.2v5*)
9273    lt_cv_sys_max_cmd_len=102400
9274    ;;
9275  sysv5* | sco5v6* | sysv4.2uw2*)
9276    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9277    if test -n "$kargmax"; then
9278      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
9279    else
9280      lt_cv_sys_max_cmd_len=32768
9281    fi
9282    ;;
9283  *)
9284    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9285    if test -n "$lt_cv_sys_max_cmd_len" && \
9286       test undefined != "$lt_cv_sys_max_cmd_len"; then
9287      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9288      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9289    else
9290      # Make teststring a little bigger before we do anything with it.
9291      # a 1K string should be a reasonable start.
9292      for i in 1 2 3 4 5 6 7 8; do
9293        teststring=$teststring$teststring
9294      done
9295      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9296      # If test is not a shell built-in, we'll probably end up computing a
9297      # maximum length that is only half of the actual maximum length, but
9298      # we can't tell.
9299      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9300	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9301	      test 17 != "$i" # 1/2 MB should be enough
9302      do
9303        i=`expr $i + 1`
9304        teststring=$teststring$teststring
9305      done
9306      # Only check the string length outside the loop.
9307      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9308      teststring=
9309      # Add a significant safety factor because C++ compilers can tack on
9310      # massive amounts of additional arguments before passing them to the
9311      # linker.  It appears as though 1/2 is a usable value.
9312      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9313    fi
9314    ;;
9315  esac
9316
9317fi
9318
9319if test -n "$lt_cv_sys_max_cmd_len"; then
9320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9321printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9322else
9323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9324printf "%s\n" "none" >&6; }
9325fi
9326max_cmd_len=$lt_cv_sys_max_cmd_len
9327
9328
9329
9330
9331
9332
9333: ${CP="cp -f"}
9334: ${MV="mv -f"}
9335: ${RM="rm -f"}
9336
9337if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9338  lt_unset=unset
9339else
9340  lt_unset=false
9341fi
9342
9343
9344
9345
9346
9347# test EBCDIC or ASCII
9348case `echo X|tr X '\101'` in
9349 A) # ASCII based system
9350    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9351  lt_SP2NL='tr \040 \012'
9352  lt_NL2SP='tr \015\012 \040\040'
9353  ;;
9354 *) # EBCDIC based system
9355  lt_SP2NL='tr \100 \n'
9356  lt_NL2SP='tr \r\n \100\100'
9357  ;;
9358esac
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9369printf %s "checking how to convert $build file names to $host format... " >&6; }
9370if test ${lt_cv_to_host_file_cmd+y}
9371then :
9372  printf %s "(cached) " >&6
9373else $as_nop
9374  case $host in
9375  *-*-mingw* )
9376    case $build in
9377      *-*-mingw* ) # actually msys
9378        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9379        ;;
9380      *-*-cygwin* )
9381        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9382        ;;
9383      * ) # otherwise, assume *nix
9384        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9385        ;;
9386    esac
9387    ;;
9388  *-*-cygwin* )
9389    case $build in
9390      *-*-mingw* ) # actually msys
9391        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9392        ;;
9393      *-*-cygwin* )
9394        lt_cv_to_host_file_cmd=func_convert_file_noop
9395        ;;
9396      * ) # otherwise, assume *nix
9397        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9398        ;;
9399    esac
9400    ;;
9401  * ) # unhandled hosts (and "normal" native builds)
9402    lt_cv_to_host_file_cmd=func_convert_file_noop
9403    ;;
9404esac
9405
9406fi
9407
9408to_host_file_cmd=$lt_cv_to_host_file_cmd
9409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9410printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9411
9412
9413
9414
9415
9416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9417printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9418if test ${lt_cv_to_tool_file_cmd+y}
9419then :
9420  printf %s "(cached) " >&6
9421else $as_nop
9422  #assume ordinary cross tools, or native build.
9423lt_cv_to_tool_file_cmd=func_convert_file_noop
9424case $host in
9425  *-*-mingw* )
9426    case $build in
9427      *-*-mingw* ) # actually msys
9428        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9429        ;;
9430    esac
9431    ;;
9432esac
9433
9434fi
9435
9436to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9438printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9439
9440
9441
9442
9443
9444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9445printf %s "checking for $LD option to reload object files... " >&6; }
9446if test ${lt_cv_ld_reload_flag+y}
9447then :
9448  printf %s "(cached) " >&6
9449else $as_nop
9450  lt_cv_ld_reload_flag='-r'
9451fi
9452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9453printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9454reload_flag=$lt_cv_ld_reload_flag
9455case $reload_flag in
9456"" | " "*) ;;
9457*) reload_flag=" $reload_flag" ;;
9458esac
9459reload_cmds='$LD$reload_flag -o $output$reload_objs'
9460case $host_os in
9461  cygwin* | mingw* | pw32* | cegcc*)
9462    if test yes != "$GCC"; then
9463      reload_cmds=false
9464    fi
9465    ;;
9466  darwin*)
9467    if test yes = "$GCC"; then
9468      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9469    else
9470      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9471    fi
9472    ;;
9473esac
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483if test -n "$ac_tool_prefix"; then
9484  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9485set dummy ${ac_tool_prefix}file; ac_word=$2
9486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487printf %s "checking for $ac_word... " >&6; }
9488if test ${ac_cv_prog_FILECMD+y}
9489then :
9490  printf %s "(cached) " >&6
9491else $as_nop
9492  if test -n "$FILECMD"; then
9493  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9494else
9495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496for as_dir in $PATH
9497do
9498  IFS=$as_save_IFS
9499  case $as_dir in #(((
9500    '') as_dir=./ ;;
9501    */) ;;
9502    *) as_dir=$as_dir/ ;;
9503  esac
9504    for ac_exec_ext in '' $ac_executable_extensions; do
9505  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9506    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9507    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9508    break 2
9509  fi
9510done
9511  done
9512IFS=$as_save_IFS
9513
9514fi
9515fi
9516FILECMD=$ac_cv_prog_FILECMD
9517if test -n "$FILECMD"; then
9518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9519printf "%s\n" "$FILECMD" >&6; }
9520else
9521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522printf "%s\n" "no" >&6; }
9523fi
9524
9525
9526fi
9527if test -z "$ac_cv_prog_FILECMD"; then
9528  ac_ct_FILECMD=$FILECMD
9529  # Extract the first word of "file", so it can be a program name with args.
9530set dummy file; ac_word=$2
9531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532printf %s "checking for $ac_word... " >&6; }
9533if test ${ac_cv_prog_ac_ct_FILECMD+y}
9534then :
9535  printf %s "(cached) " >&6
9536else $as_nop
9537  if test -n "$ac_ct_FILECMD"; then
9538  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9539else
9540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541for as_dir in $PATH
9542do
9543  IFS=$as_save_IFS
9544  case $as_dir in #(((
9545    '') as_dir=./ ;;
9546    */) ;;
9547    *) as_dir=$as_dir/ ;;
9548  esac
9549    for ac_exec_ext in '' $ac_executable_extensions; do
9550  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9551    ac_cv_prog_ac_ct_FILECMD="file"
9552    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9553    break 2
9554  fi
9555done
9556  done
9557IFS=$as_save_IFS
9558
9559fi
9560fi
9561ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9562if test -n "$ac_ct_FILECMD"; then
9563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9564printf "%s\n" "$ac_ct_FILECMD" >&6; }
9565else
9566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567printf "%s\n" "no" >&6; }
9568fi
9569
9570  if test "x$ac_ct_FILECMD" = x; then
9571    FILECMD=":"
9572  else
9573    case $cross_compiling:$ac_tool_warned in
9574yes:)
9575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9576printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9577ac_tool_warned=yes ;;
9578esac
9579    FILECMD=$ac_ct_FILECMD
9580  fi
9581else
9582  FILECMD="$ac_cv_prog_FILECMD"
9583fi
9584
9585
9586
9587
9588
9589
9590
9591if test -n "$ac_tool_prefix"; then
9592  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9593set dummy ${ac_tool_prefix}objdump; ac_word=$2
9594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595printf %s "checking for $ac_word... " >&6; }
9596if test ${ac_cv_prog_OBJDUMP+y}
9597then :
9598  printf %s "(cached) " >&6
9599else $as_nop
9600  if test -n "$OBJDUMP"; then
9601  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9602else
9603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604for as_dir in $PATH
9605do
9606  IFS=$as_save_IFS
9607  case $as_dir in #(((
9608    '') as_dir=./ ;;
9609    */) ;;
9610    *) as_dir=$as_dir/ ;;
9611  esac
9612    for ac_exec_ext in '' $ac_executable_extensions; do
9613  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9614    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9615    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9616    break 2
9617  fi
9618done
9619  done
9620IFS=$as_save_IFS
9621
9622fi
9623fi
9624OBJDUMP=$ac_cv_prog_OBJDUMP
9625if test -n "$OBJDUMP"; then
9626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9627printf "%s\n" "$OBJDUMP" >&6; }
9628else
9629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630printf "%s\n" "no" >&6; }
9631fi
9632
9633
9634fi
9635if test -z "$ac_cv_prog_OBJDUMP"; then
9636  ac_ct_OBJDUMP=$OBJDUMP
9637  # Extract the first word of "objdump", so it can be a program name with args.
9638set dummy objdump; ac_word=$2
9639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640printf %s "checking for $ac_word... " >&6; }
9641if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9642then :
9643  printf %s "(cached) " >&6
9644else $as_nop
9645  if test -n "$ac_ct_OBJDUMP"; then
9646  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9647else
9648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649for as_dir in $PATH
9650do
9651  IFS=$as_save_IFS
9652  case $as_dir in #(((
9653    '') as_dir=./ ;;
9654    */) ;;
9655    *) as_dir=$as_dir/ ;;
9656  esac
9657    for ac_exec_ext in '' $ac_executable_extensions; do
9658  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9659    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9660    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9661    break 2
9662  fi
9663done
9664  done
9665IFS=$as_save_IFS
9666
9667fi
9668fi
9669ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9670if test -n "$ac_ct_OBJDUMP"; then
9671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9672printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9673else
9674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675printf "%s\n" "no" >&6; }
9676fi
9677
9678  if test "x$ac_ct_OBJDUMP" = x; then
9679    OBJDUMP="false"
9680  else
9681    case $cross_compiling:$ac_tool_warned in
9682yes:)
9683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9684printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9685ac_tool_warned=yes ;;
9686esac
9687    OBJDUMP=$ac_ct_OBJDUMP
9688  fi
9689else
9690  OBJDUMP="$ac_cv_prog_OBJDUMP"
9691fi
9692
9693test -z "$OBJDUMP" && OBJDUMP=objdump
9694
9695
9696
9697
9698
9699
9700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9701printf %s "checking how to recognize dependent libraries... " >&6; }
9702if test ${lt_cv_deplibs_check_method+y}
9703then :
9704  printf %s "(cached) " >&6
9705else $as_nop
9706  lt_cv_file_magic_cmd='$MAGIC_CMD'
9707lt_cv_file_magic_test_file=
9708lt_cv_deplibs_check_method='unknown'
9709# Need to set the preceding variable on all platforms that support
9710# interlibrary dependencies.
9711# 'none' -- dependencies not supported.
9712# 'unknown' -- same as none, but documents that we really don't know.
9713# 'pass_all' -- all dependencies passed with no checks.
9714# 'test_compile' -- check by making test program.
9715# 'file_magic [[regex]]' -- check by looking for files in library path
9716# that responds to the $file_magic_cmd with a given extended regex.
9717# If you have 'file' or equivalent on your system and you're not sure
9718# whether 'pass_all' will *always* work, you probably want this one.
9719
9720case $host_os in
9721aix[4-9]*)
9722  lt_cv_deplibs_check_method=pass_all
9723  ;;
9724
9725beos*)
9726  lt_cv_deplibs_check_method=pass_all
9727  ;;
9728
9729bsdi[45]*)
9730  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9731  lt_cv_file_magic_cmd='$FILECMD -L'
9732  lt_cv_file_magic_test_file=/shlib/libc.so
9733  ;;
9734
9735cygwin*)
9736  # func_win32_libid is a shell function defined in ltmain.sh
9737  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9738  lt_cv_file_magic_cmd='func_win32_libid'
9739  ;;
9740
9741mingw* | pw32*)
9742  # Base MSYS/MinGW do not provide the 'file' command needed by
9743  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9744  # unless we find 'file', for example because we are cross-compiling.
9745  if ( file / ) >/dev/null 2>&1; then
9746    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9747    lt_cv_file_magic_cmd='func_win32_libid'
9748  else
9749    # Keep this pattern in sync with the one in func_win32_libid.
9750    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9751    lt_cv_file_magic_cmd='$OBJDUMP -f'
9752  fi
9753  ;;
9754
9755cegcc*)
9756  # use the weaker test based on 'objdump'. See mingw*.
9757  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9758  lt_cv_file_magic_cmd='$OBJDUMP -f'
9759  ;;
9760
9761darwin* | rhapsody*)
9762  lt_cv_deplibs_check_method=pass_all
9763  ;;
9764
9765freebsd* | dragonfly* | midnightbsd*)
9766  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9767    case $host_cpu in
9768    i*86 )
9769      # Not sure whether the presence of OpenBSD here was a mistake.
9770      # Let's accept both of them until this is cleared up.
9771      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9772      lt_cv_file_magic_cmd=$FILECMD
9773      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9774      ;;
9775    esac
9776  else
9777    lt_cv_deplibs_check_method=pass_all
9778  fi
9779  ;;
9780
9781haiku*)
9782  lt_cv_deplibs_check_method=pass_all
9783  ;;
9784
9785hpux10.20* | hpux11*)
9786  lt_cv_file_magic_cmd=$FILECMD
9787  case $host_cpu in
9788  ia64*)
9789    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9790    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9791    ;;
9792  hppa*64*)
9793    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]'
9794    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9795    ;;
9796  *)
9797    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9798    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9799    ;;
9800  esac
9801  ;;
9802
9803interix[3-9]*)
9804  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9805  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9806  ;;
9807
9808irix5* | irix6* | nonstopux*)
9809  case $LD in
9810  *-32|*"-32 ") libmagic=32-bit;;
9811  *-n32|*"-n32 ") libmagic=N32;;
9812  *-64|*"-64 ") libmagic=64-bit;;
9813  *) libmagic=never-match;;
9814  esac
9815  lt_cv_deplibs_check_method=pass_all
9816  ;;
9817
9818# This must be glibc/ELF.
9819linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9820  lt_cv_deplibs_check_method=pass_all
9821  ;;
9822
9823netbsd* | netbsdelf*-gnu)
9824  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9825    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9826  else
9827    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9828  fi
9829  ;;
9830
9831newos6*)
9832  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9833  lt_cv_file_magic_cmd=$FILECMD
9834  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9835  ;;
9836
9837*nto* | *qnx*)
9838  lt_cv_deplibs_check_method=pass_all
9839  ;;
9840
9841openbsd* | bitrig*)
9842  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9843    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9844  else
9845    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9846  fi
9847  ;;
9848
9849osf3* | osf4* | osf5*)
9850  lt_cv_deplibs_check_method=pass_all
9851  ;;
9852
9853rdos*)
9854  lt_cv_deplibs_check_method=pass_all
9855  ;;
9856
9857solaris*)
9858  lt_cv_deplibs_check_method=pass_all
9859  ;;
9860
9861sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9862  lt_cv_deplibs_check_method=pass_all
9863  ;;
9864
9865sysv4 | sysv4.3*)
9866  case $host_vendor in
9867  motorola)
9868    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]'
9869    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9870    ;;
9871  ncr)
9872    lt_cv_deplibs_check_method=pass_all
9873    ;;
9874  sequent)
9875    lt_cv_file_magic_cmd='/bin/file'
9876    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9877    ;;
9878  sni)
9879    lt_cv_file_magic_cmd='/bin/file'
9880    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9881    lt_cv_file_magic_test_file=/lib/libc.so
9882    ;;
9883  siemens)
9884    lt_cv_deplibs_check_method=pass_all
9885    ;;
9886  pc)
9887    lt_cv_deplibs_check_method=pass_all
9888    ;;
9889  esac
9890  ;;
9891
9892tpf*)
9893  lt_cv_deplibs_check_method=pass_all
9894  ;;
9895os2*)
9896  lt_cv_deplibs_check_method=pass_all
9897  ;;
9898esac
9899
9900fi
9901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9902printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9903
9904file_magic_glob=
9905want_nocaseglob=no
9906if test "$build" = "$host"; then
9907  case $host_os in
9908  mingw* | pw32*)
9909    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9910      want_nocaseglob=yes
9911    else
9912      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9913    fi
9914    ;;
9915  esac
9916fi
9917
9918file_magic_cmd=$lt_cv_file_magic_cmd
9919deplibs_check_method=$lt_cv_deplibs_check_method
9920test -z "$deplibs_check_method" && deplibs_check_method=unknown
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943if test -n "$ac_tool_prefix"; then
9944  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9945set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947printf %s "checking for $ac_word... " >&6; }
9948if test ${ac_cv_prog_DLLTOOL+y}
9949then :
9950  printf %s "(cached) " >&6
9951else $as_nop
9952  if test -n "$DLLTOOL"; then
9953  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9954else
9955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956for as_dir in $PATH
9957do
9958  IFS=$as_save_IFS
9959  case $as_dir in #(((
9960    '') as_dir=./ ;;
9961    */) ;;
9962    *) as_dir=$as_dir/ ;;
9963  esac
9964    for ac_exec_ext in '' $ac_executable_extensions; do
9965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9966    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9968    break 2
9969  fi
9970done
9971  done
9972IFS=$as_save_IFS
9973
9974fi
9975fi
9976DLLTOOL=$ac_cv_prog_DLLTOOL
9977if test -n "$DLLTOOL"; then
9978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9979printf "%s\n" "$DLLTOOL" >&6; }
9980else
9981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982printf "%s\n" "no" >&6; }
9983fi
9984
9985
9986fi
9987if test -z "$ac_cv_prog_DLLTOOL"; then
9988  ac_ct_DLLTOOL=$DLLTOOL
9989  # Extract the first word of "dlltool", so it can be a program name with args.
9990set dummy dlltool; ac_word=$2
9991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992printf %s "checking for $ac_word... " >&6; }
9993if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9994then :
9995  printf %s "(cached) " >&6
9996else $as_nop
9997  if test -n "$ac_ct_DLLTOOL"; then
9998  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9999else
10000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001for as_dir in $PATH
10002do
10003  IFS=$as_save_IFS
10004  case $as_dir in #(((
10005    '') as_dir=./ ;;
10006    */) ;;
10007    *) as_dir=$as_dir/ ;;
10008  esac
10009    for ac_exec_ext in '' $ac_executable_extensions; do
10010  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10011    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10012    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10013    break 2
10014  fi
10015done
10016  done
10017IFS=$as_save_IFS
10018
10019fi
10020fi
10021ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10022if test -n "$ac_ct_DLLTOOL"; then
10023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10024printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10025else
10026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027printf "%s\n" "no" >&6; }
10028fi
10029
10030  if test "x$ac_ct_DLLTOOL" = x; then
10031    DLLTOOL="false"
10032  else
10033    case $cross_compiling:$ac_tool_warned in
10034yes:)
10035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10037ac_tool_warned=yes ;;
10038esac
10039    DLLTOOL=$ac_ct_DLLTOOL
10040  fi
10041else
10042  DLLTOOL="$ac_cv_prog_DLLTOOL"
10043fi
10044
10045test -z "$DLLTOOL" && DLLTOOL=dlltool
10046
10047
10048
10049
10050
10051
10052
10053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10054printf %s "checking how to associate runtime and link libraries... " >&6; }
10055if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10056then :
10057  printf %s "(cached) " >&6
10058else $as_nop
10059  lt_cv_sharedlib_from_linklib_cmd='unknown'
10060
10061case $host_os in
10062cygwin* | mingw* | pw32* | cegcc*)
10063  # two different shell functions defined in ltmain.sh;
10064  # decide which one to use based on capabilities of $DLLTOOL
10065  case `$DLLTOOL --help 2>&1` in
10066  *--identify-strict*)
10067    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10068    ;;
10069  *)
10070    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10071    ;;
10072  esac
10073  ;;
10074*)
10075  # fallback: assume linklib IS sharedlib
10076  lt_cv_sharedlib_from_linklib_cmd=$ECHO
10077  ;;
10078esac
10079
10080fi
10081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10082printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10083sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10084test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10085
10086
10087
10088
10089
10090
10091
10092if test -n "$ac_tool_prefix"; then
10093  for ac_prog in ar
10094  do
10095    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10096set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098printf %s "checking for $ac_word... " >&6; }
10099if test ${ac_cv_prog_AR+y}
10100then :
10101  printf %s "(cached) " >&6
10102else $as_nop
10103  if test -n "$AR"; then
10104  ac_cv_prog_AR="$AR" # Let the user override the test.
10105else
10106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107for as_dir in $PATH
10108do
10109  IFS=$as_save_IFS
10110  case $as_dir in #(((
10111    '') as_dir=./ ;;
10112    */) ;;
10113    *) as_dir=$as_dir/ ;;
10114  esac
10115    for ac_exec_ext in '' $ac_executable_extensions; do
10116  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10117    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10118    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10119    break 2
10120  fi
10121done
10122  done
10123IFS=$as_save_IFS
10124
10125fi
10126fi
10127AR=$ac_cv_prog_AR
10128if test -n "$AR"; then
10129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10130printf "%s\n" "$AR" >&6; }
10131else
10132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133printf "%s\n" "no" >&6; }
10134fi
10135
10136
10137    test -n "$AR" && break
10138  done
10139fi
10140if test -z "$AR"; then
10141  ac_ct_AR=$AR
10142  for ac_prog in ar
10143do
10144  # Extract the first word of "$ac_prog", so it can be a program name with args.
10145set dummy $ac_prog; ac_word=$2
10146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147printf %s "checking for $ac_word... " >&6; }
10148if test ${ac_cv_prog_ac_ct_AR+y}
10149then :
10150  printf %s "(cached) " >&6
10151else $as_nop
10152  if test -n "$ac_ct_AR"; then
10153  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10154else
10155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156for as_dir in $PATH
10157do
10158  IFS=$as_save_IFS
10159  case $as_dir in #(((
10160    '') as_dir=./ ;;
10161    */) ;;
10162    *) as_dir=$as_dir/ ;;
10163  esac
10164    for ac_exec_ext in '' $ac_executable_extensions; do
10165  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10166    ac_cv_prog_ac_ct_AR="$ac_prog"
10167    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10168    break 2
10169  fi
10170done
10171  done
10172IFS=$as_save_IFS
10173
10174fi
10175fi
10176ac_ct_AR=$ac_cv_prog_ac_ct_AR
10177if test -n "$ac_ct_AR"; then
10178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10179printf "%s\n" "$ac_ct_AR" >&6; }
10180else
10181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182printf "%s\n" "no" >&6; }
10183fi
10184
10185
10186  test -n "$ac_ct_AR" && break
10187done
10188
10189  if test "x$ac_ct_AR" = x; then
10190    AR="false"
10191  else
10192    case $cross_compiling:$ac_tool_warned in
10193yes:)
10194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10195printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10196ac_tool_warned=yes ;;
10197esac
10198    AR=$ac_ct_AR
10199  fi
10200fi
10201
10202: ${AR=ar}
10203
10204
10205
10206
10207
10208
10209# Use ARFLAGS variable as AR's operation code to sync the variable naming with
10210# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10211# higher priority because thats what people were doing historically (setting
10212# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
10213# variable obsoleted/removed.
10214
10215test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10216lt_ar_flags=$AR_FLAGS
10217
10218
10219
10220
10221
10222
10223# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
10224# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10225
10226
10227
10228
10229
10230
10231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10232printf %s "checking for archiver @FILE support... " >&6; }
10233if test ${lt_cv_ar_at_file+y}
10234then :
10235  printf %s "(cached) " >&6
10236else $as_nop
10237  lt_cv_ar_at_file=no
10238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239/* end confdefs.h.  */
10240
10241int main (void)
10242{
10243
10244 ;
10245 return 0;
10246}
10247_ACEOF
10248if ac_fn_c_try_compile "$LINENO"
10249then :
10250  echo conftest.$ac_objext > conftest.lst
10251      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10252      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10253  (eval $lt_ar_try) 2>&5
10254  ac_status=$?
10255  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10256  test $ac_status = 0; }
10257      if test 0 -eq "$ac_status"; then
10258	# Ensure the archiver fails upon bogus file names.
10259	rm -f conftest.$ac_objext libconftest.a
10260	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10261  (eval $lt_ar_try) 2>&5
10262  ac_status=$?
10263  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10264  test $ac_status = 0; }
10265	if test 0 -ne "$ac_status"; then
10266          lt_cv_ar_at_file=@
10267        fi
10268      fi
10269      rm -f conftest.* libconftest.a
10270
10271fi
10272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10273
10274fi
10275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10276printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10277
10278if test no = "$lt_cv_ar_at_file"; then
10279  archiver_list_spec=
10280else
10281  archiver_list_spec=$lt_cv_ar_at_file
10282fi
10283
10284
10285
10286
10287
10288
10289
10290if test -n "$ac_tool_prefix"; then
10291  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10292set dummy ${ac_tool_prefix}strip; ac_word=$2
10293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294printf %s "checking for $ac_word... " >&6; }
10295if test ${ac_cv_prog_STRIP+y}
10296then :
10297  printf %s "(cached) " >&6
10298else $as_nop
10299  if test -n "$STRIP"; then
10300  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10301else
10302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $PATH
10304do
10305  IFS=$as_save_IFS
10306  case $as_dir in #(((
10307    '') as_dir=./ ;;
10308    */) ;;
10309    *) as_dir=$as_dir/ ;;
10310  esac
10311    for ac_exec_ext in '' $ac_executable_extensions; do
10312  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10313    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10314    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10315    break 2
10316  fi
10317done
10318  done
10319IFS=$as_save_IFS
10320
10321fi
10322fi
10323STRIP=$ac_cv_prog_STRIP
10324if test -n "$STRIP"; then
10325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10326printf "%s\n" "$STRIP" >&6; }
10327else
10328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329printf "%s\n" "no" >&6; }
10330fi
10331
10332
10333fi
10334if test -z "$ac_cv_prog_STRIP"; then
10335  ac_ct_STRIP=$STRIP
10336  # Extract the first word of "strip", so it can be a program name with args.
10337set dummy strip; ac_word=$2
10338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339printf %s "checking for $ac_word... " >&6; }
10340if test ${ac_cv_prog_ac_ct_STRIP+y}
10341then :
10342  printf %s "(cached) " >&6
10343else $as_nop
10344  if test -n "$ac_ct_STRIP"; then
10345  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10346else
10347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348for as_dir in $PATH
10349do
10350  IFS=$as_save_IFS
10351  case $as_dir in #(((
10352    '') as_dir=./ ;;
10353    */) ;;
10354    *) as_dir=$as_dir/ ;;
10355  esac
10356    for ac_exec_ext in '' $ac_executable_extensions; do
10357  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10358    ac_cv_prog_ac_ct_STRIP="strip"
10359    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10360    break 2
10361  fi
10362done
10363  done
10364IFS=$as_save_IFS
10365
10366fi
10367fi
10368ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10369if test -n "$ac_ct_STRIP"; then
10370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10371printf "%s\n" "$ac_ct_STRIP" >&6; }
10372else
10373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374printf "%s\n" "no" >&6; }
10375fi
10376
10377  if test "x$ac_ct_STRIP" = x; then
10378    STRIP=":"
10379  else
10380    case $cross_compiling:$ac_tool_warned in
10381yes:)
10382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10383printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10384ac_tool_warned=yes ;;
10385esac
10386    STRIP=$ac_ct_STRIP
10387  fi
10388else
10389  STRIP="$ac_cv_prog_STRIP"
10390fi
10391
10392test -z "$STRIP" && STRIP=:
10393
10394
10395
10396
10397
10398
10399if test -n "$ac_tool_prefix"; then
10400  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10401set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403printf %s "checking for $ac_word... " >&6; }
10404if test ${ac_cv_prog_RANLIB+y}
10405then :
10406  printf %s "(cached) " >&6
10407else $as_nop
10408  if test -n "$RANLIB"; then
10409  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10410else
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414  IFS=$as_save_IFS
10415  case $as_dir in #(((
10416    '') as_dir=./ ;;
10417    */) ;;
10418    *) as_dir=$as_dir/ ;;
10419  esac
10420    for ac_exec_ext in '' $ac_executable_extensions; do
10421  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10422    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10423    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10424    break 2
10425  fi
10426done
10427  done
10428IFS=$as_save_IFS
10429
10430fi
10431fi
10432RANLIB=$ac_cv_prog_RANLIB
10433if test -n "$RANLIB"; then
10434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10435printf "%s\n" "$RANLIB" >&6; }
10436else
10437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438printf "%s\n" "no" >&6; }
10439fi
10440
10441
10442fi
10443if test -z "$ac_cv_prog_RANLIB"; then
10444  ac_ct_RANLIB=$RANLIB
10445  # Extract the first word of "ranlib", so it can be a program name with args.
10446set dummy ranlib; ac_word=$2
10447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448printf %s "checking for $ac_word... " >&6; }
10449if test ${ac_cv_prog_ac_ct_RANLIB+y}
10450then :
10451  printf %s "(cached) " >&6
10452else $as_nop
10453  if test -n "$ac_ct_RANLIB"; then
10454  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10455else
10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459  IFS=$as_save_IFS
10460  case $as_dir in #(((
10461    '') as_dir=./ ;;
10462    */) ;;
10463    *) as_dir=$as_dir/ ;;
10464  esac
10465    for ac_exec_ext in '' $ac_executable_extensions; do
10466  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10467    ac_cv_prog_ac_ct_RANLIB="ranlib"
10468    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10469    break 2
10470  fi
10471done
10472  done
10473IFS=$as_save_IFS
10474
10475fi
10476fi
10477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10478if test -n "$ac_ct_RANLIB"; then
10479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10480printf "%s\n" "$ac_ct_RANLIB" >&6; }
10481else
10482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483printf "%s\n" "no" >&6; }
10484fi
10485
10486  if test "x$ac_ct_RANLIB" = x; then
10487    RANLIB=":"
10488  else
10489    case $cross_compiling:$ac_tool_warned in
10490yes:)
10491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10492printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10493ac_tool_warned=yes ;;
10494esac
10495    RANLIB=$ac_ct_RANLIB
10496  fi
10497else
10498  RANLIB="$ac_cv_prog_RANLIB"
10499fi
10500
10501test -z "$RANLIB" && RANLIB=:
10502
10503
10504
10505
10506
10507
10508# Determine commands to create old-style static archives.
10509old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10510old_postinstall_cmds='chmod 644 $oldlib'
10511old_postuninstall_cmds=
10512
10513if test -n "$RANLIB"; then
10514  case $host_os in
10515  bitrig* | openbsd*)
10516    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10517    ;;
10518  *)
10519    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10520    ;;
10521  esac
10522  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10523fi
10524
10525case $host_os in
10526  darwin*)
10527    lock_old_archive_extraction=yes ;;
10528  *)
10529    lock_old_archive_extraction=no ;;
10530esac
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570# If no C compiler was specified, use CC.
10571LTCC=${LTCC-"$CC"}
10572
10573# If no C compiler flags were specified, use CFLAGS.
10574LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10575
10576# Allow CC to be a program name with arguments.
10577compiler=$CC
10578
10579
10580# Check for command to grab the raw symbol name followed by C symbol from nm.
10581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10582printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10583if test ${lt_cv_sys_global_symbol_pipe+y}
10584then :
10585  printf %s "(cached) " >&6
10586else $as_nop
10587
10588# These are sane defaults that work on at least a few old systems.
10589# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10590
10591# Character class describing NM global symbol codes.
10592symcode='[BCDEGRST]'
10593
10594# Regexp to match symbols that can be accessed directly from C.
10595sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10596
10597# Define system-specific variables.
10598case $host_os in
10599aix*)
10600  symcode='[BCDT]'
10601  ;;
10602cygwin* | mingw* | pw32* | cegcc*)
10603  symcode='[ABCDGISTW]'
10604  ;;
10605hpux*)
10606  if test ia64 = "$host_cpu"; then
10607    symcode='[ABCDEGRST]'
10608  fi
10609  ;;
10610irix* | nonstopux*)
10611  symcode='[BCDEGRST]'
10612  ;;
10613osf*)
10614  symcode='[BCDEGQRST]'
10615  ;;
10616solaris*)
10617  symcode='[BDRT]'
10618  ;;
10619sco3.2v5*)
10620  symcode='[DT]'
10621  ;;
10622sysv4.2uw2*)
10623  symcode='[DT]'
10624  ;;
10625sysv5* | sco5v6* | unixware* | OpenUNIX*)
10626  symcode='[ABDT]'
10627  ;;
10628sysv4)
10629  symcode='[DFNSTU]'
10630  ;;
10631esac
10632
10633# If we're using GNU nm, then use its standard symbol codes.
10634case `$NM -V 2>&1` in
10635*GNU* | *'with BFD'*)
10636  symcode='[ABCDGIRSTW]' ;;
10637esac
10638
10639if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10640  # Gets list of data symbols to import.
10641  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10642  # Adjust the below global symbol transforms to fixup imported variables.
10643  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10644  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10645  lt_c_name_lib_hook="\
10646  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10647  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10648else
10649  # Disable hooks by default.
10650  lt_cv_sys_global_symbol_to_import=
10651  lt_cdecl_hook=
10652  lt_c_name_hook=
10653  lt_c_name_lib_hook=
10654fi
10655
10656# Transform an extracted symbol line into a proper C declaration.
10657# Some systems (esp. on ia64) link data and code symbols differently,
10658# so use this general approach.
10659lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10660$lt_cdecl_hook\
10661" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10662" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10663
10664# Transform an extracted symbol line into symbol name and symbol address
10665lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10666$lt_c_name_hook\
10667" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10668" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10669
10670# Transform an extracted symbol line into symbol name with lib prefix and
10671# symbol address.
10672lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10673$lt_c_name_lib_hook\
10674" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10675" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10676" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10677
10678# Handle CRLF in mingw tool chain
10679opt_cr=
10680case $build_os in
10681mingw*)
10682  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10683  ;;
10684esac
10685
10686# Try without a prefix underscore, then with it.
10687for ac_symprfx in "" "_"; do
10688
10689  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10690  symxfrm="\\1 $ac_symprfx\\2 \\2"
10691
10692  # Write the raw and C identifiers.
10693  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10694    # Fake it for dumpbin and say T for any non-static function,
10695    # D for any global variable and I for any imported variable.
10696    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10697    # which start with @ or ?.
10698    lt_cv_sys_global_symbol_pipe="$AWK '"\
10699"     {last_section=section; section=\$ 3};"\
10700"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10701"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10702"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10703"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10704"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10705"     \$ 0!~/External *\|/{next};"\
10706"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10707"     {if(hide[section]) next};"\
10708"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10709"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10710"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10711"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10712"     ' prfx=^$ac_symprfx"
10713  else
10714    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10715  fi
10716  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10717
10718  # Check to see that the pipe works correctly.
10719  pipe_works=no
10720
10721  rm -f conftest*
10722  cat > conftest.$ac_ext <<_LT_EOF
10723#ifdef __cplusplus
10724extern "C" {
10725#endif
10726char nm_test_var;
10727void nm_test_func(void);
10728void nm_test_func(void){}
10729#ifdef __cplusplus
10730}
10731#endif
10732int main(){nm_test_var='a';nm_test_func();return(0);}
10733_LT_EOF
10734
10735  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10736  (eval $ac_compile) 2>&5
10737  ac_status=$?
10738  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10739  test $ac_status = 0; }; then
10740    # Now try to grab the symbols.
10741    nlist=conftest.nm
10742    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10743    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10744      # Try sorting and uniquifying the output.
10745      if sort "$nlist" | uniq > "$nlist"T; then
10746	mv -f "$nlist"T "$nlist"
10747      else
10748	rm -f "$nlist"T
10749      fi
10750
10751      # Make sure that we snagged all the symbols we need.
10752      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10753	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10754	  cat <<_LT_EOF > conftest.$ac_ext
10755/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10756#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10757/* DATA imports from DLLs on WIN32 can't be const, because runtime
10758   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10759# define LT_DLSYM_CONST
10760#elif defined __osf__
10761/* This system does not cope well with relocations in const data.  */
10762# define LT_DLSYM_CONST
10763#else
10764# define LT_DLSYM_CONST const
10765#endif
10766
10767#ifdef __cplusplus
10768extern "C" {
10769#endif
10770
10771_LT_EOF
10772	  # Now generate the symbol file.
10773	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10774
10775	  cat <<_LT_EOF >> conftest.$ac_ext
10776
10777/* The mapping between symbol names and symbols.  */
10778LT_DLSYM_CONST struct {
10779  const char *name;
10780  void       *address;
10781}
10782lt__PROGRAM__LTX_preloaded_symbols[] =
10783{
10784  { "@PROGRAM@", (void *) 0 },
10785_LT_EOF
10786	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10787	  cat <<\_LT_EOF >> conftest.$ac_ext
10788  {0, (void *) 0}
10789};
10790
10791/* This works around a problem in FreeBSD linker */
10792#ifdef FREEBSD_WORKAROUND
10793static const void *lt_preloaded_setup() {
10794  return lt__PROGRAM__LTX_preloaded_symbols;
10795}
10796#endif
10797
10798#ifdef __cplusplus
10799}
10800#endif
10801_LT_EOF
10802	  # Now try linking the two files.
10803	  mv conftest.$ac_objext conftstm.$ac_objext
10804	  lt_globsym_save_LIBS=$LIBS
10805	  lt_globsym_save_CFLAGS=$CFLAGS
10806	  LIBS=conftstm.$ac_objext
10807	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10808	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10809  (eval $ac_link) 2>&5
10810  ac_status=$?
10811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10812  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10813	    pipe_works=yes
10814	  fi
10815	  LIBS=$lt_globsym_save_LIBS
10816	  CFLAGS=$lt_globsym_save_CFLAGS
10817	else
10818	  echo "cannot find nm_test_func in $nlist" >&5
10819	fi
10820      else
10821	echo "cannot find nm_test_var in $nlist" >&5
10822      fi
10823    else
10824      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10825    fi
10826  else
10827    echo "$progname: failed program was:" >&5
10828    cat conftest.$ac_ext >&5
10829  fi
10830  rm -rf conftest* conftst*
10831
10832  # Do not use the global_symbol_pipe unless it works.
10833  if test yes = "$pipe_works"; then
10834    break
10835  else
10836    lt_cv_sys_global_symbol_pipe=
10837  fi
10838done
10839
10840fi
10841
10842if test -z "$lt_cv_sys_global_symbol_pipe"; then
10843  lt_cv_sys_global_symbol_to_cdecl=
10844fi
10845if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10847printf "%s\n" "failed" >&6; }
10848else
10849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10850printf "%s\n" "ok" >&6; }
10851fi
10852
10853# Response file support.
10854if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10855  nm_file_list_spec='@'
10856elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10857  nm_file_list_spec='@'
10858fi
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10897printf %s "checking for sysroot... " >&6; }
10898
10899# Check whether --with-sysroot was given.
10900if test ${with_sysroot+y}
10901then :
10902  withval=$with_sysroot;
10903else $as_nop
10904  with_sysroot=no
10905fi
10906
10907
10908lt_sysroot=
10909case $with_sysroot in #(
10910 yes)
10911   if test yes = "$GCC"; then
10912     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10913   fi
10914   ;; #(
10915 /*)
10916   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10917   ;; #(
10918 no|'')
10919   ;; #(
10920 *)
10921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10922printf "%s\n" "$with_sysroot" >&6; }
10923   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10924   ;;
10925esac
10926
10927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10928printf "%s\n" "${lt_sysroot:-no}" >&6; }
10929
10930
10931
10932
10933
10934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10935printf %s "checking for a working dd... " >&6; }
10936if test ${ac_cv_path_lt_DD+y}
10937then :
10938  printf %s "(cached) " >&6
10939else $as_nop
10940  printf 0123456789abcdef0123456789abcdef >conftest.i
10941cat conftest.i conftest.i >conftest2.i
10942: ${lt_DD:=$DD}
10943if test -z "$lt_DD"; then
10944  ac_path_lt_DD_found=false
10945  # Loop through the user's path and test for each of PROGNAME-LIST
10946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947for as_dir in $PATH
10948do
10949  IFS=$as_save_IFS
10950  case $as_dir in #(((
10951    '') as_dir=./ ;;
10952    */) ;;
10953    *) as_dir=$as_dir/ ;;
10954  esac
10955    for ac_prog in dd
10956   do
10957    for ac_exec_ext in '' $ac_executable_extensions; do
10958      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10959      as_fn_executable_p "$ac_path_lt_DD" || continue
10960if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10961  cmp -s conftest.i conftest.out \
10962  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10963fi
10964      $ac_path_lt_DD_found && break 3
10965    done
10966  done
10967  done
10968IFS=$as_save_IFS
10969  if test -z "$ac_cv_path_lt_DD"; then
10970    :
10971  fi
10972else
10973  ac_cv_path_lt_DD=$lt_DD
10974fi
10975
10976rm -f conftest.i conftest2.i conftest.out
10977fi
10978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10979printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10980
10981
10982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10983printf %s "checking how to truncate binary pipes... " >&6; }
10984if test ${lt_cv_truncate_bin+y}
10985then :
10986  printf %s "(cached) " >&6
10987else $as_nop
10988  printf 0123456789abcdef0123456789abcdef >conftest.i
10989cat conftest.i conftest.i >conftest2.i
10990lt_cv_truncate_bin=
10991if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10992  cmp -s conftest.i conftest.out \
10993  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10994fi
10995rm -f conftest.i conftest2.i conftest.out
10996test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10997fi
10998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10999printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11000
11001
11002
11003
11004
11005
11006
11007# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
11008func_cc_basename ()
11009{
11010    for cc_temp in $*""; do
11011      case $cc_temp in
11012        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11013        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11014        \-*) ;;
11015        *) break;;
11016      esac
11017    done
11018    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11019}
11020
11021# Check whether --enable-libtool-lock was given.
11022if test ${enable_libtool_lock+y}
11023then :
11024  enableval=$enable_libtool_lock;
11025fi
11026
11027test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11028
11029# Some flags need to be propagated to the compiler or linker for good
11030# libtool support.
11031case $host in
11032ia64-*-hpux*)
11033  # Find out what ABI is being produced by ac_compile, and set mode
11034  # options accordingly.
11035  echo 'int i;' > conftest.$ac_ext
11036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11037  (eval $ac_compile) 2>&5
11038  ac_status=$?
11039  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11040  test $ac_status = 0; }; then
11041    case `$FILECMD conftest.$ac_objext` in
11042      *ELF-32*)
11043	HPUX_IA64_MODE=32
11044	;;
11045      *ELF-64*)
11046	HPUX_IA64_MODE=64
11047	;;
11048    esac
11049  fi
11050  rm -rf conftest*
11051  ;;
11052*-*-irix6*)
11053  # Find out what ABI is being produced by ac_compile, and set linker
11054  # options accordingly.
11055  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11056  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11057  (eval $ac_compile) 2>&5
11058  ac_status=$?
11059  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11060  test $ac_status = 0; }; then
11061    if test yes = "$lt_cv_prog_gnu_ld"; then
11062      case `$FILECMD conftest.$ac_objext` in
11063	*32-bit*)
11064	  LD="${LD-ld} -melf32bsmip"
11065	  ;;
11066	*N32*)
11067	  LD="${LD-ld} -melf32bmipn32"
11068	  ;;
11069	*64-bit*)
11070	  LD="${LD-ld} -melf64bmip"
11071	;;
11072      esac
11073    else
11074      case `$FILECMD conftest.$ac_objext` in
11075	*32-bit*)
11076	  LD="${LD-ld} -32"
11077	  ;;
11078	*N32*)
11079	  LD="${LD-ld} -n32"
11080	  ;;
11081	*64-bit*)
11082	  LD="${LD-ld} -64"
11083	  ;;
11084      esac
11085    fi
11086  fi
11087  rm -rf conftest*
11088  ;;
11089
11090mips64*-*linux*)
11091  # Find out what ABI is being produced by ac_compile, and set linker
11092  # options accordingly.
11093  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11094  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11095  (eval $ac_compile) 2>&5
11096  ac_status=$?
11097  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11098  test $ac_status = 0; }; then
11099    emul=elf
11100    case `$FILECMD conftest.$ac_objext` in
11101      *32-bit*)
11102	emul="${emul}32"
11103	;;
11104      *64-bit*)
11105	emul="${emul}64"
11106	;;
11107    esac
11108    case `$FILECMD conftest.$ac_objext` in
11109      *MSB*)
11110	emul="${emul}btsmip"
11111	;;
11112      *LSB*)
11113	emul="${emul}ltsmip"
11114	;;
11115    esac
11116    case `$FILECMD conftest.$ac_objext` in
11117      *N32*)
11118	emul="${emul}n32"
11119	;;
11120    esac
11121    LD="${LD-ld} -m $emul"
11122  fi
11123  rm -rf conftest*
11124  ;;
11125
11126x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11127s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11128  # Find out what ABI is being produced by ac_compile, and set linker
11129  # options accordingly.  Note that the listed cases only cover the
11130  # situations where additional linker options are needed (such as when
11131  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11132  # vice versa); the common cases where no linker options are needed do
11133  # not appear in the list.
11134  echo 'int i;' > conftest.$ac_ext
11135  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11136  (eval $ac_compile) 2>&5
11137  ac_status=$?
11138  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11139  test $ac_status = 0; }; then
11140    case `$FILECMD conftest.o` in
11141      *32-bit*)
11142	case $host in
11143	  x86_64-*kfreebsd*-gnu)
11144	    LD="${LD-ld} -m elf_i386_fbsd"
11145	    ;;
11146	  x86_64-*linux*)
11147	    case `$FILECMD conftest.o` in
11148	      *x86-64*)
11149		LD="${LD-ld} -m elf32_x86_64"
11150		;;
11151	      *)
11152		LD="${LD-ld} -m elf_i386"
11153		;;
11154	    esac
11155	    ;;
11156	  powerpc64le-*linux*)
11157	    LD="${LD-ld} -m elf32lppclinux"
11158	    ;;
11159	  powerpc64-*linux*)
11160	    LD="${LD-ld} -m elf32ppclinux"
11161	    ;;
11162	  s390x-*linux*)
11163	    LD="${LD-ld} -m elf_s390"
11164	    ;;
11165	  sparc64-*linux*)
11166	    LD="${LD-ld} -m elf32_sparc"
11167	    ;;
11168	esac
11169	;;
11170      *64-bit*)
11171	case $host in
11172	  x86_64-*kfreebsd*-gnu)
11173	    LD="${LD-ld} -m elf_x86_64_fbsd"
11174	    ;;
11175	  x86_64-*linux*)
11176	    LD="${LD-ld} -m elf_x86_64"
11177	    ;;
11178	  powerpcle-*linux*)
11179	    LD="${LD-ld} -m elf64lppc"
11180	    ;;
11181	  powerpc-*linux*)
11182	    LD="${LD-ld} -m elf64ppc"
11183	    ;;
11184	  s390*-*linux*|s390*-*tpf*)
11185	    LD="${LD-ld} -m elf64_s390"
11186	    ;;
11187	  sparc*-*linux*)
11188	    LD="${LD-ld} -m elf64_sparc"
11189	    ;;
11190	esac
11191	;;
11192    esac
11193  fi
11194  rm -rf conftest*
11195  ;;
11196
11197*-*-sco3.2v5*)
11198  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11199  SAVE_CFLAGS=$CFLAGS
11200  CFLAGS="$CFLAGS -belf"
11201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11202printf %s "checking whether the C compiler needs -belf... " >&6; }
11203if test ${lt_cv_cc_needs_belf+y}
11204then :
11205  printf %s "(cached) " >&6
11206else $as_nop
11207  ac_ext=c
11208ac_cpp='$CPP $CPPFLAGS'
11209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11211ac_compiler_gnu=$ac_cv_c_compiler_gnu
11212
11213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214/* end confdefs.h.  */
11215
11216int main (void)
11217{
11218
11219 ;
11220 return 0;
11221}
11222_ACEOF
11223if ac_fn_c_try_link "$LINENO"
11224then :
11225  lt_cv_cc_needs_belf=yes
11226else $as_nop
11227  lt_cv_cc_needs_belf=no
11228fi
11229rm -f core conftest.err conftest.$ac_objext conftest.beam \
11230    conftest$ac_exeext conftest.$ac_ext
11231     ac_ext=c
11232ac_cpp='$CPP $CPPFLAGS'
11233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11235ac_compiler_gnu=$ac_cv_c_compiler_gnu
11236
11237fi
11238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11239printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11240  if test yes != "$lt_cv_cc_needs_belf"; then
11241    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11242    CFLAGS=$SAVE_CFLAGS
11243  fi
11244  ;;
11245*-*solaris*)
11246  # Find out what ABI is being produced by ac_compile, and set linker
11247  # options accordingly.
11248  echo 'int i;' > conftest.$ac_ext
11249  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11250  (eval $ac_compile) 2>&5
11251  ac_status=$?
11252  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11253  test $ac_status = 0; }; then
11254    case `$FILECMD conftest.o` in
11255    *64-bit*)
11256      case $lt_cv_prog_gnu_ld in
11257      yes*)
11258        case $host in
11259        i?86-*-solaris*|x86_64-*-solaris*)
11260          LD="${LD-ld} -m elf_x86_64"
11261          ;;
11262        sparc*-*-solaris*)
11263          LD="${LD-ld} -m elf64_sparc"
11264          ;;
11265        esac
11266        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11267        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11268          LD=${LD-ld}_sol2
11269        fi
11270        ;;
11271      *)
11272	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11273	  LD="${LD-ld} -64"
11274	fi
11275	;;
11276      esac
11277      ;;
11278    esac
11279  fi
11280  rm -rf conftest*
11281  ;;
11282esac
11283
11284need_locks=$enable_libtool_lock
11285
11286if test -n "$ac_tool_prefix"; then
11287  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11288set dummy ${ac_tool_prefix}mt; ac_word=$2
11289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290printf %s "checking for $ac_word... " >&6; }
11291if test ${ac_cv_prog_MANIFEST_TOOL+y}
11292then :
11293  printf %s "(cached) " >&6
11294else $as_nop
11295  if test -n "$MANIFEST_TOOL"; then
11296  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11297else
11298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299for as_dir in $PATH
11300do
11301  IFS=$as_save_IFS
11302  case $as_dir in #(((
11303    '') as_dir=./ ;;
11304    */) ;;
11305    *) as_dir=$as_dir/ ;;
11306  esac
11307    for ac_exec_ext in '' $ac_executable_extensions; do
11308  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11309    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11310    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11311    break 2
11312  fi
11313done
11314  done
11315IFS=$as_save_IFS
11316
11317fi
11318fi
11319MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11320if test -n "$MANIFEST_TOOL"; then
11321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11322printf "%s\n" "$MANIFEST_TOOL" >&6; }
11323else
11324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325printf "%s\n" "no" >&6; }
11326fi
11327
11328
11329fi
11330if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11331  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11332  # Extract the first word of "mt", so it can be a program name with args.
11333set dummy mt; ac_word=$2
11334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335printf %s "checking for $ac_word... " >&6; }
11336if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11337then :
11338  printf %s "(cached) " >&6
11339else $as_nop
11340  if test -n "$ac_ct_MANIFEST_TOOL"; then
11341  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11342else
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346  IFS=$as_save_IFS
11347  case $as_dir in #(((
11348    '') as_dir=./ ;;
11349    */) ;;
11350    *) as_dir=$as_dir/ ;;
11351  esac
11352    for ac_exec_ext in '' $ac_executable_extensions; do
11353  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11354    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11355    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11356    break 2
11357  fi
11358done
11359  done
11360IFS=$as_save_IFS
11361
11362fi
11363fi
11364ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11365if test -n "$ac_ct_MANIFEST_TOOL"; then
11366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11367printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11368else
11369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370printf "%s\n" "no" >&6; }
11371fi
11372
11373  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11374    MANIFEST_TOOL=":"
11375  else
11376    case $cross_compiling:$ac_tool_warned in
11377yes:)
11378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11379printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11380ac_tool_warned=yes ;;
11381esac
11382    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11383  fi
11384else
11385  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11386fi
11387
11388test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11390printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11391if test ${lt_cv_path_mainfest_tool+y}
11392then :
11393  printf %s "(cached) " >&6
11394else $as_nop
11395  lt_cv_path_mainfest_tool=no
11396  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11397  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11398  cat conftest.err >&5
11399  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11400    lt_cv_path_mainfest_tool=yes
11401  fi
11402  rm -f conftest*
11403fi
11404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11405printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11406if test yes != "$lt_cv_path_mainfest_tool"; then
11407  MANIFEST_TOOL=:
11408fi
11409
11410
11411
11412
11413
11414
11415  case $host_os in
11416    rhapsody* | darwin*)
11417    if test -n "$ac_tool_prefix"; then
11418  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11419set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421printf %s "checking for $ac_word... " >&6; }
11422if test ${ac_cv_prog_DSYMUTIL+y}
11423then :
11424  printf %s "(cached) " >&6
11425else $as_nop
11426  if test -n "$DSYMUTIL"; then
11427  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11428else
11429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430for as_dir in $PATH
11431do
11432  IFS=$as_save_IFS
11433  case $as_dir in #(((
11434    '') as_dir=./ ;;
11435    */) ;;
11436    *) as_dir=$as_dir/ ;;
11437  esac
11438    for ac_exec_ext in '' $ac_executable_extensions; do
11439  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11440    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11442    break 2
11443  fi
11444done
11445  done
11446IFS=$as_save_IFS
11447
11448fi
11449fi
11450DSYMUTIL=$ac_cv_prog_DSYMUTIL
11451if test -n "$DSYMUTIL"; then
11452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11453printf "%s\n" "$DSYMUTIL" >&6; }
11454else
11455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456printf "%s\n" "no" >&6; }
11457fi
11458
11459
11460fi
11461if test -z "$ac_cv_prog_DSYMUTIL"; then
11462  ac_ct_DSYMUTIL=$DSYMUTIL
11463  # Extract the first word of "dsymutil", so it can be a program name with args.
11464set dummy dsymutil; ac_word=$2
11465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466printf %s "checking for $ac_word... " >&6; }
11467if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11468then :
11469  printf %s "(cached) " >&6
11470else $as_nop
11471  if test -n "$ac_ct_DSYMUTIL"; then
11472  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11473else
11474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475for as_dir in $PATH
11476do
11477  IFS=$as_save_IFS
11478  case $as_dir in #(((
11479    '') as_dir=./ ;;
11480    */) ;;
11481    *) as_dir=$as_dir/ ;;
11482  esac
11483    for ac_exec_ext in '' $ac_executable_extensions; do
11484  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11485    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11486    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11487    break 2
11488  fi
11489done
11490  done
11491IFS=$as_save_IFS
11492
11493fi
11494fi
11495ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11496if test -n "$ac_ct_DSYMUTIL"; then
11497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11498printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11499else
11500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501printf "%s\n" "no" >&6; }
11502fi
11503
11504  if test "x$ac_ct_DSYMUTIL" = x; then
11505    DSYMUTIL=":"
11506  else
11507    case $cross_compiling:$ac_tool_warned in
11508yes:)
11509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11510printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11511ac_tool_warned=yes ;;
11512esac
11513    DSYMUTIL=$ac_ct_DSYMUTIL
11514  fi
11515else
11516  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11517fi
11518
11519    if test -n "$ac_tool_prefix"; then
11520  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11521set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523printf %s "checking for $ac_word... " >&6; }
11524if test ${ac_cv_prog_NMEDIT+y}
11525then :
11526  printf %s "(cached) " >&6
11527else $as_nop
11528  if test -n "$NMEDIT"; then
11529  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11530else
11531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532for as_dir in $PATH
11533do
11534  IFS=$as_save_IFS
11535  case $as_dir in #(((
11536    '') as_dir=./ ;;
11537    */) ;;
11538    *) as_dir=$as_dir/ ;;
11539  esac
11540    for ac_exec_ext in '' $ac_executable_extensions; do
11541  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11542    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11543    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11544    break 2
11545  fi
11546done
11547  done
11548IFS=$as_save_IFS
11549
11550fi
11551fi
11552NMEDIT=$ac_cv_prog_NMEDIT
11553if test -n "$NMEDIT"; then
11554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11555printf "%s\n" "$NMEDIT" >&6; }
11556else
11557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558printf "%s\n" "no" >&6; }
11559fi
11560
11561
11562fi
11563if test -z "$ac_cv_prog_NMEDIT"; then
11564  ac_ct_NMEDIT=$NMEDIT
11565  # Extract the first word of "nmedit", so it can be a program name with args.
11566set dummy nmedit; ac_word=$2
11567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568printf %s "checking for $ac_word... " >&6; }
11569if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11570then :
11571  printf %s "(cached) " >&6
11572else $as_nop
11573  if test -n "$ac_ct_NMEDIT"; then
11574  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11575else
11576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577for as_dir in $PATH
11578do
11579  IFS=$as_save_IFS
11580  case $as_dir in #(((
11581    '') as_dir=./ ;;
11582    */) ;;
11583    *) as_dir=$as_dir/ ;;
11584  esac
11585    for ac_exec_ext in '' $ac_executable_extensions; do
11586  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11587    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11588    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11589    break 2
11590  fi
11591done
11592  done
11593IFS=$as_save_IFS
11594
11595fi
11596fi
11597ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11598if test -n "$ac_ct_NMEDIT"; then
11599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11600printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11601else
11602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603printf "%s\n" "no" >&6; }
11604fi
11605
11606  if test "x$ac_ct_NMEDIT" = x; then
11607    NMEDIT=":"
11608  else
11609    case $cross_compiling:$ac_tool_warned in
11610yes:)
11611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11612printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11613ac_tool_warned=yes ;;
11614esac
11615    NMEDIT=$ac_ct_NMEDIT
11616  fi
11617else
11618  NMEDIT="$ac_cv_prog_NMEDIT"
11619fi
11620
11621    if test -n "$ac_tool_prefix"; then
11622  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11623set dummy ${ac_tool_prefix}lipo; ac_word=$2
11624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625printf %s "checking for $ac_word... " >&6; }
11626if test ${ac_cv_prog_LIPO+y}
11627then :
11628  printf %s "(cached) " >&6
11629else $as_nop
11630  if test -n "$LIPO"; then
11631  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11632else
11633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $PATH
11635do
11636  IFS=$as_save_IFS
11637  case $as_dir in #(((
11638    '') as_dir=./ ;;
11639    */) ;;
11640    *) as_dir=$as_dir/ ;;
11641  esac
11642    for ac_exec_ext in '' $ac_executable_extensions; do
11643  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11644    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11645    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11646    break 2
11647  fi
11648done
11649  done
11650IFS=$as_save_IFS
11651
11652fi
11653fi
11654LIPO=$ac_cv_prog_LIPO
11655if test -n "$LIPO"; then
11656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11657printf "%s\n" "$LIPO" >&6; }
11658else
11659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660printf "%s\n" "no" >&6; }
11661fi
11662
11663
11664fi
11665if test -z "$ac_cv_prog_LIPO"; then
11666  ac_ct_LIPO=$LIPO
11667  # Extract the first word of "lipo", so it can be a program name with args.
11668set dummy lipo; ac_word=$2
11669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11670printf %s "checking for $ac_word... " >&6; }
11671if test ${ac_cv_prog_ac_ct_LIPO+y}
11672then :
11673  printf %s "(cached) " >&6
11674else $as_nop
11675  if test -n "$ac_ct_LIPO"; then
11676  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11677else
11678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679for as_dir in $PATH
11680do
11681  IFS=$as_save_IFS
11682  case $as_dir in #(((
11683    '') as_dir=./ ;;
11684    */) ;;
11685    *) as_dir=$as_dir/ ;;
11686  esac
11687    for ac_exec_ext in '' $ac_executable_extensions; do
11688  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11689    ac_cv_prog_ac_ct_LIPO="lipo"
11690    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11691    break 2
11692  fi
11693done
11694  done
11695IFS=$as_save_IFS
11696
11697fi
11698fi
11699ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11700if test -n "$ac_ct_LIPO"; then
11701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11702printf "%s\n" "$ac_ct_LIPO" >&6; }
11703else
11704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705printf "%s\n" "no" >&6; }
11706fi
11707
11708  if test "x$ac_ct_LIPO" = x; then
11709    LIPO=":"
11710  else
11711    case $cross_compiling:$ac_tool_warned in
11712yes:)
11713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11714printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11715ac_tool_warned=yes ;;
11716esac
11717    LIPO=$ac_ct_LIPO
11718  fi
11719else
11720  LIPO="$ac_cv_prog_LIPO"
11721fi
11722
11723    if test -n "$ac_tool_prefix"; then
11724  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11725set dummy ${ac_tool_prefix}otool; ac_word=$2
11726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727printf %s "checking for $ac_word... " >&6; }
11728if test ${ac_cv_prog_OTOOL+y}
11729then :
11730  printf %s "(cached) " >&6
11731else $as_nop
11732  if test -n "$OTOOL"; then
11733  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11734else
11735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736for as_dir in $PATH
11737do
11738  IFS=$as_save_IFS
11739  case $as_dir in #(((
11740    '') as_dir=./ ;;
11741    */) ;;
11742    *) as_dir=$as_dir/ ;;
11743  esac
11744    for ac_exec_ext in '' $ac_executable_extensions; do
11745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11746    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11748    break 2
11749  fi
11750done
11751  done
11752IFS=$as_save_IFS
11753
11754fi
11755fi
11756OTOOL=$ac_cv_prog_OTOOL
11757if test -n "$OTOOL"; then
11758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11759printf "%s\n" "$OTOOL" >&6; }
11760else
11761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762printf "%s\n" "no" >&6; }
11763fi
11764
11765
11766fi
11767if test -z "$ac_cv_prog_OTOOL"; then
11768  ac_ct_OTOOL=$OTOOL
11769  # Extract the first word of "otool", so it can be a program name with args.
11770set dummy otool; ac_word=$2
11771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772printf %s "checking for $ac_word... " >&6; }
11773if test ${ac_cv_prog_ac_ct_OTOOL+y}
11774then :
11775  printf %s "(cached) " >&6
11776else $as_nop
11777  if test -n "$ac_ct_OTOOL"; then
11778  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11779else
11780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781for as_dir in $PATH
11782do
11783  IFS=$as_save_IFS
11784  case $as_dir in #(((
11785    '') as_dir=./ ;;
11786    */) ;;
11787    *) as_dir=$as_dir/ ;;
11788  esac
11789    for ac_exec_ext in '' $ac_executable_extensions; do
11790  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11791    ac_cv_prog_ac_ct_OTOOL="otool"
11792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11793    break 2
11794  fi
11795done
11796  done
11797IFS=$as_save_IFS
11798
11799fi
11800fi
11801ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11802if test -n "$ac_ct_OTOOL"; then
11803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11804printf "%s\n" "$ac_ct_OTOOL" >&6; }
11805else
11806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807printf "%s\n" "no" >&6; }
11808fi
11809
11810  if test "x$ac_ct_OTOOL" = x; then
11811    OTOOL=":"
11812  else
11813    case $cross_compiling:$ac_tool_warned in
11814yes:)
11815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11816printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11817ac_tool_warned=yes ;;
11818esac
11819    OTOOL=$ac_ct_OTOOL
11820  fi
11821else
11822  OTOOL="$ac_cv_prog_OTOOL"
11823fi
11824
11825    if test -n "$ac_tool_prefix"; then
11826  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11827set dummy ${ac_tool_prefix}otool64; ac_word=$2
11828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829printf %s "checking for $ac_word... " >&6; }
11830if test ${ac_cv_prog_OTOOL64+y}
11831then :
11832  printf %s "(cached) " >&6
11833else $as_nop
11834  if test -n "$OTOOL64"; then
11835  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11836else
11837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838for as_dir in $PATH
11839do
11840  IFS=$as_save_IFS
11841  case $as_dir in #(((
11842    '') as_dir=./ ;;
11843    */) ;;
11844    *) as_dir=$as_dir/ ;;
11845  esac
11846    for ac_exec_ext in '' $ac_executable_extensions; do
11847  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11848    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11849    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11850    break 2
11851  fi
11852done
11853  done
11854IFS=$as_save_IFS
11855
11856fi
11857fi
11858OTOOL64=$ac_cv_prog_OTOOL64
11859if test -n "$OTOOL64"; then
11860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11861printf "%s\n" "$OTOOL64" >&6; }
11862else
11863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864printf "%s\n" "no" >&6; }
11865fi
11866
11867
11868fi
11869if test -z "$ac_cv_prog_OTOOL64"; then
11870  ac_ct_OTOOL64=$OTOOL64
11871  # Extract the first word of "otool64", so it can be a program name with args.
11872set dummy otool64; ac_word=$2
11873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11874printf %s "checking for $ac_word... " >&6; }
11875if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11876then :
11877  printf %s "(cached) " >&6
11878else $as_nop
11879  if test -n "$ac_ct_OTOOL64"; then
11880  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11881else
11882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883for as_dir in $PATH
11884do
11885  IFS=$as_save_IFS
11886  case $as_dir in #(((
11887    '') as_dir=./ ;;
11888    */) ;;
11889    *) as_dir=$as_dir/ ;;
11890  esac
11891    for ac_exec_ext in '' $ac_executable_extensions; do
11892  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11893    ac_cv_prog_ac_ct_OTOOL64="otool64"
11894    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11895    break 2
11896  fi
11897done
11898  done
11899IFS=$as_save_IFS
11900
11901fi
11902fi
11903ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11904if test -n "$ac_ct_OTOOL64"; then
11905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11906printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11907else
11908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909printf "%s\n" "no" >&6; }
11910fi
11911
11912  if test "x$ac_ct_OTOOL64" = x; then
11913    OTOOL64=":"
11914  else
11915    case $cross_compiling:$ac_tool_warned in
11916yes:)
11917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11918printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11919ac_tool_warned=yes ;;
11920esac
11921    OTOOL64=$ac_ct_OTOOL64
11922  fi
11923else
11924  OTOOL64="$ac_cv_prog_OTOOL64"
11925fi
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11954printf %s "checking for -single_module linker flag... " >&6; }
11955if test ${lt_cv_apple_cc_single_mod+y}
11956then :
11957  printf %s "(cached) " >&6
11958else $as_nop
11959  lt_cv_apple_cc_single_mod=no
11960      if test -z "$LT_MULTI_MODULE"; then
11961	# By default we will add the -single_module flag. You can override
11962	# by either setting the environment variable LT_MULTI_MODULE
11963	# non-empty at configure time, or by adding -multi_module to the
11964	# link flags.
11965	rm -rf libconftest.dylib*
11966	echo "int foo(void){return 1;}" > conftest.c
11967	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11968-dynamiclib -Wl,-single_module conftest.c" >&5
11969	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11970	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11971        _lt_result=$?
11972	# If there is a non-empty error log, and "single_module"
11973	# appears in it, assume the flag caused a linker warning
11974        if test -s conftest.err && $GREP single_module conftest.err; then
11975	  cat conftest.err >&5
11976	# Otherwise, if the output was created with a 0 exit code from
11977	# the compiler, it worked.
11978	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11979	  lt_cv_apple_cc_single_mod=yes
11980	else
11981	  cat conftest.err >&5
11982	fi
11983	rm -rf libconftest.dylib*
11984	rm -f conftest.*
11985      fi
11986fi
11987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11988printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11989
11990    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11991printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11992if test ${lt_cv_ld_exported_symbols_list+y}
11993then :
11994  printf %s "(cached) " >&6
11995else $as_nop
11996  lt_cv_ld_exported_symbols_list=no
11997      save_LDFLAGS=$LDFLAGS
11998      echo "_main" > conftest.sym
11999      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12000      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h.  */
12002
12003int main (void)
12004{
12005
12006 ;
12007 return 0;
12008}
12009_ACEOF
12010if ac_fn_c_try_link "$LINENO"
12011then :
12012  lt_cv_ld_exported_symbols_list=yes
12013else $as_nop
12014  lt_cv_ld_exported_symbols_list=no
12015fi
12016rm -f core conftest.err conftest.$ac_objext conftest.beam \
12017    conftest$ac_exeext conftest.$ac_ext
12018	LDFLAGS=$save_LDFLAGS
12019
12020fi
12021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12022printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12023
12024    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12025printf %s "checking for -force_load linker flag... " >&6; }
12026if test ${lt_cv_ld_force_load+y}
12027then :
12028  printf %s "(cached) " >&6
12029else $as_nop
12030  lt_cv_ld_force_load=no
12031      cat > conftest.c << _LT_EOF
12032int forced_loaded() { return 2;}
12033_LT_EOF
12034      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12035      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12036      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
12037      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
12038      echo "$RANLIB libconftest.a" >&5
12039      $RANLIB libconftest.a 2>&5
12040      cat > conftest.c << _LT_EOF
12041int main() { return 0;}
12042_LT_EOF
12043      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12044      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12045      _lt_result=$?
12046      if test -s conftest.err && $GREP force_load conftest.err; then
12047	cat conftest.err >&5
12048      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12049	lt_cv_ld_force_load=yes
12050      else
12051	cat conftest.err >&5
12052      fi
12053        rm -f conftest.err libconftest.a conftest conftest.c
12054        rm -rf conftest.dSYM
12055
12056fi
12057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12058printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12059    case $host_os in
12060    rhapsody* | darwin1.[012])
12061      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12062    darwin1.*)
12063      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12064    darwin*)
12065      case $MACOSX_DEPLOYMENT_TARGET,$host in
12066        10.[012],*|,*powerpc*-darwin[5-8]*)
12067          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12068        *)
12069          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12070      esac
12071    ;;
12072  esac
12073    if test yes = "$lt_cv_apple_cc_single_mod"; then
12074      _lt_dar_single_mod='$single_module'
12075    fi
12076    if test yes = "$lt_cv_ld_exported_symbols_list"; then
12077      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12078    else
12079      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12080    fi
12081    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12082      _lt_dsymutil='~$DSYMUTIL $lib || :'
12083    else
12084      _lt_dsymutil=
12085    fi
12086    ;;
12087  esac
12088
12089# func_munge_path_list VARIABLE PATH
12090# -----------------------------------
12091# VARIABLE is name of variable containing _space_ separated list of
12092# directories to be munged by the contents of PATH, which is string
12093# having a format:
12094# "DIR[:DIR]:"
12095#       string "DIR[ DIR]" will be prepended to VARIABLE
12096# ":DIR[:DIR]"
12097#       string "DIR[ DIR]" will be appended to VARIABLE
12098# "DIRP[:DIRP]::[DIRA:]DIRA"
12099#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12100#       "DIRA[ DIRA]" will be appended to VARIABLE
12101# "DIR[:DIR]"
12102#       VARIABLE will be replaced by "DIR[ DIR]"
12103func_munge_path_list ()
12104{
12105    case x$2 in
12106    x)
12107        ;;
12108    *:)
12109        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12110        ;;
12111    x:*)
12112        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12113        ;;
12114    *::*)
12115        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12116        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12117        ;;
12118    *)
12119        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12120        ;;
12121    esac
12122}
12123
12124ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12125"
12126if test "x$ac_cv_header_dlfcn_h" = xyes
12127then :
12128  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12129
12130fi
12131
12132# ------------------------------------ #
12133#  Determine libtool default behavior  #
12134# ------------------------------------ #
12135
12136#
12137# Default behavior is to enable shared and static libraries on systems
12138# where libtool knows how to build both library versions, and does not
12139# require separate configuration and build runs for each flavor.
12140#
12141
12142xc_lt_want_enable_shared='yes'
12143xc_lt_want_enable_static='yes'
12144
12145#
12146# User may have disabled shared or static libraries.
12147#
12148case "x$enable_shared" in # (
12149  xno)
12150    xc_lt_want_enable_shared='no'
12151    ;;
12152esac
12153case "x$enable_static" in # (
12154  xno)
12155    xc_lt_want_enable_static='no'
12156    ;;
12157esac
12158if test "x$xc_lt_want_enable_shared" = 'xno' &&
12159  test "x$xc_lt_want_enable_static" = 'xno'; then
12160  as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
12161fi
12162
12163#
12164# Default behavior on systems that require independent configuration
12165# and build runs for shared and static is to enable shared libraries
12166# and disable static ones. On these systems option '--disable-shared'
12167# must be used in order to build a proper static library.
12168#
12169
12170if test "x$xc_lt_want_enable_shared" = 'xyes' &&
12171  test "x$xc_lt_want_enable_static" = 'xyes'; then
12172  case $host_os in # (
12173    pw32* | cegcc* | os2* | aix*)
12174      xc_lt_want_enable_static='no'
12175      ;;
12176  esac
12177fi
12178
12179#
12180# Make libtool aware of current shared and static library preferences
12181# taking in account that, depending on host characteristics, libtool
12182# may modify these option preferences later in this configure script.
12183#
12184
12185enable_shared=$xc_lt_want_enable_shared
12186enable_static=$xc_lt_want_enable_static
12187
12188#
12189# Default behavior is to build PIC objects for shared libraries and
12190# non-PIC objects for static libraries.
12191#
12192
12193xc_lt_want_with_pic='default'
12194
12195#
12196# User may have specified PIC preference.
12197#
12198
12199case "x$with_pic" in # ((
12200  xno)
12201    xc_lt_want_with_pic='no'
12202    ;;
12203  xyes)
12204    xc_lt_want_with_pic='yes'
12205    ;;
12206esac
12207
12208#
12209# Default behavior on some systems where building a shared library out
12210# of non-PIC compiled objects will fail with following linker error
12211# "relocation R_X86_64_32 can not be used when making a shared object"
12212# is to build PIC objects even for static libraries. This behavior may
12213# be overridden using 'configure --disable-shared --without-pic'.
12214#
12215
12216if test "x$xc_lt_want_with_pic" = 'xdefault'; then
12217  case $host_cpu in # (
12218    x86_64 | amd64 | ia64)
12219      case $host_os in # (
12220        linux* | freebsd* | midnightbsd*)
12221          xc_lt_want_with_pic='yes'
12222          ;;
12223      esac
12224      ;;
12225  esac
12226fi
12227
12228#
12229# Make libtool aware of current PIC preference taking in account that,
12230# depending on host characteristics, libtool may modify PIC default
12231# behavior to fit host system idiosyncrasies later in this script.
12232#
12233
12234with_pic=$xc_lt_want_with_pic
12235
12236## ----------------------- ##
12237##  Start of libtool code  ##
12238## ----------------------- ##
12239
12240
12241
12242
12243# Set options
12244enable_win32_dll=yes
12245
12246case $host in
12247*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12248  if test -n "$ac_tool_prefix"; then
12249  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12250set dummy ${ac_tool_prefix}as; ac_word=$2
12251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252printf %s "checking for $ac_word... " >&6; }
12253if test ${ac_cv_prog_AS+y}
12254then :
12255  printf %s "(cached) " >&6
12256else $as_nop
12257  if test -n "$AS"; then
12258  ac_cv_prog_AS="$AS" # Let the user override the test.
12259else
12260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261for as_dir in $PATH
12262do
12263  IFS=$as_save_IFS
12264  case $as_dir in #(((
12265    '') as_dir=./ ;;
12266    */) ;;
12267    *) as_dir=$as_dir/ ;;
12268  esac
12269    for ac_exec_ext in '' $ac_executable_extensions; do
12270  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12271    ac_cv_prog_AS="${ac_tool_prefix}as"
12272    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12273    break 2
12274  fi
12275done
12276  done
12277IFS=$as_save_IFS
12278
12279fi
12280fi
12281AS=$ac_cv_prog_AS
12282if test -n "$AS"; then
12283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12284printf "%s\n" "$AS" >&6; }
12285else
12286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287printf "%s\n" "no" >&6; }
12288fi
12289
12290
12291fi
12292if test -z "$ac_cv_prog_AS"; then
12293  ac_ct_AS=$AS
12294  # Extract the first word of "as", so it can be a program name with args.
12295set dummy as; ac_word=$2
12296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297printf %s "checking for $ac_word... " >&6; }
12298if test ${ac_cv_prog_ac_ct_AS+y}
12299then :
12300  printf %s "(cached) " >&6
12301else $as_nop
12302  if test -n "$ac_ct_AS"; then
12303  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12304else
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308  IFS=$as_save_IFS
12309  case $as_dir in #(((
12310    '') as_dir=./ ;;
12311    */) ;;
12312    *) as_dir=$as_dir/ ;;
12313  esac
12314    for ac_exec_ext in '' $ac_executable_extensions; do
12315  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12316    ac_cv_prog_ac_ct_AS="as"
12317    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12318    break 2
12319  fi
12320done
12321  done
12322IFS=$as_save_IFS
12323
12324fi
12325fi
12326ac_ct_AS=$ac_cv_prog_ac_ct_AS
12327if test -n "$ac_ct_AS"; then
12328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12329printf "%s\n" "$ac_ct_AS" >&6; }
12330else
12331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332printf "%s\n" "no" >&6; }
12333fi
12334
12335  if test "x$ac_ct_AS" = x; then
12336    AS="false"
12337  else
12338    case $cross_compiling:$ac_tool_warned in
12339yes:)
12340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12341printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12342ac_tool_warned=yes ;;
12343esac
12344    AS=$ac_ct_AS
12345  fi
12346else
12347  AS="$ac_cv_prog_AS"
12348fi
12349
12350  if test -n "$ac_tool_prefix"; then
12351  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12352set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354printf %s "checking for $ac_word... " >&6; }
12355if test ${ac_cv_prog_DLLTOOL+y}
12356then :
12357  printf %s "(cached) " >&6
12358else $as_nop
12359  if test -n "$DLLTOOL"; then
12360  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12361else
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365  IFS=$as_save_IFS
12366  case $as_dir in #(((
12367    '') as_dir=./ ;;
12368    */) ;;
12369    *) as_dir=$as_dir/ ;;
12370  esac
12371    for ac_exec_ext in '' $ac_executable_extensions; do
12372  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12373    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12374    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12375    break 2
12376  fi
12377done
12378  done
12379IFS=$as_save_IFS
12380
12381fi
12382fi
12383DLLTOOL=$ac_cv_prog_DLLTOOL
12384if test -n "$DLLTOOL"; then
12385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12386printf "%s\n" "$DLLTOOL" >&6; }
12387else
12388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389printf "%s\n" "no" >&6; }
12390fi
12391
12392
12393fi
12394if test -z "$ac_cv_prog_DLLTOOL"; then
12395  ac_ct_DLLTOOL=$DLLTOOL
12396  # Extract the first word of "dlltool", so it can be a program name with args.
12397set dummy dlltool; ac_word=$2
12398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399printf %s "checking for $ac_word... " >&6; }
12400if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12401then :
12402  printf %s "(cached) " >&6
12403else $as_nop
12404  if test -n "$ac_ct_DLLTOOL"; then
12405  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12406else
12407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408for as_dir in $PATH
12409do
12410  IFS=$as_save_IFS
12411  case $as_dir in #(((
12412    '') as_dir=./ ;;
12413    */) ;;
12414    *) as_dir=$as_dir/ ;;
12415  esac
12416    for ac_exec_ext in '' $ac_executable_extensions; do
12417  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12418    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12419    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12420    break 2
12421  fi
12422done
12423  done
12424IFS=$as_save_IFS
12425
12426fi
12427fi
12428ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12429if test -n "$ac_ct_DLLTOOL"; then
12430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12431printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12432else
12433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434printf "%s\n" "no" >&6; }
12435fi
12436
12437  if test "x$ac_ct_DLLTOOL" = x; then
12438    DLLTOOL="false"
12439  else
12440    case $cross_compiling:$ac_tool_warned in
12441yes:)
12442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12443printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12444ac_tool_warned=yes ;;
12445esac
12446    DLLTOOL=$ac_ct_DLLTOOL
12447  fi
12448else
12449  DLLTOOL="$ac_cv_prog_DLLTOOL"
12450fi
12451
12452  if test -n "$ac_tool_prefix"; then
12453  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12454set dummy ${ac_tool_prefix}objdump; ac_word=$2
12455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456printf %s "checking for $ac_word... " >&6; }
12457if test ${ac_cv_prog_OBJDUMP+y}
12458then :
12459  printf %s "(cached) " >&6
12460else $as_nop
12461  if test -n "$OBJDUMP"; then
12462  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12463else
12464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465for as_dir in $PATH
12466do
12467  IFS=$as_save_IFS
12468  case $as_dir in #(((
12469    '') as_dir=./ ;;
12470    */) ;;
12471    *) as_dir=$as_dir/ ;;
12472  esac
12473    for ac_exec_ext in '' $ac_executable_extensions; do
12474  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12475    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12476    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12477    break 2
12478  fi
12479done
12480  done
12481IFS=$as_save_IFS
12482
12483fi
12484fi
12485OBJDUMP=$ac_cv_prog_OBJDUMP
12486if test -n "$OBJDUMP"; then
12487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12488printf "%s\n" "$OBJDUMP" >&6; }
12489else
12490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491printf "%s\n" "no" >&6; }
12492fi
12493
12494
12495fi
12496if test -z "$ac_cv_prog_OBJDUMP"; then
12497  ac_ct_OBJDUMP=$OBJDUMP
12498  # Extract the first word of "objdump", so it can be a program name with args.
12499set dummy objdump; ac_word=$2
12500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501printf %s "checking for $ac_word... " >&6; }
12502if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12503then :
12504  printf %s "(cached) " >&6
12505else $as_nop
12506  if test -n "$ac_ct_OBJDUMP"; then
12507  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12508else
12509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510for as_dir in $PATH
12511do
12512  IFS=$as_save_IFS
12513  case $as_dir in #(((
12514    '') as_dir=./ ;;
12515    */) ;;
12516    *) as_dir=$as_dir/ ;;
12517  esac
12518    for ac_exec_ext in '' $ac_executable_extensions; do
12519  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12520    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12521    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12522    break 2
12523  fi
12524done
12525  done
12526IFS=$as_save_IFS
12527
12528fi
12529fi
12530ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12531if test -n "$ac_ct_OBJDUMP"; then
12532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12533printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12534else
12535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536printf "%s\n" "no" >&6; }
12537fi
12538
12539  if test "x$ac_ct_OBJDUMP" = x; then
12540    OBJDUMP="false"
12541  else
12542    case $cross_compiling:$ac_tool_warned in
12543yes:)
12544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12545printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12546ac_tool_warned=yes ;;
12547esac
12548    OBJDUMP=$ac_ct_OBJDUMP
12549  fi
12550else
12551  OBJDUMP="$ac_cv_prog_OBJDUMP"
12552fi
12553
12554  ;;
12555esac
12556
12557test -z "$AS" && AS=as
12558
12559
12560
12561
12562
12563test -z "$DLLTOOL" && DLLTOOL=dlltool
12564
12565
12566
12567
12568
12569test -z "$OBJDUMP" && OBJDUMP=objdump
12570
12571
12572
12573
12574
12575
12576
12577        enable_dlopen=no
12578
12579
12580
12581            # Check whether --enable-shared was given.
12582if test ${enable_shared+y}
12583then :
12584  enableval=$enable_shared; p=${PACKAGE-default}
12585    case $enableval in
12586    yes) enable_shared=yes ;;
12587    no) enable_shared=no ;;
12588    *)
12589      enable_shared=no
12590      # Look at the argument we got.  We use all the common list separators.
12591      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12592      for pkg in $enableval; do
12593	IFS=$lt_save_ifs
12594	if test "X$pkg" = "X$p"; then
12595	  enable_shared=yes
12596	fi
12597      done
12598      IFS=$lt_save_ifs
12599      ;;
12600    esac
12601else $as_nop
12602  enable_shared=yes
12603fi
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613  # Check whether --enable-static was given.
12614if test ${enable_static+y}
12615then :
12616  enableval=$enable_static; p=${PACKAGE-default}
12617    case $enableval in
12618    yes) enable_static=yes ;;
12619    no) enable_static=no ;;
12620    *)
12621     enable_static=no
12622      # Look at the argument we got.  We use all the common list separators.
12623      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12624      for pkg in $enableval; do
12625	IFS=$lt_save_ifs
12626	if test "X$pkg" = "X$p"; then
12627	  enable_static=yes
12628	fi
12629      done
12630      IFS=$lt_save_ifs
12631      ;;
12632    esac
12633else $as_nop
12634  enable_static=yes
12635fi
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646# Check whether --with-pic was given.
12647if test ${with_pic+y}
12648then :
12649  withval=$with_pic; lt_p=${PACKAGE-default}
12650    case $withval in
12651    yes|no) pic_mode=$withval ;;
12652    *)
12653      pic_mode=default
12654      # Look at the argument we got.  We use all the common list separators.
12655      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12656      for lt_pkg in $withval; do
12657	IFS=$lt_save_ifs
12658	if test "X$lt_pkg" = "X$lt_p"; then
12659	  pic_mode=yes
12660	fi
12661      done
12662      IFS=$lt_save_ifs
12663      ;;
12664    esac
12665else $as_nop
12666  pic_mode=default
12667fi
12668
12669
12670
12671
12672
12673
12674
12675
12676  # Check whether --enable-fast-install was given.
12677if test ${enable_fast_install+y}
12678then :
12679  enableval=$enable_fast_install; p=${PACKAGE-default}
12680    case $enableval in
12681    yes) enable_fast_install=yes ;;
12682    no) enable_fast_install=no ;;
12683    *)
12684      enable_fast_install=no
12685      # Look at the argument we got.  We use all the common list separators.
12686      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12687      for pkg in $enableval; do
12688	IFS=$lt_save_ifs
12689	if test "X$pkg" = "X$p"; then
12690	  enable_fast_install=yes
12691	fi
12692      done
12693      IFS=$lt_save_ifs
12694      ;;
12695    esac
12696else $as_nop
12697  enable_fast_install=yes
12698fi
12699
12700
12701
12702
12703
12704
12705
12706
12707  shared_archive_member_spec=
12708case $host,$enable_shared in
12709power*-*-aix[5-9]*,yes)
12710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12711printf %s "checking which variant of shared library versioning to provide... " >&6; }
12712
12713# Check whether --with-aix-soname was given.
12714if test ${with_aix_soname+y}
12715then :
12716  withval=$with_aix_soname; case $withval in
12717    aix|svr4|both)
12718      ;;
12719    *)
12720      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12721      ;;
12722    esac
12723    lt_cv_with_aix_soname=$with_aix_soname
12724else $as_nop
12725  if test ${lt_cv_with_aix_soname+y}
12726then :
12727  printf %s "(cached) " >&6
12728else $as_nop
12729  lt_cv_with_aix_soname=aix
12730fi
12731
12732    with_aix_soname=$lt_cv_with_aix_soname
12733fi
12734
12735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12736printf "%s\n" "$with_aix_soname" >&6; }
12737  if test aix != "$with_aix_soname"; then
12738    # For the AIX way of multilib, we name the shared archive member
12739    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12740    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12741    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12742    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12743    if test 64 = "${OBJECT_MODE-32}"; then
12744      shared_archive_member_spec=shr_64
12745    else
12746      shared_archive_member_spec=shr
12747    fi
12748  fi
12749  ;;
12750*)
12751  with_aix_soname=aix
12752  ;;
12753esac
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764# This can be used to rebuild libtool when needed
12765LIBTOOL_DEPS=$ltmain
12766
12767# Always use our own libtool.
12768LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799test -z "$LN_S" && LN_S="ln -s"
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814if test -n "${ZSH_VERSION+set}"; then
12815   setopt NO_GLOB_SUBST
12816fi
12817
12818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12819printf %s "checking for objdir... " >&6; }
12820if test ${lt_cv_objdir+y}
12821then :
12822  printf %s "(cached) " >&6
12823else $as_nop
12824  rm -f .libs 2>/dev/null
12825mkdir .libs 2>/dev/null
12826if test -d .libs; then
12827  lt_cv_objdir=.libs
12828else
12829  # MS-DOS does not allow filenames that begin with a dot.
12830  lt_cv_objdir=_libs
12831fi
12832rmdir .libs 2>/dev/null
12833fi
12834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12835printf "%s\n" "$lt_cv_objdir" >&6; }
12836objdir=$lt_cv_objdir
12837
12838
12839
12840
12841
12842printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12843
12844
12845
12846
12847case $host_os in
12848aix3*)
12849  # AIX sometimes has problems with the GCC collect2 program.  For some
12850  # reason, if we set the COLLECT_NAMES environment variable, the problems
12851  # vanish in a puff of smoke.
12852  if test set != "${COLLECT_NAMES+set}"; then
12853    COLLECT_NAMES=
12854    export COLLECT_NAMES
12855  fi
12856  ;;
12857esac
12858
12859# Global variables:
12860ofile=libtool
12861can_build_shared=yes
12862
12863# All known linkers require a '.a' archive for static linking (except MSVC and
12864# ICC, which need '.lib').
12865libext=a
12866
12867with_gnu_ld=$lt_cv_prog_gnu_ld
12868
12869old_CC=$CC
12870old_CFLAGS=$CFLAGS
12871
12872# Set sane defaults for various variables
12873test -z "$CC" && CC=cc
12874test -z "$LTCC" && LTCC=$CC
12875test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12876test -z "$LD" && LD=ld
12877test -z "$ac_objext" && ac_objext=o
12878
12879func_cc_basename $compiler
12880cc_basename=$func_cc_basename_result
12881
12882
12883# Only perform the check for file, if the check method requires it
12884test -z "$MAGIC_CMD" && MAGIC_CMD=file
12885case $deplibs_check_method in
12886file_magic*)
12887  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12888    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12889printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12890if test ${lt_cv_path_MAGIC_CMD+y}
12891then :
12892  printf %s "(cached) " >&6
12893else $as_nop
12894  case $MAGIC_CMD in
12895[\\/*] |  ?:[\\/]*)
12896  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12897  ;;
12898*)
12899  lt_save_MAGIC_CMD=$MAGIC_CMD
12900  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12901  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12902  for ac_dir in $ac_dummy; do
12903    IFS=$lt_save_ifs
12904    test -z "$ac_dir" && ac_dir=.
12905    if test -f "$ac_dir/${ac_tool_prefix}file"; then
12906      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12907      if test -n "$file_magic_test_file"; then
12908	case $deplibs_check_method in
12909	"file_magic "*)
12910	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12911	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12912	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12913	    $EGREP "$file_magic_regex" > /dev/null; then
12914	    :
12915	  else
12916	    cat <<_LT_EOF 1>&2
12917
12918*** Warning: the command libtool uses to detect shared libraries,
12919*** $file_magic_cmd, produces output that libtool cannot recognize.
12920*** The result is that libtool may fail to recognize shared libraries
12921*** as such.  This will affect the creation of libtool libraries that
12922*** depend on shared libraries, but programs linked with such libtool
12923*** libraries will work regardless of this problem.  Nevertheless, you
12924*** may want to report the problem to your system manager and/or to
12925*** bug-libtool@gnu.org
12926
12927_LT_EOF
12928	  fi ;;
12929	esac
12930      fi
12931      break
12932    fi
12933  done
12934  IFS=$lt_save_ifs
12935  MAGIC_CMD=$lt_save_MAGIC_CMD
12936  ;;
12937esac
12938fi
12939
12940MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12941if test -n "$MAGIC_CMD"; then
12942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12943printf "%s\n" "$MAGIC_CMD" >&6; }
12944else
12945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946printf "%s\n" "no" >&6; }
12947fi
12948
12949
12950
12951
12952
12953if test -z "$lt_cv_path_MAGIC_CMD"; then
12954  if test -n "$ac_tool_prefix"; then
12955    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12956printf %s "checking for file... " >&6; }
12957if test ${lt_cv_path_MAGIC_CMD+y}
12958then :
12959  printf %s "(cached) " >&6
12960else $as_nop
12961  case $MAGIC_CMD in
12962[\\/*] |  ?:[\\/]*)
12963  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12964  ;;
12965*)
12966  lt_save_MAGIC_CMD=$MAGIC_CMD
12967  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12968  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12969  for ac_dir in $ac_dummy; do
12970    IFS=$lt_save_ifs
12971    test -z "$ac_dir" && ac_dir=.
12972    if test -f "$ac_dir/file"; then
12973      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12974      if test -n "$file_magic_test_file"; then
12975	case $deplibs_check_method in
12976	"file_magic "*)
12977	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12978	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12979	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12980	    $EGREP "$file_magic_regex" > /dev/null; then
12981	    :
12982	  else
12983	    cat <<_LT_EOF 1>&2
12984
12985*** Warning: the command libtool uses to detect shared libraries,
12986*** $file_magic_cmd, produces output that libtool cannot recognize.
12987*** The result is that libtool may fail to recognize shared libraries
12988*** as such.  This will affect the creation of libtool libraries that
12989*** depend on shared libraries, but programs linked with such libtool
12990*** libraries will work regardless of this problem.  Nevertheless, you
12991*** may want to report the problem to your system manager and/or to
12992*** bug-libtool@gnu.org
12993
12994_LT_EOF
12995	  fi ;;
12996	esac
12997      fi
12998      break
12999    fi
13000  done
13001  IFS=$lt_save_ifs
13002  MAGIC_CMD=$lt_save_MAGIC_CMD
13003  ;;
13004esac
13005fi
13006
13007MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13008if test -n "$MAGIC_CMD"; then
13009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13010printf "%s\n" "$MAGIC_CMD" >&6; }
13011else
13012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013printf "%s\n" "no" >&6; }
13014fi
13015
13016
13017  else
13018    MAGIC_CMD=:
13019  fi
13020fi
13021
13022  fi
13023  ;;
13024esac
13025
13026# Use C for the default configuration in the libtool script
13027
13028lt_save_CC=$CC
13029ac_ext=c
13030ac_cpp='$CPP $CPPFLAGS'
13031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13033ac_compiler_gnu=$ac_cv_c_compiler_gnu
13034
13035
13036# Source file extension for C test sources.
13037ac_ext=c
13038
13039# Object file extension for compiled C test sources.
13040objext=o
13041objext=$objext
13042
13043# Code to be used in simple compile tests
13044lt_simple_compile_test_code="int some_variable = 0;"
13045
13046# Code to be used in simple link tests
13047lt_simple_link_test_code='int main(){return(0);}'
13048
13049
13050
13051
13052
13053
13054
13055# If no C compiler was specified, use CC.
13056LTCC=${LTCC-"$CC"}
13057
13058# If no C compiler flags were specified, use CFLAGS.
13059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13060
13061# Allow CC to be a program name with arguments.
13062compiler=$CC
13063
13064# Save the default compiler, since it gets overwritten when the other
13065# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13066compiler_DEFAULT=$CC
13067
13068# save warnings/boilerplate of simple test code
13069ac_outfile=conftest.$ac_objext
13070echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13072_lt_compiler_boilerplate=`cat conftest.err`
13073$RM conftest*
13074
13075ac_outfile=conftest.$ac_objext
13076echo "$lt_simple_link_test_code" >conftest.$ac_ext
13077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13078_lt_linker_boilerplate=`cat conftest.err`
13079$RM -r conftest*
13080
13081
13082## CAVEAT EMPTOR:
13083## There is no encapsulation within the following macros, do not change
13084## the running order or otherwise move them around unless you know exactly
13085## what you are doing...
13086if test -n "$compiler"; then
13087
13088lt_prog_compiler_no_builtin_flag=
13089
13090if test yes = "$GCC"; then
13091  case $cc_basename in
13092  nvcc*)
13093    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13094  *)
13095    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13096  esac
13097
13098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13099printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13100if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13101then :
13102  printf %s "(cached) " >&6
13103else $as_nop
13104  lt_cv_prog_compiler_rtti_exceptions=no
13105   ac_outfile=conftest.$ac_objext
13106   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13107   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
13108   # Insert the option either (1) after the last *FLAGS variable, or
13109   # (2) before a word containing "conftest.", or (3) at the end.
13110   # Note that $ac_compile itself does not contain backslashes and begins
13111   # with a dollar sign (not a hyphen), so the echo should work correctly.
13112   # The option is referenced via a variable to avoid confusing sed.
13113   lt_compile=`echo "$ac_compile" | $SED \
13114   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13115   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13116   -e 's:$: $lt_compiler_flag:'`
13117   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13118   (eval "$lt_compile" 2>conftest.err)
13119   ac_status=$?
13120   cat conftest.err >&5
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   if (exit $ac_status) && test -s "$ac_outfile"; then
13123     # The compiler can only warn and ignore the option if not recognized
13124     # So say no if there are warnings other than the usual output.
13125     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13126     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13127     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13128       lt_cv_prog_compiler_rtti_exceptions=yes
13129     fi
13130   fi
13131   $RM conftest*
13132
13133fi
13134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13135printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13136
13137if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13138    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13139else
13140    :
13141fi
13142
13143fi
13144
13145
13146
13147
13148
13149
13150  lt_prog_compiler_wl=
13151lt_prog_compiler_pic=
13152lt_prog_compiler_static=
13153
13154
13155  if test yes = "$GCC"; then
13156    lt_prog_compiler_wl='-Wl,'
13157    lt_prog_compiler_static='-static'
13158
13159    case $host_os in
13160      aix*)
13161      # All AIX code is PIC.
13162      if test ia64 = "$host_cpu"; then
13163	# AIX 5 now supports IA64 processor
13164	lt_prog_compiler_static='-Bstatic'
13165      fi
13166      lt_prog_compiler_pic='-fPIC'
13167      ;;
13168
13169    amigaos*)
13170      case $host_cpu in
13171      powerpc)
13172            # see comment about AmigaOS4 .so support
13173            lt_prog_compiler_pic='-fPIC'
13174        ;;
13175      m68k)
13176            # FIXME: we need at least 68020 code to build shared libraries, but
13177            # adding the '-m68020' flag to GCC prevents building anything better,
13178            # like '-m68040'.
13179            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13180        ;;
13181      esac
13182      ;;
13183
13184    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13185      # PIC is the default for these OSes.
13186      ;;
13187
13188    mingw* | cygwin* | pw32* | os2* | cegcc*)
13189      # This hack is so that the source file can tell whether it is being
13190      # built for inclusion in a dll (and should export symbols for example).
13191      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13192      # (--disable-auto-import) libraries
13193      lt_prog_compiler_pic='-DDLL_EXPORT'
13194      case $host_os in
13195      os2*)
13196	lt_prog_compiler_static='$wl-static'
13197	;;
13198      esac
13199      ;;
13200
13201    darwin* | rhapsody*)
13202      # PIC is the default on this platform
13203      # Common symbols not allowed in MH_DYLIB files
13204      lt_prog_compiler_pic='-fno-common'
13205      ;;
13206
13207    haiku*)
13208      # PIC is the default for Haiku.
13209      # The "-static" flag exists, but is broken.
13210      lt_prog_compiler_static=
13211      ;;
13212
13213    hpux*)
13214      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13215      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13216      # sets the default TLS model and affects inlining.
13217      case $host_cpu in
13218      hppa*64*)
13219	# +Z the default
13220	;;
13221      *)
13222	lt_prog_compiler_pic='-fPIC'
13223	;;
13224      esac
13225      ;;
13226
13227    interix[3-9]*)
13228      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13229      # Instead, we relocate shared libraries at runtime.
13230      ;;
13231
13232    msdosdjgpp*)
13233      # Just because we use GCC doesn't mean we suddenly get shared libraries
13234      # on systems that don't support them.
13235      lt_prog_compiler_can_build_shared=no
13236      enable_shared=no
13237      ;;
13238
13239    *nto* | *qnx*)
13240      # QNX uses GNU C++, but need to define -shared option too, otherwise
13241      # it will coredump.
13242      lt_prog_compiler_pic='-fPIC -shared'
13243      ;;
13244
13245    sysv4*MP*)
13246      if test -d /usr/nec; then
13247	lt_prog_compiler_pic=-Kconform_pic
13248      fi
13249      ;;
13250
13251    *)
13252      lt_prog_compiler_pic='-fPIC'
13253      ;;
13254    esac
13255
13256    case $cc_basename in
13257    nvcc*) # Cuda Compiler Driver 2.2
13258      lt_prog_compiler_wl='-Xlinker '
13259      if test -n "$lt_prog_compiler_pic"; then
13260        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13261      fi
13262      ;;
13263    esac
13264  else
13265    # PORTME Check for flag to pass linker flags through the system compiler.
13266    case $host_os in
13267    aix*)
13268      lt_prog_compiler_wl='-Wl,'
13269      if test ia64 = "$host_cpu"; then
13270	# AIX 5 now supports IA64 processor
13271	lt_prog_compiler_static='-Bstatic'
13272      else
13273	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13274      fi
13275      ;;
13276
13277    darwin* | rhapsody*)
13278      # PIC is the default on this platform
13279      # Common symbols not allowed in MH_DYLIB files
13280      lt_prog_compiler_pic='-fno-common'
13281      case $cc_basename in
13282      nagfor*)
13283        # NAG Fortran compiler
13284        lt_prog_compiler_wl='-Wl,-Wl,,'
13285        lt_prog_compiler_pic='-PIC'
13286        lt_prog_compiler_static='-Bstatic'
13287        ;;
13288      esac
13289      ;;
13290
13291    mingw* | cygwin* | pw32* | os2* | cegcc*)
13292      # This hack is so that the source file can tell whether it is being
13293      # built for inclusion in a dll (and should export symbols for example).
13294      lt_prog_compiler_pic='-DDLL_EXPORT'
13295      case $host_os in
13296      os2*)
13297	lt_prog_compiler_static='$wl-static'
13298	;;
13299      esac
13300      ;;
13301
13302    hpux9* | hpux10* | hpux11*)
13303      lt_prog_compiler_wl='-Wl,'
13304      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13305      # not for PA HP-UX.
13306      case $host_cpu in
13307      hppa*64*|ia64*)
13308	# +Z the default
13309	;;
13310      *)
13311	lt_prog_compiler_pic='+Z'
13312	;;
13313      esac
13314      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13315      lt_prog_compiler_static='$wl-a ${wl}archive'
13316      ;;
13317
13318    irix5* | irix6* | nonstopux*)
13319      lt_prog_compiler_wl='-Wl,'
13320      # PIC (with -KPIC) is the default.
13321      lt_prog_compiler_static='-non_shared'
13322      ;;
13323
13324    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13325      case $cc_basename in
13326      # old Intel for x86_64, which still supported -KPIC.
13327      ecc*)
13328	lt_prog_compiler_wl='-Wl,'
13329	lt_prog_compiler_pic='-KPIC'
13330	lt_prog_compiler_static='-static'
13331        ;;
13332      # flang / f18. f95 an alias for gfortran or flang on Debian
13333      flang* | f18* | f95*)
13334	lt_prog_compiler_wl='-Wl,'
13335	lt_prog_compiler_pic='-fPIC'
13336	lt_prog_compiler_static='-static'
13337        ;;
13338      # icc used to be incompatible with GCC.
13339      # ICC 10 doesn't accept -KPIC any more.
13340      icc* | ifort*)
13341	lt_prog_compiler_wl='-Wl,'
13342	lt_prog_compiler_pic='-fPIC'
13343	lt_prog_compiler_static='-static'
13344        ;;
13345      # Lahey Fortran 8.1.
13346      lf95*)
13347	lt_prog_compiler_wl='-Wl,'
13348	lt_prog_compiler_pic='--shared'
13349	lt_prog_compiler_static='--static'
13350	;;
13351      nagfor*)
13352	# NAG Fortran compiler
13353	lt_prog_compiler_wl='-Wl,-Wl,,'
13354	lt_prog_compiler_pic='-PIC'
13355	lt_prog_compiler_static='-Bstatic'
13356	;;
13357      tcc*)
13358	# Fabrice Bellard et al's Tiny C Compiler
13359	lt_prog_compiler_wl='-Wl,'
13360	lt_prog_compiler_pic='-fPIC'
13361	lt_prog_compiler_static='-static'
13362	;;
13363      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13364        # Portland Group compilers (*not* the Pentium gcc compiler,
13365	# which looks to be a dead project)
13366	lt_prog_compiler_wl='-Wl,'
13367	lt_prog_compiler_pic='-fpic'
13368	lt_prog_compiler_static='-Bstatic'
13369        ;;
13370      ccc*)
13371        lt_prog_compiler_wl='-Wl,'
13372        # All Alpha code is PIC.
13373        lt_prog_compiler_static='-non_shared'
13374        ;;
13375      xl* | bgxl* | bgf* | mpixl*)
13376	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13377	lt_prog_compiler_wl='-Wl,'
13378	lt_prog_compiler_pic='-qpic'
13379	lt_prog_compiler_static='-qstaticlink'
13380	;;
13381      *)
13382	case `$CC -V 2>&1 | $SED 5q` in
13383	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13384	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13385	  lt_prog_compiler_pic='-KPIC'
13386	  lt_prog_compiler_static='-Bstatic'
13387	  lt_prog_compiler_wl=''
13388	  ;;
13389	*Sun\ F* | *Sun*Fortran*)
13390	  lt_prog_compiler_pic='-KPIC'
13391	  lt_prog_compiler_static='-Bstatic'
13392	  lt_prog_compiler_wl='-Qoption ld '
13393	  ;;
13394	*Sun\ C*)
13395	  # Sun C 5.9
13396	  lt_prog_compiler_pic='-KPIC'
13397	  lt_prog_compiler_static='-Bstatic'
13398	  lt_prog_compiler_wl='-Wl,'
13399	  ;;
13400        *Intel*\ [CF]*Compiler*)
13401	  lt_prog_compiler_wl='-Wl,'
13402	  lt_prog_compiler_pic='-fPIC'
13403	  lt_prog_compiler_static='-static'
13404	  ;;
13405	*Portland\ Group*)
13406	  lt_prog_compiler_wl='-Wl,'
13407	  lt_prog_compiler_pic='-fpic'
13408	  lt_prog_compiler_static='-Bstatic'
13409	  ;;
13410	esac
13411	;;
13412      esac
13413      ;;
13414
13415    newsos6)
13416      lt_prog_compiler_pic='-KPIC'
13417      lt_prog_compiler_static='-Bstatic'
13418      ;;
13419
13420    *nto* | *qnx*)
13421      # QNX uses GNU C++, but need to define -shared option too, otherwise
13422      # it will coredump.
13423      lt_prog_compiler_pic='-fPIC -shared'
13424      ;;
13425
13426    osf3* | osf4* | osf5*)
13427      lt_prog_compiler_wl='-Wl,'
13428      # All OSF/1 code is PIC.
13429      lt_prog_compiler_static='-non_shared'
13430      ;;
13431
13432    rdos*)
13433      lt_prog_compiler_static='-non_shared'
13434      ;;
13435
13436    solaris*)
13437      lt_prog_compiler_pic='-KPIC'
13438      lt_prog_compiler_static='-Bstatic'
13439      case $cc_basename in
13440      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13441	lt_prog_compiler_wl='-Qoption ld ';;
13442      *)
13443	lt_prog_compiler_wl='-Wl,';;
13444      esac
13445      ;;
13446
13447    sunos4*)
13448      lt_prog_compiler_wl='-Qoption ld '
13449      lt_prog_compiler_pic='-PIC'
13450      lt_prog_compiler_static='-Bstatic'
13451      ;;
13452
13453    sysv4 | sysv4.2uw2* | sysv4.3*)
13454      lt_prog_compiler_wl='-Wl,'
13455      lt_prog_compiler_pic='-KPIC'
13456      lt_prog_compiler_static='-Bstatic'
13457      ;;
13458
13459    sysv4*MP*)
13460      if test -d /usr/nec; then
13461	lt_prog_compiler_pic='-Kconform_pic'
13462	lt_prog_compiler_static='-Bstatic'
13463      fi
13464      ;;
13465
13466    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13467      lt_prog_compiler_wl='-Wl,'
13468      lt_prog_compiler_pic='-KPIC'
13469      lt_prog_compiler_static='-Bstatic'
13470      ;;
13471
13472    unicos*)
13473      lt_prog_compiler_wl='-Wl,'
13474      lt_prog_compiler_can_build_shared=no
13475      ;;
13476
13477    uts4*)
13478      lt_prog_compiler_pic='-pic'
13479      lt_prog_compiler_static='-Bstatic'
13480      ;;
13481
13482    *)
13483      lt_prog_compiler_can_build_shared=no
13484      ;;
13485    esac
13486  fi
13487
13488case $host_os in
13489  # For platforms that do not support PIC, -DPIC is meaningless:
13490  *djgpp*)
13491    lt_prog_compiler_pic=
13492    ;;
13493  *)
13494    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13495    ;;
13496esac
13497
13498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13499printf %s "checking for $compiler option to produce PIC... " >&6; }
13500if test ${lt_cv_prog_compiler_pic+y}
13501then :
13502  printf %s "(cached) " >&6
13503else $as_nop
13504  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13505fi
13506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13507printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13508lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13509
13510#
13511# Check to make sure the PIC flag actually works.
13512#
13513if test -n "$lt_prog_compiler_pic"; then
13514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13515printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13516if test ${lt_cv_prog_compiler_pic_works+y}
13517then :
13518  printf %s "(cached) " >&6
13519else $as_nop
13520  lt_cv_prog_compiler_pic_works=no
13521   ac_outfile=conftest.$ac_objext
13522   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13523   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13524   # Insert the option either (1) after the last *FLAGS variable, or
13525   # (2) before a word containing "conftest.", or (3) at the end.
13526   # Note that $ac_compile itself does not contain backslashes and begins
13527   # with a dollar sign (not a hyphen), so the echo should work correctly.
13528   # The option is referenced via a variable to avoid confusing sed.
13529   lt_compile=`echo "$ac_compile" | $SED \
13530   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13532   -e 's:$: $lt_compiler_flag:'`
13533   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13534   (eval "$lt_compile" 2>conftest.err)
13535   ac_status=$?
13536   cat conftest.err >&5
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   if (exit $ac_status) && test -s "$ac_outfile"; then
13539     # The compiler can only warn and ignore the option if not recognized
13540     # So say no if there are warnings other than the usual output.
13541     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13542     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13543     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13544       lt_cv_prog_compiler_pic_works=yes
13545     fi
13546   fi
13547   $RM conftest*
13548
13549fi
13550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13551printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13552
13553if test yes = "$lt_cv_prog_compiler_pic_works"; then
13554    case $lt_prog_compiler_pic in
13555     "" | " "*) ;;
13556     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13557     esac
13558else
13559    lt_prog_compiler_pic=
13560     lt_prog_compiler_can_build_shared=no
13561fi
13562
13563fi
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575#
13576# Check to make sure the static flag actually works.
13577#
13578wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13580printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13581if test ${lt_cv_prog_compiler_static_works+y}
13582then :
13583  printf %s "(cached) " >&6
13584else $as_nop
13585  lt_cv_prog_compiler_static_works=no
13586   save_LDFLAGS=$LDFLAGS
13587   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13588   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13589   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13590     # The linker can only warn and ignore the option if not recognized
13591     # So say no if there are warnings
13592     if test -s conftest.err; then
13593       # Append any errors to the config.log.
13594       cat conftest.err 1>&5
13595       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13596       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13597       if diff conftest.exp conftest.er2 >/dev/null; then
13598         lt_cv_prog_compiler_static_works=yes
13599       fi
13600     else
13601       lt_cv_prog_compiler_static_works=yes
13602     fi
13603   fi
13604   $RM -r conftest*
13605   LDFLAGS=$save_LDFLAGS
13606
13607fi
13608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13609printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13610
13611if test yes = "$lt_cv_prog_compiler_static_works"; then
13612    :
13613else
13614    lt_prog_compiler_static=
13615fi
13616
13617
13618
13619
13620
13621
13622
13623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13624printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13625if test ${lt_cv_prog_compiler_c_o+y}
13626then :
13627  printf %s "(cached) " >&6
13628else $as_nop
13629  lt_cv_prog_compiler_c_o=no
13630   $RM -r conftest 2>/dev/null
13631   mkdir conftest
13632   cd conftest
13633   mkdir out
13634   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13635
13636   lt_compiler_flag="-o out/conftest2.$ac_objext"
13637   # Insert the option either (1) after the last *FLAGS variable, or
13638   # (2) before a word containing "conftest.", or (3) at the end.
13639   # Note that $ac_compile itself does not contain backslashes and begins
13640   # with a dollar sign (not a hyphen), so the echo should work correctly.
13641   lt_compile=`echo "$ac_compile" | $SED \
13642   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13643   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13644   -e 's:$: $lt_compiler_flag:'`
13645   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13646   (eval "$lt_compile" 2>out/conftest.err)
13647   ac_status=$?
13648   cat out/conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13651   then
13652     # The compiler can only warn and ignore the option if not recognized
13653     # So say no if there are warnings
13654     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13655     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13656     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13657       lt_cv_prog_compiler_c_o=yes
13658     fi
13659   fi
13660   chmod u+w . 2>&5
13661   $RM conftest*
13662   # SGI C++ compiler will create directory out/ii_files/ for
13663   # template instantiation
13664   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13665   $RM out/* && rmdir out
13666   cd ..
13667   $RM -r conftest
13668   $RM conftest*
13669
13670fi
13671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13672printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13673
13674
13675
13676
13677
13678
13679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13680printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13681if test ${lt_cv_prog_compiler_c_o+y}
13682then :
13683  printf %s "(cached) " >&6
13684else $as_nop
13685  lt_cv_prog_compiler_c_o=no
13686   $RM -r conftest 2>/dev/null
13687   mkdir conftest
13688   cd conftest
13689   mkdir out
13690   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13691
13692   lt_compiler_flag="-o out/conftest2.$ac_objext"
13693   # Insert the option either (1) after the last *FLAGS variable, or
13694   # (2) before a word containing "conftest.", or (3) at the end.
13695   # Note that $ac_compile itself does not contain backslashes and begins
13696   # with a dollar sign (not a hyphen), so the echo should work correctly.
13697   lt_compile=`echo "$ac_compile" | $SED \
13698   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13699   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13700   -e 's:$: $lt_compiler_flag:'`
13701   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13702   (eval "$lt_compile" 2>out/conftest.err)
13703   ac_status=$?
13704   cat out/conftest.err >&5
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13707   then
13708     # The compiler can only warn and ignore the option if not recognized
13709     # So say no if there are warnings
13710     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13711     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13712     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13713       lt_cv_prog_compiler_c_o=yes
13714     fi
13715   fi
13716   chmod u+w . 2>&5
13717   $RM conftest*
13718   # SGI C++ compiler will create directory out/ii_files/ for
13719   # template instantiation
13720   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13721   $RM out/* && rmdir out
13722   cd ..
13723   $RM -r conftest
13724   $RM conftest*
13725
13726fi
13727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13728printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13729
13730
13731
13732
13733hard_links=nottested
13734if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13735  # do not overwrite the value of need_locks provided by the user
13736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13737printf %s "checking if we can lock with hard links... " >&6; }
13738  hard_links=yes
13739  $RM conftest*
13740  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13741  touch conftest.a
13742  ln conftest.a conftest.b 2>&5 || hard_links=no
13743  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13745printf "%s\n" "$hard_links" >&6; }
13746  if test no = "$hard_links"; then
13747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13748printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13749    need_locks=warn
13750  fi
13751else
13752  need_locks=no
13753fi
13754
13755
13756
13757
13758
13759
13760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13761printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13762
13763  runpath_var=
13764  allow_undefined_flag=
13765  always_export_symbols=no
13766  archive_cmds=
13767  archive_expsym_cmds=
13768  compiler_needs_object=no
13769  enable_shared_with_static_runtimes=no
13770  export_dynamic_flag_spec=
13771  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13772  hardcode_automatic=no
13773  hardcode_direct=no
13774  hardcode_direct_absolute=no
13775  hardcode_libdir_flag_spec=
13776  hardcode_libdir_separator=
13777  hardcode_minus_L=no
13778  hardcode_shlibpath_var=unsupported
13779  inherit_rpath=no
13780  link_all_deplibs=unknown
13781  module_cmds=
13782  module_expsym_cmds=
13783  old_archive_from_new_cmds=
13784  old_archive_from_expsyms_cmds=
13785  thread_safe_flag_spec=
13786  whole_archive_flag_spec=
13787  # include_expsyms should be a list of space-separated symbols to be *always*
13788  # included in the symbol list
13789  include_expsyms=
13790  # exclude_expsyms can be an extended regexp of symbols to exclude
13791  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13792  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13793  # as well as any symbol that contains 'd'.
13794  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13795  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13796  # platforms (ab)use it in PIC code, but their linkers get confused if
13797  # the symbol is explicitly referenced.  Since portable code cannot
13798  # rely on this symbol name, it's probably fine to never include it in
13799  # preloaded symbol tables.
13800  # Exclude shared library initialization/finalization symbols.
13801  extract_expsyms_cmds=
13802
13803  case $host_os in
13804  cygwin* | mingw* | pw32* | cegcc*)
13805    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13806    # When not using gcc, we currently assume that we are using
13807    # Microsoft Visual C++ or Intel C++ Compiler.
13808    if test yes != "$GCC"; then
13809      with_gnu_ld=no
13810    fi
13811    ;;
13812  interix*)
13813    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13814    with_gnu_ld=yes
13815    ;;
13816  openbsd* | bitrig*)
13817    with_gnu_ld=no
13818    ;;
13819  linux* | k*bsd*-gnu | gnu*)
13820    link_all_deplibs=no
13821    ;;
13822  esac
13823
13824  ld_shlibs=yes
13825
13826  # On some targets, GNU ld is compatible enough with the native linker
13827  # that we're better off using the native interface for both.
13828  lt_use_gnu_ld_interface=no
13829  if test yes = "$with_gnu_ld"; then
13830    case $host_os in
13831      aix*)
13832	# The AIX port of GNU ld has always aspired to compatibility
13833	# with the native linker.  However, as the warning in the GNU ld
13834	# block says, versions before 2.19.5* couldn't really create working
13835	# shared libraries, regardless of the interface used.
13836	case `$LD -v 2>&1` in
13837	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13838	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13839	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13840	  *)
13841	    lt_use_gnu_ld_interface=yes
13842	    ;;
13843	esac
13844	;;
13845      *)
13846	lt_use_gnu_ld_interface=yes
13847	;;
13848    esac
13849  fi
13850
13851  if test yes = "$lt_use_gnu_ld_interface"; then
13852    # If archive_cmds runs LD, not CC, wlarc should be empty
13853    wlarc='$wl'
13854
13855    # Set some defaults for GNU ld with shared library support. These
13856    # are reset later if shared libraries are not supported. Putting them
13857    # here allows them to be overridden if necessary.
13858    runpath_var=LD_RUN_PATH
13859    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13860    export_dynamic_flag_spec='$wl--export-dynamic'
13861    # ancient GNU ld didn't support --whole-archive et. al.
13862    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13863      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13864    else
13865      whole_archive_flag_spec=
13866    fi
13867    supports_anon_versioning=no
13868    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13869      *GNU\ gold*) supports_anon_versioning=yes ;;
13870      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13871      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13872      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13873      *\ 2.11.*) ;; # other 2.11 versions
13874      *) supports_anon_versioning=yes ;;
13875    esac
13876
13877    # See if GNU ld supports shared libraries.
13878    case $host_os in
13879    aix[3-9]*)
13880      # On AIX/PPC, the GNU linker is very broken
13881      if test ia64 != "$host_cpu"; then
13882	ld_shlibs=no
13883	cat <<_LT_EOF 1>&2
13884
13885*** Warning: the GNU linker, at least up to release 2.19, is reported
13886*** to be unable to reliably create shared libraries on AIX.
13887*** Therefore, libtool is disabling shared libraries support.  If you
13888*** really care for shared libraries, you may want to install binutils
13889*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13890*** You will then need to restart the configuration process.
13891
13892_LT_EOF
13893      fi
13894      ;;
13895
13896    amigaos*)
13897      case $host_cpu in
13898      powerpc)
13899            # see comment about AmigaOS4 .so support
13900            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13901            archive_expsym_cmds=''
13902        ;;
13903      m68k)
13904            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)'
13905            hardcode_libdir_flag_spec='-L$libdir'
13906            hardcode_minus_L=yes
13907        ;;
13908      esac
13909      ;;
13910
13911    beos*)
13912      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13913	allow_undefined_flag=unsupported
13914	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13915	# support --undefined.  This deserves some investigation.  FIXME
13916	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13917      else
13918	ld_shlibs=no
13919      fi
13920      ;;
13921
13922    cygwin* | mingw* | pw32* | cegcc*)
13923      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13924      # as there is no search path for DLLs.
13925      hardcode_libdir_flag_spec='-L$libdir'
13926      export_dynamic_flag_spec='$wl--export-all-symbols'
13927      allow_undefined_flag=unsupported
13928      always_export_symbols=no
13929      enable_shared_with_static_runtimes=yes
13930      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'
13931      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13932
13933      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13934        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13935	# If the export-symbols file already is a .def file, use it as
13936	# is; otherwise, prepend EXPORTS...
13937	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13938          cp $export_symbols $output_objdir/$soname.def;
13939        else
13940          echo EXPORTS > $output_objdir/$soname.def;
13941          cat $export_symbols >> $output_objdir/$soname.def;
13942        fi~
13943        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13944      else
13945	ld_shlibs=no
13946      fi
13947      ;;
13948
13949    haiku*)
13950      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13951      link_all_deplibs=yes
13952      ;;
13953
13954    os2*)
13955      hardcode_libdir_flag_spec='-L$libdir'
13956      hardcode_minus_L=yes
13957      allow_undefined_flag=unsupported
13958      shrext_cmds=.dll
13959      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13960	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13961	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13962	$ECHO EXPORTS >> $output_objdir/$libname.def~
13963	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13964	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13965	emximp -o $lib $output_objdir/$libname.def'
13966      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13967	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13968	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13969	$ECHO EXPORTS >> $output_objdir/$libname.def~
13970	prefix_cmds="$SED"~
13971	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13972	  prefix_cmds="$prefix_cmds -e 1d";
13973	fi~
13974	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13975	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13976	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13977	emximp -o $lib $output_objdir/$libname.def'
13978      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13979      enable_shared_with_static_runtimes=yes
13980      file_list_spec='@'
13981      ;;
13982
13983    interix[3-9]*)
13984      hardcode_direct=no
13985      hardcode_shlibpath_var=no
13986      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13987      export_dynamic_flag_spec='$wl-E'
13988      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13989      # Instead, shared libraries are loaded at an image base (0x10000000 by
13990      # default) and relocated if they conflict, which is a slow very memory
13991      # consuming and fragmenting process.  To avoid this, we pick a random,
13992      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13993      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13994      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13995      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'
13996      ;;
13997
13998    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13999      tmp_diet=no
14000      if test linux-dietlibc = "$host_os"; then
14001	case $cc_basename in
14002	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14003	esac
14004      fi
14005      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14006	 && test no = "$tmp_diet"
14007      then
14008	tmp_addflag=' $pic_flag'
14009	tmp_sharedflag='-shared'
14010	case $cc_basename,$host_cpu in
14011        pgcc*)				# Portland Group C compiler
14012	  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'
14013	  tmp_addflag=' $pic_flag'
14014	  ;;
14015	pgf77* | pgf90* | pgf95* | pgfortran*)
14016					# Portland Group f77 and f90 compilers
14017	  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'
14018	  tmp_addflag=' $pic_flag -Mnomain' ;;
14019	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14020	  tmp_addflag=' -i_dynamic' ;;
14021	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14022	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14023	ifc* | ifort*)			# Intel Fortran compiler
14024	  tmp_addflag=' -nofor_main' ;;
14025	lf95*)				# Lahey Fortran 8.1
14026	  whole_archive_flag_spec=
14027	  tmp_sharedflag='--shared' ;;
14028        nagfor*)                        # NAGFOR 5.3
14029          tmp_sharedflag='-Wl,-shared' ;;
14030	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14031	  tmp_sharedflag='-qmkshrobj'
14032	  tmp_addflag= ;;
14033	nvcc*)	# Cuda Compiler Driver 2.2
14034	  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'
14035	  compiler_needs_object=yes
14036	  ;;
14037	esac
14038	case `$CC -V 2>&1 | $SED 5q` in
14039	*Sun\ C*)			# Sun C 5.9
14040	  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'
14041	  compiler_needs_object=yes
14042	  tmp_sharedflag='-G' ;;
14043	*Sun\ F*)			# Sun Fortran 8.3
14044	  tmp_sharedflag='-G' ;;
14045	esac
14046	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14047
14048        if test yes = "$supports_anon_versioning"; then
14049          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14050            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14051            echo "local: *; };" >> $output_objdir/$libname.ver~
14052            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14053        fi
14054
14055	case $cc_basename in
14056	tcc*)
14057	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14058	  export_dynamic_flag_spec='-rdynamic'
14059	  ;;
14060	xlf* | bgf* | bgxlf* | mpixlf*)
14061	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14062	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14063	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14064	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14065	  if test yes = "$supports_anon_versioning"; then
14066	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14067              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14068              echo "local: *; };" >> $output_objdir/$libname.ver~
14069              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14070	  fi
14071	  ;;
14072	esac
14073      else
14074        ld_shlibs=no
14075      fi
14076      ;;
14077
14078    netbsd* | netbsdelf*-gnu)
14079      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14080	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14081	wlarc=
14082      else
14083	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14084	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14085      fi
14086      ;;
14087
14088    solaris*)
14089      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14090	ld_shlibs=no
14091	cat <<_LT_EOF 1>&2
14092
14093*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14094*** create shared libraries on Solaris systems.  Therefore, libtool
14095*** is disabling shared libraries support.  We urge you to upgrade GNU
14096*** binutils to release 2.9.1 or newer.  Another option is to modify
14097*** your PATH or compiler configuration so that the native linker is
14098*** used, and then restart.
14099
14100_LT_EOF
14101      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14102	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14103	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14104      else
14105	ld_shlibs=no
14106      fi
14107      ;;
14108
14109    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14110      case `$LD -v 2>&1` in
14111        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14112	ld_shlibs=no
14113	cat <<_LT_EOF 1>&2
14114
14115*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14116*** reliably create shared libraries on SCO systems.  Therefore, libtool
14117*** is disabling shared libraries support.  We urge you to upgrade GNU
14118*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14119*** your PATH or compiler configuration so that the native linker is
14120*** used, and then restart.
14121
14122_LT_EOF
14123	;;
14124	*)
14125	  # For security reasons, it is highly recommended that you always
14126	  # use absolute paths for naming shared libraries, and exclude the
14127	  # DT_RUNPATH tag from executables and libraries.  But doing so
14128	  # requires that you compile everything twice, which is a pain.
14129	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14130	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14131	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14132	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14133	  else
14134	    ld_shlibs=no
14135	  fi
14136	;;
14137      esac
14138      ;;
14139
14140    sunos4*)
14141      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14142      wlarc=
14143      hardcode_direct=yes
14144      hardcode_shlibpath_var=no
14145      ;;
14146
14147    *)
14148      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14149	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14150	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14151      else
14152	ld_shlibs=no
14153      fi
14154      ;;
14155    esac
14156
14157    if test no = "$ld_shlibs"; then
14158      runpath_var=
14159      hardcode_libdir_flag_spec=
14160      export_dynamic_flag_spec=
14161      whole_archive_flag_spec=
14162    fi
14163  else
14164    # PORTME fill in a description of your system's linker (not GNU ld)
14165    case $host_os in
14166    aix3*)
14167      allow_undefined_flag=unsupported
14168      always_export_symbols=yes
14169      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'
14170      # Note: this linker hardcodes the directories in LIBPATH if there
14171      # are no directories specified by -L.
14172      hardcode_minus_L=yes
14173      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14174	# Neither direct hardcoding nor static linking is supported with a
14175	# broken collect2.
14176	hardcode_direct=unsupported
14177      fi
14178      ;;
14179
14180    aix[4-9]*)
14181      if test ia64 = "$host_cpu"; then
14182	# On IA64, the linker does run time linking by default, so we don't
14183	# have to do anything special.
14184	aix_use_runtimelinking=no
14185	exp_sym_flag='-Bexport'
14186	no_entry_flag=
14187      else
14188	# If we're using GNU nm, then we don't want the "-C" option.
14189	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
14190	# Without the "-l" option, or with the "-B" option, AIX nm treats
14191	# weak defined symbols like other global defined symbols, whereas
14192	# GNU nm marks them as "W".
14193	# While the 'weak' keyword is ignored in the Export File, we need
14194	# it in the Import File for the 'aix-soname' feature, so we have
14195	# to replace the "-B" option with "-P" for AIX nm.
14196	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14197	  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'
14198	else
14199	  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 == "L") || (\$ 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'
14200	fi
14201	aix_use_runtimelinking=no
14202
14203	# Test if we are trying to use run time linking or normal
14204	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14205	# have runtime linking enabled, and use it for executables.
14206	# For shared libraries, we enable/disable runtime linking
14207	# depending on the kind of the shared library created -
14208	# when "with_aix_soname,aix_use_runtimelinking" is:
14209	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14210	# "aix,yes"  lib.so          shared, rtl:yes, for executables
14211	#            lib.a           static archive
14212	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
14213	#            lib.a(lib.so.V) shared, rtl:no,  for executables
14214	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14215	#            lib.a(lib.so.V) shared, rtl:no
14216	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14217	#            lib.a           static archive
14218	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14219	  for ld_flag in $LDFLAGS; do
14220	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14221	    aix_use_runtimelinking=yes
14222	    break
14223	  fi
14224	  done
14225	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14226	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
14227	    # so we don't have lib.a shared libs to link our executables.
14228	    # We have to force runtime linking in this case.
14229	    aix_use_runtimelinking=yes
14230	    LDFLAGS="$LDFLAGS -Wl,-brtl"
14231	  fi
14232	  ;;
14233	esac
14234
14235	exp_sym_flag='-bexport'
14236	no_entry_flag='-bnoentry'
14237      fi
14238
14239      # When large executables or shared objects are built, AIX ld can
14240      # have problems creating the table of contents.  If linking a library
14241      # or program results in "error TOC overflow" add -mminimal-toc to
14242      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14243      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14244
14245      archive_cmds=''
14246      hardcode_direct=yes
14247      hardcode_direct_absolute=yes
14248      hardcode_libdir_separator=':'
14249      link_all_deplibs=yes
14250      file_list_spec='$wl-f,'
14251      case $with_aix_soname,$aix_use_runtimelinking in
14252      aix,*) ;; # traditional, no import file
14253      svr4,* | *,yes) # use import file
14254	# The Import File defines what to hardcode.
14255	hardcode_direct=no
14256	hardcode_direct_absolute=no
14257	;;
14258      esac
14259
14260      if test yes = "$GCC"; then
14261	case $host_os in aix4.[012]|aix4.[012].*)
14262	# We only want to do this on AIX 4.2 and lower, the check
14263	# below for broken collect2 doesn't work under 4.3+
14264	  collect2name=`$CC -print-prog-name=collect2`
14265	  if test -f "$collect2name" &&
14266	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14267	  then
14268	  # We have reworked collect2
14269	  :
14270	  else
14271	  # We have old collect2
14272	  hardcode_direct=unsupported
14273	  # It fails to find uninstalled libraries when the uninstalled
14274	  # path is not listed in the libpath.  Setting hardcode_minus_L
14275	  # to unsupported forces relinking
14276	  hardcode_minus_L=yes
14277	  hardcode_libdir_flag_spec='-L$libdir'
14278	  hardcode_libdir_separator=
14279	  fi
14280	  ;;
14281	esac
14282	shared_flag='-shared'
14283	if test yes = "$aix_use_runtimelinking"; then
14284	  shared_flag="$shared_flag "'$wl-G'
14285	fi
14286	# Need to ensure runtime linking is disabled for the traditional
14287	# shared library, or the linker may eventually find shared libraries
14288	# /with/ Import File - we do not want to mix them.
14289	shared_flag_aix='-shared'
14290	shared_flag_svr4='-shared $wl-G'
14291      else
14292	# not using gcc
14293	if test ia64 = "$host_cpu"; then
14294	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14295	# chokes on -Wl,-G. The following line is correct:
14296	  shared_flag='-G'
14297	else
14298	  if test yes = "$aix_use_runtimelinking"; then
14299	    shared_flag='$wl-G'
14300	  else
14301	    shared_flag='$wl-bM:SRE'
14302	  fi
14303	  shared_flag_aix='$wl-bM:SRE'
14304	  shared_flag_svr4='$wl-G'
14305	fi
14306      fi
14307
14308      export_dynamic_flag_spec='$wl-bexpall'
14309      # It seems that -bexpall does not export symbols beginning with
14310      # underscore (_), so it is better to generate a list of symbols to export.
14311      always_export_symbols=yes
14312      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14313	# Warning - without using the other runtime loading flags (-brtl),
14314	# -berok will link without error, but may produce a broken library.
14315	allow_undefined_flag='-berok'
14316        # Determine the default libpath from the value encoded in an
14317        # empty executable.
14318        if test set = "${lt_cv_aix_libpath+set}"; then
14319  aix_libpath=$lt_cv_aix_libpath
14320else
14321  if test ${lt_cv_aix_libpath_+y}
14322then :
14323  printf %s "(cached) " >&6
14324else $as_nop
14325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326/* end confdefs.h.  */
14327
14328int main (void)
14329{
14330
14331 ;
14332 return 0;
14333}
14334_ACEOF
14335if ac_fn_c_try_link "$LINENO"
14336then :
14337
14338  lt_aix_libpath_sed='
14339      /Import File Strings/,/^$/ {
14340	  /^0/ {
14341	      s/^0  *\([^ ]*\) *$/\1/
14342	      p
14343	  }
14344      }'
14345  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14346  # Check for a 64-bit object if we didn't find anything.
14347  if test -z "$lt_cv_aix_libpath_"; then
14348    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14349  fi
14350fi
14351rm -f core conftest.err conftest.$ac_objext conftest.beam \
14352    conftest$ac_exeext conftest.$ac_ext
14353  if test -z "$lt_cv_aix_libpath_"; then
14354    lt_cv_aix_libpath_=/usr/lib:/lib
14355  fi
14356
14357fi
14358
14359  aix_libpath=$lt_cv_aix_libpath_
14360fi
14361
14362        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14363        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
14364      else
14365	if test ia64 = "$host_cpu"; then
14366	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14367	  allow_undefined_flag="-z nodefs"
14368	  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"
14369	else
14370	 # Determine the default libpath from the value encoded in an
14371	 # empty executable.
14372	 if test set = "${lt_cv_aix_libpath+set}"; then
14373  aix_libpath=$lt_cv_aix_libpath
14374else
14375  if test ${lt_cv_aix_libpath_+y}
14376then :
14377  printf %s "(cached) " >&6
14378else $as_nop
14379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381
14382int main (void)
14383{
14384
14385 ;
14386 return 0;
14387}
14388_ACEOF
14389if ac_fn_c_try_link "$LINENO"
14390then :
14391
14392  lt_aix_libpath_sed='
14393      /Import File Strings/,/^$/ {
14394	  /^0/ {
14395	      s/^0  *\([^ ]*\) *$/\1/
14396	      p
14397	  }
14398      }'
14399  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14400  # Check for a 64-bit object if we didn't find anything.
14401  if test -z "$lt_cv_aix_libpath_"; then
14402    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14403  fi
14404fi
14405rm -f core conftest.err conftest.$ac_objext conftest.beam \
14406    conftest$ac_exeext conftest.$ac_ext
14407  if test -z "$lt_cv_aix_libpath_"; then
14408    lt_cv_aix_libpath_=/usr/lib:/lib
14409  fi
14410
14411fi
14412
14413  aix_libpath=$lt_cv_aix_libpath_
14414fi
14415
14416	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14417	  # Warning - without using the other run time loading flags,
14418	  # -berok will link without error, but may produce a broken library.
14419	  no_undefined_flag=' $wl-bernotok'
14420	  allow_undefined_flag=' $wl-berok'
14421	  if test yes = "$with_gnu_ld"; then
14422	    # We only use this code for GNU lds that support --whole-archive.
14423	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14424	  else
14425	    # Exported symbols can be pulled into shared objects from archives
14426	    whole_archive_flag_spec='$convenience'
14427	  fi
14428	  archive_cmds_need_lc=yes
14429	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14430	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14431	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14432	  if test svr4 != "$with_aix_soname"; then
14433	    # This is similar to how AIX traditionally builds its shared libraries.
14434	    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'
14435	  fi
14436	  if test aix != "$with_aix_soname"; then
14437	    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'
14438	  else
14439	    # used by -dlpreopen to get the symbols
14440	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14441	  fi
14442	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14443	fi
14444      fi
14445      ;;
14446
14447    amigaos*)
14448      case $host_cpu in
14449      powerpc)
14450            # see comment about AmigaOS4 .so support
14451            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14452            archive_expsym_cmds=''
14453        ;;
14454      m68k)
14455            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)'
14456            hardcode_libdir_flag_spec='-L$libdir'
14457            hardcode_minus_L=yes
14458        ;;
14459      esac
14460      ;;
14461
14462    bsdi[45]*)
14463      export_dynamic_flag_spec=-rdynamic
14464      ;;
14465
14466    cygwin* | mingw* | pw32* | cegcc*)
14467      # When not using gcc, we currently assume that we are using
14468      # Microsoft Visual C++ or Intel C++ Compiler.
14469      # hardcode_libdir_flag_spec is actually meaningless, as there is
14470      # no search path for DLLs.
14471      case $cc_basename in
14472      cl* | icl*)
14473	# Native MSVC or ICC
14474	hardcode_libdir_flag_spec=' '
14475	allow_undefined_flag=unsupported
14476	always_export_symbols=yes
14477	file_list_spec='@'
14478	# Tell ltmain to make .lib files, not .a files.
14479	libext=lib
14480	# Tell ltmain to make .dll files, not .so files.
14481	shrext_cmds=.dll
14482	# FIXME: Setting linknames here is a bad hack.
14483	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14484	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14485            cp "$export_symbols" "$output_objdir/$soname.def";
14486            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14487          else
14488            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14489          fi~
14490          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14491          linknames='
14492	# The linker will not automatically build a static lib if we build a DLL.
14493	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14494	enable_shared_with_static_runtimes=yes
14495	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14496	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14497	# Don't use ranlib
14498	old_postinstall_cmds='chmod 644 $oldlib'
14499	postlink_cmds='lt_outputfile="@OUTPUT@"~
14500          lt_tool_outputfile="@TOOL_OUTPUT@"~
14501          case $lt_outputfile in
14502            *.exe|*.EXE) ;;
14503            *)
14504              lt_outputfile=$lt_outputfile.exe
14505              lt_tool_outputfile=$lt_tool_outputfile.exe
14506              ;;
14507          esac~
14508          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14509            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14510            $RM "$lt_outputfile.manifest";
14511          fi'
14512	;;
14513      *)
14514	# Assume MSVC and ICC wrapper
14515	hardcode_libdir_flag_spec=' '
14516	allow_undefined_flag=unsupported
14517	# Tell ltmain to make .lib files, not .a files.
14518	libext=lib
14519	# Tell ltmain to make .dll files, not .so files.
14520	shrext_cmds=.dll
14521	# FIXME: Setting linknames here is a bad hack.
14522	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14523	# The linker will automatically build a .lib file if we build a DLL.
14524	old_archive_from_new_cmds='true'
14525	# FIXME: Should let the user specify the lib program.
14526	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14527	enable_shared_with_static_runtimes=yes
14528	;;
14529      esac
14530      ;;
14531
14532    darwin* | rhapsody*)
14533
14534
14535  archive_cmds_need_lc=no
14536  hardcode_direct=no
14537  hardcode_automatic=yes
14538  hardcode_shlibpath_var=unsupported
14539  if test yes = "$lt_cv_ld_force_load"; then
14540    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\"`'
14541
14542  else
14543    whole_archive_flag_spec=''
14544  fi
14545  link_all_deplibs=yes
14546  allow_undefined_flag=$_lt_dar_allow_undefined
14547  case $cc_basename in
14548     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14549     *) _lt_dar_can_shared=$GCC ;;
14550  esac
14551  if test yes = "$_lt_dar_can_shared"; then
14552    output_verbose_link_cmd=func_echo_all
14553    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14554    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14555    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"
14556    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"
14557
14558  else
14559  ld_shlibs=no
14560  fi
14561
14562      ;;
14563
14564    dgux*)
14565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566      hardcode_libdir_flag_spec='-L$libdir'
14567      hardcode_shlibpath_var=no
14568      ;;
14569
14570    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14571    # support.  Future versions do this automatically, but an explicit c++rt0.o
14572    # does not break anything, and helps significantly (at the cost of a little
14573    # extra space).
14574    freebsd2.2*)
14575      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14576      hardcode_libdir_flag_spec='-R$libdir'
14577      hardcode_direct=yes
14578      hardcode_shlibpath_var=no
14579      ;;
14580
14581    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14582    freebsd2.*)
14583      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14584      hardcode_direct=yes
14585      hardcode_minus_L=yes
14586      hardcode_shlibpath_var=no
14587      ;;
14588
14589    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14590    freebsd* | dragonfly* | midnightbsd*)
14591      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14592      hardcode_libdir_flag_spec='-R$libdir'
14593      hardcode_direct=yes
14594      hardcode_shlibpath_var=no
14595      ;;
14596
14597    hpux9*)
14598      if test yes = "$GCC"; then
14599	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'
14600      else
14601	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'
14602      fi
14603      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14604      hardcode_libdir_separator=:
14605      hardcode_direct=yes
14606
14607      # hardcode_minus_L: Not really in the search PATH,
14608      # but as the default location of the library.
14609      hardcode_minus_L=yes
14610      export_dynamic_flag_spec='$wl-E'
14611      ;;
14612
14613    hpux10*)
14614      if test yes,no = "$GCC,$with_gnu_ld"; then
14615	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14616      else
14617	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14618      fi
14619      if test no = "$with_gnu_ld"; then
14620	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14621	hardcode_libdir_separator=:
14622	hardcode_direct=yes
14623	hardcode_direct_absolute=yes
14624	export_dynamic_flag_spec='$wl-E'
14625	# hardcode_minus_L: Not really in the search PATH,
14626	# but as the default location of the library.
14627	hardcode_minus_L=yes
14628      fi
14629      ;;
14630
14631    hpux11*)
14632      if test yes,no = "$GCC,$with_gnu_ld"; then
14633	case $host_cpu in
14634	hppa*64*)
14635	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14636	  ;;
14637	ia64*)
14638	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14639	  ;;
14640	*)
14641	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14642	  ;;
14643	esac
14644      else
14645	case $host_cpu in
14646	hppa*64*)
14647	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14648	  ;;
14649	ia64*)
14650	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14651	  ;;
14652	*)
14653
14654	  # Older versions of the 11.00 compiler do not understand -b yet
14655	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14656	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14657printf %s "checking if $CC understands -b... " >&6; }
14658if test ${lt_cv_prog_compiler__b+y}
14659then :
14660  printf %s "(cached) " >&6
14661else $as_nop
14662  lt_cv_prog_compiler__b=no
14663   save_LDFLAGS=$LDFLAGS
14664   LDFLAGS="$LDFLAGS -b"
14665   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14666   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14667     # The linker can only warn and ignore the option if not recognized
14668     # So say no if there are warnings
14669     if test -s conftest.err; then
14670       # Append any errors to the config.log.
14671       cat conftest.err 1>&5
14672       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14673       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14674       if diff conftest.exp conftest.er2 >/dev/null; then
14675         lt_cv_prog_compiler__b=yes
14676       fi
14677     else
14678       lt_cv_prog_compiler__b=yes
14679     fi
14680   fi
14681   $RM -r conftest*
14682   LDFLAGS=$save_LDFLAGS
14683
14684fi
14685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14686printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14687
14688if test yes = "$lt_cv_prog_compiler__b"; then
14689    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14690else
14691    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14692fi
14693
14694	  ;;
14695	esac
14696      fi
14697      if test no = "$with_gnu_ld"; then
14698	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14699	hardcode_libdir_separator=:
14700
14701	case $host_cpu in
14702	hppa*64*|ia64*)
14703	  hardcode_direct=no
14704	  hardcode_shlibpath_var=no
14705	  ;;
14706	*)
14707	  hardcode_direct=yes
14708	  hardcode_direct_absolute=yes
14709	  export_dynamic_flag_spec='$wl-E'
14710
14711	  # hardcode_minus_L: Not really in the search PATH,
14712	  # but as the default location of the library.
14713	  hardcode_minus_L=yes
14714	  ;;
14715	esac
14716      fi
14717      ;;
14718
14719    irix5* | irix6* | nonstopux*)
14720      if test yes = "$GCC"; then
14721	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'
14722	# Try to use the -exported_symbol ld option, if it does not
14723	# work, assume that -exports_file does not work either and
14724	# implicitly export all symbols.
14725	# This should be the same for all languages, so no per-tag cache variable.
14726	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14727printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14728if test ${lt_cv_irix_exported_symbol+y}
14729then :
14730  printf %s "(cached) " >&6
14731else $as_nop
14732  save_LDFLAGS=$LDFLAGS
14733	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14734	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735/* end confdefs.h.  */
14736int foo (void) { return 0; }
14737_ACEOF
14738if ac_fn_c_try_link "$LINENO"
14739then :
14740  lt_cv_irix_exported_symbol=yes
14741else $as_nop
14742  lt_cv_irix_exported_symbol=no
14743fi
14744rm -f core conftest.err conftest.$ac_objext conftest.beam \
14745    conftest$ac_exeext conftest.$ac_ext
14746           LDFLAGS=$save_LDFLAGS
14747fi
14748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14749printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14750	if test yes = "$lt_cv_irix_exported_symbol"; then
14751          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'
14752	fi
14753	link_all_deplibs=no
14754      else
14755	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'
14756	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'
14757      fi
14758      archive_cmds_need_lc='no'
14759      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14760      hardcode_libdir_separator=:
14761      inherit_rpath=yes
14762      link_all_deplibs=yes
14763      ;;
14764
14765    linux*)
14766      case $cc_basename in
14767      tcc*)
14768	# Fabrice Bellard et al's Tiny C Compiler
14769	ld_shlibs=yes
14770	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14771	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14772	;;
14773      esac
14774      ;;
14775
14776    netbsd* | netbsdelf*-gnu)
14777      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14778	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14779      else
14780	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14781      fi
14782      hardcode_libdir_flag_spec='-R$libdir'
14783      hardcode_direct=yes
14784      hardcode_shlibpath_var=no
14785      ;;
14786
14787    newsos6)
14788      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14789      hardcode_direct=yes
14790      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14791      hardcode_libdir_separator=:
14792      hardcode_shlibpath_var=no
14793      ;;
14794
14795    *nto* | *qnx*)
14796      ;;
14797
14798    openbsd* | bitrig*)
14799      if test -f /usr/libexec/ld.so; then
14800	hardcode_direct=yes
14801	hardcode_shlibpath_var=no
14802	hardcode_direct_absolute=yes
14803	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14804	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14805	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14806	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14807	  export_dynamic_flag_spec='$wl-E'
14808	else
14809	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14810	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14811	fi
14812      else
14813	ld_shlibs=no
14814      fi
14815      ;;
14816
14817    os2*)
14818      hardcode_libdir_flag_spec='-L$libdir'
14819      hardcode_minus_L=yes
14820      allow_undefined_flag=unsupported
14821      shrext_cmds=.dll
14822      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14823	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14824	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14825	$ECHO EXPORTS >> $output_objdir/$libname.def~
14826	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14827	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14828	emximp -o $lib $output_objdir/$libname.def'
14829      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14830	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14831	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14832	$ECHO EXPORTS >> $output_objdir/$libname.def~
14833	prefix_cmds="$SED"~
14834	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14835	  prefix_cmds="$prefix_cmds -e 1d";
14836	fi~
14837	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14838	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14839	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14840	emximp -o $lib $output_objdir/$libname.def'
14841      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14842      enable_shared_with_static_runtimes=yes
14843      file_list_spec='@'
14844      ;;
14845
14846    osf3*)
14847      if test yes = "$GCC"; then
14848	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14849	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'
14850      else
14851	allow_undefined_flag=' -expect_unresolved \*'
14852	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'
14853      fi
14854      archive_cmds_need_lc='no'
14855      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14856      hardcode_libdir_separator=:
14857      ;;
14858
14859    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14860      if test yes = "$GCC"; then
14861	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14862	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'
14863	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14864      else
14865	allow_undefined_flag=' -expect_unresolved \*'
14866	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'
14867	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~
14868          $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'
14869
14870	# Both c and cxx compiler support -rpath directly
14871	hardcode_libdir_flag_spec='-rpath $libdir'
14872      fi
14873      archive_cmds_need_lc='no'
14874      hardcode_libdir_separator=:
14875      ;;
14876
14877    solaris*)
14878      no_undefined_flag=' -z defs'
14879      if test yes = "$GCC"; then
14880	wlarc='$wl'
14881	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14882	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14883          $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'
14884      else
14885	case `$CC -V 2>&1` in
14886	*"Compilers 5.0"*)
14887	  wlarc=''
14888	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14889	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14890            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14891	  ;;
14892	*)
14893	  wlarc='$wl'
14894	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14895	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14896            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14897	  ;;
14898	esac
14899      fi
14900      hardcode_libdir_flag_spec='-R$libdir'
14901      hardcode_shlibpath_var=no
14902      case $host_os in
14903      solaris2.[0-5] | solaris2.[0-5].*) ;;
14904      *)
14905	# The compiler driver will combine and reorder linker options,
14906	# but understands '-z linker_flag'.  GCC discards it without '$wl',
14907	# but is careful enough not to reorder.
14908	# Supported since Solaris 2.6 (maybe 2.5.1?)
14909	if test yes = "$GCC"; then
14910	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14911	else
14912	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14913	fi
14914	;;
14915      esac
14916      link_all_deplibs=yes
14917      ;;
14918
14919    sunos4*)
14920      if test sequent = "$host_vendor"; then
14921	# Use $CC to link under sequent, because it throws in some extra .o
14922	# files that make .init and .fini sections work.
14923	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14924      else
14925	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14926      fi
14927      hardcode_libdir_flag_spec='-L$libdir'
14928      hardcode_direct=yes
14929      hardcode_minus_L=yes
14930      hardcode_shlibpath_var=no
14931      ;;
14932
14933    sysv4)
14934      case $host_vendor in
14935	sni)
14936	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14937	  hardcode_direct=yes # is this really true???
14938	;;
14939	siemens)
14940	  ## LD is ld it makes a PLAMLIB
14941	  ## CC just makes a GrossModule.
14942	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14943	  reload_cmds='$CC -r -o $output$reload_objs'
14944	  hardcode_direct=no
14945        ;;
14946	motorola)
14947	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14949	;;
14950      esac
14951      runpath_var='LD_RUN_PATH'
14952      hardcode_shlibpath_var=no
14953      ;;
14954
14955    sysv4.3*)
14956      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957      hardcode_shlibpath_var=no
14958      export_dynamic_flag_spec='-Bexport'
14959      ;;
14960
14961    sysv4*MP*)
14962      if test -d /usr/nec; then
14963	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14964	hardcode_shlibpath_var=no
14965	runpath_var=LD_RUN_PATH
14966	hardcode_runpath_var=yes
14967	ld_shlibs=yes
14968      fi
14969      ;;
14970
14971    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14972      no_undefined_flag='$wl-z,text'
14973      archive_cmds_need_lc=no
14974      hardcode_shlibpath_var=no
14975      runpath_var='LD_RUN_PATH'
14976
14977      if test yes = "$GCC"; then
14978	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14980      else
14981	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14983      fi
14984      ;;
14985
14986    sysv5* | sco3.2v5* | sco5v6*)
14987      # Note: We CANNOT use -z defs as we might desire, because we do not
14988      # link with -lc, and that would cause any symbols used from libc to
14989      # always be unresolved, which means just about no library would
14990      # ever link correctly.  If we're not using GNU ld we use -z text
14991      # though, which does catch some bad symbols but isn't as heavy-handed
14992      # as -z defs.
14993      no_undefined_flag='$wl-z,text'
14994      allow_undefined_flag='$wl-z,nodefs'
14995      archive_cmds_need_lc=no
14996      hardcode_shlibpath_var=no
14997      hardcode_libdir_flag_spec='$wl-R,$libdir'
14998      hardcode_libdir_separator=':'
14999      link_all_deplibs=yes
15000      export_dynamic_flag_spec='$wl-Bexport'
15001      runpath_var='LD_RUN_PATH'
15002
15003      if test yes = "$GCC"; then
15004	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15005	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15006      else
15007	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15009      fi
15010      ;;
15011
15012    uts4*)
15013      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15014      hardcode_libdir_flag_spec='-L$libdir'
15015      hardcode_shlibpath_var=no
15016      ;;
15017
15018    *)
15019      ld_shlibs=no
15020      ;;
15021    esac
15022
15023    if test sni = "$host_vendor"; then
15024      case $host in
15025      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15026	export_dynamic_flag_spec='$wl-Blargedynsym'
15027	;;
15028      esac
15029    fi
15030  fi
15031
15032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15033printf "%s\n" "$ld_shlibs" >&6; }
15034test no = "$ld_shlibs" && can_build_shared=no
15035
15036with_gnu_ld=$with_gnu_ld
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052#
15053# Do we need to explicitly link libc?
15054#
15055case "x$archive_cmds_need_lc" in
15056x|xyes)
15057  # Assume -lc should be added
15058  archive_cmds_need_lc=yes
15059
15060  if test yes,yes = "$GCC,$enable_shared"; then
15061    case $archive_cmds in
15062    *'~'*)
15063      # FIXME: we may have to deal with multi-command sequences.
15064      ;;
15065    '$CC '*)
15066      # Test whether the compiler implicitly links with -lc since on some
15067      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15068      # to ld, don't add -lc before -lgcc.
15069      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15070printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15071if test ${lt_cv_archive_cmds_need_lc+y}
15072then :
15073  printf %s "(cached) " >&6
15074else $as_nop
15075  $RM conftest*
15076	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15077
15078	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15079  (eval $ac_compile) 2>&5
15080  ac_status=$?
15081  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15082  test $ac_status = 0; } 2>conftest.err; then
15083	  soname=conftest
15084	  lib=conftest
15085	  libobjs=conftest.$ac_objext
15086	  deplibs=
15087	  wl=$lt_prog_compiler_wl
15088	  pic_flag=$lt_prog_compiler_pic
15089	  compiler_flags=-v
15090	  linker_flags=-v
15091	  verstring=
15092	  output_objdir=.
15093	  libname=conftest
15094	  lt_save_allow_undefined_flag=$allow_undefined_flag
15095	  allow_undefined_flag=
15096	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15097  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15098  ac_status=$?
15099  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100  test $ac_status = 0; }
15101	  then
15102	    lt_cv_archive_cmds_need_lc=no
15103	  else
15104	    lt_cv_archive_cmds_need_lc=yes
15105	  fi
15106	  allow_undefined_flag=$lt_save_allow_undefined_flag
15107	else
15108	  cat conftest.err 1>&5
15109	fi
15110	$RM conftest*
15111
15112fi
15113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15114printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15115      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15116      ;;
15117    esac
15118  fi
15119  ;;
15120esac
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15274printf %s "checking dynamic linker characteristics... " >&6; }
15275
15276if test yes = "$GCC"; then
15277  case $host_os in
15278    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15279    *) lt_awk_arg='/^libraries:/' ;;
15280  esac
15281  case $host_os in
15282    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15283    *) lt_sed_strip_eq='s|=/|/|g' ;;
15284  esac
15285  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15286  case $lt_search_path_spec in
15287  *\;*)
15288    # if the path contains ";" then we assume it to be the separator
15289    # otherwise default to the standard path separator (i.e. ":") - it is
15290    # assumed that no part of a normal pathname contains ";" but that should
15291    # okay in the real world where ";" in dirpaths is itself problematic.
15292    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15293    ;;
15294  *)
15295    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15296    ;;
15297  esac
15298  # Ok, now we have the path, separated by spaces, we can step through it
15299  # and add multilib dir if necessary...
15300  lt_tmp_lt_search_path_spec=
15301  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15302  # ...but if some path component already ends with the multilib dir we assume
15303  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15304  case "$lt_multi_os_dir; $lt_search_path_spec " in
15305  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15306    lt_multi_os_dir=
15307    ;;
15308  esac
15309  for lt_sys_path in $lt_search_path_spec; do
15310    if test -d "$lt_sys_path$lt_multi_os_dir"; then
15311      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15312    elif test -n "$lt_multi_os_dir"; then
15313      test -d "$lt_sys_path" && \
15314	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15315    fi
15316  done
15317  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15318BEGIN {RS = " "; FS = "/|\n";} {
15319  lt_foo = "";
15320  lt_count = 0;
15321  for (lt_i = NF; lt_i > 0; lt_i--) {
15322    if ($lt_i != "" && $lt_i != ".") {
15323      if ($lt_i == "..") {
15324        lt_count++;
15325      } else {
15326        if (lt_count == 0) {
15327          lt_foo = "/" $lt_i lt_foo;
15328        } else {
15329          lt_count--;
15330        }
15331      }
15332    }
15333  }
15334  if (lt_foo != "") { lt_freq[lt_foo]++; }
15335  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15336}'`
15337  # AWK program above erroneously prepends '/' to C:/dos/paths
15338  # for these hosts.
15339  case $host_os in
15340    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15341      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15342  esac
15343  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15344else
15345  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15346fi
15347library_names_spec=
15348libname_spec='lib$name'
15349soname_spec=
15350shrext_cmds=.so
15351postinstall_cmds=
15352postuninstall_cmds=
15353finish_cmds=
15354finish_eval=
15355shlibpath_var=
15356shlibpath_overrides_runpath=unknown
15357version_type=none
15358dynamic_linker="$host_os ld.so"
15359sys_lib_dlsearch_path_spec="/lib /usr/lib"
15360need_lib_prefix=unknown
15361hardcode_into_libs=no
15362
15363# when you set need_version to no, make sure it does not cause -set_version
15364# flags to be left without arguments
15365need_version=unknown
15366
15367
15368
15369case $host_os in
15370aix3*)
15371  version_type=linux # correct to gnu/linux during the next big refactor
15372  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15373  shlibpath_var=LIBPATH
15374
15375  # AIX 3 has no versioning support, so we append a major version to the name.
15376  soname_spec='$libname$release$shared_ext$major'
15377  ;;
15378
15379aix[4-9]*)
15380  version_type=linux # correct to gnu/linux during the next big refactor
15381  need_lib_prefix=no
15382  need_version=no
15383  hardcode_into_libs=yes
15384  if test ia64 = "$host_cpu"; then
15385    # AIX 5 supports IA64
15386    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15387    shlibpath_var=LD_LIBRARY_PATH
15388  else
15389    # With GCC up to 2.95.x, collect2 would create an import file
15390    # for dependence libraries.  The import file would start with
15391    # the line '#! .'.  This would cause the generated library to
15392    # depend on '.', always an invalid library.  This was fixed in
15393    # development snapshots of GCC prior to 3.0.
15394    case $host_os in
15395      aix4 | aix4.[01] | aix4.[01].*)
15396      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15397	   echo ' yes '
15398	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15399	:
15400      else
15401	can_build_shared=no
15402      fi
15403      ;;
15404    esac
15405    # Using Import Files as archive members, it is possible to support
15406    # filename-based versioning of shared library archives on AIX. While
15407    # this would work for both with and without runtime linking, it will
15408    # prevent static linking of such archives. So we do filename-based
15409    # shared library versioning with .so extension only, which is used
15410    # when both runtime linking and shared linking is enabled.
15411    # Unfortunately, runtime linking may impact performance, so we do
15412    # not want this to be the default eventually. Also, we use the
15413    # versioned .so libs for executables only if there is the -brtl
15414    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15415    # To allow for filename-based versioning support, we need to create
15416    # libNAME.so.V as an archive file, containing:
15417    # *) an Import File, referring to the versioned filename of the
15418    #    archive as well as the shared archive member, telling the
15419    #    bitwidth (32 or 64) of that shared object, and providing the
15420    #    list of exported symbols of that shared object, eventually
15421    #    decorated with the 'weak' keyword
15422    # *) the shared object with the F_LOADONLY flag set, to really avoid
15423    #    it being seen by the linker.
15424    # At run time we better use the real file rather than another symlink,
15425    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15426
15427    case $with_aix_soname,$aix_use_runtimelinking in
15428    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15429    # soname into executable. Probably we can add versioning support to
15430    # collect2, so additional links can be useful in future.
15431    aix,yes) # traditional libtool
15432      dynamic_linker='AIX unversionable lib.so'
15433      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15434      # instead of lib<name>.a to let people know that these are not
15435      # typical AIX shared libraries.
15436      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15437      ;;
15438    aix,no) # traditional AIX only
15439      dynamic_linker='AIX lib.a(lib.so.V)'
15440      # We preserve .a as extension for shared libraries through AIX4.2
15441      # and later when we are not doing run time linking.
15442      library_names_spec='$libname$release.a $libname.a'
15443      soname_spec='$libname$release$shared_ext$major'
15444      ;;
15445    svr4,*) # full svr4 only
15446      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15447      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15448      # We do not specify a path in Import Files, so LIBPATH fires.
15449      shlibpath_overrides_runpath=yes
15450      ;;
15451    *,yes) # both, prefer svr4
15452      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15453      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15454      # unpreferred sharedlib libNAME.a needs extra handling
15455      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"'
15456      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"'
15457      # We do not specify a path in Import Files, so LIBPATH fires.
15458      shlibpath_overrides_runpath=yes
15459      ;;
15460    *,no) # both, prefer aix
15461      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15462      library_names_spec='$libname$release.a $libname.a'
15463      soname_spec='$libname$release$shared_ext$major'
15464      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15465      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)'
15466      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"'
15467      ;;
15468    esac
15469    shlibpath_var=LIBPATH
15470  fi
15471  ;;
15472
15473amigaos*)
15474  case $host_cpu in
15475  powerpc)
15476    # Since July 2007 AmigaOS4 officially supports .so libraries.
15477    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15478    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15479    ;;
15480  m68k)
15481    library_names_spec='$libname.ixlibrary $libname.a'
15482    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15483    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'
15484    ;;
15485  esac
15486  ;;
15487
15488beos*)
15489  library_names_spec='$libname$shared_ext'
15490  dynamic_linker="$host_os ld.so"
15491  shlibpath_var=LIBRARY_PATH
15492  ;;
15493
15494bsdi[45]*)
15495  version_type=linux # correct to gnu/linux during the next big refactor
15496  need_version=no
15497  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15498  soname_spec='$libname$release$shared_ext$major'
15499  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15500  shlibpath_var=LD_LIBRARY_PATH
15501  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15502  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15503  # the default ld.so.conf also contains /usr/contrib/lib and
15504  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15505  # libtool to hard-code these into programs
15506  ;;
15507
15508cygwin* | mingw* | pw32* | cegcc*)
15509  version_type=windows
15510  shrext_cmds=.dll
15511  need_version=no
15512  need_lib_prefix=no
15513
15514  case $GCC,$cc_basename in
15515  yes,*)
15516    # gcc
15517    library_names_spec='$libname.dll.a'
15518    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15519    postinstall_cmds='base_file=`basename \$file`~
15520      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15521      dldir=$destdir/`dirname \$dlpath`~
15522      test -d \$dldir || mkdir -p \$dldir~
15523      $install_prog $dir/$dlname \$dldir/$dlname~
15524      chmod a+x \$dldir/$dlname~
15525      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15526        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15527      fi'
15528    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15529      dlpath=$dir/\$dldll~
15530       $RM \$dlpath'
15531    shlibpath_overrides_runpath=yes
15532
15533    case $host_os in
15534    cygwin*)
15535      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15536      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15537
15538      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15539      ;;
15540    mingw* | cegcc*)
15541      # MinGW DLLs use traditional 'lib' prefix
15542      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15543      ;;
15544    pw32*)
15545      # pw32 DLLs use 'pw' prefix rather than 'lib'
15546      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15547      ;;
15548    esac
15549    dynamic_linker='Win32 ld.exe'
15550    ;;
15551
15552  *,cl* | *,icl*)
15553    # Native MSVC or ICC
15554    libname_spec='$name'
15555    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15556    library_names_spec='$libname.dll.lib'
15557
15558    case $build_os in
15559    mingw*)
15560      sys_lib_search_path_spec=
15561      lt_save_ifs=$IFS
15562      IFS=';'
15563      for lt_path in $LIB
15564      do
15565        IFS=$lt_save_ifs
15566        # Let DOS variable expansion print the short 8.3 style file name.
15567        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15568        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15569      done
15570      IFS=$lt_save_ifs
15571      # Convert to MSYS style.
15572      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15573      ;;
15574    cygwin*)
15575      # Convert to unix form, then to dos form, then back to unix form
15576      # but this time dos style (no spaces!) so that the unix form looks
15577      # like /cygdrive/c/PROGRA~1:/cygdr...
15578      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15579      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15580      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15581      ;;
15582    *)
15583      sys_lib_search_path_spec=$LIB
15584      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15585        # It is most probably a Windows format PATH.
15586        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15587      else
15588        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15589      fi
15590      # FIXME: find the short name or the path components, as spaces are
15591      # common. (e.g. "Program Files" -> "PROGRA~1")
15592      ;;
15593    esac
15594
15595    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15596    postinstall_cmds='base_file=`basename \$file`~
15597      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15598      dldir=$destdir/`dirname \$dlpath`~
15599      test -d \$dldir || mkdir -p \$dldir~
15600      $install_prog $dir/$dlname \$dldir/$dlname'
15601    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15602      dlpath=$dir/\$dldll~
15603       $RM \$dlpath'
15604    shlibpath_overrides_runpath=yes
15605    dynamic_linker='Win32 link.exe'
15606    ;;
15607
15608  *)
15609    # Assume MSVC and ICC wrapper
15610    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15611    dynamic_linker='Win32 ld.exe'
15612    ;;
15613  esac
15614  # FIXME: first we should search . and the directory the executable is in
15615  shlibpath_var=PATH
15616  ;;
15617
15618darwin* | rhapsody*)
15619  dynamic_linker="$host_os dyld"
15620  version_type=darwin
15621  need_lib_prefix=no
15622  need_version=no
15623  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15624  soname_spec='$libname$release$major$shared_ext'
15625  shlibpath_overrides_runpath=yes
15626  shlibpath_var=DYLD_LIBRARY_PATH
15627  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15628
15629  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15630  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15631  ;;
15632
15633dgux*)
15634  version_type=linux # correct to gnu/linux during the next big refactor
15635  need_lib_prefix=no
15636  need_version=no
15637  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15638  soname_spec='$libname$release$shared_ext$major'
15639  shlibpath_var=LD_LIBRARY_PATH
15640  ;;
15641
15642freebsd* | dragonfly* | midnightbsd*)
15643  # DragonFly does not have aout.  When/if they implement a new
15644  # versioning mechanism, adjust this.
15645  if test -x /usr/bin/objformat; then
15646    objformat=`/usr/bin/objformat`
15647  else
15648    case $host_os in
15649    freebsd[23].*) objformat=aout ;;
15650    *) objformat=elf ;;
15651    esac
15652  fi
15653  version_type=freebsd-$objformat
15654  case $version_type in
15655    freebsd-elf*)
15656      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15657      soname_spec='$libname$release$shared_ext$major'
15658      need_version=no
15659      need_lib_prefix=no
15660      ;;
15661    freebsd-*)
15662      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15663      need_version=yes
15664      ;;
15665  esac
15666  shlibpath_var=LD_LIBRARY_PATH
15667  case $host_os in
15668  freebsd2.*)
15669    shlibpath_overrides_runpath=yes
15670    ;;
15671  freebsd3.[01]* | freebsdelf3.[01]*)
15672    shlibpath_overrides_runpath=yes
15673    hardcode_into_libs=yes
15674    ;;
15675  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15676  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15677    shlibpath_overrides_runpath=no
15678    hardcode_into_libs=yes
15679    ;;
15680  *) # from 4.6 on, and DragonFly
15681    shlibpath_overrides_runpath=yes
15682    hardcode_into_libs=yes
15683    ;;
15684  esac
15685  ;;
15686
15687haiku*)
15688  version_type=linux # correct to gnu/linux during the next big refactor
15689  need_lib_prefix=no
15690  need_version=no
15691  dynamic_linker="$host_os runtime_loader"
15692  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15693  soname_spec='$libname$release$shared_ext$major'
15694  shlibpath_var=LIBRARY_PATH
15695  shlibpath_overrides_runpath=no
15696  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15697  hardcode_into_libs=yes
15698  ;;
15699
15700hpux9* | hpux10* | hpux11*)
15701  # Give a soname corresponding to the major version so that dld.sl refuses to
15702  # link against other versions.
15703  version_type=sunos
15704  need_lib_prefix=no
15705  need_version=no
15706  case $host_cpu in
15707  ia64*)
15708    shrext_cmds='.so'
15709    hardcode_into_libs=yes
15710    dynamic_linker="$host_os dld.so"
15711    shlibpath_var=LD_LIBRARY_PATH
15712    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15713    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15714    soname_spec='$libname$release$shared_ext$major'
15715    if test 32 = "$HPUX_IA64_MODE"; then
15716      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15717      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15718    else
15719      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15720      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15721    fi
15722    ;;
15723  hppa*64*)
15724    shrext_cmds='.sl'
15725    hardcode_into_libs=yes
15726    dynamic_linker="$host_os dld.sl"
15727    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15728    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15729    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15730    soname_spec='$libname$release$shared_ext$major'
15731    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15732    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15733    ;;
15734  *)
15735    shrext_cmds='.sl'
15736    dynamic_linker="$host_os dld.sl"
15737    shlibpath_var=SHLIB_PATH
15738    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15739    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15740    soname_spec='$libname$release$shared_ext$major'
15741    ;;
15742  esac
15743  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15744  postinstall_cmds='chmod 555 $lib'
15745  # or fails outright, so override atomically:
15746  install_override_mode=555
15747  ;;
15748
15749interix[3-9]*)
15750  version_type=linux # correct to gnu/linux during the next big refactor
15751  need_lib_prefix=no
15752  need_version=no
15753  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15754  soname_spec='$libname$release$shared_ext$major'
15755  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15756  shlibpath_var=LD_LIBRARY_PATH
15757  shlibpath_overrides_runpath=no
15758  hardcode_into_libs=yes
15759  ;;
15760
15761irix5* | irix6* | nonstopux*)
15762  case $host_os in
15763    nonstopux*) version_type=nonstopux ;;
15764    *)
15765	if test yes = "$lt_cv_prog_gnu_ld"; then
15766		version_type=linux # correct to gnu/linux during the next big refactor
15767	else
15768		version_type=irix
15769	fi ;;
15770  esac
15771  need_lib_prefix=no
15772  need_version=no
15773  soname_spec='$libname$release$shared_ext$major'
15774  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15775  case $host_os in
15776  irix5* | nonstopux*)
15777    libsuff= shlibsuff=
15778    ;;
15779  *)
15780    case $LD in # libtool.m4 will add one of these switches to LD
15781    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15782      libsuff= shlibsuff= libmagic=32-bit;;
15783    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15784      libsuff=32 shlibsuff=N32 libmagic=N32;;
15785    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15786      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15787    *) libsuff= shlibsuff= libmagic=never-match;;
15788    esac
15789    ;;
15790  esac
15791  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15792  shlibpath_overrides_runpath=no
15793  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15794  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15795  hardcode_into_libs=yes
15796  ;;
15797
15798# No shared lib support for Linux oldld, aout, or coff.
15799linux*oldld* | linux*aout* | linux*coff*)
15800  dynamic_linker=no
15801  ;;
15802
15803linux*android*)
15804  version_type=none # Android doesn't support versioned libraries.
15805  need_lib_prefix=no
15806  need_version=no
15807  library_names_spec='$libname$release$shared_ext'
15808  soname_spec='$libname$release$shared_ext'
15809  finish_cmds=
15810  shlibpath_var=LD_LIBRARY_PATH
15811  shlibpath_overrides_runpath=yes
15812
15813  # This implies no fast_install, which is unacceptable.
15814  # Some rework will be needed to allow for fast_install
15815  # before this can be enabled.
15816  hardcode_into_libs=yes
15817
15818  dynamic_linker='Android linker'
15819  # Don't embed -rpath directories since the linker doesn't support them.
15820  hardcode_libdir_flag_spec='-L$libdir'
15821  ;;
15822
15823# This must be glibc/ELF.
15824linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15825  version_type=linux # correct to gnu/linux during the next big refactor
15826  need_lib_prefix=no
15827  need_version=no
15828  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15829  soname_spec='$libname$release$shared_ext$major'
15830  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15831  shlibpath_var=LD_LIBRARY_PATH
15832  shlibpath_overrides_runpath=no
15833
15834  # Some binutils ld are patched to set DT_RUNPATH
15835  if test ${lt_cv_shlibpath_overrides_runpath+y}
15836then :
15837  printf %s "(cached) " >&6
15838else $as_nop
15839  lt_cv_shlibpath_overrides_runpath=no
15840    save_LDFLAGS=$LDFLAGS
15841    save_libdir=$libdir
15842    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15843	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15844    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845/* end confdefs.h.  */
15846
15847int main (void)
15848{
15849
15850 ;
15851 return 0;
15852}
15853_ACEOF
15854if ac_fn_c_try_link "$LINENO"
15855then :
15856  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15857then :
15858  lt_cv_shlibpath_overrides_runpath=yes
15859fi
15860fi
15861rm -f core conftest.err conftest.$ac_objext conftest.beam \
15862    conftest$ac_exeext conftest.$ac_ext
15863    LDFLAGS=$save_LDFLAGS
15864    libdir=$save_libdir
15865
15866fi
15867
15868  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15869
15870  # This implies no fast_install, which is unacceptable.
15871  # Some rework will be needed to allow for fast_install
15872  # before this can be enabled.
15873  hardcode_into_libs=yes
15874
15875  # Ideally, we could use ldconfig to report *all* directores which are
15876  # searched for libraries, however this is still not possible.  Aside from not
15877  # being certain /sbin/ldconfig is available, command
15878  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15879  # even though it is searched at run-time.  Try to do the best guess by
15880  # appending ld.so.conf contents (and includes) to the search path.
15881  if test -f /etc/ld.so.conf; then
15882    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' ' '`
15883    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15884  fi
15885
15886  # We used to test for /lib/ld.so.1 and disable shared libraries on
15887  # powerpc, because MkLinux only supported shared libraries with the
15888  # GNU dynamic linker.  Since this was broken with cross compilers,
15889  # most powerpc-linux boxes support dynamic linking these days and
15890  # people can always --disable-shared, the test was removed, and we
15891  # assume the GNU/Linux dynamic linker is in use.
15892  dynamic_linker='GNU/Linux ld.so'
15893  ;;
15894
15895netbsdelf*-gnu)
15896  version_type=linux
15897  need_lib_prefix=no
15898  need_version=no
15899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15900  soname_spec='${libname}${release}${shared_ext}$major'
15901  shlibpath_var=LD_LIBRARY_PATH
15902  shlibpath_overrides_runpath=no
15903  hardcode_into_libs=yes
15904  dynamic_linker='NetBSD ld.elf_so'
15905  ;;
15906
15907netbsd*)
15908  version_type=sunos
15909  need_lib_prefix=no
15910  need_version=no
15911  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15912    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15913    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15914    dynamic_linker='NetBSD (a.out) ld.so'
15915  else
15916    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15917    soname_spec='$libname$release$shared_ext$major'
15918    dynamic_linker='NetBSD ld.elf_so'
15919  fi
15920  shlibpath_var=LD_LIBRARY_PATH
15921  shlibpath_overrides_runpath=yes
15922  hardcode_into_libs=yes
15923  ;;
15924
15925newsos6)
15926  version_type=linux # correct to gnu/linux during the next big refactor
15927  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15928  shlibpath_var=LD_LIBRARY_PATH
15929  shlibpath_overrides_runpath=yes
15930  ;;
15931
15932*nto* | *qnx*)
15933  version_type=qnx
15934  need_lib_prefix=no
15935  need_version=no
15936  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15937  soname_spec='$libname$release$shared_ext$major'
15938  shlibpath_var=LD_LIBRARY_PATH
15939  shlibpath_overrides_runpath=no
15940  hardcode_into_libs=yes
15941  dynamic_linker='ldqnx.so'
15942  ;;
15943
15944openbsd* | bitrig*)
15945  version_type=sunos
15946  sys_lib_dlsearch_path_spec=/usr/lib
15947  need_lib_prefix=no
15948  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15949    need_version=no
15950  else
15951    need_version=yes
15952  fi
15953  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15954  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15955  shlibpath_var=LD_LIBRARY_PATH
15956  shlibpath_overrides_runpath=yes
15957  ;;
15958
15959os2*)
15960  libname_spec='$name'
15961  version_type=windows
15962  shrext_cmds=.dll
15963  need_version=no
15964  need_lib_prefix=no
15965  # OS/2 can only load a DLL with a base name of 8 characters or less.
15966  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15967    v=$($ECHO $release$versuffix | tr -d .-);
15968    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15969    $ECHO $n$v`$shared_ext'
15970  library_names_spec='${libname}_dll.$libext'
15971  dynamic_linker='OS/2 ld.exe'
15972  shlibpath_var=BEGINLIBPATH
15973  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15974  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15975  postinstall_cmds='base_file=`basename \$file`~
15976    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15977    dldir=$destdir/`dirname \$dlpath`~
15978    test -d \$dldir || mkdir -p \$dldir~
15979    $install_prog $dir/$dlname \$dldir/$dlname~
15980    chmod a+x \$dldir/$dlname~
15981    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15982      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15983    fi'
15984  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15985    dlpath=$dir/\$dldll~
15986    $RM \$dlpath'
15987  ;;
15988
15989osf3* | osf4* | osf5*)
15990  version_type=osf
15991  need_lib_prefix=no
15992  need_version=no
15993  soname_spec='$libname$release$shared_ext$major'
15994  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15995  shlibpath_var=LD_LIBRARY_PATH
15996  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15997  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15998  ;;
15999
16000rdos*)
16001  dynamic_linker=no
16002  ;;
16003
16004solaris*)
16005  version_type=linux # correct to gnu/linux during the next big refactor
16006  need_lib_prefix=no
16007  need_version=no
16008  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16009  soname_spec='$libname$release$shared_ext$major'
16010  shlibpath_var=LD_LIBRARY_PATH
16011  shlibpath_overrides_runpath=yes
16012  hardcode_into_libs=yes
16013  # ldd complains unless libraries are executable
16014  postinstall_cmds='chmod +x $lib'
16015  ;;
16016
16017sunos4*)
16018  version_type=sunos
16019  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16020  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16021  shlibpath_var=LD_LIBRARY_PATH
16022  shlibpath_overrides_runpath=yes
16023  if test yes = "$with_gnu_ld"; then
16024    need_lib_prefix=no
16025  fi
16026  need_version=yes
16027  ;;
16028
16029sysv4 | sysv4.3*)
16030  version_type=linux # correct to gnu/linux during the next big refactor
16031  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032  soname_spec='$libname$release$shared_ext$major'
16033  shlibpath_var=LD_LIBRARY_PATH
16034  case $host_vendor in
16035    sni)
16036      shlibpath_overrides_runpath=no
16037      need_lib_prefix=no
16038      runpath_var=LD_RUN_PATH
16039      ;;
16040    siemens)
16041      need_lib_prefix=no
16042      ;;
16043    motorola)
16044      need_lib_prefix=no
16045      need_version=no
16046      shlibpath_overrides_runpath=no
16047      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16048      ;;
16049  esac
16050  ;;
16051
16052sysv4*MP*)
16053  if test -d /usr/nec; then
16054    version_type=linux # correct to gnu/linux during the next big refactor
16055    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16056    soname_spec='$libname$shared_ext.$major'
16057    shlibpath_var=LD_LIBRARY_PATH
16058  fi
16059  ;;
16060
16061sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16062  version_type=sco
16063  need_lib_prefix=no
16064  need_version=no
16065  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16066  soname_spec='$libname$release$shared_ext$major'
16067  shlibpath_var=LD_LIBRARY_PATH
16068  shlibpath_overrides_runpath=yes
16069  hardcode_into_libs=yes
16070  if test yes = "$with_gnu_ld"; then
16071    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16072  else
16073    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16074    case $host_os in
16075      sco3.2v5*)
16076        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16077	;;
16078    esac
16079  fi
16080  sys_lib_dlsearch_path_spec='/usr/lib'
16081  ;;
16082
16083tpf*)
16084  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16085  version_type=linux # correct to gnu/linux during the next big refactor
16086  need_lib_prefix=no
16087  need_version=no
16088  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16089  shlibpath_var=LD_LIBRARY_PATH
16090  shlibpath_overrides_runpath=no
16091  hardcode_into_libs=yes
16092  ;;
16093
16094uts4*)
16095  version_type=linux # correct to gnu/linux during the next big refactor
16096  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16097  soname_spec='$libname$release$shared_ext$major'
16098  shlibpath_var=LD_LIBRARY_PATH
16099  ;;
16100
16101*)
16102  dynamic_linker=no
16103  ;;
16104esac
16105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16106printf "%s\n" "$dynamic_linker" >&6; }
16107test no = "$dynamic_linker" && can_build_shared=no
16108
16109variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16110if test yes = "$GCC"; then
16111  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16112fi
16113
16114if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16115  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16116fi
16117
16118if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16119  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16120fi
16121
16122# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16123configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16124
16125# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16126func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16127
16128# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16129configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16228printf %s "checking how to hardcode library paths into programs... " >&6; }
16229hardcode_action=
16230if test -n "$hardcode_libdir_flag_spec" ||
16231   test -n "$runpath_var" ||
16232   test yes = "$hardcode_automatic"; then
16233
16234  # We can hardcode non-existent directories.
16235  if test no != "$hardcode_direct" &&
16236     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16237     # have to relink, otherwise we might link with an installed library
16238     # when we should be linking with a yet-to-be-installed one
16239     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16240     test no != "$hardcode_minus_L"; then
16241    # Linking always hardcodes the temporary library directory.
16242    hardcode_action=relink
16243  else
16244    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16245    hardcode_action=immediate
16246  fi
16247else
16248  # We cannot hardcode anything, or else we can only hardcode existing
16249  # directories.
16250  hardcode_action=unsupported
16251fi
16252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16253printf "%s\n" "$hardcode_action" >&6; }
16254
16255if test relink = "$hardcode_action" ||
16256   test yes = "$inherit_rpath"; then
16257  # Fast installation is not supported
16258  enable_fast_install=no
16259elif test yes = "$shlibpath_overrides_runpath" ||
16260     test no = "$enable_shared"; then
16261  # Fast installation is not necessary
16262  enable_fast_install=needless
16263fi
16264
16265
16266
16267
16268
16269
16270  if test yes != "$enable_dlopen"; then
16271  enable_dlopen=unknown
16272  enable_dlopen_self=unknown
16273  enable_dlopen_self_static=unknown
16274else
16275  lt_cv_dlopen=no
16276  lt_cv_dlopen_libs=
16277
16278  case $host_os in
16279  beos*)
16280    lt_cv_dlopen=load_add_on
16281    lt_cv_dlopen_libs=
16282    lt_cv_dlopen_self=yes
16283    ;;
16284
16285  mingw* | pw32* | cegcc*)
16286    lt_cv_dlopen=LoadLibrary
16287    lt_cv_dlopen_libs=
16288    ;;
16289
16290  cygwin*)
16291    lt_cv_dlopen=dlopen
16292    lt_cv_dlopen_libs=
16293    ;;
16294
16295  darwin*)
16296    # if libdl is installed we need to link against it
16297    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16298printf %s "checking for dlopen in -ldl... " >&6; }
16299if test ${ac_cv_lib_dl_dlopen+y}
16300then :
16301  printf %s "(cached) " >&6
16302else $as_nop
16303  ac_check_lib_save_LIBS=$LIBS
16304LIBS="-ldl  $LIBS"
16305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h.  */
16307
16308
16309#ifdef __cplusplus
16310extern "C"
16311#endif
16312char dlopen ();
16313int main (void)
16314{
16315return dlopen ();
16316 ;
16317 return 0;
16318}
16319_ACEOF
16320if ac_fn_c_try_link "$LINENO"
16321then :
16322  ac_cv_lib_dl_dlopen=yes
16323else $as_nop
16324  ac_cv_lib_dl_dlopen=no
16325fi
16326rm -f core conftest.err conftest.$ac_objext conftest.beam \
16327    conftest$ac_exeext conftest.$ac_ext
16328LIBS=$ac_check_lib_save_LIBS
16329fi
16330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16331printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16332if test "x$ac_cv_lib_dl_dlopen" = xyes
16333then :
16334  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16335else $as_nop
16336
16337    lt_cv_dlopen=dyld
16338    lt_cv_dlopen_libs=
16339    lt_cv_dlopen_self=yes
16340
16341fi
16342
16343    ;;
16344
16345  tpf*)
16346    # Don't try to run any link tests for TPF.  We know it's impossible
16347    # because TPF is a cross-compiler, and we know how we open DSOs.
16348    lt_cv_dlopen=dlopen
16349    lt_cv_dlopen_libs=
16350    lt_cv_dlopen_self=no
16351    ;;
16352
16353  *)
16354    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16355if test "x$ac_cv_func_shl_load" = xyes
16356then :
16357  lt_cv_dlopen=shl_load
16358else $as_nop
16359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16360printf %s "checking for shl_load in -ldld... " >&6; }
16361if test ${ac_cv_lib_dld_shl_load+y}
16362then :
16363  printf %s "(cached) " >&6
16364else $as_nop
16365  ac_check_lib_save_LIBS=$LIBS
16366LIBS="-ldld  $LIBS"
16367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368/* end confdefs.h.  */
16369
16370
16371#ifdef __cplusplus
16372extern "C"
16373#endif
16374char shl_load ();
16375int main (void)
16376{
16377return shl_load ();
16378 ;
16379 return 0;
16380}
16381_ACEOF
16382if ac_fn_c_try_link "$LINENO"
16383then :
16384  ac_cv_lib_dld_shl_load=yes
16385else $as_nop
16386  ac_cv_lib_dld_shl_load=no
16387fi
16388rm -f core conftest.err conftest.$ac_objext conftest.beam \
16389    conftest$ac_exeext conftest.$ac_ext
16390LIBS=$ac_check_lib_save_LIBS
16391fi
16392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16393printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16394if test "x$ac_cv_lib_dld_shl_load" = xyes
16395then :
16396  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16397else $as_nop
16398  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16399if test "x$ac_cv_func_dlopen" = xyes
16400then :
16401  lt_cv_dlopen=dlopen
16402else $as_nop
16403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16404printf %s "checking for dlopen in -ldl... " >&6; }
16405if test ${ac_cv_lib_dl_dlopen+y}
16406then :
16407  printf %s "(cached) " >&6
16408else $as_nop
16409  ac_check_lib_save_LIBS=$LIBS
16410LIBS="-ldl  $LIBS"
16411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412/* end confdefs.h.  */
16413
16414
16415#ifdef __cplusplus
16416extern "C"
16417#endif
16418char dlopen ();
16419int main (void)
16420{
16421return dlopen ();
16422 ;
16423 return 0;
16424}
16425_ACEOF
16426if ac_fn_c_try_link "$LINENO"
16427then :
16428  ac_cv_lib_dl_dlopen=yes
16429else $as_nop
16430  ac_cv_lib_dl_dlopen=no
16431fi
16432rm -f core conftest.err conftest.$ac_objext conftest.beam \
16433    conftest$ac_exeext conftest.$ac_ext
16434LIBS=$ac_check_lib_save_LIBS
16435fi
16436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16437printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16438if test "x$ac_cv_lib_dl_dlopen" = xyes
16439then :
16440  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16441else $as_nop
16442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16443printf %s "checking for dlopen in -lsvld... " >&6; }
16444if test ${ac_cv_lib_svld_dlopen+y}
16445then :
16446  printf %s "(cached) " >&6
16447else $as_nop
16448  ac_check_lib_save_LIBS=$LIBS
16449LIBS="-lsvld  $LIBS"
16450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451/* end confdefs.h.  */
16452
16453
16454#ifdef __cplusplus
16455extern "C"
16456#endif
16457char dlopen ();
16458int main (void)
16459{
16460return dlopen ();
16461 ;
16462 return 0;
16463}
16464_ACEOF
16465if ac_fn_c_try_link "$LINENO"
16466then :
16467  ac_cv_lib_svld_dlopen=yes
16468else $as_nop
16469  ac_cv_lib_svld_dlopen=no
16470fi
16471rm -f core conftest.err conftest.$ac_objext conftest.beam \
16472    conftest$ac_exeext conftest.$ac_ext
16473LIBS=$ac_check_lib_save_LIBS
16474fi
16475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16476printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16477if test "x$ac_cv_lib_svld_dlopen" = xyes
16478then :
16479  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16480else $as_nop
16481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16482printf %s "checking for dld_link in -ldld... " >&6; }
16483if test ${ac_cv_lib_dld_dld_link+y}
16484then :
16485  printf %s "(cached) " >&6
16486else $as_nop
16487  ac_check_lib_save_LIBS=$LIBS
16488LIBS="-ldld  $LIBS"
16489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490/* end confdefs.h.  */
16491
16492
16493#ifdef __cplusplus
16494extern "C"
16495#endif
16496char dld_link ();
16497int main (void)
16498{
16499return dld_link ();
16500 ;
16501 return 0;
16502}
16503_ACEOF
16504if ac_fn_c_try_link "$LINENO"
16505then :
16506  ac_cv_lib_dld_dld_link=yes
16507else $as_nop
16508  ac_cv_lib_dld_dld_link=no
16509fi
16510rm -f core conftest.err conftest.$ac_objext conftest.beam \
16511    conftest$ac_exeext conftest.$ac_ext
16512LIBS=$ac_check_lib_save_LIBS
16513fi
16514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16515printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16516if test "x$ac_cv_lib_dld_dld_link" = xyes
16517then :
16518  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16519fi
16520
16521
16522fi
16523
16524
16525fi
16526
16527
16528fi
16529
16530
16531fi
16532
16533
16534fi
16535
16536    ;;
16537  esac
16538
16539  if test no = "$lt_cv_dlopen"; then
16540    enable_dlopen=no
16541  else
16542    enable_dlopen=yes
16543  fi
16544
16545  case $lt_cv_dlopen in
16546  dlopen)
16547    save_CPPFLAGS=$CPPFLAGS
16548    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16549
16550    save_LDFLAGS=$LDFLAGS
16551    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16552
16553    save_LIBS=$LIBS
16554    LIBS="$lt_cv_dlopen_libs $LIBS"
16555
16556    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16557printf %s "checking whether a program can dlopen itself... " >&6; }
16558if test ${lt_cv_dlopen_self+y}
16559then :
16560  printf %s "(cached) " >&6
16561else $as_nop
16562  	  if test yes = "$cross_compiling"; then :
16563  lt_cv_dlopen_self=cross
16564else
16565  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16566  lt_status=$lt_dlunknown
16567  cat > conftest.$ac_ext <<_LT_EOF
16568#line $LINENO "configure"
16569#include "confdefs.h"
16570
16571#if HAVE_DLFCN_H
16572#include <dlfcn.h>
16573#endif
16574
16575#include <stdio.h>
16576
16577#ifdef RTLD_GLOBAL
16578#  define LT_DLGLOBAL		RTLD_GLOBAL
16579#else
16580#  ifdef DL_GLOBAL
16581#    define LT_DLGLOBAL		DL_GLOBAL
16582#  else
16583#    define LT_DLGLOBAL		0
16584#  endif
16585#endif
16586
16587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16588   find out it does not work in some platform. */
16589#ifndef LT_DLLAZY_OR_NOW
16590#  ifdef RTLD_LAZY
16591#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16592#  else
16593#    ifdef DL_LAZY
16594#      define LT_DLLAZY_OR_NOW		DL_LAZY
16595#    else
16596#      ifdef RTLD_NOW
16597#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16598#      else
16599#        ifdef DL_NOW
16600#          define LT_DLLAZY_OR_NOW	DL_NOW
16601#        else
16602#          define LT_DLLAZY_OR_NOW	0
16603#        endif
16604#      endif
16605#    endif
16606#  endif
16607#endif
16608
16609/* When -fvisibility=hidden is used, assume the code has been annotated
16610   correspondingly for the symbols needed.  */
16611#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16612int fnord () __attribute__((visibility("default")));
16613#endif
16614
16615int fnord () { return 42; }
16616int main ()
16617{
16618  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16619  int status = $lt_dlunknown;
16620
16621  if (self)
16622    {
16623      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16624      else
16625        {
16626	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16627          else puts (dlerror ());
16628	}
16629      /* dlclose (self); */
16630    }
16631  else
16632    puts (dlerror ());
16633
16634  return status;
16635}
16636_LT_EOF
16637  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16638  (eval $ac_link) 2>&5
16639  ac_status=$?
16640  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16641  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16642    (./conftest; exit; ) >&5 2>/dev/null
16643    lt_status=$?
16644    case x$lt_status in
16645      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16646      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16647      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16648    esac
16649  else :
16650    # compilation failed
16651    lt_cv_dlopen_self=no
16652  fi
16653fi
16654rm -fr conftest*
16655
16656
16657fi
16658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16659printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16660
16661    if test yes = "$lt_cv_dlopen_self"; then
16662      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16663      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16664printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16665if test ${lt_cv_dlopen_self_static+y}
16666then :
16667  printf %s "(cached) " >&6
16668else $as_nop
16669  	  if test yes = "$cross_compiling"; then :
16670  lt_cv_dlopen_self_static=cross
16671else
16672  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16673  lt_status=$lt_dlunknown
16674  cat > conftest.$ac_ext <<_LT_EOF
16675#line $LINENO "configure"
16676#include "confdefs.h"
16677
16678#if HAVE_DLFCN_H
16679#include <dlfcn.h>
16680#endif
16681
16682#include <stdio.h>
16683
16684#ifdef RTLD_GLOBAL
16685#  define LT_DLGLOBAL		RTLD_GLOBAL
16686#else
16687#  ifdef DL_GLOBAL
16688#    define LT_DLGLOBAL		DL_GLOBAL
16689#  else
16690#    define LT_DLGLOBAL		0
16691#  endif
16692#endif
16693
16694/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16695   find out it does not work in some platform. */
16696#ifndef LT_DLLAZY_OR_NOW
16697#  ifdef RTLD_LAZY
16698#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16699#  else
16700#    ifdef DL_LAZY
16701#      define LT_DLLAZY_OR_NOW		DL_LAZY
16702#    else
16703#      ifdef RTLD_NOW
16704#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16705#      else
16706#        ifdef DL_NOW
16707#          define LT_DLLAZY_OR_NOW	DL_NOW
16708#        else
16709#          define LT_DLLAZY_OR_NOW	0
16710#        endif
16711#      endif
16712#    endif
16713#  endif
16714#endif
16715
16716/* When -fvisibility=hidden is used, assume the code has been annotated
16717   correspondingly for the symbols needed.  */
16718#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16719int fnord () __attribute__((visibility("default")));
16720#endif
16721
16722int fnord () { return 42; }
16723int main ()
16724{
16725  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16726  int status = $lt_dlunknown;
16727
16728  if (self)
16729    {
16730      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16731      else
16732        {
16733	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16734          else puts (dlerror ());
16735	}
16736      /* dlclose (self); */
16737    }
16738  else
16739    puts (dlerror ());
16740
16741  return status;
16742}
16743_LT_EOF
16744  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16745  (eval $ac_link) 2>&5
16746  ac_status=$?
16747  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16748  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16749    (./conftest; exit; ) >&5 2>/dev/null
16750    lt_status=$?
16751    case x$lt_status in
16752      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16753      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16754      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16755    esac
16756  else :
16757    # compilation failed
16758    lt_cv_dlopen_self_static=no
16759  fi
16760fi
16761rm -fr conftest*
16762
16763
16764fi
16765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16766printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16767    fi
16768
16769    CPPFLAGS=$save_CPPFLAGS
16770    LDFLAGS=$save_LDFLAGS
16771    LIBS=$save_LIBS
16772    ;;
16773  esac
16774
16775  case $lt_cv_dlopen_self in
16776  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16777  *) enable_dlopen_self=unknown ;;
16778  esac
16779
16780  case $lt_cv_dlopen_self_static in
16781  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16782  *) enable_dlopen_self_static=unknown ;;
16783  esac
16784fi
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802striplib=
16803old_striplib=
16804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16805printf %s "checking whether stripping libraries is possible... " >&6; }
16806if test -z "$STRIP"; then
16807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16808printf "%s\n" "no" >&6; }
16809else
16810  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16811    old_striplib="$STRIP --strip-debug"
16812    striplib="$STRIP --strip-unneeded"
16813    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16814printf "%s\n" "yes" >&6; }
16815  else
16816    case $host_os in
16817    darwin*)
16818      # FIXME - insert some real tests, host_os isn't really good enough
16819      striplib="$STRIP -x"
16820      old_striplib="$STRIP -S"
16821      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16822printf "%s\n" "yes" >&6; }
16823      ;;
16824    freebsd*)
16825      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16826        old_striplib="$STRIP --strip-debug"
16827        striplib="$STRIP --strip-unneeded"
16828        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16829printf "%s\n" "yes" >&6; }
16830      else
16831        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832printf "%s\n" "no" >&6; }
16833      fi
16834      ;;
16835    *)
16836      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16837printf "%s\n" "no" >&6; }
16838      ;;
16839    esac
16840  fi
16841fi
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854  # Report what library types will actually be built
16855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16856printf %s "checking if libtool supports shared libraries... " >&6; }
16857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16858printf "%s\n" "$can_build_shared" >&6; }
16859
16860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16861printf %s "checking whether to build shared libraries... " >&6; }
16862  test no = "$can_build_shared" && enable_shared=no
16863
16864  # On AIX, shared libraries and static libraries use the same namespace, and
16865  # are all built from PIC.
16866  case $host_os in
16867  aix3*)
16868    test yes = "$enable_shared" && enable_static=no
16869    if test -n "$RANLIB"; then
16870      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16871      postinstall_cmds='$RANLIB $lib'
16872    fi
16873    ;;
16874
16875  aix[4-9]*)
16876    if test ia64 != "$host_cpu"; then
16877      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16878      yes,aix,yes) ;;			# shared object as lib.so file only
16879      yes,svr4,*) ;;			# shared object as lib.so archive member only
16880      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
16881      esac
16882    fi
16883    ;;
16884  esac
16885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16886printf "%s\n" "$enable_shared" >&6; }
16887
16888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16889printf %s "checking whether to build static libraries... " >&6; }
16890  # Make sure either enable_shared or enable_static is yes.
16891  test yes = "$enable_shared" || enable_static=yes
16892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16893printf "%s\n" "$enable_static" >&6; }
16894
16895
16896
16897
16898fi
16899ac_ext=c
16900ac_cpp='$CPP $CPPFLAGS'
16901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16903ac_compiler_gnu=$ac_cv_c_compiler_gnu
16904
16905CC=$lt_save_CC
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921        ac_config_commands="$ac_config_commands libtool"
16922
16923
16924
16925
16926# Only expand once:
16927
16928
16929## --------------------- ##
16930##  End of libtool code  ##
16931## --------------------- ##
16932
16933#
16934# Verify if finally libtool shared libraries will be built
16935#
16936
16937case "x$enable_shared" in # ((
16938  xyes | xno)
16939    xc_lt_build_shared=$enable_shared
16940    ;;
16941  *)
16942    as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16943    ;;
16944esac
16945
16946#
16947# Verify if finally libtool static libraries will be built
16948#
16949
16950case "x$enable_static" in # ((
16951  xyes | xno)
16952    xc_lt_build_static=$enable_static
16953    ;;
16954  *)
16955    as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16956    ;;
16957esac
16958
16959#
16960# Verify if libtool shared libraries should be linked using flag -version-info
16961#
16962
16963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16964printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16965xc_lt_shlib_use_version_info='yes'
16966if test "x$version_type" = 'xnone'; then
16967  xc_lt_shlib_use_version_info='no'
16968fi
16969case $host_os in # (
16970  amigaos*)
16971    xc_lt_shlib_use_version_info='yes'
16972    ;;
16973esac
16974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16975printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16976
16977#
16978# Verify if libtool shared libraries should be linked using flag -no-undefined
16979#
16980
16981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16982printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16983xc_lt_shlib_use_no_undefined='no'
16984if test "x$allow_undefined" = 'xno'; then
16985  xc_lt_shlib_use_no_undefined='yes'
16986elif test "x$allow_undefined_flag" = 'xunsupported'; then
16987  xc_lt_shlib_use_no_undefined='yes'
16988fi
16989case $host_os in # (
16990  cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16991    xc_lt_shlib_use_no_undefined='yes'
16992    ;;
16993esac
16994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16995printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16996
16997#
16998# Verify if libtool shared libraries should be linked using flag -mimpure-text
16999#
17000
17001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
17002printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
17003xc_lt_shlib_use_mimpure_text='no'
17004case $host_os in # (
17005  solaris2*)
17006    if test "x$GCC" = 'xyes'; then
17007      xc_lt_shlib_use_mimpure_text='yes'
17008    fi
17009    ;;
17010esac
17011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
17012printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
17013
17014#
17015# Find out whether libtool libraries would be built with PIC
17016#
17017
17018case "x$pic_mode" in # ((((
17019  xdefault)
17020    xc_lt_build_shared_with_pic='yes'
17021    xc_lt_build_static_with_pic='no'
17022    ;;
17023  xyes)
17024    xc_lt_build_shared_with_pic='yes'
17025    xc_lt_build_static_with_pic='yes'
17026    ;;
17027  xno)
17028    xc_lt_build_shared_with_pic='no'
17029    xc_lt_build_static_with_pic='no'
17030    ;;
17031  *)
17032    xc_lt_build_shared_with_pic='unknown'
17033    xc_lt_build_static_with_pic='unknown'
17034    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
17035printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
17036    ;;
17037esac
17038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
17039printf %s "checking whether to build shared libraries with PIC... " >&6; }
17040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
17041printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
17042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
17043printf %s "checking whether to build static libraries with PIC... " >&6; }
17044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
17045printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
17046
17047#
17048# Verify if libtool shared libraries will be built while static not built
17049#
17050
17051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
17052printf %s "checking whether to build shared libraries only... " >&6; }
17053if test "$xc_lt_build_shared" = 'yes' &&
17054  test "$xc_lt_build_static" = 'no'; then
17055  xc_lt_build_shared_only='yes'
17056else
17057  xc_lt_build_shared_only='no'
17058fi
17059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
17060printf "%s\n" "$xc_lt_build_shared_only" >&6; }
17061
17062#
17063# Verify if libtool static libraries will be built while shared not built
17064#
17065
17066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
17067printf %s "checking whether to build static libraries only... " >&6; }
17068if test "$xc_lt_build_static" = 'yes' &&
17069  test "$xc_lt_build_shared" = 'no'; then
17070  xc_lt_build_static_only='yes'
17071else
17072  xc_lt_build_static_only='no'
17073fi
17074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
17075printf "%s\n" "$xc_lt_build_static_only" >&6; }
17076
17077
17078
17079
17080if test -n "$ac_tool_prefix"; then
17081  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17082set dummy ${ac_tool_prefix}windres; ac_word=$2
17083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17084printf %s "checking for $ac_word... " >&6; }
17085if test ${ac_cv_prog_RC+y}
17086then :
17087  printf %s "(cached) " >&6
17088else $as_nop
17089  if test -n "$RC"; then
17090  ac_cv_prog_RC="$RC" # Let the user override the test.
17091else
17092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17093for as_dir in $PATH
17094do
17095  IFS=$as_save_IFS
17096  case $as_dir in #(((
17097    '') as_dir=./ ;;
17098    */) ;;
17099    *) as_dir=$as_dir/ ;;
17100  esac
17101    for ac_exec_ext in '' $ac_executable_extensions; do
17102  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17103    ac_cv_prog_RC="${ac_tool_prefix}windres"
17104    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17105    break 2
17106  fi
17107done
17108  done
17109IFS=$as_save_IFS
17110
17111fi
17112fi
17113RC=$ac_cv_prog_RC
17114if test -n "$RC"; then
17115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17116printf "%s\n" "$RC" >&6; }
17117else
17118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17119printf "%s\n" "no" >&6; }
17120fi
17121
17122
17123fi
17124if test -z "$ac_cv_prog_RC"; then
17125  ac_ct_RC=$RC
17126  # Extract the first word of "windres", so it can be a program name with args.
17127set dummy windres; ac_word=$2
17128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17129printf %s "checking for $ac_word... " >&6; }
17130if test ${ac_cv_prog_ac_ct_RC+y}
17131then :
17132  printf %s "(cached) " >&6
17133else $as_nop
17134  if test -n "$ac_ct_RC"; then
17135  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17136else
17137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17138for as_dir in $PATH
17139do
17140  IFS=$as_save_IFS
17141  case $as_dir in #(((
17142    '') as_dir=./ ;;
17143    */) ;;
17144    *) as_dir=$as_dir/ ;;
17145  esac
17146    for ac_exec_ext in '' $ac_executable_extensions; do
17147  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17148    ac_cv_prog_ac_ct_RC="windres"
17149    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17150    break 2
17151  fi
17152done
17153  done
17154IFS=$as_save_IFS
17155
17156fi
17157fi
17158ac_ct_RC=$ac_cv_prog_ac_ct_RC
17159if test -n "$ac_ct_RC"; then
17160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17161printf "%s\n" "$ac_ct_RC" >&6; }
17162else
17163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17164printf "%s\n" "no" >&6; }
17165fi
17166
17167  if test "x$ac_ct_RC" = x; then
17168    RC=""
17169  else
17170    case $cross_compiling:$ac_tool_warned in
17171yes:)
17172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17173printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17174ac_tool_warned=yes ;;
17175esac
17176    RC=$ac_ct_RC
17177  fi
17178else
17179  RC="$ac_cv_prog_RC"
17180fi
17181
17182
17183
17184
17185# Source file extension for RC test sources.
17186ac_ext=rc
17187
17188# Object file extension for compiled RC test sources.
17189objext=o
17190objext_RC=$objext
17191
17192# Code to be used in simple compile tests
17193lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17194
17195# Code to be used in simple link tests
17196lt_simple_link_test_code=$lt_simple_compile_test_code
17197
17198# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17199
17200
17201
17202
17203
17204
17205# If no C compiler was specified, use CC.
17206LTCC=${LTCC-"$CC"}
17207
17208# If no C compiler flags were specified, use CFLAGS.
17209LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17210
17211# Allow CC to be a program name with arguments.
17212compiler=$CC
17213
17214
17215# save warnings/boilerplate of simple test code
17216ac_outfile=conftest.$ac_objext
17217echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17218eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17219_lt_compiler_boilerplate=`cat conftest.err`
17220$RM conftest*
17221
17222ac_outfile=conftest.$ac_objext
17223echo "$lt_simple_link_test_code" >conftest.$ac_ext
17224eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17225_lt_linker_boilerplate=`cat conftest.err`
17226$RM -r conftest*
17227
17228
17229# Allow CC to be a program name with arguments.
17230lt_save_CC=$CC
17231lt_save_CFLAGS=$CFLAGS
17232lt_save_GCC=$GCC
17233GCC=
17234CC=${RC-"windres"}
17235CFLAGS=
17236compiler=$CC
17237compiler_RC=$CC
17238func_cc_basename $compiler
17239cc_basename=$func_cc_basename_result
17240
17241lt_cv_prog_compiler_c_o_RC=yes
17242
17243if test -n "$compiler"; then
17244  :
17245
17246
17247
17248fi
17249
17250GCC=$lt_save_GCC
17251ac_ext=c
17252ac_cpp='$CPP $CPPFLAGS'
17253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17255ac_compiler_gnu=$ac_cv_c_compiler_gnu
17256
17257CC=$lt_save_CC
17258CFLAGS=$lt_save_CFLAGS
17259
17260
17261#
17262# Automake conditionals based on libtool related checks
17263#
17264
17265 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
17266  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
17267  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
17268else
17269  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
17270  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
17271fi
17272
17273 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17274  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
17275  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
17276else
17277  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
17278  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
17279fi
17280
17281 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
17282  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
17283  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
17284else
17285  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
17286  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
17287fi
17288
17289
17290#
17291# Due to libtool and automake machinery limitations of not allowing
17292# specifying separate CPPFLAGS or CFLAGS when compiling objects for
17293# inclusion of these in shared or static libraries, we are forced to
17294# build using separate configure runs for shared and static libraries
17295# on systems where different CPPFLAGS or CFLAGS are mandatory in order
17296# to compile objects for each kind of library. Notice that relying on
17297# the '-DPIC' CFLAG that libtool provides is not valid given that the
17298# user might for example choose to build static libraries with PIC.
17299#
17300
17301#
17302# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
17303# targeting a static library and not building its shared counterpart.
17304#
17305
17306 if test "x$xc_lt_build_static_only" = 'xyes'; then
17307  USE_CPPFLAG_CURL_STATICLIB_TRUE=
17308  USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
17309else
17310  USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
17311  USE_CPPFLAG_CURL_STATICLIB_FALSE=
17312fi
17313
17314
17315#
17316# Make staticlib CPPFLAG variable and its definition visible in output
17317# files unconditionally, providing an empty definition unless strictly
17318# targeting a static library and not building its shared counterpart.
17319#
17320
17321CPPFLAG_CURL_STATICLIB=
17322if test "x$xc_lt_build_static_only" = 'xyes'; then
17323  CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
17324fi
17325
17326
17327
17328# Determine whether all dependent libraries must be specified when linking
17329if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
17330then
17331    REQUIRE_LIB_DEPS=no
17332else
17333    REQUIRE_LIB_DEPS=yes
17334fi
17335
17336 if test x$REQUIRE_LIB_DEPS = xyes; then
17337  USE_EXPLICIT_LIB_DEPS_TRUE=
17338  USE_EXPLICIT_LIB_DEPS_FALSE='#'
17339else
17340  USE_EXPLICIT_LIB_DEPS_TRUE='#'
17341  USE_EXPLICIT_LIB_DEPS_FALSE=
17342fi
17343
17344
17345
17346
17347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
17348printf %s "checking if cpp -P is needed... " >&6; }
17349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350/* end confdefs.h.  */
17351
17352 #include <errno.h>
17353TEST EINVAL TEST
17354
17355_ACEOF
17356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17357  $EGREP "TEST.*TEST" >/dev/null 2>&1
17358then :
17359  cpp=no
17360else $as_nop
17361  cpp=yes
17362fi
17363rm -rf conftest*
17364
17365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
17366printf "%s\n" "$cpp" >&6; }
17367
17368    if test "x$cpp" = "xyes"; then
17369    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
17370printf %s "checking if cpp -P works... " >&6; }
17371    OLDCPPFLAGS=$CPPFLAGS
17372    CPPFLAGS="$CPPFLAGS -P"
17373    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374/* end confdefs.h.  */
17375
17376 #include <errno.h>
17377TEST EINVAL TEST
17378
17379_ACEOF
17380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17381  $EGREP "TEST.*TEST" >/dev/null 2>&1
17382then :
17383  cpp_p=yes
17384else $as_nop
17385  cpp_p=no
17386fi
17387rm -rf conftest*
17388
17389    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
17390printf "%s\n" "$cpp_p" >&6; }
17391
17392    if test "x$cpp_p" = "xno"; then
17393      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
17394printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
17395      # without -P
17396      CPPPFLAG=""
17397    else
17398      # with -P
17399      CPPPFLAG="-P"
17400    fi
17401        CPPFLAGS=$OLDCPPFLAGS
17402  else
17403    # without -P
17404    CPPPFLAG=""
17405  fi
17406
17407
17408  #
17409  compiler_id="unknown"
17410  compiler_num="0"
17411  #
17412  flags_dbg_yes="unknown"
17413  flags_opt_all="unknown"
17414  flags_opt_yes="unknown"
17415  flags_opt_off="unknown"
17416  #
17417  flags_prefer_cppflags="no"
17418  #
17419
17420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
17421printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
17422
17423    OLDCPPFLAGS=$CPPFLAGS
17424  # CPPPFLAG comes from CURL_CPP_P
17425  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17426      if test -z "$SED"; then
17427    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17428  fi
17429  if test -z "$GREP"; then
17430    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17431  fi
17432
17433  tmp_exp=""
17434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435/* end confdefs.h.  */
17436
17437
17438#ifdef __DECC
17439CURL_DEF_TOKEN __DECC
17440#endif
17441
17442
17443_ACEOF
17444if ac_fn_c_try_cpp "$LINENO"
17445then :
17446
17447    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17448      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17449      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17450      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17451    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
17452      tmp_exp=""
17453    fi
17454
17455fi
17456rm -f conftest.err conftest.i conftest.$ac_ext
17457  if test -z "$tmp_exp"; then
17458    curl_cv_have_def___DECC=no
17459
17460  else
17461    curl_cv_have_def___DECC=yes
17462    curl_cv_def___DECC=$tmp_exp
17463
17464  fi
17465      CPPFLAGS=$OLDCPPFLAGS
17466
17467
17468    OLDCPPFLAGS=$CPPFLAGS
17469  # CPPPFLAG comes from CURL_CPP_P
17470  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17471      if test -z "$SED"; then
17472    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17473  fi
17474  if test -z "$GREP"; then
17475    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17476  fi
17477
17478  tmp_exp=""
17479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480/* end confdefs.h.  */
17481
17482
17483#ifdef __DECC_VER
17484CURL_DEF_TOKEN __DECC_VER
17485#endif
17486
17487
17488_ACEOF
17489if ac_fn_c_try_cpp "$LINENO"
17490then :
17491
17492    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17493      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17494      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17495      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17496    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
17497      tmp_exp=""
17498    fi
17499
17500fi
17501rm -f conftest.err conftest.i conftest.$ac_ext
17502  if test -z "$tmp_exp"; then
17503    curl_cv_have_def___DECC_VER=no
17504
17505  else
17506    curl_cv_have_def___DECC_VER=yes
17507    curl_cv_def___DECC_VER=$tmp_exp
17508
17509  fi
17510      CPPFLAGS=$OLDCPPFLAGS
17511
17512  if test "$curl_cv_have_def___DECC" = "yes" &&
17513    test "$curl_cv_have_def___DECC_VER" = "yes"; then
17514    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17515printf "%s\n" "yes" >&6; }
17516    compiler_id="DEC_C"
17517    flags_dbg_yes="-g2"
17518    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
17519    flags_opt_yes="-O1"
17520    flags_opt_off="-O0"
17521  else
17522    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17523printf "%s\n" "no" >&6; }
17524  fi
17525
17526
17527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
17528printf %s "checking if compiler is HP-UX C... " >&6; }
17529
17530    OLDCPPFLAGS=$CPPFLAGS
17531  # CPPPFLAG comes from CURL_CPP_P
17532  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17533      if test -z "$SED"; then
17534    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17535  fi
17536  if test -z "$GREP"; then
17537    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17538  fi
17539
17540  tmp_exp=""
17541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542/* end confdefs.h.  */
17543
17544
17545#ifdef __HP_cc
17546CURL_DEF_TOKEN __HP_cc
17547#endif
17548
17549
17550_ACEOF
17551if ac_fn_c_try_cpp "$LINENO"
17552then :
17553
17554    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17555      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17556      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17557      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17558    if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
17559      tmp_exp=""
17560    fi
17561
17562fi
17563rm -f conftest.err conftest.i conftest.$ac_ext
17564  if test -z "$tmp_exp"; then
17565    curl_cv_have_def___HP_cc=no
17566
17567  else
17568    curl_cv_have_def___HP_cc=yes
17569    curl_cv_def___HP_cc=$tmp_exp
17570
17571  fi
17572      CPPFLAGS=$OLDCPPFLAGS
17573
17574  if test "$curl_cv_have_def___HP_cc" = "yes"; then
17575    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17576printf "%s\n" "yes" >&6; }
17577    compiler_id="HP_UX_C"
17578    flags_dbg_yes="-g"
17579    flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
17580    flags_opt_yes="+O2"
17581    flags_opt_off="+O0"
17582  else
17583    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17584printf "%s\n" "no" >&6; }
17585  fi
17586
17587
17588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
17589printf %s "checking if compiler is IBM C... " >&6; }
17590
17591    OLDCPPFLAGS=$CPPFLAGS
17592  # CPPPFLAG comes from CURL_CPP_P
17593  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17594      if test -z "$SED"; then
17595    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17596  fi
17597  if test -z "$GREP"; then
17598    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17599  fi
17600
17601  tmp_exp=""
17602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603/* end confdefs.h.  */
17604
17605
17606#ifdef __IBMC__
17607CURL_DEF_TOKEN __IBMC__
17608#endif
17609
17610
17611_ACEOF
17612if ac_fn_c_try_cpp "$LINENO"
17613then :
17614
17615    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17616      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17617      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17618      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17619    if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
17620      tmp_exp=""
17621    fi
17622
17623fi
17624rm -f conftest.err conftest.i conftest.$ac_ext
17625  if test -z "$tmp_exp"; then
17626    curl_cv_have_def___IBMC__=no
17627
17628  else
17629    curl_cv_have_def___IBMC__=yes
17630    curl_cv_def___IBMC__=$tmp_exp
17631
17632  fi
17633      CPPFLAGS=$OLDCPPFLAGS
17634
17635  if test "$curl_cv_have_def___IBMC__" = "yes"; then
17636    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17637printf "%s\n" "yes" >&6; }
17638    compiler_id="IBM_C"
17639    flags_dbg_yes="-g"
17640    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
17641    flags_opt_all="$flags_opt_all -qnooptimize"
17642    flags_opt_all="$flags_opt_all -qoptimize=0"
17643    flags_opt_all="$flags_opt_all -qoptimize=1"
17644    flags_opt_all="$flags_opt_all -qoptimize=2"
17645    flags_opt_all="$flags_opt_all -qoptimize=3"
17646    flags_opt_all="$flags_opt_all -qoptimize=4"
17647    flags_opt_all="$flags_opt_all -qoptimize=5"
17648    flags_opt_yes="-O2"
17649    flags_opt_off="-qnooptimize"
17650    flags_prefer_cppflags="yes"
17651  else
17652    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17653printf "%s\n" "no" >&6; }
17654  fi
17655
17656
17657    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
17658printf %s "checking if compiler is Intel C... " >&6; }
17659
17660    OLDCPPFLAGS=$CPPFLAGS
17661  # CPPPFLAG comes from CURL_CPP_P
17662  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17663      if test -z "$SED"; then
17664    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17665  fi
17666  if test -z "$GREP"; then
17667    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17668  fi
17669
17670  tmp_exp=""
17671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672/* end confdefs.h.  */
17673
17674
17675#ifdef __INTEL_COMPILER
17676CURL_DEF_TOKEN __INTEL_COMPILER
17677#endif
17678
17679
17680_ACEOF
17681if ac_fn_c_try_cpp "$LINENO"
17682then :
17683
17684    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17685      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17686      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17687      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17688    if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
17689      tmp_exp=""
17690    fi
17691
17692fi
17693rm -f conftest.err conftest.i conftest.$ac_ext
17694  if test -z "$tmp_exp"; then
17695    curl_cv_have_def___INTEL_COMPILER=no
17696
17697  else
17698    curl_cv_have_def___INTEL_COMPILER=yes
17699    curl_cv_def___INTEL_COMPILER=$tmp_exp
17700
17701  fi
17702      CPPFLAGS=$OLDCPPFLAGS
17703
17704  if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
17705    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17706printf "%s\n" "yes" >&6; }
17707    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17708printf %s "checking compiler version... " >&6; }
17709    compiler_num="$curl_cv_def___INTEL_COMPILER"
17710    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Intel C '$compiler_num'" >&5
17711printf "%s\n" "Intel C '$compiler_num'" >&6; }
17712
17713    OLDCPPFLAGS=$CPPFLAGS
17714  # CPPPFLAG comes from CURL_CPP_P
17715  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17716      if test -z "$SED"; then
17717    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17718  fi
17719  if test -z "$GREP"; then
17720    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17721  fi
17722
17723  tmp_exp=""
17724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725/* end confdefs.h.  */
17726
17727
17728#ifdef __unix__
17729CURL_DEF_TOKEN __unix__
17730#endif
17731
17732
17733_ACEOF
17734if ac_fn_c_try_cpp "$LINENO"
17735then :
17736
17737    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17738      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17739      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17740      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17741    if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
17742      tmp_exp=""
17743    fi
17744
17745fi
17746rm -f conftest.err conftest.i conftest.$ac_ext
17747  if test -z "$tmp_exp"; then
17748    curl_cv_have_def___unix__=no
17749
17750  else
17751    curl_cv_have_def___unix__=yes
17752    curl_cv_def___unix__=$tmp_exp
17753
17754  fi
17755      CPPFLAGS=$OLDCPPFLAGS
17756
17757    if test "$curl_cv_have_def___unix__" = "yes"; then
17758      compiler_id="INTEL_UNIX_C"
17759      flags_dbg_yes="-g"
17760      flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
17761      flags_opt_yes="-O2"
17762      flags_opt_off="-O0"
17763    else
17764      compiler_id="INTEL_WINDOWS_C"
17765      flags_dbg_yes="/Zi /Oy-"
17766      flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
17767      flags_opt_yes="/O2"
17768      flags_opt_off="/Od"
17769    fi
17770  else
17771    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772printf "%s\n" "no" >&6; }
17773  fi
17774
17775
17776    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
17777printf %s "checking if compiler is clang... " >&6; }
17778
17779    OLDCPPFLAGS=$CPPFLAGS
17780  # CPPPFLAG comes from CURL_CPP_P
17781  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17782      if test -z "$SED"; then
17783    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17784  fi
17785  if test -z "$GREP"; then
17786    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17787  fi
17788
17789  tmp_exp=""
17790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17791/* end confdefs.h.  */
17792
17793
17794#ifdef __clang__
17795CURL_DEF_TOKEN __clang__
17796#endif
17797
17798
17799_ACEOF
17800if ac_fn_c_try_cpp "$LINENO"
17801then :
17802
17803    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17804      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17805      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17806      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17807    if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
17808      tmp_exp=""
17809    fi
17810
17811fi
17812rm -f conftest.err conftest.i conftest.$ac_ext
17813  if test -z "$tmp_exp"; then
17814    curl_cv_have_def___clang__=no
17815
17816  else
17817    curl_cv_have_def___clang__=yes
17818    curl_cv_def___clang__=$tmp_exp
17819
17820  fi
17821      CPPFLAGS=$OLDCPPFLAGS
17822
17823  if test "$curl_cv_have_def___clang__" = "yes"; then
17824    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17825printf "%s\n" "yes" >&6; }
17826    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
17827printf %s "checking if compiler is xlclang... " >&6; }
17828
17829    OLDCPPFLAGS=$CPPFLAGS
17830  # CPPPFLAG comes from CURL_CPP_P
17831  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17832      if test -z "$SED"; then
17833    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17834  fi
17835  if test -z "$GREP"; then
17836    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17837  fi
17838
17839  tmp_exp=""
17840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841/* end confdefs.h.  */
17842
17843
17844#ifdef __ibmxl__
17845CURL_DEF_TOKEN __ibmxl__
17846#endif
17847
17848
17849_ACEOF
17850if ac_fn_c_try_cpp "$LINENO"
17851then :
17852
17853    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17854      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17855      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17856      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17857    if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17858      tmp_exp=""
17859    fi
17860
17861fi
17862rm -f conftest.err conftest.i conftest.$ac_ext
17863  if test -z "$tmp_exp"; then
17864    curl_cv_have_def___ibmxl__=no
17865
17866  else
17867    curl_cv_have_def___ibmxl__=yes
17868    curl_cv_def___ibmxl__=$tmp_exp
17869
17870  fi
17871      CPPFLAGS=$OLDCPPFLAGS
17872
17873    if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17874            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17875printf "%s\n" "yes" >&6; }
17876      compiler_id="XLCLANG"
17877    else
17878      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17879printf "%s\n" "no" >&6; }
17880      compiler_id="CLANG"
17881    fi
17882    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17883printf %s "checking compiler version... " >&6; }
17884    fullclangver=`$CC -v 2>&1 | grep version`
17885    if echo $fullclangver | grep 'Apple' >/dev/null; then
17886      appleclang=1
17887    else
17888      appleclang=0
17889    fi
17890    clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17891    if test -z "$clangver"; then
17892      clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17893      oldapple=0
17894    else
17895      oldapple=1
17896    fi
17897    clangvhi=`echo $clangver | cut -d . -f1`
17898    clangvlo=`echo $clangver | cut -d . -f2`
17899    compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17900    if test "$appleclang" = '1' && test "$oldapple" = '0'; then
17901            if   test "$compiler_num" -ge '1300'; then compiler_num='1200'
17902      elif test "$compiler_num" -ge '1205'; then compiler_num='1101'
17903      elif test "$compiler_num" -ge '1204'; then compiler_num='1000'
17904      elif test "$compiler_num" -ge '1107'; then compiler_num='900'
17905      elif test "$compiler_num" -ge '1103'; then compiler_num='800'
17906      elif test "$compiler_num" -ge '1003'; then compiler_num='700'
17907      elif test "$compiler_num" -ge '1001'; then compiler_num='600'
17908      elif test "$compiler_num" -ge  '904'; then compiler_num='500'
17909      elif test "$compiler_num" -ge  '902'; then compiler_num='400'
17910      elif test "$compiler_num" -ge  '803'; then compiler_num='309'
17911      elif test "$compiler_num" -ge  '703'; then compiler_num='308'
17912      else                                       compiler_num='307'
17913      fi
17914    fi
17915    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&5
17916printf "%s\n" "clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&6; }
17917    flags_dbg_yes="-g"
17918    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17919    flags_opt_yes="-O2"
17920    flags_opt_off="-O0"
17921  else
17922    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17923printf "%s\n" "no" >&6; }
17924  fi
17925
17926
17927      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17928printf %s "checking if compiler is GNU C... " >&6; }
17929
17930    OLDCPPFLAGS=$CPPFLAGS
17931  # CPPPFLAG comes from CURL_CPP_P
17932  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17933      if test -z "$SED"; then
17934    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17935  fi
17936  if test -z "$GREP"; then
17937    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17938  fi
17939
17940  tmp_exp=""
17941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942/* end confdefs.h.  */
17943
17944
17945#ifdef __GNUC__
17946CURL_DEF_TOKEN __GNUC__
17947#endif
17948
17949
17950_ACEOF
17951if ac_fn_c_try_cpp "$LINENO"
17952then :
17953
17954    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17955      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17956      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17957      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17958    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17959      tmp_exp=""
17960    fi
17961
17962fi
17963rm -f conftest.err conftest.i conftest.$ac_ext
17964  if test -z "$tmp_exp"; then
17965    curl_cv_have_def___GNUC__=no
17966
17967  else
17968    curl_cv_have_def___GNUC__=yes
17969    curl_cv_def___GNUC__=$tmp_exp
17970
17971  fi
17972      CPPFLAGS=$OLDCPPFLAGS
17973
17974  if test "$curl_cv_have_def___GNUC__" = "yes" &&
17975    test "$compiler_id" = "unknown"; then
17976    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17977printf "%s\n" "yes" >&6; }
17978    compiler_id="GNU_C"
17979    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17980printf %s "checking compiler version... " >&6; }
17981    # strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
17982    gccver=`$CC -dumpversion | sed -E 's/-.+$//'`
17983    gccvhi=`echo $gccver | cut -d . -f1`
17984    if echo $gccver | grep -F '.' >/dev/null; then
17985      gccvlo=`echo $gccver | cut -d . -f2`
17986    else
17987      gccvlo="0"
17988    fi
17989    compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17990    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc '$compiler_num' (raw: '$gccver')" >&5
17991printf "%s\n" "gcc '$compiler_num' (raw: '$gccver')" >&6; }
17992    flags_dbg_yes="-g"
17993    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17994    flags_opt_yes="-O2"
17995    flags_opt_off="-O0"
17996  else
17997    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17998printf "%s\n" "no" >&6; }
17999  fi
18000
18001  case $host in
18002    mips-sgi-irix*)
18003
18004    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
18005printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
18006
18007    OLDCPPFLAGS=$CPPFLAGS
18008  # CPPPFLAG comes from CURL_CPP_P
18009  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18010      if test -z "$SED"; then
18011    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18012  fi
18013  if test -z "$GREP"; then
18014    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18015  fi
18016
18017  tmp_exp=""
18018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019/* end confdefs.h.  */
18020
18021
18022#ifdef __GNUC__
18023CURL_DEF_TOKEN __GNUC__
18024#endif
18025
18026
18027_ACEOF
18028if ac_fn_c_try_cpp "$LINENO"
18029then :
18030
18031    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18032      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18033      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18034      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18035    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18036      tmp_exp=""
18037    fi
18038
18039fi
18040rm -f conftest.err conftest.i conftest.$ac_ext
18041  if test -z "$tmp_exp"; then
18042    curl_cv_have_def___GNUC__=no
18043
18044  else
18045    curl_cv_have_def___GNUC__=yes
18046    curl_cv_def___GNUC__=$tmp_exp
18047
18048  fi
18049      CPPFLAGS=$OLDCPPFLAGS
18050
18051
18052    OLDCPPFLAGS=$CPPFLAGS
18053  # CPPPFLAG comes from CURL_CPP_P
18054  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18055      if test -z "$SED"; then
18056    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18057  fi
18058  if test -z "$GREP"; then
18059    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18060  fi
18061
18062  tmp_exp=""
18063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064/* end confdefs.h.  */
18065
18066
18067#ifdef _COMPILER_VERSION
18068CURL_DEF_TOKEN _COMPILER_VERSION
18069#endif
18070
18071
18072_ACEOF
18073if ac_fn_c_try_cpp "$LINENO"
18074then :
18075
18076    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18077      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18078      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18079      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18080    if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
18081      tmp_exp=""
18082    fi
18083
18084fi
18085rm -f conftest.err conftest.i conftest.$ac_ext
18086  if test -z "$tmp_exp"; then
18087    curl_cv_have_def__COMPILER_VERSION=no
18088
18089  else
18090    curl_cv_have_def__COMPILER_VERSION=yes
18091    curl_cv_def__COMPILER_VERSION=$tmp_exp
18092
18093  fi
18094      CPPFLAGS=$OLDCPPFLAGS
18095
18096
18097    OLDCPPFLAGS=$CPPFLAGS
18098  # CPPPFLAG comes from CURL_CPP_P
18099  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18100      if test -z "$SED"; then
18101    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18102  fi
18103  if test -z "$GREP"; then
18104    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18105  fi
18106
18107  tmp_exp=""
18108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109/* end confdefs.h.  */
18110
18111
18112#ifdef _SGI_COMPILER_VERSION
18113CURL_DEF_TOKEN _SGI_COMPILER_VERSION
18114#endif
18115
18116
18117_ACEOF
18118if ac_fn_c_try_cpp "$LINENO"
18119then :
18120
18121    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18122      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18123      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18124      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18125    if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
18126      tmp_exp=""
18127    fi
18128
18129fi
18130rm -f conftest.err conftest.i conftest.$ac_ext
18131  if test -z "$tmp_exp"; then
18132    curl_cv_have_def__SGI_COMPILER_VERSION=no
18133
18134  else
18135    curl_cv_have_def__SGI_COMPILER_VERSION=yes
18136    curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
18137
18138  fi
18139      CPPFLAGS=$OLDCPPFLAGS
18140
18141  if test "$curl_cv_have_def___GNUC__" = "no" &&
18142    (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
18143     test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
18144    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18145printf "%s\n" "yes" >&6; }
18146    compiler_id="SGI_MIPSPRO_C"
18147    flags_dbg_yes="-g"
18148    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18149    flags_opt_yes="-O2"
18150    flags_opt_off="-O0"
18151  else
18152    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18153printf "%s\n" "no" >&6; }
18154  fi
18155
18156
18157    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
18158printf %s "checking if compiler is SGI MIPS C... " >&6; }
18159
18160    OLDCPPFLAGS=$CPPFLAGS
18161  # CPPPFLAG comes from CURL_CPP_P
18162  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18163      if test -z "$SED"; then
18164    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18165  fi
18166  if test -z "$GREP"; then
18167    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18168  fi
18169
18170  tmp_exp=""
18171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172/* end confdefs.h.  */
18173
18174
18175#ifdef __GNUC__
18176CURL_DEF_TOKEN __GNUC__
18177#endif
18178
18179
18180_ACEOF
18181if ac_fn_c_try_cpp "$LINENO"
18182then :
18183
18184    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18185      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18186      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18187      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18188    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18189      tmp_exp=""
18190    fi
18191
18192fi
18193rm -f conftest.err conftest.i conftest.$ac_ext
18194  if test -z "$tmp_exp"; then
18195    curl_cv_have_def___GNUC__=no
18196
18197  else
18198    curl_cv_have_def___GNUC__=yes
18199    curl_cv_def___GNUC__=$tmp_exp
18200
18201  fi
18202      CPPFLAGS=$OLDCPPFLAGS
18203
18204
18205    OLDCPPFLAGS=$CPPFLAGS
18206  # CPPPFLAG comes from CURL_CPP_P
18207  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18208      if test -z "$SED"; then
18209    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18210  fi
18211  if test -z "$GREP"; then
18212    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18213  fi
18214
18215  tmp_exp=""
18216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217/* end confdefs.h.  */
18218
18219
18220#ifdef __sgi
18221CURL_DEF_TOKEN __sgi
18222#endif
18223
18224
18225_ACEOF
18226if ac_fn_c_try_cpp "$LINENO"
18227then :
18228
18229    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18230      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18231      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18232      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18233    if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
18234      tmp_exp=""
18235    fi
18236
18237fi
18238rm -f conftest.err conftest.i conftest.$ac_ext
18239  if test -z "$tmp_exp"; then
18240    curl_cv_have_def___sgi=no
18241
18242  else
18243    curl_cv_have_def___sgi=yes
18244    curl_cv_def___sgi=$tmp_exp
18245
18246  fi
18247      CPPFLAGS=$OLDCPPFLAGS
18248
18249  if test "$curl_cv_have_def___GNUC__" = "no" &&
18250    test "$curl_cv_have_def___sgi" = "yes" &&
18251    test "$compiler_id" = "unknown"; then
18252    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18253printf "%s\n" "yes" >&6; }
18254    compiler_id="SGI_MIPS_C"
18255    flags_dbg_yes="-g"
18256    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18257    flags_opt_yes="-O2"
18258    flags_opt_off="-O0"
18259  else
18260    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261printf "%s\n" "no" >&6; }
18262  fi
18263
18264    ;;
18265  esac
18266
18267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
18268printf %s "checking if compiler is SunPro C... " >&6; }
18269
18270    OLDCPPFLAGS=$CPPFLAGS
18271  # CPPPFLAG comes from CURL_CPP_P
18272  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18273      if test -z "$SED"; then
18274    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18275  fi
18276  if test -z "$GREP"; then
18277    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18278  fi
18279
18280  tmp_exp=""
18281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18282/* end confdefs.h.  */
18283
18284
18285#ifdef __SUNPRO_C
18286CURL_DEF_TOKEN __SUNPRO_C
18287#endif
18288
18289
18290_ACEOF
18291if ac_fn_c_try_cpp "$LINENO"
18292then :
18293
18294    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18295      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18296      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18297      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18298    if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
18299      tmp_exp=""
18300    fi
18301
18302fi
18303rm -f conftest.err conftest.i conftest.$ac_ext
18304  if test -z "$tmp_exp"; then
18305    curl_cv_have_def___SUNPRO_C=no
18306
18307  else
18308    curl_cv_have_def___SUNPRO_C=yes
18309    curl_cv_def___SUNPRO_C=$tmp_exp
18310
18311  fi
18312      CPPFLAGS=$OLDCPPFLAGS
18313
18314  if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
18315    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316printf "%s\n" "yes" >&6; }
18317    compiler_id="SUNPRO_C"
18318    flags_dbg_yes="-g"
18319    flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
18320    flags_opt_yes="-xO2"
18321    flags_opt_off=""
18322  else
18323    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18324printf "%s\n" "no" >&6; }
18325  fi
18326
18327
18328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
18329printf %s "checking if compiler is Tiny C... " >&6; }
18330
18331    OLDCPPFLAGS=$CPPFLAGS
18332  # CPPPFLAG comes from CURL_CPP_P
18333  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18334      if test -z "$SED"; then
18335    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18336  fi
18337  if test -z "$GREP"; then
18338    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18339  fi
18340
18341  tmp_exp=""
18342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343/* end confdefs.h.  */
18344
18345
18346#ifdef __TINYC__
18347CURL_DEF_TOKEN __TINYC__
18348#endif
18349
18350
18351_ACEOF
18352if ac_fn_c_try_cpp "$LINENO"
18353then :
18354
18355    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18356      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18357      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18358      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18359    if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
18360      tmp_exp=""
18361    fi
18362
18363fi
18364rm -f conftest.err conftest.i conftest.$ac_ext
18365  if test -z "$tmp_exp"; then
18366    curl_cv_have_def___TINYC__=no
18367
18368  else
18369    curl_cv_have_def___TINYC__=yes
18370    curl_cv_def___TINYC__=$tmp_exp
18371
18372  fi
18373      CPPFLAGS=$OLDCPPFLAGS
18374
18375  if test "$curl_cv_have_def___TINYC__" = "yes"; then
18376    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18377printf "%s\n" "yes" >&6; }
18378    compiler_id="TINY_C"
18379    flags_dbg_yes="-g"
18380    flags_opt_all=""
18381    flags_opt_yes=""
18382    flags_opt_off=""
18383  else
18384    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18385printf "%s\n" "no" >&6; }
18386  fi
18387
18388  #
18389  if test "$compiler_id" = "unknown"; then
18390  cat <<_EOF 1>&2
18391***
18392*** Warning: This configure script does not have information about the
18393*** compiler you are using, relative to the flags required to enable or
18394*** disable generation of debug info, optimization options or warnings.
18395***
18396*** Whatever settings are present in CFLAGS will be used for this run.
18397***
18398*** If you wish to help the curl project to better support your compiler
18399*** you can report this and the required info on the libcurl development
18400*** mailing list: https://lists.haxx.selistinfo/curl-library/
18401***
18402_EOF
18403  fi
18404
18405
18406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18407printf %s "checking whether build target is a native Windows one... " >&6; }
18408if test ${curl_cv_native_windows+y}
18409then :
18410  printf %s "(cached) " >&6
18411else $as_nop
18412
18413    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414/* end confdefs.h.  */
18415
18416
18417
18418int main (void)
18419{
18420
18421#ifdef _WIN32
18422        int dummy=1;
18423#else
18424        Not a native Windows build target.
18425#endif
18426
18427 ;
18428 return 0;
18429}
18430
18431_ACEOF
18432if ac_fn_c_try_compile "$LINENO"
18433then :
18434
18435      curl_cv_native_windows="yes"
18436
18437else $as_nop
18438
18439      curl_cv_native_windows="no"
18440
18441fi
18442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18443
18444fi
18445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18446printf "%s\n" "$curl_cv_native_windows" >&6; }
18447   if test "x$curl_cv_native_windows" = xyes; then
18448  DOING_NATIVE_WINDOWS_TRUE=
18449  DOING_NATIVE_WINDOWS_FALSE='#'
18450else
18451  DOING_NATIVE_WINDOWS_TRUE='#'
18452  DOING_NATIVE_WINDOWS_FALSE=
18453fi
18454
18455
18456
18457squeeze() {
18458  _sqz_result=""
18459  eval _sqz_input=\$$1
18460  for _sqz_token in $_sqz_input; do
18461    if test -z "$_sqz_result"; then
18462      _sqz_result="$_sqz_token"
18463    else
18464      _sqz_result="$_sqz_result $_sqz_token"
18465    fi
18466  done
18467  eval $1=\$_sqz_result
18468  return 0
18469}
18470
18471
18472      #
18473  if test "$compiler_id" != "unknown"; then
18474    #
18475    tmp_save_CPPFLAGS="$CPPFLAGS"
18476    tmp_save_CFLAGS="$CFLAGS"
18477    tmp_CPPFLAGS=""
18478    tmp_CFLAGS=""
18479    #
18480    case "$compiler_id" in
18481        #
18482      CLANG)
18483        #
18484                                tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
18485        ;;
18486        #
18487      DEC_C)
18488        #
18489                tmp_CFLAGS="$tmp_CFLAGS -std1"
18490                tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
18491                tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
18492                tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
18493        ;;
18494        #
18495      GNU_C)
18496        #
18497                        if test "$compiler_num" -ge "295"; then
18498          tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
18499        fi
18500        ;;
18501        #
18502      HP_UX_C)
18503        #
18504                tmp_CFLAGS="$tmp_CFLAGS -z"
18505                                tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
18506        ;;
18507        #
18508      IBM_C)
18509        #
18510                tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
18511                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
18512                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
18513        ;;
18514        #
18515      INTEL_UNIX_C)
18516        #
18517                        tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
18518                                                tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
18519                                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
18520        ;;
18521        #
18522      INTEL_WINDOWS_C)
18523        #
18524                tmp_CFLAGS="$tmp_CFLAGS"
18525        ;;
18526        #
18527      SGI_MIPS_C)
18528        #
18529                tmp_CFLAGS="$tmp_CFLAGS"
18530        ;;
18531        #
18532      SGI_MIPSPRO_C)
18533        #
18534                tmp_CFLAGS="$tmp_CFLAGS"
18535        ;;
18536        #
18537      SUNPRO_C)
18538        #
18539                tmp_CFLAGS="$tmp_CFLAGS"
18540        ;;
18541        #
18542      TINY_C)
18543        #
18544                tmp_CFLAGS="$tmp_CFLAGS"
18545        ;;
18546        #
18547    esac
18548    #
18549    squeeze tmp_CPPFLAGS
18550    squeeze tmp_CFLAGS
18551    #
18552    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18553      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
18554printf %s "checking if compiler accepts some basic options... " >&6; }
18555      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18556      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18557      squeeze CPPFLAGS
18558      squeeze CFLAGS
18559
18560    tmp_compiler_works="unknown"
18561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562/* end confdefs.h.  */
18563
18564
18565
18566int main (void)
18567{
18568
18569      int i = 1;
18570      return i;
18571
18572 ;
18573 return 0;
18574}
18575
18576_ACEOF
18577if ac_fn_c_try_compile "$LINENO"
18578then :
18579
18580    tmp_compiler_works="yes"
18581
18582else $as_nop
18583
18584    tmp_compiler_works="no"
18585    echo " " >&6
18586    sed 's/^/cc-fail: /' conftest.err >&6
18587    echo " " >&6
18588
18589fi
18590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18591    if test "$tmp_compiler_works" = "yes"; then
18592    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593/* end confdefs.h.  */
18594
18595
18596
18597int main (void)
18598{
18599
18600        int i = 1;
18601        return i;
18602
18603 ;
18604 return 0;
18605}
18606
18607_ACEOF
18608if ac_fn_c_try_link "$LINENO"
18609then :
18610
18611      tmp_compiler_works="yes"
18612
18613else $as_nop
18614
18615      tmp_compiler_works="no"
18616      echo " " >&6
18617      sed 's/^/link-fail: /' conftest.err >&6
18618      echo " " >&6
18619
18620fi
18621rm -f core conftest.err conftest.$ac_objext conftest.beam \
18622    conftest$ac_exeext conftest.$ac_ext
18623  fi
18624    if test "x$cross_compiling" != "xyes" &&
18625    test "$tmp_compiler_works" = "yes"; then
18626
18627   case $host_os in
18628     darwin*)
18629      if test "$cross_compiling" = yes
18630then :
18631  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18632printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18633as_fn_error $? "cannot run test program while cross compiling
18634See \`config.log' for more details" "$LINENO" 5; }
18635else $as_nop
18636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18637/* end confdefs.h.  */
18638
18639
18640#       ifdef __STDC__
18641#         include <stdlib.h>
18642#       endif
18643
18644int main (void)
18645{
18646
18647        int i = 0;
18648        exit(i);
18649
18650 ;
18651 return 0;
18652}
18653
18654_ACEOF
18655if ac_fn_c_try_run "$LINENO"
18656then :
18657  tmp_compiler_works="yes"
18658
18659else $as_nop
18660  tmp_compiler_works="no"
18661      echo " " >&6
18662      echo "run-fail: test program exited with status $ac_status" >&6
18663      echo " " >&6
18664
18665fi
18666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18667  conftest.$ac_objext conftest.beam conftest.$ac_ext
18668fi
18669
18670     ;;
18671     *)
18672      oldcc=$CC
18673      old=$LD_LIBRARY_PATH
18674      CC="sh ./run-compiler"
18675      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18676      export LD_LIBRARY_PATH
18677      if test "$cross_compiling" = yes
18678then :
18679  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18680printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18681as_fn_error $? "cannot run test program while cross compiling
18682See \`config.log' for more details" "$LINENO" 5; }
18683else $as_nop
18684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685/* end confdefs.h.  */
18686
18687
18688#       ifdef __STDC__
18689#         include <stdlib.h>
18690#       endif
18691
18692int main (void)
18693{
18694
18695        int i = 0;
18696        exit(i);
18697
18698 ;
18699 return 0;
18700}
18701
18702_ACEOF
18703if ac_fn_c_try_run "$LINENO"
18704then :
18705  tmp_compiler_works="yes"
18706
18707else $as_nop
18708  tmp_compiler_works="no"
18709      echo " " >&6
18710      echo "run-fail: test program exited with status $ac_status" >&6
18711      echo " " >&6
18712
18713fi
18714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18715  conftest.$ac_objext conftest.beam conftest.$ac_ext
18716fi
18717
18718      LD_LIBRARY_PATH=$old # restore
18719      CC=$oldcc
18720     ;;
18721   esac
18722
18723  fi
18724    if test "$tmp_compiler_works" = "yes"; then
18725
18726        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18727printf "%s\n" "yes" >&6; }
18728        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18729printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18730
18731  else
18732
18733        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734printf "%s\n" "no" >&6; }
18735        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18736printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18737                CPPFLAGS="$tmp_save_CPPFLAGS"
18738        CFLAGS="$tmp_save_CFLAGS"
18739
18740  fi
18741
18742    fi
18743    #
18744  fi
18745
18746
18747        #
18748  if test "$compiler_id" != "unknown"; then
18749    #
18750    tmp_save_CFLAGS="$CFLAGS"
18751    tmp_save_CPPFLAGS="$CPPFLAGS"
18752    #
18753    tmp_options=""
18754    tmp_CFLAGS="$CFLAGS"
18755    tmp_CPPFLAGS="$CPPFLAGS"
18756    #
18757    if test "$want_debug" = "yes"; then
18758      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18759printf %s "checking if compiler accepts debug enabling options... " >&6; }
18760      tmp_options="$flags_dbg_yes"
18761    fi
18762    #
18763    if test "$flags_prefer_cppflags" = "yes"; then
18764      CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18765      CFLAGS="$tmp_CFLAGS"
18766    else
18767      CPPFLAGS="$tmp_CPPFLAGS"
18768      CFLAGS="$tmp_CFLAGS $tmp_options"
18769    fi
18770    squeeze CPPFLAGS
18771    squeeze CFLAGS
18772  fi
18773
18774
18775        #
18776  if test "$compiler_id" != "unknown"; then
18777    #
18778    tmp_save_CFLAGS="$CFLAGS"
18779    tmp_save_CPPFLAGS="$CPPFLAGS"
18780    #
18781    tmp_options=""
18782    tmp_CFLAGS="$CFLAGS"
18783    tmp_CPPFLAGS="$CPPFLAGS"
18784    honor_optimize_option="yes"
18785    #
18786                        #
18787    if test "$want_optimize" = "assume_no" ||
18788       test "$want_optimize" = "assume_yes"; then
18789      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18790printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18791
18792
18793  ac_var_match_word="no"
18794  for word1 in $tmp_CFLAGS; do
18795    for word2 in $flags_opt_all; do
18796      if test "$word1" = "$word2"; then
18797        ac_var_match_word="yes"
18798      fi
18799    done
18800  done
18801
18802  if test "$ac_var_match_word" = "yes"; then
18803
18804        honor_optimize_option="no"
18805
18806
18807  fi
18808
18809
18810
18811  ac_var_match_word="no"
18812  for word1 in $tmp_CPPFLAGS; do
18813    for word2 in $flags_opt_all; do
18814      if test "$word1" = "$word2"; then
18815        ac_var_match_word="yes"
18816      fi
18817    done
18818  done
18819
18820  if test "$ac_var_match_word" = "yes"; then
18821
18822        honor_optimize_option="no"
18823
18824
18825  fi
18826
18827      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18828printf "%s\n" "$honor_optimize_option" >&6; }
18829      if test "$honor_optimize_option" = "yes"; then
18830        if test "$want_optimize" = "assume_yes"; then
18831          want_optimize="yes"
18832        fi
18833        if test "$want_optimize" = "assume_no"; then
18834          want_optimize="no"
18835        fi
18836      fi
18837    fi
18838    #
18839    if test "$honor_optimize_option" = "yes"; then
18840
18841    ac_var_stripped=""
18842  for word1 in $tmp_CFLAGS; do
18843    ac_var_strip_word="no"
18844    for word2 in $flags_opt_all; do
18845      if test "$word1" = "$word2"; then
18846        ac_var_strip_word="yes"
18847      fi
18848    done
18849    if test "$ac_var_strip_word" = "no"; then
18850      ac_var_stripped="$ac_var_stripped $word1"
18851    fi
18852  done
18853    tmp_CFLAGS="$ac_var_stripped"
18854  squeeze tmp_CFLAGS
18855
18856
18857    ac_var_stripped=""
18858  for word1 in $tmp_CPPFLAGS; do
18859    ac_var_strip_word="no"
18860    for word2 in $flags_opt_all; do
18861      if test "$word1" = "$word2"; then
18862        ac_var_strip_word="yes"
18863      fi
18864    done
18865    if test "$ac_var_strip_word" = "no"; then
18866      ac_var_stripped="$ac_var_stripped $word1"
18867    fi
18868  done
18869    tmp_CPPFLAGS="$ac_var_stripped"
18870  squeeze tmp_CPPFLAGS
18871
18872      if test "$want_optimize" = "yes"; then
18873        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18874printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18875        tmp_options="$flags_opt_yes"
18876      fi
18877      if test "$want_optimize" = "no"; then
18878        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18879printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18880        tmp_options="$flags_opt_off"
18881      fi
18882      if test "$flags_prefer_cppflags" = "yes"; then
18883        CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18884        CFLAGS="$tmp_CFLAGS"
18885      else
18886        CPPFLAGS="$tmp_CPPFLAGS"
18887        CFLAGS="$tmp_CFLAGS $tmp_options"
18888      fi
18889      squeeze CPPFLAGS
18890      squeeze CFLAGS
18891
18892    tmp_compiler_works="unknown"
18893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894/* end confdefs.h.  */
18895
18896
18897
18898int main (void)
18899{
18900
18901      int i = 1;
18902      return i;
18903
18904 ;
18905 return 0;
18906}
18907
18908_ACEOF
18909if ac_fn_c_try_compile "$LINENO"
18910then :
18911
18912    tmp_compiler_works="yes"
18913
18914else $as_nop
18915
18916    tmp_compiler_works="no"
18917    echo " " >&6
18918    sed 's/^/cc-fail: /' conftest.err >&6
18919    echo " " >&6
18920
18921fi
18922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18923    if test "$tmp_compiler_works" = "yes"; then
18924    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925/* end confdefs.h.  */
18926
18927
18928
18929int main (void)
18930{
18931
18932        int i = 1;
18933        return i;
18934
18935 ;
18936 return 0;
18937}
18938
18939_ACEOF
18940if ac_fn_c_try_link "$LINENO"
18941then :
18942
18943      tmp_compiler_works="yes"
18944
18945else $as_nop
18946
18947      tmp_compiler_works="no"
18948      echo " " >&6
18949      sed 's/^/link-fail: /' conftest.err >&6
18950      echo " " >&6
18951
18952fi
18953rm -f core conftest.err conftest.$ac_objext conftest.beam \
18954    conftest$ac_exeext conftest.$ac_ext
18955  fi
18956    if test "x$cross_compiling" != "xyes" &&
18957    test "$tmp_compiler_works" = "yes"; then
18958
18959   case $host_os in
18960     darwin*)
18961      if test "$cross_compiling" = yes
18962then :
18963  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18964printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18965as_fn_error $? "cannot run test program while cross compiling
18966See \`config.log' for more details" "$LINENO" 5; }
18967else $as_nop
18968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969/* end confdefs.h.  */
18970
18971
18972#       ifdef __STDC__
18973#         include <stdlib.h>
18974#       endif
18975
18976int main (void)
18977{
18978
18979        int i = 0;
18980        exit(i);
18981
18982 ;
18983 return 0;
18984}
18985
18986_ACEOF
18987if ac_fn_c_try_run "$LINENO"
18988then :
18989  tmp_compiler_works="yes"
18990
18991else $as_nop
18992  tmp_compiler_works="no"
18993      echo " " >&6
18994      echo "run-fail: test program exited with status $ac_status" >&6
18995      echo " " >&6
18996
18997fi
18998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18999  conftest.$ac_objext conftest.beam conftest.$ac_ext
19000fi
19001
19002     ;;
19003     *)
19004      oldcc=$CC
19005      old=$LD_LIBRARY_PATH
19006      CC="sh ./run-compiler"
19007      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
19008      export LD_LIBRARY_PATH
19009      if test "$cross_compiling" = yes
19010then :
19011  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19012printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19013as_fn_error $? "cannot run test program while cross compiling
19014See \`config.log' for more details" "$LINENO" 5; }
19015else $as_nop
19016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017/* end confdefs.h.  */
19018
19019
19020#       ifdef __STDC__
19021#         include <stdlib.h>
19022#       endif
19023
19024int main (void)
19025{
19026
19027        int i = 0;
19028        exit(i);
19029
19030 ;
19031 return 0;
19032}
19033
19034_ACEOF
19035if ac_fn_c_try_run "$LINENO"
19036then :
19037  tmp_compiler_works="yes"
19038
19039else $as_nop
19040  tmp_compiler_works="no"
19041      echo " " >&6
19042      echo "run-fail: test program exited with status $ac_status" >&6
19043      echo " " >&6
19044
19045fi
19046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19047  conftest.$ac_objext conftest.beam conftest.$ac_ext
19048fi
19049
19050      LD_LIBRARY_PATH=$old # restore
19051      CC=$oldcc
19052     ;;
19053   esac
19054
19055  fi
19056    if test "$tmp_compiler_works" = "yes"; then
19057
19058        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19059printf "%s\n" "yes" >&6; }
19060        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
19061printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
19062
19063  else
19064
19065        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066printf "%s\n" "no" >&6; }
19067        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
19068printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
19069                CPPFLAGS="$tmp_save_CPPFLAGS"
19070        CFLAGS="$tmp_save_CFLAGS"
19071
19072  fi
19073
19074    fi
19075    #
19076  fi
19077
19078
19079        #
19080  if test "$compiler_id" != "unknown"; then
19081    #
19082    tmp_save_CPPFLAGS="$CPPFLAGS"
19083    tmp_save_CFLAGS="$CFLAGS"
19084    tmp_CPPFLAGS=""
19085    tmp_CFLAGS=""
19086    #
19087    case "$compiler_id" in
19088        #
19089      CLANG)
19090        #
19091        if test "$want_warnings" = "yes"; then
19092          tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19093
19094    ac_var_added_warnings=""
19095  for warning in all extra; do
19096
19097  ac_var_match_word="no"
19098  for word1 in $CFLAGS; do
19099    for word2 in -Wno-$warning -W$warning; do
19100      if test "$word1" = "$word2"; then
19101        ac_var_match_word="yes"
19102      fi
19103    done
19104  done
19105
19106    if test "$ac_var_match_word" = "no"; then
19107      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19108    fi
19109  done
19110    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19111  squeeze tmp_CFLAGS
19112
19113
19114    ac_var_added_warnings=""
19115  for warning in pointer-arith write-strings; do
19116
19117  ac_var_match_word="no"
19118  for word1 in $CFLAGS; do
19119    for word2 in -Wno-$warning -W$warning; do
19120      if test "$word1" = "$word2"; then
19121        ac_var_match_word="yes"
19122      fi
19123    done
19124  done
19125
19126    if test "$ac_var_match_word" = "no"; then
19127      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19128    fi
19129  done
19130    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19131  squeeze tmp_CFLAGS
19132
19133
19134    ac_var_added_warnings=""
19135  for warning in shadow; do
19136
19137  ac_var_match_word="no"
19138  for word1 in $CFLAGS; do
19139    for word2 in -Wno-$warning -W$warning; do
19140      if test "$word1" = "$word2"; then
19141        ac_var_match_word="yes"
19142      fi
19143    done
19144  done
19145
19146    if test "$ac_var_match_word" = "no"; then
19147      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19148    fi
19149  done
19150    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19151  squeeze tmp_CFLAGS
19152
19153
19154    ac_var_added_warnings=""
19155  for warning in inline nested-externs; do
19156
19157  ac_var_match_word="no"
19158  for word1 in $CFLAGS; do
19159    for word2 in -Wno-$warning -W$warning; do
19160      if test "$word1" = "$word2"; then
19161        ac_var_match_word="yes"
19162      fi
19163    done
19164  done
19165
19166    if test "$ac_var_match_word" = "no"; then
19167      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19168    fi
19169  done
19170    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19171  squeeze tmp_CFLAGS
19172
19173
19174    ac_var_added_warnings=""
19175  for warning in missing-declarations; do
19176
19177  ac_var_match_word="no"
19178  for word1 in $CFLAGS; do
19179    for word2 in -Wno-$warning -W$warning; do
19180      if test "$word1" = "$word2"; then
19181        ac_var_match_word="yes"
19182      fi
19183    done
19184  done
19185
19186    if test "$ac_var_match_word" = "no"; then
19187      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19188    fi
19189  done
19190    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19191  squeeze tmp_CFLAGS
19192
19193
19194    ac_var_added_warnings=""
19195  for warning in missing-prototypes; do
19196
19197  ac_var_match_word="no"
19198  for word1 in $CFLAGS; do
19199    for word2 in -Wno-$warning -W$warning; do
19200      if test "$word1" = "$word2"; then
19201        ac_var_match_word="yes"
19202      fi
19203    done
19204  done
19205
19206    if test "$ac_var_match_word" = "no"; then
19207      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19208    fi
19209  done
19210    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19211  squeeze tmp_CFLAGS
19212
19213          tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19214
19215    ac_var_added_warnings=""
19216  for warning in float-equal; do
19217
19218  ac_var_match_word="no"
19219  for word1 in $CFLAGS; do
19220    for word2 in -Wno-$warning -W$warning; do
19221      if test "$word1" = "$word2"; then
19222        ac_var_match_word="yes"
19223      fi
19224    done
19225  done
19226
19227    if test "$ac_var_match_word" = "no"; then
19228      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19229    fi
19230  done
19231    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19232  squeeze tmp_CFLAGS
19233
19234
19235    ac_var_added_warnings=""
19236  for warning in sign-compare; do
19237
19238  ac_var_match_word="no"
19239  for word1 in $CFLAGS; do
19240    for word2 in -Wno-$warning -W$warning; do
19241      if test "$word1" = "$word2"; then
19242        ac_var_match_word="yes"
19243      fi
19244    done
19245  done
19246
19247    if test "$ac_var_match_word" = "no"; then
19248      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19249    fi
19250  done
19251    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19252  squeeze tmp_CFLAGS
19253
19254          tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
19255
19256    ac_var_added_warnings=""
19257  for warning in undef; do
19258
19259  ac_var_match_word="no"
19260  for word1 in $CFLAGS; do
19261    for word2 in -Wno-$warning -W$warning; do
19262      if test "$word1" = "$word2"; then
19263        ac_var_match_word="yes"
19264      fi
19265    done
19266  done
19267
19268    if test "$ac_var_match_word" = "no"; then
19269      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19270    fi
19271  done
19272    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19273  squeeze tmp_CFLAGS
19274
19275          tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19276
19277    ac_var_added_warnings=""
19278  for warning in endif-labels strict-prototypes; do
19279
19280  ac_var_match_word="no"
19281  for word1 in $CFLAGS; do
19282    for word2 in -Wno-$warning -W$warning; do
19283      if test "$word1" = "$word2"; then
19284        ac_var_match_word="yes"
19285      fi
19286    done
19287  done
19288
19289    if test "$ac_var_match_word" = "no"; then
19290      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19291    fi
19292  done
19293    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19294  squeeze tmp_CFLAGS
19295
19296
19297    ac_var_added_warnings=""
19298  for warning in declaration-after-statement; do
19299
19300  ac_var_match_word="no"
19301  for word1 in $CFLAGS; do
19302    for word2 in -Wno-$warning -W$warning; do
19303      if test "$word1" = "$word2"; then
19304        ac_var_match_word="yes"
19305      fi
19306    done
19307  done
19308
19309    if test "$ac_var_match_word" = "no"; then
19310      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19311    fi
19312  done
19313    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19314  squeeze tmp_CFLAGS
19315
19316
19317    ac_var_added_warnings=""
19318  for warning in cast-align; do
19319
19320  ac_var_match_word="no"
19321  for word1 in $CFLAGS; do
19322    for word2 in -Wno-$warning -W$warning; do
19323      if test "$word1" = "$word2"; then
19324        ac_var_match_word="yes"
19325      fi
19326    done
19327  done
19328
19329    if test "$ac_var_match_word" = "no"; then
19330      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19331    fi
19332  done
19333    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19334  squeeze tmp_CFLAGS
19335
19336          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19337
19338    ac_var_added_warnings=""
19339  for warning in shorten-64-to-32; do
19340
19341  ac_var_match_word="no"
19342  for word1 in $CFLAGS; do
19343    for word2 in -Wno-$warning -W$warning; do
19344      if test "$word1" = "$word2"; then
19345        ac_var_match_word="yes"
19346      fi
19347    done
19348  done
19349
19350    if test "$ac_var_match_word" = "no"; then
19351      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19352    fi
19353  done
19354    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19355  squeeze tmp_CFLAGS
19356
19357          #
19358                    if test "$compiler_num" -ge "101"; then
19359
19360    ac_var_added_warnings=""
19361  for warning in unused; do
19362
19363  ac_var_match_word="no"
19364  for word1 in $CFLAGS; do
19365    for word2 in -Wno-$warning -W$warning; do
19366      if test "$word1" = "$word2"; then
19367        ac_var_match_word="yes"
19368      fi
19369    done
19370  done
19371
19372    if test "$ac_var_match_word" = "no"; then
19373      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19374    fi
19375  done
19376    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19377  squeeze tmp_CFLAGS
19378
19379          fi
19380          #
19381                    if test "$compiler_num" -ge "207"; then
19382
19383    ac_var_added_warnings=""
19384  for warning in address; do
19385
19386  ac_var_match_word="no"
19387  for word1 in $CFLAGS; do
19388    for word2 in -Wno-$warning -W$warning; do
19389      if test "$word1" = "$word2"; then
19390        ac_var_match_word="yes"
19391      fi
19392    done
19393  done
19394
19395    if test "$ac_var_match_word" = "no"; then
19396      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19397    fi
19398  done
19399    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19400  squeeze tmp_CFLAGS
19401
19402
19403    ac_var_added_warnings=""
19404  for warning in attributes; do
19405
19406  ac_var_match_word="no"
19407  for word1 in $CFLAGS; do
19408    for word2 in -Wno-$warning -W$warning; do
19409      if test "$word1" = "$word2"; then
19410        ac_var_match_word="yes"
19411      fi
19412    done
19413  done
19414
19415    if test "$ac_var_match_word" = "no"; then
19416      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19417    fi
19418  done
19419    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19420  squeeze tmp_CFLAGS
19421
19422
19423    ac_var_added_warnings=""
19424  for warning in bad-function-cast; do
19425
19426  ac_var_match_word="no"
19427  for word1 in $CFLAGS; do
19428    for word2 in -Wno-$warning -W$warning; do
19429      if test "$word1" = "$word2"; then
19430        ac_var_match_word="yes"
19431      fi
19432    done
19433  done
19434
19435    if test "$ac_var_match_word" = "no"; then
19436      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19437    fi
19438  done
19439    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19440  squeeze tmp_CFLAGS
19441
19442
19443    ac_var_added_warnings=""
19444  for warning in conversion; do
19445
19446  ac_var_match_word="no"
19447  for word1 in $CFLAGS; do
19448    for word2 in -Wno-$warning -W$warning; do
19449      if test "$word1" = "$word2"; then
19450        ac_var_match_word="yes"
19451      fi
19452    done
19453  done
19454
19455    if test "$ac_var_match_word" = "no"; then
19456      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19457    fi
19458  done
19459    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19460  squeeze tmp_CFLAGS
19461
19462
19463    ac_var_added_warnings=""
19464  for warning in div-by-zero format-security; do
19465
19466  ac_var_match_word="no"
19467  for word1 in $CFLAGS; do
19468    for word2 in -Wno-$warning -W$warning; do
19469      if test "$word1" = "$word2"; then
19470        ac_var_match_word="yes"
19471      fi
19472    done
19473  done
19474
19475    if test "$ac_var_match_word" = "no"; then
19476      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19477    fi
19478  done
19479    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19480  squeeze tmp_CFLAGS
19481
19482
19483    ac_var_added_warnings=""
19484  for warning in empty-body; do
19485
19486  ac_var_match_word="no"
19487  for word1 in $CFLAGS; do
19488    for word2 in -Wno-$warning -W$warning; do
19489      if test "$word1" = "$word2"; then
19490        ac_var_match_word="yes"
19491      fi
19492    done
19493  done
19494
19495    if test "$ac_var_match_word" = "no"; then
19496      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19497    fi
19498  done
19499    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19500  squeeze tmp_CFLAGS
19501
19502
19503    ac_var_added_warnings=""
19504  for warning in missing-field-initializers; do
19505
19506  ac_var_match_word="no"
19507  for word1 in $CFLAGS; do
19508    for word2 in -Wno-$warning -W$warning; do
19509      if test "$word1" = "$word2"; then
19510        ac_var_match_word="yes"
19511      fi
19512    done
19513  done
19514
19515    if test "$ac_var_match_word" = "no"; then
19516      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19517    fi
19518  done
19519    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19520  squeeze tmp_CFLAGS
19521
19522
19523    ac_var_added_warnings=""
19524  for warning in missing-noreturn; do
19525
19526  ac_var_match_word="no"
19527  for word1 in $CFLAGS; do
19528    for word2 in -Wno-$warning -W$warning; do
19529      if test "$word1" = "$word2"; then
19530        ac_var_match_word="yes"
19531      fi
19532    done
19533  done
19534
19535    if test "$ac_var_match_word" = "no"; then
19536      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19537    fi
19538  done
19539    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19540  squeeze tmp_CFLAGS
19541
19542
19543    ac_var_added_warnings=""
19544  for warning in old-style-definition; do
19545
19546  ac_var_match_word="no"
19547  for word1 in $CFLAGS; do
19548    for word2 in -Wno-$warning -W$warning; do
19549      if test "$word1" = "$word2"; then
19550        ac_var_match_word="yes"
19551      fi
19552    done
19553  done
19554
19555    if test "$ac_var_match_word" = "no"; then
19556      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19557    fi
19558  done
19559    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19560  squeeze tmp_CFLAGS
19561
19562
19563    ac_var_added_warnings=""
19564  for warning in redundant-decls; do
19565
19566  ac_var_match_word="no"
19567  for word1 in $CFLAGS; do
19568    for word2 in -Wno-$warning -W$warning; do
19569      if test "$word1" = "$word2"; then
19570        ac_var_match_word="yes"
19571      fi
19572    done
19573  done
19574
19575    if test "$ac_var_match_word" = "no"; then
19576      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19577    fi
19578  done
19579    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19580  squeeze tmp_CFLAGS
19581
19582          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum])      # Not used because this basically disallows default case
19583
19584    ac_var_added_warnings=""
19585  for warning in type-limits; do
19586
19587  ac_var_match_word="no"
19588  for word1 in $CFLAGS; do
19589    for word2 in -Wno-$warning -W$warning; do
19590      if test "$word1" = "$word2"; then
19591        ac_var_match_word="yes"
19592      fi
19593    done
19594  done
19595
19596    if test "$ac_var_match_word" = "no"; then
19597      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19598    fi
19599  done
19600    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19601  squeeze tmp_CFLAGS
19602
19603          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros])    # Not practical
19604
19605    ac_var_added_warnings=""
19606  for warning in unreachable-code unused-parameter; do
19607
19608  ac_var_match_word="no"
19609  for word1 in $CFLAGS; do
19610    for word2 in -Wno-$warning -W$warning; do
19611      if test "$word1" = "$word2"; then
19612        ac_var_match_word="yes"
19613      fi
19614    done
19615  done
19616
19617    if test "$ac_var_match_word" = "no"; then
19618      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19619    fi
19620  done
19621    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19622  squeeze tmp_CFLAGS
19623
19624          fi
19625          #
19626                    if test "$compiler_num" -ge "208"; then
19627
19628    ac_var_added_warnings=""
19629  for warning in ignored-qualifiers; do
19630
19631  ac_var_match_word="no"
19632  for word1 in $CFLAGS; do
19633    for word2 in -Wno-$warning -W$warning; do
19634      if test "$word1" = "$word2"; then
19635        ac_var_match_word="yes"
19636      fi
19637    done
19638  done
19639
19640    if test "$ac_var_match_word" = "no"; then
19641      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19642    fi
19643  done
19644    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19645  squeeze tmp_CFLAGS
19646
19647
19648    ac_var_added_warnings=""
19649  for warning in vla; do
19650
19651  ac_var_match_word="no"
19652  for word1 in $CFLAGS; do
19653    for word2 in -Wno-$warning -W$warning; do
19654      if test "$word1" = "$word2"; then
19655        ac_var_match_word="yes"
19656      fi
19657    done
19658  done
19659
19660    if test "$ac_var_match_word" = "no"; then
19661      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19662    fi
19663  done
19664    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19665  squeeze tmp_CFLAGS
19666
19667          fi
19668          #
19669                    if test "$compiler_num" -ge "209"; then
19670
19671    ac_var_added_warnings=""
19672  for warning in sign-conversion; do
19673
19674  ac_var_match_word="no"
19675  for word1 in $CFLAGS; do
19676    for word2 in -Wno-$warning -W$warning; do
19677      if test "$word1" = "$word2"; then
19678        ac_var_match_word="yes"
19679      fi
19680    done
19681  done
19682
19683    if test "$ac_var_match_word" = "no"; then
19684      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19685    fi
19686  done
19687    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19688  squeeze tmp_CFLAGS
19689
19690            tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion"          # FIXME
19691
19692    ac_var_added_warnings=""
19693  for warning in shift-sign-overflow; do
19694
19695  ac_var_match_word="no"
19696  for word1 in $CFLAGS; do
19697    for word2 in -Wno-$warning -W$warning; do
19698      if test "$word1" = "$word2"; then
19699        ac_var_match_word="yes"
19700      fi
19701    done
19702  done
19703
19704    if test "$ac_var_match_word" = "no"; then
19705      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19706    fi
19707  done
19708    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19709  squeeze tmp_CFLAGS
19710
19711          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded])  # Not used because we cannot change public structs
19712          fi
19713          #
19714                    if test "$compiler_num" -ge "300"; then
19715
19716    ac_var_added_warnings=""
19717  for warning in language-extension-token; do
19718
19719  ac_var_match_word="no"
19720  for word1 in $CFLAGS; do
19721    for word2 in -Wno-$warning -W$warning; do
19722      if test "$word1" = "$word2"; then
19723        ac_var_match_word="yes"
19724      fi
19725    done
19726  done
19727
19728    if test "$ac_var_match_word" = "no"; then
19729      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19730    fi
19731  done
19732    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19733  squeeze tmp_CFLAGS
19734
19735            tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
19736          fi
19737          #
19738                    if test "$compiler_num" -ge "302"; then
19739
19740    ac_var_added_warnings=""
19741  for warning in enum-conversion; do
19742
19743  ac_var_match_word="no"
19744  for word1 in $CFLAGS; do
19745    for word2 in -Wno-$warning -W$warning; do
19746      if test "$word1" = "$word2"; then
19747        ac_var_match_word="yes"
19748      fi
19749    done
19750  done
19751
19752    if test "$ac_var_match_word" = "no"; then
19753      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19754    fi
19755  done
19756    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19757  squeeze tmp_CFLAGS
19758
19759
19760    ac_var_added_warnings=""
19761  for warning in sometimes-uninitialized; do
19762
19763  ac_var_match_word="no"
19764  for word1 in $CFLAGS; do
19765    for word2 in -Wno-$warning -W$warning; do
19766      if test "$word1" = "$word2"; then
19767        ac_var_match_word="yes"
19768      fi
19769    done
19770  done
19771
19772    if test "$ac_var_match_word" = "no"; then
19773      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19774    fi
19775  done
19776    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19777  squeeze tmp_CFLAGS
19778
19779            case $host_os in
19780            cygwin* | mingw*)
19781                                          ;;
19782            *)
19783
19784    ac_var_added_warnings=""
19785  for warning in missing-variable-declarations; do
19786
19787  ac_var_match_word="no"
19788  for word1 in $CFLAGS; do
19789    for word2 in -Wno-$warning -W$warning; do
19790      if test "$word1" = "$word2"; then
19791        ac_var_match_word="yes"
19792      fi
19793    done
19794  done
19795
19796    if test "$ac_var_match_word" = "no"; then
19797      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19798    fi
19799  done
19800    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19801  squeeze tmp_CFLAGS
19802
19803              ;;
19804            esac
19805          fi
19806          #
19807                    if test "$compiler_num" -ge "304"; then
19808
19809    ac_var_added_warnings=""
19810  for warning in header-guard; do
19811
19812  ac_var_match_word="no"
19813  for word1 in $CFLAGS; do
19814    for word2 in -Wno-$warning -W$warning; do
19815      if test "$word1" = "$word2"; then
19816        ac_var_match_word="yes"
19817      fi
19818    done
19819  done
19820
19821    if test "$ac_var_match_word" = "no"; then
19822      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19823    fi
19824  done
19825    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19826  squeeze tmp_CFLAGS
19827
19828
19829    ac_var_added_warnings=""
19830  for warning in unused-const-variable; do
19831
19832  ac_var_match_word="no"
19833  for word1 in $CFLAGS; do
19834    for word2 in -Wno-$warning -W$warning; do
19835      if test "$word1" = "$word2"; then
19836        ac_var_match_word="yes"
19837      fi
19838    done
19839  done
19840
19841    if test "$ac_var_match_word" = "no"; then
19842      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19843    fi
19844  done
19845    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19846  squeeze tmp_CFLAGS
19847
19848          fi
19849          #
19850                    if test "$compiler_num" -ge "305"; then
19851
19852    ac_var_added_warnings=""
19853  for warning in pragmas; do
19854
19855  ac_var_match_word="no"
19856  for word1 in $CFLAGS; do
19857    for word2 in -Wno-$warning -W$warning; do
19858      if test "$word1" = "$word2"; then
19859        ac_var_match_word="yes"
19860      fi
19861    done
19862  done
19863
19864    if test "$ac_var_match_word" = "no"; then
19865      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19866    fi
19867  done
19868    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19869  squeeze tmp_CFLAGS
19870
19871
19872    ac_var_added_warnings=""
19873  for warning in unreachable-code-break; do
19874
19875  ac_var_match_word="no"
19876  for word1 in $CFLAGS; do
19877    for word2 in -Wno-$warning -W$warning; do
19878      if test "$word1" = "$word2"; then
19879        ac_var_match_word="yes"
19880      fi
19881    done
19882  done
19883
19884    if test "$ac_var_match_word" = "no"; then
19885      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19886    fi
19887  done
19888    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19889  squeeze tmp_CFLAGS
19890
19891          fi
19892          #
19893                    if test "$compiler_num" -ge "306"; then
19894
19895    ac_var_added_warnings=""
19896  for warning in double-promotion; do
19897
19898  ac_var_match_word="no"
19899  for word1 in $CFLAGS; do
19900    for word2 in -Wno-$warning -W$warning; do
19901      if test "$word1" = "$word2"; then
19902        ac_var_match_word="yes"
19903      fi
19904    done
19905  done
19906
19907    if test "$ac_var_match_word" = "no"; then
19908      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19909    fi
19910  done
19911    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19912  squeeze tmp_CFLAGS
19913
19914          fi
19915          #
19916                    if test "$compiler_num" -ge "309"; then
19917
19918    ac_var_added_warnings=""
19919  for warning in comma; do
19920
19921  ac_var_match_word="no"
19922  for word1 in $CFLAGS; do
19923    for word2 in -Wno-$warning -W$warning; do
19924      if test "$word1" = "$word2"; then
19925        ac_var_match_word="yes"
19926      fi
19927    done
19928  done
19929
19930    if test "$ac_var_match_word" = "no"; then
19931      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19932    fi
19933  done
19934    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19935  squeeze tmp_CFLAGS
19936
19937            # avoid the varargs warning, fixed in 4.0
19938            # https://bugs.llvm.org/show_bug.cgi?id=29140
19939            if test "$compiler_num" -lt "400"; then
19940              tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
19941            fi
19942          fi
19943                    if test "$compiler_num" -ge "700"; then
19944
19945    ac_var_added_warnings=""
19946  for warning in assign-enum; do
19947
19948  ac_var_match_word="no"
19949  for word1 in $CFLAGS; do
19950    for word2 in -Wno-$warning -W$warning; do
19951      if test "$word1" = "$word2"; then
19952        ac_var_match_word="yes"
19953      fi
19954    done
19955  done
19956
19957    if test "$ac_var_match_word" = "no"; then
19958      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19959    fi
19960  done
19961    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19962  squeeze tmp_CFLAGS
19963
19964
19965    ac_var_added_warnings=""
19966  for warning in extra-semi-stmt; do
19967
19968  ac_var_match_word="no"
19969  for word1 in $CFLAGS; do
19970    for word2 in -Wno-$warning -W$warning; do
19971      if test "$word1" = "$word2"; then
19972        ac_var_match_word="yes"
19973      fi
19974    done
19975  done
19976
19977    if test "$ac_var_match_word" = "no"; then
19978      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19979    fi
19980  done
19981    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19982  squeeze tmp_CFLAGS
19983
19984          fi
19985                    if test "$compiler_num" -ge "1000"; then
19986            tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough"  # we have silencing markup for clang 10.0 and above only
19987          fi
19988        fi
19989                                tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
19990        ;;
19991        #
19992      DEC_C)
19993        #
19994        if test "$want_warnings" = "yes"; then
19995                    tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
19996        fi
19997        ;;
19998        #
19999      GNU_C)
20000        #
20001        if test "$want_warnings" = "yes"; then
20002          #
20003                              if test "x$cross_compiling" != "xyes" ||
20004            test "$compiler_num" -ge "300"; then
20005            tmp_CFLAGS="$tmp_CFLAGS -pedantic"
20006          fi
20007          #
20008
20009    ac_var_added_warnings=""
20010  for warning in all; do
20011
20012  ac_var_match_word="no"
20013  for word1 in $CFLAGS; do
20014    for word2 in -Wno-$warning -W$warning; do
20015      if test "$word1" = "$word2"; then
20016        ac_var_match_word="yes"
20017      fi
20018    done
20019  done
20020
20021    if test "$ac_var_match_word" = "no"; then
20022      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20023    fi
20024  done
20025    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20026  squeeze tmp_CFLAGS
20027
20028          tmp_CFLAGS="$tmp_CFLAGS -W"
20029          #
20030                    if test "$compiler_num" -ge "104"; then
20031
20032    ac_var_added_warnings=""
20033  for warning in pointer-arith write-strings; do
20034
20035  ac_var_match_word="no"
20036  for word1 in $CFLAGS; do
20037    for word2 in -Wno-$warning -W$warning; do
20038      if test "$word1" = "$word2"; then
20039        ac_var_match_word="yes"
20040      fi
20041    done
20042  done
20043
20044    if test "$ac_var_match_word" = "no"; then
20045      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20046    fi
20047  done
20048    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20049  squeeze tmp_CFLAGS
20050
20051                        if test "x$cross_compiling" != "xyes" ||
20052              test "$compiler_num" -ge "300"; then
20053
20054    ac_var_added_warnings=""
20055  for warning in unused shadow; do
20056
20057  ac_var_match_word="no"
20058  for word1 in $CFLAGS; do
20059    for word2 in -Wno-$warning -W$warning; do
20060      if test "$word1" = "$word2"; then
20061        ac_var_match_word="yes"
20062      fi
20063    done
20064  done
20065
20066    if test "$ac_var_match_word" = "no"; then
20067      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20068    fi
20069  done
20070    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20071  squeeze tmp_CFLAGS
20072
20073            fi
20074          fi
20075          #
20076                    if test "$compiler_num" -ge "207"; then
20077
20078    ac_var_added_warnings=""
20079  for warning in inline nested-externs; do
20080
20081  ac_var_match_word="no"
20082  for word1 in $CFLAGS; do
20083    for word2 in -Wno-$warning -W$warning; do
20084      if test "$word1" = "$word2"; then
20085        ac_var_match_word="yes"
20086      fi
20087    done
20088  done
20089
20090    if test "$ac_var_match_word" = "no"; then
20091      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20092    fi
20093  done
20094    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20095  squeeze tmp_CFLAGS
20096
20097                        if test "x$cross_compiling" != "xyes" ||
20098              test "$compiler_num" -ge "300"; then
20099
20100    ac_var_added_warnings=""
20101  for warning in missing-declarations; do
20102
20103  ac_var_match_word="no"
20104  for word1 in $CFLAGS; do
20105    for word2 in -Wno-$warning -W$warning; do
20106      if test "$word1" = "$word2"; then
20107        ac_var_match_word="yes"
20108      fi
20109    done
20110  done
20111
20112    if test "$ac_var_match_word" = "no"; then
20113      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20114    fi
20115  done
20116    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20117  squeeze tmp_CFLAGS
20118
20119
20120    ac_var_added_warnings=""
20121  for warning in missing-prototypes; do
20122
20123  ac_var_match_word="no"
20124  for word1 in $CFLAGS; do
20125    for word2 in -Wno-$warning -W$warning; do
20126      if test "$word1" = "$word2"; then
20127        ac_var_match_word="yes"
20128      fi
20129    done
20130  done
20131
20132    if test "$ac_var_match_word" = "no"; then
20133      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20134    fi
20135  done
20136    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20137  squeeze tmp_CFLAGS
20138
20139            fi
20140          fi
20141          #
20142                    if test "$compiler_num" -ge "295"; then
20143            tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
20144
20145    ac_var_added_warnings=""
20146  for warning in bad-function-cast; do
20147
20148  ac_var_match_word="no"
20149  for word1 in $CFLAGS; do
20150    for word2 in -Wno-$warning -W$warning; do
20151      if test "$word1" = "$word2"; then
20152        ac_var_match_word="yes"
20153      fi
20154    done
20155  done
20156
20157    if test "$ac_var_match_word" = "no"; then
20158      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20159    fi
20160  done
20161    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20162  squeeze tmp_CFLAGS
20163
20164          fi
20165          #
20166                    if test "$compiler_num" -ge "296"; then
20167
20168    ac_var_added_warnings=""
20169  for warning in float-equal; do
20170
20171  ac_var_match_word="no"
20172  for word1 in $CFLAGS; do
20173    for word2 in -Wno-$warning -W$warning; do
20174      if test "$word1" = "$word2"; then
20175        ac_var_match_word="yes"
20176      fi
20177    done
20178  done
20179
20180    if test "$ac_var_match_word" = "no"; then
20181      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20182    fi
20183  done
20184    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20185  squeeze tmp_CFLAGS
20186
20187            tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
20188
20189    ac_var_added_warnings=""
20190  for warning in sign-compare; do
20191
20192  ac_var_match_word="no"
20193  for word1 in $CFLAGS; do
20194    for word2 in -Wno-$warning -W$warning; do
20195      if test "$word1" = "$word2"; then
20196        ac_var_match_word="yes"
20197      fi
20198    done
20199  done
20200
20201    if test "$ac_var_match_word" = "no"; then
20202      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20203    fi
20204  done
20205    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20206  squeeze tmp_CFLAGS
20207
20208
20209    ac_var_added_warnings=""
20210  for warning in undef; do
20211
20212  ac_var_match_word="no"
20213  for word1 in $CFLAGS; do
20214    for word2 in -Wno-$warning -W$warning; do
20215      if test "$word1" = "$word2"; then
20216        ac_var_match_word="yes"
20217      fi
20218    done
20219  done
20220
20221    if test "$ac_var_match_word" = "no"; then
20222      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20223    fi
20224  done
20225    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20226  squeeze tmp_CFLAGS
20227
20228          fi
20229          #
20230                    if test "$compiler_num" -ge "297"; then
20231            tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
20232          fi
20233          #
20234                    if test "$compiler_num" -ge "300"; then
20235                                                            tmp_CFLAGS="$tmp_CFLAGS"
20236          fi
20237          #
20238                    if test "$compiler_num" -ge "303"; then
20239
20240    ac_var_added_warnings=""
20241  for warning in endif-labels strict-prototypes; do
20242
20243  ac_var_match_word="no"
20244  for word1 in $CFLAGS; do
20245    for word2 in -Wno-$warning -W$warning; do
20246      if test "$word1" = "$word2"; then
20247        ac_var_match_word="yes"
20248      fi
20249    done
20250  done
20251
20252    if test "$ac_var_match_word" = "no"; then
20253      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20254    fi
20255  done
20256    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20257  squeeze tmp_CFLAGS
20258
20259          fi
20260          #
20261                    if test "$compiler_num" -ge "304"; then
20262
20263    ac_var_added_warnings=""
20264  for warning in declaration-after-statement; do
20265
20266  ac_var_match_word="no"
20267  for word1 in $CFLAGS; do
20268    for word2 in -Wno-$warning -W$warning; do
20269      if test "$word1" = "$word2"; then
20270        ac_var_match_word="yes"
20271      fi
20272    done
20273  done
20274
20275    if test "$ac_var_match_word" = "no"; then
20276      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20277    fi
20278  done
20279    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20280  squeeze tmp_CFLAGS
20281
20282
20283    ac_var_added_warnings=""
20284  for warning in old-style-definition; do
20285
20286  ac_var_match_word="no"
20287  for word1 in $CFLAGS; do
20288    for word2 in -Wno-$warning -W$warning; do
20289      if test "$word1" = "$word2"; then
20290        ac_var_match_word="yes"
20291      fi
20292    done
20293  done
20294
20295    if test "$ac_var_match_word" = "no"; then
20296      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20297    fi
20298  done
20299    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20300  squeeze tmp_CFLAGS
20301
20302          fi
20303          #
20304                    if test "$compiler_num" -ge "400"; then
20305            tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
20306          fi
20307          #
20308                    if test "$compiler_num" -ge "401"; then
20309
20310    ac_var_added_warnings=""
20311  for warning in attributes; do
20312
20313  ac_var_match_word="no"
20314  for word1 in $CFLAGS; do
20315    for word2 in -Wno-$warning -W$warning; do
20316      if test "$word1" = "$word2"; then
20317        ac_var_match_word="yes"
20318      fi
20319    done
20320  done
20321
20322    if test "$ac_var_match_word" = "no"; then
20323      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20324    fi
20325  done
20326    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20327  squeeze tmp_CFLAGS
20328
20329
20330    ac_var_added_warnings=""
20331  for warning in div-by-zero format-security; do
20332
20333  ac_var_match_word="no"
20334  for word1 in $CFLAGS; do
20335    for word2 in -Wno-$warning -W$warning; do
20336      if test "$word1" = "$word2"; then
20337        ac_var_match_word="yes"
20338      fi
20339    done
20340  done
20341
20342    if test "$ac_var_match_word" = "no"; then
20343      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20344    fi
20345  done
20346    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20347  squeeze tmp_CFLAGS
20348
20349
20350    ac_var_added_warnings=""
20351  for warning in missing-field-initializers; do
20352
20353  ac_var_match_word="no"
20354  for word1 in $CFLAGS; do
20355    for word2 in -Wno-$warning -W$warning; do
20356      if test "$word1" = "$word2"; then
20357        ac_var_match_word="yes"
20358      fi
20359    done
20360  done
20361
20362    if test "$ac_var_match_word" = "no"; then
20363      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20364    fi
20365  done
20366    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20367  squeeze tmp_CFLAGS
20368
20369            case $host in
20370              *-*-msys*)
20371                ;;
20372              *)
20373
20374    ac_var_added_warnings=""
20375  for warning in missing-noreturn; do
20376
20377  ac_var_match_word="no"
20378  for word1 in $CFLAGS; do
20379    for word2 in -Wno-$warning -W$warning; do
20380      if test "$word1" = "$word2"; then
20381        ac_var_match_word="yes"
20382      fi
20383    done
20384  done
20385
20386    if test "$ac_var_match_word" = "no"; then
20387      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20388    fi
20389  done
20390    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20391  squeeze tmp_CFLAGS
20392  # Seen to clash with libtool-generated stub code
20393                ;;
20394            esac
20395
20396    ac_var_added_warnings=""
20397  for warning in unreachable-code unused-parameter; do
20398
20399  ac_var_match_word="no"
20400  for word1 in $CFLAGS; do
20401    for word2 in -Wno-$warning -W$warning; do
20402      if test "$word1" = "$word2"; then
20403        ac_var_match_word="yes"
20404      fi
20405    done
20406  done
20407
20408    if test "$ac_var_match_word" = "no"; then
20409      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20410    fi
20411  done
20412    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20413  squeeze tmp_CFLAGS
20414
20415          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded])           # Not used because we cannot change public structs
20416
20417    ac_var_added_warnings=""
20418  for warning in pragmas; do
20419
20420  ac_var_match_word="no"
20421  for word1 in $CFLAGS; do
20422    for word2 in -Wno-$warning -W$warning; do
20423      if test "$word1" = "$word2"; then
20424        ac_var_match_word="yes"
20425      fi
20426    done
20427  done
20428
20429    if test "$ac_var_match_word" = "no"; then
20430      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20431    fi
20432  done
20433    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20434  squeeze tmp_CFLAGS
20435
20436
20437    ac_var_added_warnings=""
20438  for warning in redundant-decls; do
20439
20440  ac_var_match_word="no"
20441  for word1 in $CFLAGS; do
20442    for word2 in -Wno-$warning -W$warning; do
20443      if test "$word1" = "$word2"; then
20444        ac_var_match_word="yes"
20445      fi
20446    done
20447  done
20448
20449    if test "$ac_var_match_word" = "no"; then
20450      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20451    fi
20452  done
20453    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20454  squeeze tmp_CFLAGS
20455
20456          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum])      # Not used because this basically disallows default case
20457          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros])    # Not practical
20458          fi
20459          #
20460                    if test "$compiler_num" -ge "402"; then
20461
20462    ac_var_added_warnings=""
20463  for warning in cast-align; do
20464
20465  ac_var_match_word="no"
20466  for word1 in $CFLAGS; do
20467    for word2 in -Wno-$warning -W$warning; do
20468      if test "$word1" = "$word2"; then
20469        ac_var_match_word="yes"
20470      fi
20471    done
20472  done
20473
20474    if test "$ac_var_match_word" = "no"; then
20475      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20476    fi
20477  done
20478    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20479  squeeze tmp_CFLAGS
20480
20481          fi
20482          #
20483                    if test "$compiler_num" -ge "403"; then
20484
20485    ac_var_added_warnings=""
20486  for warning in address; do
20487
20488  ac_var_match_word="no"
20489  for word1 in $CFLAGS; do
20490    for word2 in -Wno-$warning -W$warning; do
20491      if test "$word1" = "$word2"; then
20492        ac_var_match_word="yes"
20493      fi
20494    done
20495  done
20496
20497    if test "$ac_var_match_word" = "no"; then
20498      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20499    fi
20500  done
20501    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20502  squeeze tmp_CFLAGS
20503
20504
20505    ac_var_added_warnings=""
20506  for warning in type-limits old-style-declaration; do
20507
20508  ac_var_match_word="no"
20509  for word1 in $CFLAGS; do
20510    for word2 in -Wno-$warning -W$warning; do
20511      if test "$word1" = "$word2"; then
20512        ac_var_match_word="yes"
20513      fi
20514    done
20515  done
20516
20517    if test "$ac_var_match_word" = "no"; then
20518      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20519    fi
20520  done
20521    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20522  squeeze tmp_CFLAGS
20523
20524
20525    ac_var_added_warnings=""
20526  for warning in missing-parameter-type empty-body; do
20527
20528  ac_var_match_word="no"
20529  for word1 in $CFLAGS; do
20530    for word2 in -Wno-$warning -W$warning; do
20531      if test "$word1" = "$word2"; then
20532        ac_var_match_word="yes"
20533      fi
20534    done
20535  done
20536
20537    if test "$ac_var_match_word" = "no"; then
20538      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20539    fi
20540  done
20541    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20542  squeeze tmp_CFLAGS
20543
20544
20545    ac_var_added_warnings=""
20546  for warning in clobbered ignored-qualifiers; do
20547
20548  ac_var_match_word="no"
20549  for word1 in $CFLAGS; do
20550    for word2 in -Wno-$warning -W$warning; do
20551      if test "$word1" = "$word2"; then
20552        ac_var_match_word="yes"
20553      fi
20554    done
20555  done
20556
20557    if test "$ac_var_match_word" = "no"; then
20558      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20559    fi
20560  done
20561    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20562  squeeze tmp_CFLAGS
20563
20564
20565    ac_var_added_warnings=""
20566  for warning in conversion trampolines; do
20567
20568  ac_var_match_word="no"
20569  for word1 in $CFLAGS; do
20570    for word2 in -Wno-$warning -W$warning; do
20571      if test "$word1" = "$word2"; then
20572        ac_var_match_word="yes"
20573      fi
20574    done
20575  done
20576
20577    if test "$ac_var_match_word" = "no"; then
20578      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20579    fi
20580  done
20581    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20582  squeeze tmp_CFLAGS
20583
20584
20585    ac_var_added_warnings=""
20586  for warning in sign-conversion; do
20587
20588  ac_var_match_word="no"
20589  for word1 in $CFLAGS; do
20590    for word2 in -Wno-$warning -W$warning; do
20591      if test "$word1" = "$word2"; then
20592        ac_var_match_word="yes"
20593      fi
20594    done
20595  done
20596
20597    if test "$ac_var_match_word" = "no"; then
20598      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20599    fi
20600  done
20601    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20602  squeeze tmp_CFLAGS
20603
20604            tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion"          # FIXME
20605
20606    ac_var_added_warnings=""
20607  for warning in vla; do
20608
20609  ac_var_match_word="no"
20610  for word1 in $CFLAGS; do
20611    for word2 in -Wno-$warning -W$warning; do
20612      if test "$word1" = "$word2"; then
20613        ac_var_match_word="yes"
20614      fi
20615    done
20616  done
20617
20618    if test "$ac_var_match_word" = "no"; then
20619      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20620    fi
20621  done
20622    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20623  squeeze tmp_CFLAGS
20624
20625                        tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
20626          fi
20627          #
20628                    if test "$compiler_num" -ge "405"; then
20629                        if test "$curl_cv_native_windows" = "yes"; then
20630              tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
20631            fi
20632          fi
20633          #
20634                    if test "$compiler_num" -ge "406"; then
20635
20636    ac_var_added_warnings=""
20637  for warning in double-promotion; do
20638
20639  ac_var_match_word="no"
20640  for word1 in $CFLAGS; do
20641    for word2 in -Wno-$warning -W$warning; do
20642      if test "$word1" = "$word2"; then
20643        ac_var_match_word="yes"
20644      fi
20645    done
20646  done
20647
20648    if test "$ac_var_match_word" = "no"; then
20649      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20650    fi
20651  done
20652    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20653  squeeze tmp_CFLAGS
20654
20655          fi
20656          #
20657                    if test "$compiler_num" -ge "408"; then
20658            tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
20659          fi
20660          #
20661                    if test "$compiler_num" -ge "500"; then
20662            tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
20663          fi
20664          #
20665                    if test "$compiler_num" -ge "600"; then
20666
20667    ac_var_added_warnings=""
20668  for warning in shift-negative-value; do
20669
20670  ac_var_match_word="no"
20671  for word1 in $CFLAGS; do
20672    for word2 in -Wno-$warning -W$warning; do
20673      if test "$word1" = "$word2"; then
20674        ac_var_match_word="yes"
20675      fi
20676    done
20677  done
20678
20679    if test "$ac_var_match_word" = "no"; then
20680      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20681    fi
20682  done
20683    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20684  squeeze tmp_CFLAGS
20685
20686            tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
20687
20688    ac_var_added_warnings=""
20689  for warning in null-dereference; do
20690
20691  ac_var_match_word="no"
20692  for word1 in $CFLAGS; do
20693    for word2 in -Wno-$warning -W$warning; do
20694      if test "$word1" = "$word2"; then
20695        ac_var_match_word="yes"
20696      fi
20697    done
20698  done
20699
20700    if test "$ac_var_match_word" = "no"; then
20701      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20702    fi
20703  done
20704    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20705  squeeze tmp_CFLAGS
20706
20707            tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
20708
20709    ac_var_added_warnings=""
20710  for warning in duplicated-cond; do
20711
20712  ac_var_match_word="no"
20713  for word1 in $CFLAGS; do
20714    for word2 in -Wno-$warning -W$warning; do
20715      if test "$word1" = "$word2"; then
20716        ac_var_match_word="yes"
20717      fi
20718    done
20719  done
20720
20721    if test "$ac_var_match_word" = "no"; then
20722      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20723    fi
20724  done
20725    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20726  squeeze tmp_CFLAGS
20727
20728
20729    ac_var_added_warnings=""
20730  for warning in unused-const-variable; do
20731
20732  ac_var_match_word="no"
20733  for word1 in $CFLAGS; do
20734    for word2 in -Wno-$warning -W$warning; do
20735      if test "$word1" = "$word2"; then
20736        ac_var_match_word="yes"
20737      fi
20738    done
20739  done
20740
20741    if test "$ac_var_match_word" = "no"; then
20742      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20743    fi
20744  done
20745    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20746  squeeze tmp_CFLAGS
20747
20748          fi
20749          #
20750                    if test "$compiler_num" -ge "700"; then
20751
20752    ac_var_added_warnings=""
20753  for warning in duplicated-branches; do
20754
20755  ac_var_match_word="no"
20756  for word1 in $CFLAGS; do
20757    for word2 in -Wno-$warning -W$warning; do
20758      if test "$word1" = "$word2"; then
20759        ac_var_match_word="yes"
20760      fi
20761    done
20762  done
20763
20764    if test "$ac_var_match_word" = "no"; then
20765      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20766    fi
20767  done
20768    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20769  squeeze tmp_CFLAGS
20770
20771
20772    ac_var_added_warnings=""
20773  for warning in restrict; do
20774
20775  ac_var_match_word="no"
20776  for word1 in $CFLAGS; do
20777    for word2 in -Wno-$warning -W$warning; do
20778      if test "$word1" = "$word2"; then
20779        ac_var_match_word="yes"
20780      fi
20781    done
20782  done
20783
20784    if test "$ac_var_match_word" = "no"; then
20785      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20786    fi
20787  done
20788    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20789  squeeze tmp_CFLAGS
20790
20791
20792    ac_var_added_warnings=""
20793  for warning in alloc-zero; do
20794
20795  ac_var_match_word="no"
20796  for word1 in $CFLAGS; do
20797    for word2 in -Wno-$warning -W$warning; do
20798      if test "$word1" = "$word2"; then
20799        ac_var_match_word="yes"
20800      fi
20801    done
20802  done
20803
20804    if test "$ac_var_match_word" = "no"; then
20805      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20806    fi
20807  done
20808    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20809  squeeze tmp_CFLAGS
20810
20811            tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
20812            tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
20813            tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough"
20814          fi
20815          #
20816                    if test "$compiler_num" -ge "1000"; then
20817
20818    ac_var_added_warnings=""
20819  for warning in arith-conversion; do
20820
20821  ac_var_match_word="no"
20822  for word1 in $CFLAGS; do
20823    for word2 in -Wno-$warning -W$warning; do
20824      if test "$word1" = "$word2"; then
20825        ac_var_match_word="yes"
20826      fi
20827    done
20828  done
20829
20830    if test "$ac_var_match_word" = "no"; then
20831      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20832    fi
20833  done
20834    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20835  squeeze tmp_CFLAGS
20836
20837
20838    ac_var_added_warnings=""
20839  for warning in enum-conversion; do
20840
20841  ac_var_match_word="no"
20842  for word1 in $CFLAGS; do
20843    for word2 in -Wno-$warning -W$warning; do
20844      if test "$word1" = "$word2"; then
20845        ac_var_match_word="yes"
20846      fi
20847    done
20848  done
20849
20850    if test "$ac_var_match_word" = "no"; then
20851      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20852    fi
20853  done
20854    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20855  squeeze tmp_CFLAGS
20856
20857          fi
20858          #
20859        fi
20860        #
20861                if test "$compiler_num" -ge "300"; then
20862          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
20863        else
20864                              if test "x$cross_compiling" = "xyes"; then
20865            if test "$compiler_num" -ge "104"; then
20866                            tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
20867            fi
20868            if test "$compiler_num" -ge "207"; then
20869                            tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
20870              tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
20871            fi
20872          fi
20873        fi
20874        ;;
20875        #
20876      HP_UX_C)
20877        #
20878        if test "$want_warnings" = "yes"; then
20879                    tmp_CFLAGS="$tmp_CFLAGS +w1"
20880        fi
20881        ;;
20882        #
20883      IBM_C)
20884        #
20885                tmp_CFLAGS="$tmp_CFLAGS"
20886        ;;
20887        #
20888      INTEL_UNIX_C)
20889        #
20890        if test "$want_warnings" = "yes"; then
20891          if test "$compiler_num" -gt "600"; then
20892                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
20893                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
20894                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
20895                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
20896                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
20897                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
20898                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
20899                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
20900                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
20901                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
20902                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
20903          fi
20904        fi
20905                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
20906                tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
20907                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
20908        ;;
20909        #
20910      INTEL_WINDOWS_C)
20911        #
20912                tmp_CFLAGS="$tmp_CFLAGS"
20913        ;;
20914        #
20915      SGI_MIPS_C)
20916        #
20917        if test "$want_warnings" = "yes"; then
20918                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20919        fi
20920        ;;
20921        #
20922      SGI_MIPSPRO_C)
20923        #
20924        if test "$want_warnings" = "yes"; then
20925                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20926                              tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
20927        fi
20928        ;;
20929        #
20930      SUNPRO_C)
20931        #
20932        if test "$want_warnings" = "yes"; then
20933                    tmp_CFLAGS="$tmp_CFLAGS -v"
20934        fi
20935        ;;
20936        #
20937      TINY_C)
20938        #
20939        if test "$want_warnings" = "yes"; then
20940
20941    ac_var_added_warnings=""
20942  for warning in all; do
20943
20944  ac_var_match_word="no"
20945  for word1 in $CFLAGS; do
20946    for word2 in -Wno-$warning -W$warning; do
20947      if test "$word1" = "$word2"; then
20948        ac_var_match_word="yes"
20949      fi
20950    done
20951  done
20952
20953    if test "$ac_var_match_word" = "no"; then
20954      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20955    fi
20956  done
20957    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20958  squeeze tmp_CFLAGS
20959
20960
20961    ac_var_added_warnings=""
20962  for warning in write-strings; do
20963
20964  ac_var_match_word="no"
20965  for word1 in $CFLAGS; do
20966    for word2 in -Wno-$warning -W$warning; do
20967      if test "$word1" = "$word2"; then
20968        ac_var_match_word="yes"
20969      fi
20970    done
20971  done
20972
20973    if test "$ac_var_match_word" = "no"; then
20974      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20975    fi
20976  done
20977    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20978  squeeze tmp_CFLAGS
20979
20980
20981    ac_var_added_warnings=""
20982  for warning in unsupported; do
20983
20984  ac_var_match_word="no"
20985  for word1 in $CFLAGS; do
20986    for word2 in -Wno-$warning -W$warning; do
20987      if test "$word1" = "$word2"; then
20988        ac_var_match_word="yes"
20989      fi
20990    done
20991  done
20992
20993    if test "$ac_var_match_word" = "no"; then
20994      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20995    fi
20996  done
20997    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20998  squeeze tmp_CFLAGS
20999
21000        fi
21001        ;;
21002        #
21003    esac
21004    #
21005    squeeze tmp_CPPFLAGS
21006    squeeze tmp_CFLAGS
21007    #
21008    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
21009      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
21010printf %s "checking if compiler accepts strict warning options... " >&6; }
21011      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
21012      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21013      squeeze CPPFLAGS
21014      squeeze CFLAGS
21015
21016    tmp_compiler_works="unknown"
21017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21018/* end confdefs.h.  */
21019
21020
21021
21022int main (void)
21023{
21024
21025      int i = 1;
21026      return i;
21027
21028 ;
21029 return 0;
21030}
21031
21032_ACEOF
21033if ac_fn_c_try_compile "$LINENO"
21034then :
21035
21036    tmp_compiler_works="yes"
21037
21038else $as_nop
21039
21040    tmp_compiler_works="no"
21041    echo " " >&6
21042    sed 's/^/cc-fail: /' conftest.err >&6
21043    echo " " >&6
21044
21045fi
21046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21047    if test "$tmp_compiler_works" = "yes"; then
21048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049/* end confdefs.h.  */
21050
21051
21052
21053int main (void)
21054{
21055
21056        int i = 1;
21057        return i;
21058
21059 ;
21060 return 0;
21061}
21062
21063_ACEOF
21064if ac_fn_c_try_link "$LINENO"
21065then :
21066
21067      tmp_compiler_works="yes"
21068
21069else $as_nop
21070
21071      tmp_compiler_works="no"
21072      echo " " >&6
21073      sed 's/^/link-fail: /' conftest.err >&6
21074      echo " " >&6
21075
21076fi
21077rm -f core conftest.err conftest.$ac_objext conftest.beam \
21078    conftest$ac_exeext conftest.$ac_ext
21079  fi
21080    if test "x$cross_compiling" != "xyes" &&
21081    test "$tmp_compiler_works" = "yes"; then
21082
21083   case $host_os in
21084     darwin*)
21085      if test "$cross_compiling" = yes
21086then :
21087  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21088printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21089as_fn_error $? "cannot run test program while cross compiling
21090See \`config.log' for more details" "$LINENO" 5; }
21091else $as_nop
21092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21093/* end confdefs.h.  */
21094
21095
21096#       ifdef __STDC__
21097#         include <stdlib.h>
21098#       endif
21099
21100int main (void)
21101{
21102
21103        int i = 0;
21104        exit(i);
21105
21106 ;
21107 return 0;
21108}
21109
21110_ACEOF
21111if ac_fn_c_try_run "$LINENO"
21112then :
21113  tmp_compiler_works="yes"
21114
21115else $as_nop
21116  tmp_compiler_works="no"
21117      echo " " >&6
21118      echo "run-fail: test program exited with status $ac_status" >&6
21119      echo " " >&6
21120
21121fi
21122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21123  conftest.$ac_objext conftest.beam conftest.$ac_ext
21124fi
21125
21126     ;;
21127     *)
21128      oldcc=$CC
21129      old=$LD_LIBRARY_PATH
21130      CC="sh ./run-compiler"
21131      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21132      export LD_LIBRARY_PATH
21133      if test "$cross_compiling" = yes
21134then :
21135  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21136printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21137as_fn_error $? "cannot run test program while cross compiling
21138See \`config.log' for more details" "$LINENO" 5; }
21139else $as_nop
21140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21141/* end confdefs.h.  */
21142
21143
21144#       ifdef __STDC__
21145#         include <stdlib.h>
21146#       endif
21147
21148int main (void)
21149{
21150
21151        int i = 0;
21152        exit(i);
21153
21154 ;
21155 return 0;
21156}
21157
21158_ACEOF
21159if ac_fn_c_try_run "$LINENO"
21160then :
21161  tmp_compiler_works="yes"
21162
21163else $as_nop
21164  tmp_compiler_works="no"
21165      echo " " >&6
21166      echo "run-fail: test program exited with status $ac_status" >&6
21167      echo " " >&6
21168
21169fi
21170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21171  conftest.$ac_objext conftest.beam conftest.$ac_ext
21172fi
21173
21174      LD_LIBRARY_PATH=$old # restore
21175      CC=$oldcc
21176     ;;
21177   esac
21178
21179  fi
21180    if test "$tmp_compiler_works" = "yes"; then
21181
21182        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21183printf "%s\n" "yes" >&6; }
21184        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21185printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21186
21187  else
21188
21189        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21190printf "%s\n" "no" >&6; }
21191        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21192printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21193                CPPFLAGS="$tmp_save_CPPFLAGS"
21194        CFLAGS="$tmp_save_CFLAGS"
21195
21196  fi
21197
21198    fi
21199    #
21200  fi
21201
21202
21203if test "$compiler_id" = "INTEL_UNIX_C"; then
21204  #
21205  if test "$compiler_num" -ge "1000"; then
21206        CFLAGS="$CFLAGS -shared-intel"
21207  elif test "$compiler_num" -ge "900"; then
21208        CFLAGS="$CFLAGS -i-dynamic"
21209  fi
21210  #
21211fi
21212
21213CURL_CFLAG_EXTRAS=""
21214if test X"$want_werror" = Xyes; then
21215  CURL_CFLAG_EXTRAS="-Werror"
21216  if test "$compiler_id" = "GNU_C"; then
21217            if test "$compiler_num" -ge "500"; then
21218      CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
21219    fi
21220  fi
21221fi
21222
21223
21224
21225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
21226printf %s "checking if compiler halts on compilation errors... " >&6; }
21227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228/* end confdefs.h.  */
21229
21230
21231
21232int main (void)
21233{
21234
21235      force compilation error
21236
21237 ;
21238 return 0;
21239}
21240
21241_ACEOF
21242if ac_fn_c_try_compile "$LINENO"
21243then :
21244
21245    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21246printf "%s\n" "no" >&6; }
21247    as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
21248
21249else $as_nop
21250
21251    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21252printf "%s\n" "yes" >&6; }
21253
21254fi
21255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21256
21257
21258    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
21259printf %s "checking if compiler halts on negative sized arrays... " >&6; }
21260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21261/* end confdefs.h.  */
21262
21263
21264      typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
21265
21266int main (void)
21267{
21268
21269      bad_t dummy;
21270
21271 ;
21272 return 0;
21273}
21274
21275_ACEOF
21276if ac_fn_c_try_compile "$LINENO"
21277then :
21278
21279    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21280printf "%s\n" "no" >&6; }
21281    as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
21282
21283else $as_nop
21284
21285    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21286printf "%s\n" "yes" >&6; }
21287
21288fi
21289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21290
21291
21292    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
21293printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
21294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295/* end confdefs.h.  */
21296
21297
21298#     include <stdlib.h>
21299      int rand(int n);
21300      int rand(int n)
21301      {
21302        if(n)
21303          return ++n;
21304        else
21305          return n;
21306      }
21307
21308int main (void)
21309{
21310
21311      int i[2]={0,0};
21312      int j = rand(i[0]);
21313      if(j)
21314        return j;
21315
21316 ;
21317 return 0;
21318}
21319
21320_ACEOF
21321if ac_fn_c_try_compile "$LINENO"
21322then :
21323
21324    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21325printf "%s\n" "no" >&6; }
21326    as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
21327
21328else $as_nop
21329
21330    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21331printf "%s\n" "yes" >&6; }
21332
21333fi
21334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21335
21336
21337      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
21338printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
21339  supports_symbol_hiding="no"
21340  symbol_hiding_CFLAGS=""
21341  symbol_hiding_EXTERN=""
21342  tmp_CFLAGS=""
21343  tmp_EXTERN=""
21344  case "$compiler_id" in
21345    CLANG)
21346            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21347      tmp_CFLAGS="-fvisibility=hidden"
21348      supports_symbol_hiding="yes"
21349      ;;
21350    GNU_C)
21351            if test "$compiler_num" -ge "304"; then
21352        if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
21353          tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21354          tmp_CFLAGS="-fvisibility=hidden"
21355          supports_symbol_hiding="yes"
21356        fi
21357      fi
21358      ;;
21359    INTEL_UNIX_C)
21360            if test "$compiler_num" -ge "900"; then
21361        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21362          tmp_save_CFLAGS="$CFLAGS"
21363          CFLAGS="$CFLAGS -fvisibility=hidden"
21364          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365/* end confdefs.h.  */
21366
21367
21368#             include <stdio.h>
21369
21370int main (void)
21371{
21372
21373              printf("icc fvisibility bug test");
21374
21375 ;
21376 return 0;
21377}
21378
21379_ACEOF
21380if ac_fn_c_try_link "$LINENO"
21381then :
21382
21383            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21384            tmp_CFLAGS="-fvisibility=hidden"
21385            supports_symbol_hiding="yes"
21386
21387fi
21388rm -f core conftest.err conftest.$ac_objext conftest.beam \
21389    conftest$ac_exeext conftest.$ac_ext
21390          CFLAGS="$tmp_save_CFLAGS"
21391        fi
21392      fi
21393      ;;
21394    SUNPRO_C)
21395      if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
21396        tmp_EXTERN="__global"
21397        tmp_CFLAGS="-xldscope=hidden"
21398        supports_symbol_hiding="yes"
21399      fi
21400      ;;
21401  esac
21402  if test "$supports_symbol_hiding" = "yes"; then
21403    tmp_save_CFLAGS="$CFLAGS"
21404    CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21405    squeeze CFLAGS
21406    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21407/* end confdefs.h.  */
21408
21409
21410        $tmp_EXTERN char *dummy(char *buff);
21411        char *dummy(char *buff)
21412        {
21413         if(buff)
21414           return ++buff;
21415         else
21416           return buff;
21417        }
21418
21419int main (void)
21420{
21421
21422        char b[16];
21423        char *r = dummy(&b[0]);
21424        if(r)
21425          return (int)*r;
21426
21427 ;
21428 return 0;
21429}
21430
21431_ACEOF
21432if ac_fn_c_try_compile "$LINENO"
21433then :
21434
21435      supports_symbol_hiding="yes"
21436      if test -f conftest.err; then
21437        grep 'visibility' conftest.err >/dev/null
21438        if test "$?" -eq "0"; then
21439          supports_symbol_hiding="no"
21440        fi
21441      fi
21442
21443else $as_nop
21444
21445      supports_symbol_hiding="no"
21446      echo " " >&6
21447      sed 's/^/cc-src: /' conftest.$ac_ext >&6
21448      sed 's/^/cc-err: /' conftest.err >&6
21449      echo " " >&6
21450
21451fi
21452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21453    CFLAGS="$tmp_save_CFLAGS"
21454  fi
21455  if test "$supports_symbol_hiding" = "yes"; then
21456    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21457printf "%s\n" "yes" >&6; }
21458    symbol_hiding_CFLAGS="$tmp_CFLAGS"
21459    symbol_hiding_EXTERN="$tmp_EXTERN"
21460  else
21461    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21462printf "%s\n" "no" >&6; }
21463  fi
21464
21465
21466
21467      supports_curldebug="unknown"
21468  if test "$want_curldebug" = "yes"; then
21469    if test "x$enable_shared" != "xno" &&
21470      test "x$enable_shared" != "xyes"; then
21471      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
21472printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
21473      supports_curldebug="no"
21474    fi
21475    if test "x$enable_static" != "xno" &&
21476      test "x$enable_static" != "xyes"; then
21477      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
21478printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
21479      supports_curldebug="no"
21480    fi
21481    if test "$supports_curldebug" != "no"; then
21482      if test "$enable_shared" = "yes" &&
21483        test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
21484        supports_curldebug="no"
21485        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
21486printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
21487      fi
21488    fi
21489  fi
21490  #
21491  if test "$want_curldebug" = "yes"; then
21492    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
21493printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
21494    test "$supports_curldebug" = "no" || supports_curldebug="yes"
21495    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
21496printf "%s\n" "$supports_curldebug" >&6; }
21497    if test "$supports_curldebug" = "no"; then
21498      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
21499printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
21500      want_curldebug="no"
21501    fi
21502  fi
21503
21504 if test x$want_curldebug = xyes; then
21505  CURLDEBUG_TRUE=
21506  CURLDEBUG_FALSE='#'
21507else
21508  CURLDEBUG_TRUE='#'
21509  CURLDEBUG_FALSE=
21510fi
21511
21512
21513supports_unittests=yes
21514# cross-compilation of unit tests static library/programs fails when
21515# libcurl shared library is built. This might be due to a libtool or
21516# automake issue. In this case we disable unit tests.
21517if test "x$cross_compiling" != "xno" &&
21518   test "x$enable_shared" != "xno"; then
21519  supports_unittests=no
21520fi
21521
21522# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
21523# a problem related with OpenSSL headers and library versions not matching.
21524# Disable unit tests while time to further investigate this is found.
21525case $host in
21526  mips-sgi-irix6.5)
21527    if test "$compiler_id" = "GNU_C"; then
21528      supports_unittests=no
21529    fi
21530    ;;
21531esac
21532
21533# All AIX autobuilds fails unit tests linking against unittests library
21534# due to unittests library being built with no symbols or members. Libtool ?
21535# Disable unit tests while time to further investigate this is found.
21536case $host_os in
21537  aix*)
21538    supports_unittests=no
21539    ;;
21540esac
21541
21542if test "x$want_debug" = "xyes" &&
21543   test "x$supports_unittests" = "xyes"; then
21544  want_unittests=yes
21545else
21546  want_unittests=no
21547fi
21548 if test x$want_unittests = xyes; then
21549  BUILD_UNITTESTS_TRUE=
21550  BUILD_UNITTESTS_FALSE='#'
21551else
21552  BUILD_UNITTESTS_TRUE='#'
21553  BUILD_UNITTESTS_FALSE=
21554fi
21555
21556
21557
21558
21559    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
21560printf %s "checking whether build target supports WIN32 file API... " >&6; }
21561  curl_win32_file_api="no"
21562  if test "$curl_cv_native_windows" = "yes"; then
21563    if test x"$enable_largefile" != "xno"; then
21564      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565/* end confdefs.h.  */
21566
21567
21568
21569int main (void)
21570{
21571
21572#if !defined(_WIN32_WCE) && (defined(__MINGW32__) || defined(_MSC_VER))
21573          int dummy=1;
21574#else
21575          WIN32 large file API not supported.
21576#endif
21577
21578 ;
21579 return 0;
21580}
21581
21582_ACEOF
21583if ac_fn_c_try_compile "$LINENO"
21584then :
21585
21586        curl_win32_file_api="win32_large_files"
21587
21588fi
21589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21590    fi
21591    if test "$curl_win32_file_api" = "no"; then
21592      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21593/* end confdefs.h.  */
21594
21595
21596
21597int main (void)
21598{
21599
21600#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
21601          int dummy=1;
21602#else
21603          WIN32 small file API not supported.
21604#endif
21605
21606 ;
21607 return 0;
21608}
21609
21610_ACEOF
21611if ac_fn_c_try_compile "$LINENO"
21612then :
21613
21614        curl_win32_file_api="win32_small_files"
21615
21616fi
21617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21618    fi
21619  fi
21620  case "$curl_win32_file_api" in
21621    win32_large_files)
21622      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
21623printf "%s\n" "yes (large file enabled)" >&6; }
21624
21625printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
21626
21627      USE_WIN32_LARGE_FILES=1
21628
21629      ;;
21630    win32_small_files)
21631      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
21632printf "%s\n" "yes (large file disabled)" >&6; }
21633
21634printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
21635
21636      USE_WIN32_SMALL_FILES=1
21637
21638      ;;
21639    *)
21640      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21641printf "%s\n" "no" >&6; }
21642      ;;
21643  esac
21644
21645
21646    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
21647printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
21648  curl_win32_crypto_api="no"
21649  if test "$curl_cv_native_windows" = "yes"; then
21650    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21651/* end confdefs.h.  */
21652
21653
21654#undef inline
21655#ifndef WIN32_LEAN_AND_MEAN
21656#define WIN32_LEAN_AND_MEAN
21657#endif
21658#include <windows.h>
21659#include <wincrypt.h>
21660
21661int main (void)
21662{
21663
21664        HCRYPTPROV hCryptProv;
21665        if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21666                               CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
21667          CryptReleaseContext(hCryptProv, 0);
21668        }
21669
21670 ;
21671 return 0;
21672}
21673
21674_ACEOF
21675if ac_fn_c_try_compile "$LINENO"
21676then :
21677
21678      curl_win32_crypto_api="yes"
21679
21680fi
21681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21682  fi
21683  case "$curl_win32_crypto_api" in
21684    yes)
21685      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21686printf "%s\n" "yes" >&6; }
21687
21688printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
21689
21690      USE_WIN32_CRYPTO=1
21691
21692      ;;
21693    *)
21694      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21695printf "%s\n" "no" >&6; }
21696      ;;
21697  esac
21698
21699
21700
21701
21702  tst_cflags="no"
21703  case $host_os in
21704    darwin*)
21705      tst_cflags="yes"
21706      ;;
21707  esac
21708
21709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
21710printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
21711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
21712printf "%s\n" "$tst_cflags" >&6; };
21713
21714  if test "$tst_cflags" = "yes"; then
21715    old_CFLAGS=$CFLAGS
21716    CFLAGS="$CFLAGS -Werror=partial-availability"
21717    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
21718printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
21719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21720/* end confdefs.h.  */
21721
21722int main (void)
21723{
21724
21725 ;
21726 return 0;
21727}
21728_ACEOF
21729if ac_fn_c_try_compile "$LINENO"
21730then :
21731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21732printf "%s\n" "yes" >&6; }
21733else $as_nop
21734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21735printf "%s\n" "no" >&6; }
21736      CFLAGS=$old_CFLAGS
21737fi
21738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21739  fi
21740
21741
21742
21743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks" >&5
21744printf %s "checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks... " >&6; }
21745case $host_os in
21746  darwin*)
21747    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21748/* end confdefs.h.  */
21749
21750
21751#include <TargetConditionals.h>
21752
21753int main (void)
21754{
21755
21756#if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
21757      return 0;
21758#else
21759#error Not macOS
21760#endif
21761
21762 ;
21763 return 0;
21764}
21765
21766_ACEOF
21767if ac_fn_c_try_compile "$LINENO"
21768then :
21769
21770      build_for_macos="yes"
21771
21772else $as_nop
21773
21774      build_for_macos="no"
21775
21776fi
21777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21778    if test "x$build_for_macos" != xno; then
21779      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21780printf "%s\n" "yes" >&6; }
21781      LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework SystemConfiguration"
21782    else
21783      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21784printf "%s\n" "no" >&6; }
21785    fi
21786    ;;
21787  *)
21788    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21789printf "%s\n" "no" >&6; }
21790esac
21791
21792
21793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
21794printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
21795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21796/* end confdefs.h.  */
21797
21798
21799#include <stdlib.h>
21800
21801int main (void)
21802{
21803
21804      if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
21805
21806 ;
21807 return 0;
21808}
21809
21810_ACEOF
21811if ac_fn_c_try_compile "$LINENO"
21812then :
21813
21814    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21815printf "%s\n" "yes" >&6; }
21816
21817printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
21818
21819
21820else $as_nop
21821
21822    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21823printf "%s\n" "no" >&6; }
21824
21825fi
21826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21827
21828
21829 if test "$curl_cv_native_windows" = "yes" && test -n "${RC}"; then
21830  HAVE_WINDRES_TRUE=
21831  HAVE_WINDRES_FALSE='#'
21832else
21833  HAVE_WINDRES_TRUE='#'
21834  HAVE_WINDRES_FALSE=
21835fi
21836
21837
21838if test "$curl_cv_native_windows" = "yes"; then
21839  if test -z "$HAVE_WINDRES_TRUE"; then :
21840  else
21841  as_fn_error $? "windres not found in PATH. Windows builds require windres. Cannot continue." "$LINENO" 5
21842fi
21843fi
21844
21845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
21846printf %s "checking whether to support http... " >&6; }
21847# Check whether --enable-http was given.
21848if test ${enable_http+y}
21849then :
21850  enableval=$enable_http;  case "$enableval" in
21851  no)
21852       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21853printf "%s\n" "no" >&6; }
21854
21855printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
21856
21857       disable_http="yes"
21858       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
21859printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
21860       CURL_DISABLE_HTTP=1
21861
21862
21863printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21864
21865       CURL_DISABLE_RTSP=1
21866
21867
21868printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
21869
21870
21871printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
21872
21873       curl_h1_msg="no      (--enable-http, --with-hyper)"
21874       curl_altsvc_msg="no";
21875       curl_hsts_msg="no      (--enable-hsts)";
21876       enable_altsvc="no"
21877       hsts="no"
21878       ;;
21879  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21880printf "%s\n" "yes" >&6; }
21881       ;;
21882  esac
21883else $as_nop
21884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21885printf "%s\n" "yes" >&6; }
21886
21887fi
21888
21889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
21890printf %s "checking whether to support ftp... " >&6; }
21891# Check whether --enable-ftp was given.
21892if test ${enable_ftp+y}
21893then :
21894  enableval=$enable_ftp;  case "$enableval" in
21895  no)
21896       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21897printf "%s\n" "no" >&6; }
21898
21899printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
21900
21901       CURL_DISABLE_FTP=1
21902
21903       ;;
21904  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21905printf "%s\n" "yes" >&6; }
21906       ;;
21907  esac
21908else $as_nop
21909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21910printf "%s\n" "yes" >&6; }
21911
21912fi
21913
21914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
21915printf %s "checking whether to support file... " >&6; }
21916# Check whether --enable-file was given.
21917if test ${enable_file+y}
21918then :
21919  enableval=$enable_file;  case "$enableval" in
21920  no)
21921       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21922printf "%s\n" "no" >&6; }
21923
21924printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
21925
21926       CURL_DISABLE_FILE=1
21927
21928       ;;
21929  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21930printf "%s\n" "yes" >&6; }
21931       ;;
21932  esac
21933else $as_nop
21934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21935printf "%s\n" "yes" >&6; }
21936
21937fi
21938
21939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
21940printf %s "checking whether to support ldap... " >&6; }
21941# Check whether --enable-ldap was given.
21942if test ${enable_ldap+y}
21943then :
21944  enableval=$enable_ldap;  case "$enableval" in
21945  no)
21946       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21947printf "%s\n" "no" >&6; }
21948
21949printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21950
21951       CURL_DISABLE_LDAP=1
21952
21953       ;;
21954  yes)
21955       ldap_askedfor="yes"
21956       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21957printf "%s\n" "yes" >&6; }
21958       ;;
21959  *)
21960       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21961printf "%s\n" "yes" >&6; }
21962       ;;
21963  esac
21964else $as_nop
21965
21966       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21967printf "%s\n" "yes" >&6; }
21968
21969fi
21970
21971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
21972printf %s "checking whether to support ldaps... " >&6; }
21973# Check whether --enable-ldaps was given.
21974if test ${enable_ldaps+y}
21975then :
21976  enableval=$enable_ldaps;  case "$enableval" in
21977  no)
21978       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979printf "%s\n" "no" >&6; }
21980
21981printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21982
21983       CURL_DISABLE_LDAPS=1
21984
21985       ;;
21986  *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21987         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
21988printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
21989
21990printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21991
21992         CURL_DISABLE_LDAPS=1
21993
21994       else
21995         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21996printf "%s\n" "yes" >&6; }
21997
21998printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21999
22000         HAVE_LDAP_SSL=1
22001
22002       fi
22003       ;;
22004  esac
22005else $as_nop
22006
22007       if test "x$CURL_DISABLE_LDAP" = "x1" ; then
22008         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22009printf "%s\n" "no" >&6; }
22010
22011printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22012
22013         CURL_DISABLE_LDAPS=1
22014
22015       else
22016         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22017printf "%s\n" "yes" >&6; }
22018
22019printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
22020
22021         HAVE_LDAP_SSL=1
22022
22023       fi
22024
22025fi
22026
22027
22028
22029OPT_HYPER="no"
22030
22031
22032# Check whether --with-hyper was given.
22033if test ${with_hyper+y}
22034then :
22035  withval=$with_hyper; OPT_HYPER=$withval
22036fi
22037
22038case "$OPT_HYPER" in
22039  no)
22040        want_hyper="no"
22041    ;;
22042  yes)
22043        want_hyper="default"
22044    want_hyper_path=""
22045    ;;
22046  *)
22047        want_hyper="yes"
22048    want_hyper_path="$withval"
22049    ;;
22050esac
22051
22052if test X"$want_hyper" != Xno; then
22053  if test "x$disable_http" = "xyes"; then
22054    as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
22055  fi
22056
22057    CLEANLDFLAGS="$LDFLAGS"
22058  CLEANCPPFLAGS="$CPPFLAGS"
22059  CLEANLIBS="$LIBS"
22060
22061
22062    if test -n "$PKG_CONFIG"; then
22063      PKGCONFIG="$PKG_CONFIG"
22064    else
22065      if test -n "$ac_tool_prefix"; then
22066  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22067set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22069printf %s "checking for $ac_word... " >&6; }
22070if test ${ac_cv_path_PKGCONFIG+y}
22071then :
22072  printf %s "(cached) " >&6
22073else $as_nop
22074  case $PKGCONFIG in
22075  [\\/]* | ?:[\\/]*)
22076  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22077  ;;
22078  *)
22079  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22080as_dummy="$PATH:/usr/bin:/usr/local/bin"
22081for as_dir in $as_dummy
22082do
22083  IFS=$as_save_IFS
22084  case $as_dir in #(((
22085    '') as_dir=./ ;;
22086    */) ;;
22087    *) as_dir=$as_dir/ ;;
22088  esac
22089    for ac_exec_ext in '' $ac_executable_extensions; do
22090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22091    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22093    break 2
22094  fi
22095done
22096  done
22097IFS=$as_save_IFS
22098
22099  ;;
22100esac
22101fi
22102PKGCONFIG=$ac_cv_path_PKGCONFIG
22103if test -n "$PKGCONFIG"; then
22104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22105printf "%s\n" "$PKGCONFIG" >&6; }
22106else
22107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22108printf "%s\n" "no" >&6; }
22109fi
22110
22111
22112fi
22113if test -z "$ac_cv_path_PKGCONFIG"; then
22114  ac_pt_PKGCONFIG=$PKGCONFIG
22115  # Extract the first word of "pkg-config", so it can be a program name with args.
22116set dummy pkg-config; ac_word=$2
22117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22118printf %s "checking for $ac_word... " >&6; }
22119if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
22120then :
22121  printf %s "(cached) " >&6
22122else $as_nop
22123  case $ac_pt_PKGCONFIG in
22124  [\\/]* | ?:[\\/]*)
22125  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22126  ;;
22127  *)
22128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22129as_dummy="$PATH:/usr/bin:/usr/local/bin"
22130for as_dir in $as_dummy
22131do
22132  IFS=$as_save_IFS
22133  case $as_dir in #(((
22134    '') as_dir=./ ;;
22135    */) ;;
22136    *) as_dir=$as_dir/ ;;
22137  esac
22138    for ac_exec_ext in '' $ac_executable_extensions; do
22139  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22140    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22141    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22142    break 2
22143  fi
22144done
22145  done
22146IFS=$as_save_IFS
22147
22148  ;;
22149esac
22150fi
22151ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22152if test -n "$ac_pt_PKGCONFIG"; then
22153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22154printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
22155else
22156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22157printf "%s\n" "no" >&6; }
22158fi
22159
22160  if test "x$ac_pt_PKGCONFIG" = x; then
22161    PKGCONFIG="no"
22162  else
22163    case $cross_compiling:$ac_tool_warned in
22164yes:)
22165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22166printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22167ac_tool_warned=yes ;;
22168esac
22169    PKGCONFIG=$ac_pt_PKGCONFIG
22170  fi
22171else
22172  PKGCONFIG="$ac_cv_path_PKGCONFIG"
22173fi
22174
22175    fi
22176
22177    if test "x$PKGCONFIG" != "xno"; then
22178      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
22179printf %s "checking for hyper options with pkg-config... " >&6; }
22180            itexists=`
22181    if test -n "$want_hyper_path"; then
22182      PKG_CONFIG_LIBDIR="$want_hyper_path"
22183      export PKG_CONFIG_LIBDIR
22184    fi
22185         $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
22186
22187      if test -z "$itexists"; then
22188                        PKGCONFIG="no"
22189        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22190printf "%s\n" "no" >&6; }
22191      else
22192        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
22193printf "%s\n" "found" >&6; }
22194      fi
22195    fi
22196
22197
22198  if test "$PKGCONFIG" != "no" ; then
22199    LIB_HYPER=`
22200    if test -n "$want_hyper_path"; then
22201      PKG_CONFIG_LIBDIR="$want_hyper_path"
22202      export PKG_CONFIG_LIBDIR
22203    fi
22204
22205      $PKGCONFIG --libs-only-l hyper`
22206    CPP_HYPER=`
22207    if test -n "$want_hyper_path"; then
22208      PKG_CONFIG_LIBDIR="$want_hyper_path"
22209      export PKG_CONFIG_LIBDIR
22210    fi
22211       $PKGCONFIG --cflags-only-I hyper`
22212    LD_HYPER=`
22213    if test -n "$want_hyper_path"; then
22214      PKG_CONFIG_LIBDIR="$want_hyper_path"
22215      export PKG_CONFIG_LIBDIR
22216    fi
22217
22218      $PKGCONFIG --libs-only-L hyper`
22219  else
22220        LIB_HYPER="-lhyper -ldl -lpthread -lm"
22221    if test X"$want_hyper" != Xdefault; then
22222      CPP_HYPER=-I"$want_hyper_path/capi/include"
22223      LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
22224    fi
22225  fi
22226  if test -n "$LIB_HYPER"; then
22227    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
22228printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
22229    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
22230printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
22231    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
22232printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
22233
22234    LDFLAGS="$LDFLAGS $LD_HYPER"
22235    CPPFLAGS="$CPPFLAGS $CPP_HYPER"
22236    LIBS="$LIB_HYPER $LIBS"
22237
22238    if test "x$cross_compiling" != "xyes"; then
22239            DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
22240    fi
22241
22242    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
22243printf %s "checking for hyper_io_new in -lhyper... " >&6; }
22244if test ${ac_cv_lib_hyper_hyper_io_new+y}
22245then :
22246  printf %s "(cached) " >&6
22247else $as_nop
22248  ac_check_lib_save_LIBS=$LIBS
22249LIBS="-lhyper  $LIBS"
22250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22251/* end confdefs.h.  */
22252
22253
22254#ifdef __cplusplus
22255extern "C"
22256#endif
22257char hyper_io_new ();
22258int main (void)
22259{
22260return hyper_io_new ();
22261 ;
22262 return 0;
22263}
22264_ACEOF
22265if ac_fn_c_try_link "$LINENO"
22266then :
22267  ac_cv_lib_hyper_hyper_io_new=yes
22268else $as_nop
22269  ac_cv_lib_hyper_hyper_io_new=no
22270fi
22271rm -f core conftest.err conftest.$ac_objext conftest.beam \
22272    conftest$ac_exeext conftest.$ac_ext
22273LIBS=$ac_check_lib_save_LIBS
22274fi
22275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
22276printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
22277if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
22278then :
22279
22280              for ac_header in hyper.h
22281do :
22282  ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
22283if test "x$ac_cv_header_hyper_h" = xyes
22284then :
22285  printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
22286 experimental="$experimental Hyper"
22287          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
22288printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
22289          curl_h1_msg="enabled (Hyper)"
22290          HYPER_ENABLED=1
22291
22292printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
22293
22294          USE_HYPER=1
22295
22296          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
22297          export CURL_LIBRARY_PATH
22298          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
22299printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
22300fi
22301
22302done
22303
22304else $as_nop
22305  for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
22306        if test -f "$d/libhyper.a"; then
22307          as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
22308        fi
22309      done
22310      as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
22311
22312fi
22313
22314  fi
22315fi
22316
22317if test X"$want_hyper" != Xno; then
22318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
22319printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
22320
22321printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22322
22323  CURL_DISABLE_RTSP=1
22324
22325else
22326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
22327printf %s "checking whether to support rtsp... " >&6; }
22328  # Check whether --enable-rtsp was given.
22329if test ${enable_rtsp+y}
22330then :
22331  enableval=$enable_rtsp;  case "$enableval" in
22332    no)
22333       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22334printf "%s\n" "no" >&6; }
22335
22336printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22337
22338       CURL_DISABLE_RTSP=1
22339
22340       ;;
22341    *)
22342       if test x$CURL_DISABLE_HTTP = x1 ; then
22343         as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
22344       else
22345         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22346printf "%s\n" "yes" >&6; }
22347         curl_rtsp_msg="enabled"
22348       fi
22349       ;;
22350    esac
22351else $as_nop
22352  if test "x$CURL_DISABLE_HTTP" != "x1"; then
22353          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22354printf "%s\n" "yes" >&6; }
22355          curl_rtsp_msg="enabled"
22356       else
22357          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22358printf "%s\n" "no" >&6; }
22359       fi
22360
22361fi
22362
22363fi
22364
22365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
22366printf %s "checking whether to support proxies... " >&6; }
22367# Check whether --enable-proxy was given.
22368if test ${enable_proxy+y}
22369then :
22370  enableval=$enable_proxy;  case "$enableval" in
22371  no)
22372       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22373printf "%s\n" "no" >&6; }
22374
22375printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
22376
22377       CURL_DISABLE_PROXY=1
22378
22379       https_proxy="no"
22380       ;;
22381  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22382printf "%s\n" "yes" >&6; }
22383       ;;
22384  esac
22385else $as_nop
22386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22387printf "%s\n" "yes" >&6; }
22388
22389fi
22390
22391
22392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
22393printf %s "checking whether to support dict... " >&6; }
22394# Check whether --enable-dict was given.
22395if test ${enable_dict+y}
22396then :
22397  enableval=$enable_dict;  case "$enableval" in
22398  no)
22399       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22400printf "%s\n" "no" >&6; }
22401
22402printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
22403
22404       CURL_DISABLE_DICT=1
22405
22406       ;;
22407  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22408printf "%s\n" "yes" >&6; }
22409       ;;
22410  esac
22411else $as_nop
22412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22413printf "%s\n" "yes" >&6; }
22414
22415fi
22416
22417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
22418printf %s "checking whether to support telnet... " >&6; }
22419# Check whether --enable-telnet was given.
22420if test ${enable_telnet+y}
22421then :
22422  enableval=$enable_telnet;  case "$enableval" in
22423  no)
22424       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22425printf "%s\n" "no" >&6; }
22426
22427printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
22428
22429       CURL_DISABLE_TELNET=1
22430
22431       ;;
22432  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22433printf "%s\n" "yes" >&6; }
22434       ;;
22435  esac
22436else $as_nop
22437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22438printf "%s\n" "yes" >&6; }
22439
22440fi
22441
22442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
22443printf %s "checking whether to support tftp... " >&6; }
22444# Check whether --enable-tftp was given.
22445if test ${enable_tftp+y}
22446then :
22447  enableval=$enable_tftp;  case "$enableval" in
22448  no)
22449       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22450printf "%s\n" "no" >&6; }
22451
22452printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
22453
22454       CURL_DISABLE_TFTP=1
22455
22456       ;;
22457  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22458printf "%s\n" "yes" >&6; }
22459       ;;
22460  esac
22461else $as_nop
22462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22463printf "%s\n" "yes" >&6; }
22464
22465fi
22466
22467
22468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
22469printf %s "checking whether to support pop3... " >&6; }
22470# Check whether --enable-pop3 was given.
22471if test ${enable_pop3+y}
22472then :
22473  enableval=$enable_pop3;  case "$enableval" in
22474  no)
22475       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22476printf "%s\n" "no" >&6; }
22477
22478printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
22479
22480       CURL_DISABLE_POP3=1
22481
22482       ;;
22483  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22484printf "%s\n" "yes" >&6; }
22485       ;;
22486  esac
22487else $as_nop
22488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22489printf "%s\n" "yes" >&6; }
22490
22491fi
22492
22493
22494
22495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
22496printf %s "checking whether to support imap... " >&6; }
22497# Check whether --enable-imap was given.
22498if test ${enable_imap+y}
22499then :
22500  enableval=$enable_imap;  case "$enableval" in
22501  no)
22502       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22503printf "%s\n" "no" >&6; }
22504
22505printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
22506
22507       CURL_DISABLE_IMAP=1
22508
22509       ;;
22510  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22511printf "%s\n" "yes" >&6; }
22512       ;;
22513  esac
22514else $as_nop
22515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22516printf "%s\n" "yes" >&6; }
22517
22518fi
22519
22520
22521
22522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
22523printf %s "checking whether to support smb... " >&6; }
22524# Check whether --enable-smb was given.
22525if test ${enable_smb+y}
22526then :
22527  enableval=$enable_smb;  case "$enableval" in
22528  no)
22529       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22530printf "%s\n" "no" >&6; }
22531
22532printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
22533
22534       CURL_DISABLE_SMB=1
22535
22536       ;;
22537  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22538printf "%s\n" "yes" >&6; }
22539       ;;
22540  esac
22541else $as_nop
22542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22543printf "%s\n" "yes" >&6; }
22544
22545fi
22546
22547
22548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
22549printf %s "checking whether to support smtp... " >&6; }
22550# Check whether --enable-smtp was given.
22551if test ${enable_smtp+y}
22552then :
22553  enableval=$enable_smtp;  case "$enableval" in
22554  no)
22555       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22556printf "%s\n" "no" >&6; }
22557
22558printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
22559
22560       CURL_DISABLE_SMTP=1
22561
22562       ;;
22563  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22564printf "%s\n" "yes" >&6; }
22565       ;;
22566  esac
22567else $as_nop
22568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22569printf "%s\n" "yes" >&6; }
22570
22571fi
22572
22573
22574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
22575printf %s "checking whether to support gopher... " >&6; }
22576# Check whether --enable-gopher was given.
22577if test ${enable_gopher+y}
22578then :
22579  enableval=$enable_gopher;  case "$enableval" in
22580  no)
22581       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22582printf "%s\n" "no" >&6; }
22583
22584printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
22585
22586       CURL_DISABLE_GOPHER=1
22587
22588       ;;
22589  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22590printf "%s\n" "yes" >&6; }
22591       ;;
22592  esac
22593else $as_nop
22594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22595printf "%s\n" "yes" >&6; }
22596
22597fi
22598
22599
22600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
22601printf %s "checking whether to support mqtt... " >&6; }
22602# Check whether --enable-mqtt was given.
22603if test ${enable_mqtt+y}
22604then :
22605  enableval=$enable_mqtt;  case "$enableval" in
22606  no)
22607       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22608printf "%s\n" "no" >&6; }
22609
22610printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
22611
22612       CURL_DISABLE_MQTT=1
22613
22614       ;;
22615  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22616printf "%s\n" "yes" >&6; }
22617       ;;
22618  esac
22619else $as_nop
22620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22621printf "%s\n" "no" >&6; }
22622
22623fi
22624
22625
22626
22627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
22628printf %s "checking whether to provide built-in manual... " >&6; }
22629# Check whether --enable-manual was given.
22630if test ${enable_manual+y}
22631then :
22632  enableval=$enable_manual;  case "$enableval" in
22633  no)
22634       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22635printf "%s\n" "no" >&6; }
22636       ;;
22637  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22638printf "%s\n" "yes" >&6; }
22639       USE_MANUAL="1"
22640       ;;
22641  esac
22642else $as_nop
22643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22644printf "%s\n" "yes" >&6; }
22645       USE_MANUAL="1"
22646
22647fi
22648
22649
22650
22651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
22652printf %s "checking whether to build documentation... " >&6; }
22653# Check whether --enable-docs was given.
22654if test ${enable_docs+y}
22655then :
22656  enableval=$enable_docs;  case "$enableval" in
22657  no)
22658       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22659printf "%s\n" "no" >&6; }
22660       BUILD_DOCS=0
22661              USE_MANUAL=0
22662       curl_docs_msg="no"
22663       ;;
22664  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22665printf "%s\n" "yes" >&6; }
22666       BUILD_DOCS=1
22667       ;;
22668  esac
22669else $as_nop
22670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22671printf "%s\n" "yes" >&6; }
22672       BUILD_DOCS=1
22673
22674fi
22675
22676
22677
22678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
22679printf %s "checking whether to enable generation of C code... " >&6; }
22680# Check whether --enable-libcurl_option was given.
22681if test ${enable_libcurl_option+y}
22682then :
22683  enableval=$enable_libcurl_option;  case "$enableval" in
22684  no)
22685       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22686printf "%s\n" "no" >&6; }
22687
22688printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
22689
22690       curl_libcurl_msg="no"
22691       ;;
22692  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22693printf "%s\n" "yes" >&6; }
22694       ;;
22695  esac
22696else $as_nop
22697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22698printf "%s\n" "yes" >&6; }
22699
22700fi
22701
22702
22703
22704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
22705printf %s "checking whether to use libgcc... " >&6; }
22706# Check whether --enable-libgcc was given.
22707if test ${enable_libgcc+y}
22708then :
22709  enableval=$enable_libgcc;  case "$enableval" in
22710  yes)
22711       LIBS="-lgcc $LIBS"
22712       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22713printf "%s\n" "yes" >&6; }
22714       ;;
22715  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22716printf "%s\n" "no" >&6; }
22717       ;;
22718  esac
22719else $as_nop
22720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22721printf "%s\n" "no" >&6; }
22722
22723fi
22724
22725
22726
22727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22728printf %s "checking if X/Open network library is required... " >&6; }
22729  tst_lib_xnet_required="no"
22730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22731/* end confdefs.h.  */
22732
22733
22734int main (void)
22735{
22736#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22737  return 0;
22738#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22739  return 0;
22740#else
22741  force compilation error
22742#endif
22743}
22744
22745
22746_ACEOF
22747if ac_fn_c_try_compile "$LINENO"
22748then :
22749
22750    tst_lib_xnet_required="yes"
22751    LIBS="-lxnet $LIBS"
22752
22753fi
22754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22756printf "%s\n" "$tst_lib_xnet_required" >&6; }
22757
22758
22759ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22760if test "x$ac_cv_func_gethostbyname" = xyes
22761then :
22762  HAVE_GETHOSTBYNAME="1"
22763
22764else $as_nop
22765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22766printf %s "checking for gethostbyname in -lnsl... " >&6; }
22767if test ${ac_cv_lib_nsl_gethostbyname+y}
22768then :
22769  printf %s "(cached) " >&6
22770else $as_nop
22771  ac_check_lib_save_LIBS=$LIBS
22772LIBS="-lnsl  $LIBS"
22773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774/* end confdefs.h.  */
22775
22776
22777#ifdef __cplusplus
22778extern "C"
22779#endif
22780char gethostbyname ();
22781int main (void)
22782{
22783return gethostbyname ();
22784 ;
22785 return 0;
22786}
22787_ACEOF
22788if ac_fn_c_try_link "$LINENO"
22789then :
22790  ac_cv_lib_nsl_gethostbyname=yes
22791else $as_nop
22792  ac_cv_lib_nsl_gethostbyname=no
22793fi
22794rm -f core conftest.err conftest.$ac_objext conftest.beam \
22795    conftest$ac_exeext conftest.$ac_ext
22796LIBS=$ac_check_lib_save_LIBS
22797fi
22798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22799printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22800if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22801then :
22802  HAVE_GETHOSTBYNAME="1"
22803                             LIBS="-lnsl $LIBS"
22804
22805fi
22806
22807
22808fi
22809
22810
22811if test "$HAVE_GETHOSTBYNAME" != "1"
22812then
22813    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22814printf %s "checking for gethostbyname in -lsocket... " >&6; }
22815if test ${ac_cv_lib_socket_gethostbyname+y}
22816then :
22817  printf %s "(cached) " >&6
22818else $as_nop
22819  ac_check_lib_save_LIBS=$LIBS
22820LIBS="-lsocket  $LIBS"
22821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22822/* end confdefs.h.  */
22823
22824
22825#ifdef __cplusplus
22826extern "C"
22827#endif
22828char gethostbyname ();
22829int main (void)
22830{
22831return gethostbyname ();
22832 ;
22833 return 0;
22834}
22835_ACEOF
22836if ac_fn_c_try_link "$LINENO"
22837then :
22838  ac_cv_lib_socket_gethostbyname=yes
22839else $as_nop
22840  ac_cv_lib_socket_gethostbyname=no
22841fi
22842rm -f core conftest.err conftest.$ac_objext conftest.beam \
22843    conftest$ac_exeext conftest.$ac_ext
22844LIBS=$ac_check_lib_save_LIBS
22845fi
22846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22847printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
22848if test "x$ac_cv_lib_socket_gethostbyname" = xyes
22849then :
22850  HAVE_GETHOSTBYNAME="1"
22851               LIBS="-lsocket $LIBS"
22852
22853fi
22854
22855fi
22856
22857if test "$HAVE_GETHOSTBYNAME" != "1"
22858then
22859    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
22860printf %s "checking for gethostbyname in -lwatt... " >&6; }
22861if test ${ac_cv_lib_watt_gethostbyname+y}
22862then :
22863  printf %s "(cached) " >&6
22864else $as_nop
22865  ac_check_lib_save_LIBS=$LIBS
22866LIBS="-lwatt  $LIBS"
22867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22868/* end confdefs.h.  */
22869
22870
22871#ifdef __cplusplus
22872extern "C"
22873#endif
22874char gethostbyname ();
22875int main (void)
22876{
22877return gethostbyname ();
22878 ;
22879 return 0;
22880}
22881_ACEOF
22882if ac_fn_c_try_link "$LINENO"
22883then :
22884  ac_cv_lib_watt_gethostbyname=yes
22885else $as_nop
22886  ac_cv_lib_watt_gethostbyname=no
22887fi
22888rm -f core conftest.err conftest.$ac_objext conftest.beam \
22889    conftest$ac_exeext conftest.$ac_ext
22890LIBS=$ac_check_lib_save_LIBS
22891fi
22892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
22893printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
22894if test "x$ac_cv_lib_watt_gethostbyname" = xyes
22895then :
22896  HAVE_GETHOSTBYNAME="1"
22897               CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
22898               LDFLAGS="-L/dev/env/WATT_ROOT/lib"
22899               LIBS="-lwatt $LIBS"
22900
22901fi
22902
22903fi
22904
22905if test "$HAVE_GETHOSTBYNAME" != "1"
22906then
22907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22908printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
22909  my_ac_save_LIBS=$LIBS
22910  LIBS="-lnsl -lsocket $LIBS"
22911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22912/* end confdefs.h.  */
22913
22914
22915
22916int main (void)
22917{
22918
22919      gethostbyname();
22920
22921 ;
22922 return 0;
22923}
22924
22925_ACEOF
22926if ac_fn_c_try_link "$LINENO"
22927then :
22928
22929    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22930printf "%s\n" "yes" >&6; }
22931    HAVE_GETHOSTBYNAME="1"
22932
22933else $as_nop
22934
22935    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22936printf "%s\n" "no" >&6; }
22937    LIBS=$my_ac_save_LIBS
22938
22939fi
22940rm -f core conftest.err conftest.$ac_objext conftest.beam \
22941    conftest$ac_exeext conftest.$ac_ext
22942fi
22943
22944if test "$HAVE_GETHOSTBYNAME" != "1"
22945then
22946    if test "$curl_cv_native_windows" = "yes"; then
22947    winsock_LIB="-lws2_32"
22948    if test ! -z "$winsock_LIB"; then
22949      my_ac_save_LIBS=$LIBS
22950      LIBS="$winsock_LIB $LIBS"
22951      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22952printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
22953      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954/* end confdefs.h.  */
22955
22956
22957#ifdef _WIN32
22958#ifndef WIN32_LEAN_AND_MEAN
22959#define WIN32_LEAN_AND_MEAN
22960#endif
22961#include <winsock2.h>
22962#endif
22963
22964int main (void)
22965{
22966
22967          gethostbyname("localhost");
22968
22969 ;
22970 return 0;
22971}
22972
22973_ACEOF
22974if ac_fn_c_try_link "$LINENO"
22975then :
22976
22977        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22978printf "%s\n" "yes" >&6; }
22979        HAVE_GETHOSTBYNAME="1"
22980
22981else $as_nop
22982
22983        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22984printf "%s\n" "no" >&6; }
22985        winsock_LIB=""
22986        LIBS=$my_ac_save_LIBS
22987
22988fi
22989rm -f core conftest.err conftest.$ac_objext conftest.beam \
22990    conftest$ac_exeext conftest.$ac_ext
22991    fi
22992  fi
22993fi
22994
22995if test "$HAVE_GETHOSTBYNAME" != "1"
22996then
22997    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22998printf %s "checking for gethostbyname for Minix 3... " >&6; }
22999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000/* end confdefs.h.  */
23001
23002
23003/* Older Minix versions may need <net/gen/netdb.h> here instead */
23004#include <netdb.h>
23005
23006int main (void)
23007{
23008
23009      gethostbyname("localhost");
23010
23011 ;
23012 return 0;
23013}
23014
23015_ACEOF
23016if ac_fn_c_try_link "$LINENO"
23017then :
23018
23019    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23020printf "%s\n" "yes" >&6; }
23021    HAVE_GETHOSTBYNAME="1"
23022
23023else $as_nop
23024
23025    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23026printf "%s\n" "no" >&6; }
23027
23028fi
23029rm -f core conftest.err conftest.$ac_objext conftest.beam \
23030    conftest$ac_exeext conftest.$ac_ext
23031fi
23032
23033if test "$HAVE_GETHOSTBYNAME" != "1"
23034then
23035    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
23036printf %s "checking for gethostbyname for eCos... " >&6; }
23037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23038/* end confdefs.h.  */
23039
23040
23041#include <stdio.h>
23042#include <netdb.h>
23043
23044int main (void)
23045{
23046
23047      gethostbyname("localhost");
23048
23049 ;
23050 return 0;
23051}
23052
23053_ACEOF
23054if ac_fn_c_try_link "$LINENO"
23055then :
23056
23057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23058printf "%s\n" "yes" >&6; }
23059    HAVE_GETHOSTBYNAME="1"
23060
23061else $as_nop
23062
23063    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23064printf "%s\n" "no" >&6; }
23065
23066fi
23067rm -f core conftest.err conftest.$ac_objext conftest.beam \
23068    conftest$ac_exeext conftest.$ac_ext
23069fi
23070
23071if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
23072then
23073    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
23074printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
23075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076/* end confdefs.h.  */
23077
23078
23079  #define __USE_INLINE__
23080  #include <proto/bsdsocket.h>
23081  #ifdef __amigaos4__
23082  struct SocketIFace *ISocket = NULL;
23083  #else
23084  struct Library *SocketBase = NULL;
23085  #endif
23086
23087int main (void)
23088{
23089
23090      gethostbyname("localhost");
23091
23092 ;
23093 return 0;
23094}
23095
23096_ACEOF
23097if ac_fn_c_try_link "$LINENO"
23098then :
23099
23100    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23101printf "%s\n" "yes" >&6; }
23102    HAVE_GETHOSTBYNAME="1"
23103    HAVE_PROTO_BSDSOCKET_H="1"
23104
23105printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23106
23107    HAVE_PROTO_BSDSOCKET_H=1
23108
23109
23110else $as_nop
23111
23112    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23113printf "%s\n" "no" >&6; }
23114
23115fi
23116rm -f core conftest.err conftest.$ac_objext conftest.beam \
23117    conftest$ac_exeext conftest.$ac_ext
23118fi
23119
23120if test "$HAVE_GETHOSTBYNAME" != "1"
23121then
23122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
23123printf %s "checking for gethostbyname in -lnetwork... " >&6; }
23124if test ${ac_cv_lib_network_gethostbyname+y}
23125then :
23126  printf %s "(cached) " >&6
23127else $as_nop
23128  ac_check_lib_save_LIBS=$LIBS
23129LIBS="-lnetwork  $LIBS"
23130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23131/* end confdefs.h.  */
23132
23133
23134#ifdef __cplusplus
23135extern "C"
23136#endif
23137char gethostbyname ();
23138int main (void)
23139{
23140return gethostbyname ();
23141 ;
23142 return 0;
23143}
23144_ACEOF
23145if ac_fn_c_try_link "$LINENO"
23146then :
23147  ac_cv_lib_network_gethostbyname=yes
23148else $as_nop
23149  ac_cv_lib_network_gethostbyname=no
23150fi
23151rm -f core conftest.err conftest.$ac_objext conftest.beam \
23152    conftest$ac_exeext conftest.$ac_ext
23153LIBS=$ac_check_lib_save_LIBS
23154fi
23155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
23156printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
23157if test "x$ac_cv_lib_network_gethostbyname" = xyes
23158then :
23159  HAVE_GETHOSTBYNAME="1"
23160               LIBS="-lnetwork $LIBS"
23161
23162fi
23163
23164fi
23165
23166if test "$HAVE_GETHOSTBYNAME" != "1"; then
23167  as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
23168fi
23169
23170
23171curl_includes_winsock2="\
23172/* includes start */
23173#ifdef _WIN32
23174#  ifndef WIN32_LEAN_AND_MEAN
23175#    define WIN32_LEAN_AND_MEAN
23176#  endif
23177#  include <winsock2.h>
23178#endif
23179/* includes end */"
23180
23181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
23182printf %s "checking whether build target is a native Windows one... " >&6; }
23183if test ${curl_cv_native_windows+y}
23184then :
23185  printf %s "(cached) " >&6
23186else $as_nop
23187
23188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23189/* end confdefs.h.  */
23190
23191
23192
23193int main (void)
23194{
23195
23196#ifdef _WIN32
23197        int dummy=1;
23198#else
23199        Not a native Windows build target.
23200#endif
23201
23202 ;
23203 return 0;
23204}
23205
23206_ACEOF
23207if ac_fn_c_try_compile "$LINENO"
23208then :
23209
23210      curl_cv_native_windows="yes"
23211
23212else $as_nop
23213
23214      curl_cv_native_windows="no"
23215
23216fi
23217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23218
23219fi
23220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
23221printf "%s\n" "$curl_cv_native_windows" >&6; }
23222   if test "x$curl_cv_native_windows" = xyes; then
23223  DOING_NATIVE_WINDOWS_TRUE=
23224  DOING_NATIVE_WINDOWS_FALSE='#'
23225else
23226  DOING_NATIVE_WINDOWS_TRUE='#'
23227  DOING_NATIVE_WINDOWS_FALSE=
23228fi
23229
23230
23231
23232
23233curl_includes_bsdsocket="\
23234/* includes start */
23235#if defined(HAVE_PROTO_BSDSOCKET_H)
23236#  define __NO_NET_API
23237#  define __USE_INLINE__
23238#  include <proto/bsdsocket.h>
23239#  ifdef HAVE_SYS_IOCTL_H
23240#    include <sys/ioctl.h>
23241#  endif
23242#  ifdef __amigaos4__
23243struct SocketIFace *ISocket = NULL;
23244#  else
23245struct Library *SocketBase = NULL;
23246#  endif
23247#  define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
23248#endif
23249/* includes end */"
23250  ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
23251"
23252if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
23253then :
23254  printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23255
23256fi
23257
23258
23259
23260      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
23261printf %s "checking for connect in libraries... " >&6; }
23262  tst_connect_save_LIBS="$LIBS"
23263  tst_connect_need_LIBS="unknown"
23264  for tst_lib in '' '-lsocket' ; do
23265    if test "$tst_connect_need_LIBS" = "unknown"; then
23266      LIBS="$tst_lib $tst_connect_save_LIBS"
23267      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23268/* end confdefs.h.  */
23269
23270
23271          $curl_includes_winsock2
23272          $curl_includes_bsdsocket
23273          #if !defined(_WIN32) && !defined(HAVE_PROTO_BSDSOCKET_H)
23274            int connect(int, void*, int);
23275          #endif
23276
23277int main (void)
23278{
23279
23280          if(0 != connect(0, 0, 0))
23281            return 1;
23282
23283 ;
23284 return 0;
23285}
23286
23287_ACEOF
23288if ac_fn_c_try_link "$LINENO"
23289then :
23290
23291        tst_connect_need_LIBS="$tst_lib"
23292
23293fi
23294rm -f core conftest.err conftest.$ac_objext conftest.beam \
23295    conftest$ac_exeext conftest.$ac_ext
23296    fi
23297  done
23298  LIBS="$tst_connect_save_LIBS"
23299  #
23300  case X-"$tst_connect_need_LIBS" in
23301    X-unknown)
23302      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
23303printf "%s\n" "cannot find connect" >&6; }
23304      as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
23305      ;;
23306    X-)
23307      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23308printf "%s\n" "yes" >&6; }
23309      ;;
23310    *)
23311      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
23312printf "%s\n" "$tst_connect_need_LIBS" >&6; }
23313      LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
23314      ;;
23315  esac
23316
23317
23318CURL_NETWORK_LIBS=$LIBS
23319
23320
23321  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23322if test "x$ac_cv_header_sys_types_h" = xyes
23323then :
23324  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23325
23326fi
23327ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23328if test "x$ac_cv_header_sys_time_h" = xyes
23329then :
23330  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23331
23332fi
23333
23334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
23335printf %s "checking for monotonic clock_gettime... " >&6; }
23336  #
23337  if test "x$dontwant_rt" = "xno" ; then
23338    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23339/* end confdefs.h.  */
23340
23341
23342#ifdef HAVE_SYS_TYPES_H
23343#include <sys/types.h>
23344#endif
23345#ifdef HAVE_SYS_TIME_H
23346#include <sys/time.h>
23347#endif
23348#include <time.h>
23349
23350int main (void)
23351{
23352
23353        struct timespec ts;
23354        (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23355
23356 ;
23357 return 0;
23358}
23359
23360_ACEOF
23361if ac_fn_c_try_compile "$LINENO"
23362then :
23363
23364      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23365printf "%s\n" "yes" >&6; }
23366      curl_func_clock_gettime="yes"
23367
23368else $as_nop
23369
23370      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23371printf "%s\n" "no" >&6; }
23372      curl_func_clock_gettime="no"
23373
23374fi
23375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23376  fi
23377
23378
23379    #
23380  if test "$curl_func_clock_gettime" = "yes"; then
23381    #
23382    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
23383printf %s "checking for clock_gettime in libraries... " >&6; }
23384    #
23385    curl_cv_save_LIBS="$LIBS"
23386    curl_cv_gclk_LIBS="unknown"
23387    #
23388    for x_xlibs in '' '-lrt' '-lposix4' ; do
23389      if test "$curl_cv_gclk_LIBS" = "unknown"; then
23390        if test -z "$x_xlibs"; then
23391          LIBS="$curl_cv_save_LIBS"
23392        else
23393          LIBS="$x_xlibs $curl_cv_save_LIBS"
23394        fi
23395        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23396/* end confdefs.h.  */
23397
23398
23399#ifdef HAVE_SYS_TYPES_H
23400#include <sys/types.h>
23401#endif
23402#ifdef HAVE_SYS_TIME_H
23403#include <sys/time.h>
23404#endif
23405#include <time.h>
23406
23407int main (void)
23408{
23409
23410            struct timespec ts;
23411            (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23412
23413 ;
23414 return 0;
23415}
23416
23417_ACEOF
23418if ac_fn_c_try_link "$LINENO"
23419then :
23420
23421          curl_cv_gclk_LIBS="$x_xlibs"
23422
23423fi
23424rm -f core conftest.err conftest.$ac_objext conftest.beam \
23425    conftest$ac_exeext conftest.$ac_ext
23426      fi
23427    done
23428    #
23429    LIBS="$curl_cv_save_LIBS"
23430    #
23431    case X-"$curl_cv_gclk_LIBS" in
23432      X-unknown)
23433        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
23434printf "%s\n" "cannot find clock_gettime" >&6; }
23435        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23436printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23437        curl_func_clock_gettime="no"
23438        ;;
23439      X-)
23440        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23441printf "%s\n" "no additional lib required" >&6; }
23442        curl_func_clock_gettime="yes"
23443        ;;
23444      *)
23445        if test -z "$curl_cv_save_LIBS"; then
23446          LIBS="$curl_cv_gclk_LIBS"
23447        else
23448          LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23449        fi
23450        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23451printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
23452        curl_func_clock_gettime="yes"
23453        ;;
23454    esac
23455    #
23456        if test "x$cross_compiling" != "xyes" &&
23457      test "$curl_func_clock_gettime" = "yes"; then
23458      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23459printf %s "checking if monotonic clock_gettime works... " >&6; }
23460
23461   case $host_os in
23462     darwin*)
23463      if test "$cross_compiling" = yes
23464then :
23465  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23466printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23467as_fn_error $? "cannot run test program while cross compiling
23468See \`config.log' for more details" "$LINENO" 5; }
23469else $as_nop
23470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471/* end confdefs.h.  */
23472
23473
23474#include <stdlib.h>
23475#ifdef HAVE_SYS_TYPES_H
23476#include <sys/types.h>
23477#endif
23478#ifdef HAVE_SYS_TIME_H
23479#include <sys/time.h>
23480#endif
23481#include <time.h>
23482
23483int main (void)
23484{
23485
23486          struct timespec ts;
23487          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23488            exit(0);
23489          else
23490            exit(1);
23491
23492 ;
23493 return 0;
23494}
23495
23496_ACEOF
23497if ac_fn_c_try_run "$LINENO"
23498then :
23499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23500printf "%s\n" "yes" >&6; }
23501
23502else $as_nop
23503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23504printf "%s\n" "no" >&6; }
23505        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23506printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23507        curl_func_clock_gettime="no"
23508        LIBS="$curl_cv_save_LIBS"
23509
23510fi
23511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23512  conftest.$ac_objext conftest.beam conftest.$ac_ext
23513fi
23514
23515     ;;
23516     *)
23517      oldcc=$CC
23518      old=$LD_LIBRARY_PATH
23519      CC="sh ./run-compiler"
23520      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
23521      export LD_LIBRARY_PATH
23522      if test "$cross_compiling" = yes
23523then :
23524  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23525printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23526as_fn_error $? "cannot run test program while cross compiling
23527See \`config.log' for more details" "$LINENO" 5; }
23528else $as_nop
23529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23530/* end confdefs.h.  */
23531
23532
23533#include <stdlib.h>
23534#ifdef HAVE_SYS_TYPES_H
23535#include <sys/types.h>
23536#endif
23537#ifdef HAVE_SYS_TIME_H
23538#include <sys/time.h>
23539#endif
23540#include <time.h>
23541
23542int main (void)
23543{
23544
23545          struct timespec ts;
23546          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23547            exit(0);
23548          else
23549            exit(1);
23550
23551 ;
23552 return 0;
23553}
23554
23555_ACEOF
23556if ac_fn_c_try_run "$LINENO"
23557then :
23558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23559printf "%s\n" "yes" >&6; }
23560
23561else $as_nop
23562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23563printf "%s\n" "no" >&6; }
23564        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23565printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23566        curl_func_clock_gettime="no"
23567        LIBS="$curl_cv_save_LIBS"
23568
23569fi
23570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23571  conftest.$ac_objext conftest.beam conftest.$ac_ext
23572fi
23573
23574      LD_LIBRARY_PATH=$old # restore
23575      CC=$oldcc
23576     ;;
23577   esac
23578
23579    fi
23580    #
23581    case "$curl_func_clock_gettime" in
23582      yes)
23583
23584printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
23585
23586        ;;
23587    esac
23588    #
23589  fi
23590  #
23591
23592
23593
23594  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23595if test "x$ac_cv_header_sys_types_h" = xyes
23596then :
23597  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23598
23599fi
23600ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23601if test "x$ac_cv_header_sys_time_h" = xyes
23602then :
23603  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23604
23605fi
23606
23607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raw monotonic clock_gettime" >&5
23608printf %s "checking for raw monotonic clock_gettime... " >&6; }
23609  #
23610  if test "x$dontwant_rt" = "xno" ; then
23611    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612/* end confdefs.h.  */
23613
23614
23615#ifdef HAVE_SYS_TYPES_H
23616#include <sys/types.h>
23617#endif
23618#ifdef HAVE_SYS_TIME_H
23619#include <sys/time.h>
23620#endif
23621#include <time.h>
23622
23623int main (void)
23624{
23625
23626        struct timespec ts;
23627        (void)clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
23628
23629 ;
23630 return 0;
23631}
23632
23633_ACEOF
23634if ac_fn_c_try_compile "$LINENO"
23635then :
23636
23637      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23638printf "%s\n" "yes" >&6; }
23639
23640printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC_RAW 1" >>confdefs.h
23641
23642
23643else $as_nop
23644
23645      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23646printf "%s\n" "no" >&6; }
23647
23648fi
23649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23650  fi
23651
23652
23653CURL_NETWORK_AND_TIME_LIBS=$LIBS
23654
23655
23656
23657clean_CPPFLAGS=$CPPFLAGS
23658clean_LDFLAGS=$LDFLAGS
23659clean_LIBS=$LIBS
23660ZLIB_LIBS=""
23661
23662# Check whether --with-zlib was given.
23663if test ${with_zlib+y}
23664then :
23665  withval=$with_zlib; OPT_ZLIB="$withval"
23666fi
23667
23668
23669if test "$OPT_ZLIB" = "no" ; then
23670    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
23671printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
23672else
23673  if test "$OPT_ZLIB" = "yes" ; then
23674    OPT_ZLIB=""
23675  fi
23676
23677  if test -z "$OPT_ZLIB" ; then
23678
23679    if test -n "$PKG_CONFIG"; then
23680      PKGCONFIG="$PKG_CONFIG"
23681    else
23682      if test -n "$ac_tool_prefix"; then
23683  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23684set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23686printf %s "checking for $ac_word... " >&6; }
23687if test ${ac_cv_path_PKGCONFIG+y}
23688then :
23689  printf %s "(cached) " >&6
23690else $as_nop
23691  case $PKGCONFIG in
23692  [\\/]* | ?:[\\/]*)
23693  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23694  ;;
23695  *)
23696  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23697as_dummy="$PATH:/usr/bin:/usr/local/bin"
23698for as_dir in $as_dummy
23699do
23700  IFS=$as_save_IFS
23701  case $as_dir in #(((
23702    '') as_dir=./ ;;
23703    */) ;;
23704    *) as_dir=$as_dir/ ;;
23705  esac
23706    for ac_exec_ext in '' $ac_executable_extensions; do
23707  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23708    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23709    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23710    break 2
23711  fi
23712done
23713  done
23714IFS=$as_save_IFS
23715
23716  ;;
23717esac
23718fi
23719PKGCONFIG=$ac_cv_path_PKGCONFIG
23720if test -n "$PKGCONFIG"; then
23721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23722printf "%s\n" "$PKGCONFIG" >&6; }
23723else
23724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23725printf "%s\n" "no" >&6; }
23726fi
23727
23728
23729fi
23730if test -z "$ac_cv_path_PKGCONFIG"; then
23731  ac_pt_PKGCONFIG=$PKGCONFIG
23732  # Extract the first word of "pkg-config", so it can be a program name with args.
23733set dummy pkg-config; ac_word=$2
23734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23735printf %s "checking for $ac_word... " >&6; }
23736if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23737then :
23738  printf %s "(cached) " >&6
23739else $as_nop
23740  case $ac_pt_PKGCONFIG in
23741  [\\/]* | ?:[\\/]*)
23742  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23743  ;;
23744  *)
23745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23746as_dummy="$PATH:/usr/bin:/usr/local/bin"
23747for as_dir in $as_dummy
23748do
23749  IFS=$as_save_IFS
23750  case $as_dir in #(((
23751    '') as_dir=./ ;;
23752    */) ;;
23753    *) as_dir=$as_dir/ ;;
23754  esac
23755    for ac_exec_ext in '' $ac_executable_extensions; do
23756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23757    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23759    break 2
23760  fi
23761done
23762  done
23763IFS=$as_save_IFS
23764
23765  ;;
23766esac
23767fi
23768ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23769if test -n "$ac_pt_PKGCONFIG"; then
23770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23771printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23772else
23773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23774printf "%s\n" "no" >&6; }
23775fi
23776
23777  if test "x$ac_pt_PKGCONFIG" = x; then
23778    PKGCONFIG="no"
23779  else
23780    case $cross_compiling:$ac_tool_warned in
23781yes:)
23782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23783printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23784ac_tool_warned=yes ;;
23785esac
23786    PKGCONFIG=$ac_pt_PKGCONFIG
23787  fi
23788else
23789  PKGCONFIG="$ac_cv_path_PKGCONFIG"
23790fi
23791
23792    fi
23793
23794    if test "x$PKGCONFIG" != "xno"; then
23795      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
23796printf %s "checking for zlib options with pkg-config... " >&6; }
23797            itexists=`
23798    if test -n ""; then
23799      PKG_CONFIG_LIBDIR=""
23800      export PKG_CONFIG_LIBDIR
23801    fi
23802         $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
23803
23804      if test -z "$itexists"; then
23805                        PKGCONFIG="no"
23806        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23807printf "%s\n" "no" >&6; }
23808      else
23809        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23810printf "%s\n" "found" >&6; }
23811      fi
23812    fi
23813
23814
23815    if test "$PKGCONFIG" != "no" ; then
23816      ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`"
23817      if test -n "$ZLIB_LIBS"; then
23818        LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
23819      else
23820        ZLIB_LIBS="`$PKGCONFIG --libs zlib`"
23821      fi
23822      LIBS="$ZLIB_LIBS $LIBS"
23823      CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`"
23824      OPT_ZLIB=""
23825      HAVE_LIBZ="1"
23826    fi
23827
23828    if test -z "$HAVE_LIBZ"; then
23829
23830
23831      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
23832printf %s "checking for inflateEnd in -lz... " >&6; }
23833if test ${ac_cv_lib_z_inflateEnd+y}
23834then :
23835  printf %s "(cached) " >&6
23836else $as_nop
23837  ac_check_lib_save_LIBS=$LIBS
23838LIBS="-lz  $LIBS"
23839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840/* end confdefs.h.  */
23841
23842
23843#ifdef __cplusplus
23844extern "C"
23845#endif
23846char inflateEnd ();
23847int main (void)
23848{
23849return inflateEnd ();
23850 ;
23851 return 0;
23852}
23853_ACEOF
23854if ac_fn_c_try_link "$LINENO"
23855then :
23856  ac_cv_lib_z_inflateEnd=yes
23857else $as_nop
23858  ac_cv_lib_z_inflateEnd=no
23859fi
23860rm -f core conftest.err conftest.$ac_objext conftest.beam \
23861    conftest$ac_exeext conftest.$ac_ext
23862LIBS=$ac_check_lib_save_LIBS
23863fi
23864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
23865printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
23866if test "x$ac_cv_lib_z_inflateEnd" = xyes
23867then :
23868                     HAVE_LIBZ="1"
23869                    ZLIB_LIBS="-lz"
23870                    LIBS="$ZLIB_LIBS $LIBS"
23871else $as_nop
23872                     OPT_ZLIB="/usr/local"
23873fi
23874
23875    fi
23876  fi
23877
23878    if test -n "$OPT_ZLIB"; then
23879     CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
23880     LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
23881  fi
23882
23883  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23884if test "x$ac_cv_header_zlib_h" = xyes
23885then :
23886
23887        HAVE_ZLIB_H="1"
23888        if test "$HAVE_LIBZ" != "1"; then
23889      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
23890printf %s "checking for gzread in -lz... " >&6; }
23891if test ${ac_cv_lib_z_gzread+y}
23892then :
23893  printf %s "(cached) " >&6
23894else $as_nop
23895  ac_check_lib_save_LIBS=$LIBS
23896LIBS="-lz  $LIBS"
23897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23898/* end confdefs.h.  */
23899
23900
23901#ifdef __cplusplus
23902extern "C"
23903#endif
23904char gzread ();
23905int main (void)
23906{
23907return gzread ();
23908 ;
23909 return 0;
23910}
23911_ACEOF
23912if ac_fn_c_try_link "$LINENO"
23913then :
23914  ac_cv_lib_z_gzread=yes
23915else $as_nop
23916  ac_cv_lib_z_gzread=no
23917fi
23918rm -f core conftest.err conftest.$ac_objext conftest.beam \
23919    conftest$ac_exeext conftest.$ac_ext
23920LIBS=$ac_check_lib_save_LIBS
23921fi
23922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
23923printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
23924if test "x$ac_cv_lib_z_gzread" = xyes
23925then :
23926
23927                                      HAVE_LIBZ="1"
23928                   ZLIB_LIBS="-lz"
23929                   LIBS="$ZLIB_LIBS $LIBS"
23930
23931else $as_nop
23932   CPPFLAGS=$clean_CPPFLAGS
23933                   LDFLAGS=$clean_LDFLAGS
23934fi
23935
23936    fi
23937
23938else $as_nop
23939
23940            CPPFLAGS=$clean_CPPFLAGS
23941      LDFLAGS=$clean_LDFLAGS
23942
23943fi
23944
23945
23946  if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
23947  then
23948    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
23949printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
23950    HAVE_LIBZ=""
23951    CPPFLAGS=$clean_CPPFLAGS
23952    LDFLAGS=$clean_LDFLAGS
23953    LIBS=$clean_LIBS
23954    ZLIB_LIBS=""
23955  elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
23956  then
23957    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
23958printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
23959    CPPFLAGS=$clean_CPPFLAGS
23960    LDFLAGS=$clean_LDFLAGS
23961    LIBS=$clean_LIBS
23962    ZLIB_LIBS=""
23963  elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
23964  then
23965
23966
23967printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
23968
23969    LIBS="$ZLIB_LIBS $clean_LIBS"
23970
23971        AMFIXLIB="1"
23972    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
23973printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
23974    curl_zlib_msg="enabled"
23975  fi
23976fi
23977
23978 if test x"$AMFIXLIB" = x1; then
23979  HAVE_LIBZ_TRUE=
23980  HAVE_LIBZ_FALSE='#'
23981else
23982  HAVE_LIBZ_TRUE='#'
23983  HAVE_LIBZ_FALSE=
23984fi
23985
23986
23987
23988
23989
23990OPT_BROTLI=off
23991
23992# Check whether --with-brotli was given.
23993if test ${with_brotli+y}
23994then :
23995  withval=$with_brotli; OPT_BROTLI=$withval
23996fi
23997
23998
23999if test X"$OPT_BROTLI" != Xno; then
24000    CLEANLDFLAGS="$LDFLAGS"
24001  CLEANCPPFLAGS="$CPPFLAGS"
24002  CLEANLIBS="$LIBS"
24003
24004  case "$OPT_BROTLI" in
24005  yes)
24006
24007    if test -n "$PKG_CONFIG"; then
24008      PKGCONFIG="$PKG_CONFIG"
24009    else
24010      if test -n "$ac_tool_prefix"; then
24011  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24012set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24014printf %s "checking for $ac_word... " >&6; }
24015if test ${ac_cv_path_PKGCONFIG+y}
24016then :
24017  printf %s "(cached) " >&6
24018else $as_nop
24019  case $PKGCONFIG in
24020  [\\/]* | ?:[\\/]*)
24021  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24022  ;;
24023  *)
24024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24025as_dummy="$PATH:/usr/bin:/usr/local/bin"
24026for as_dir in $as_dummy
24027do
24028  IFS=$as_save_IFS
24029  case $as_dir in #(((
24030    '') as_dir=./ ;;
24031    */) ;;
24032    *) as_dir=$as_dir/ ;;
24033  esac
24034    for ac_exec_ext in '' $ac_executable_extensions; do
24035  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24036    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24037    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24038    break 2
24039  fi
24040done
24041  done
24042IFS=$as_save_IFS
24043
24044  ;;
24045esac
24046fi
24047PKGCONFIG=$ac_cv_path_PKGCONFIG
24048if test -n "$PKGCONFIG"; then
24049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24050printf "%s\n" "$PKGCONFIG" >&6; }
24051else
24052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24053printf "%s\n" "no" >&6; }
24054fi
24055
24056
24057fi
24058if test -z "$ac_cv_path_PKGCONFIG"; then
24059  ac_pt_PKGCONFIG=$PKGCONFIG
24060  # Extract the first word of "pkg-config", so it can be a program name with args.
24061set dummy pkg-config; ac_word=$2
24062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24063printf %s "checking for $ac_word... " >&6; }
24064if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24065then :
24066  printf %s "(cached) " >&6
24067else $as_nop
24068  case $ac_pt_PKGCONFIG in
24069  [\\/]* | ?:[\\/]*)
24070  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24071  ;;
24072  *)
24073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24074as_dummy="$PATH:/usr/bin:/usr/local/bin"
24075for as_dir in $as_dummy
24076do
24077  IFS=$as_save_IFS
24078  case $as_dir in #(((
24079    '') as_dir=./ ;;
24080    */) ;;
24081    *) as_dir=$as_dir/ ;;
24082  esac
24083    for ac_exec_ext in '' $ac_executable_extensions; do
24084  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24085    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24086    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24087    break 2
24088  fi
24089done
24090  done
24091IFS=$as_save_IFS
24092
24093  ;;
24094esac
24095fi
24096ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24097if test -n "$ac_pt_PKGCONFIG"; then
24098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24099printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24100else
24101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24102printf "%s\n" "no" >&6; }
24103fi
24104
24105  if test "x$ac_pt_PKGCONFIG" = x; then
24106    PKGCONFIG="no"
24107  else
24108    case $cross_compiling:$ac_tool_warned in
24109yes:)
24110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24111printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24112ac_tool_warned=yes ;;
24113esac
24114    PKGCONFIG=$ac_pt_PKGCONFIG
24115  fi
24116else
24117  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24118fi
24119
24120    fi
24121
24122    if test "x$PKGCONFIG" != "xno"; then
24123      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
24124printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
24125            itexists=`
24126    if test -n ""; then
24127      PKG_CONFIG_LIBDIR=""
24128      export PKG_CONFIG_LIBDIR
24129    fi
24130         $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
24131
24132      if test -z "$itexists"; then
24133                        PKGCONFIG="no"
24134        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24135printf "%s\n" "no" >&6; }
24136      else
24137        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24138printf "%s\n" "found" >&6; }
24139      fi
24140    fi
24141
24142
24143    if test "$PKGCONFIG" != "no" ; then
24144      LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
24145      LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
24146      CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
24147      version=`$PKGCONFIG --modversion libbrotlidec`
24148      DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
24149    fi
24150
24151    ;;
24152  off)
24153        ;;
24154  *)
24155        PREFIX_BROTLI=$OPT_BROTLI
24156    ;;
24157  esac
24158
24159    if test -n "$PREFIX_BROTLI"; then
24160    LIB_BROTLI="-lbrotlidec"
24161    LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
24162    CPP_BROTLI=-I${PREFIX_BROTLI}/include
24163    DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
24164  fi
24165
24166  LDFLAGS="$LDFLAGS $LD_BROTLI"
24167  CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
24168  LIBS="$LIB_BROTLI $LIBS"
24169
24170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
24171printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
24172if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
24173then :
24174  printf %s "(cached) " >&6
24175else $as_nop
24176  ac_check_lib_save_LIBS=$LIBS
24177LIBS="-lbrotlidec  $LIBS"
24178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24179/* end confdefs.h.  */
24180
24181
24182#ifdef __cplusplus
24183extern "C"
24184#endif
24185char BrotliDecoderDecompress ();
24186int main (void)
24187{
24188return BrotliDecoderDecompress ();
24189 ;
24190 return 0;
24191}
24192_ACEOF
24193if ac_fn_c_try_link "$LINENO"
24194then :
24195  ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
24196else $as_nop
24197  ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
24198fi
24199rm -f core conftest.err conftest.$ac_objext conftest.beam \
24200    conftest$ac_exeext conftest.$ac_ext
24201LIBS=$ac_check_lib_save_LIBS
24202fi
24203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
24204printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
24205if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
24206then :
24207  printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
24208
24209  LIBS="-lbrotlidec $LIBS"
24210
24211fi
24212
24213
24214         for ac_header in brotli/decode.h
24215do :
24216  ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
24217if test "x$ac_cv_header_brotli_decode_h" = xyes
24218then :
24219  printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
24220 curl_brotli_msg="enabled (libbrotlidec)"
24221    HAVE_BROTLI=1
24222
24223printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
24224
24225    HAVE_BROTLI=1
24226
24227
24228fi
24229
24230done
24231
24232  if test X"$OPT_BROTLI" != Xoff &&
24233     test "$HAVE_BROTLI" != "1"; then
24234    as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
24235  fi
24236
24237  if test "$HAVE_BROTLI" = "1"; then
24238    if test -n "$DIR_BROTLI"; then
24239
24240       if test "x$cross_compiling" != "xyes"; then
24241         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
24242         export CURL_LIBRARY_PATH
24243         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
24244printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
24245       fi
24246    fi
24247  else
24248        LDFLAGS=$CLEANLDFLAGS
24249    CPPFLAGS=$CLEANCPPFLAGS
24250    LIBS=$CLEANLIBS
24251  fi
24252fi
24253
24254
24255OPT_ZSTD=off
24256
24257# Check whether --with-zstd was given.
24258if test ${with_zstd+y}
24259then :
24260  withval=$with_zstd; OPT_ZSTD=$withval
24261fi
24262
24263
24264if test X"$OPT_ZSTD" != Xno; then
24265    CLEANLDFLAGS="$LDFLAGS"
24266  CLEANCPPFLAGS="$CPPFLAGS"
24267  CLEANLIBS="$LIBS"
24268
24269  case "$OPT_ZSTD" in
24270  yes)
24271
24272    if test -n "$PKG_CONFIG"; then
24273      PKGCONFIG="$PKG_CONFIG"
24274    else
24275      if test -n "$ac_tool_prefix"; then
24276  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24277set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24279printf %s "checking for $ac_word... " >&6; }
24280if test ${ac_cv_path_PKGCONFIG+y}
24281then :
24282  printf %s "(cached) " >&6
24283else $as_nop
24284  case $PKGCONFIG in
24285  [\\/]* | ?:[\\/]*)
24286  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24287  ;;
24288  *)
24289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24290as_dummy="$PATH:/usr/bin:/usr/local/bin"
24291for as_dir in $as_dummy
24292do
24293  IFS=$as_save_IFS
24294  case $as_dir in #(((
24295    '') as_dir=./ ;;
24296    */) ;;
24297    *) as_dir=$as_dir/ ;;
24298  esac
24299    for ac_exec_ext in '' $ac_executable_extensions; do
24300  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24301    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24302    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24303    break 2
24304  fi
24305done
24306  done
24307IFS=$as_save_IFS
24308
24309  ;;
24310esac
24311fi
24312PKGCONFIG=$ac_cv_path_PKGCONFIG
24313if test -n "$PKGCONFIG"; then
24314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24315printf "%s\n" "$PKGCONFIG" >&6; }
24316else
24317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24318printf "%s\n" "no" >&6; }
24319fi
24320
24321
24322fi
24323if test -z "$ac_cv_path_PKGCONFIG"; then
24324  ac_pt_PKGCONFIG=$PKGCONFIG
24325  # Extract the first word of "pkg-config", so it can be a program name with args.
24326set dummy pkg-config; ac_word=$2
24327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24328printf %s "checking for $ac_word... " >&6; }
24329if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24330then :
24331  printf %s "(cached) " >&6
24332else $as_nop
24333  case $ac_pt_PKGCONFIG in
24334  [\\/]* | ?:[\\/]*)
24335  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24336  ;;
24337  *)
24338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24339as_dummy="$PATH:/usr/bin:/usr/local/bin"
24340for as_dir in $as_dummy
24341do
24342  IFS=$as_save_IFS
24343  case $as_dir in #(((
24344    '') as_dir=./ ;;
24345    */) ;;
24346    *) as_dir=$as_dir/ ;;
24347  esac
24348    for ac_exec_ext in '' $ac_executable_extensions; do
24349  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24350    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24351    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24352    break 2
24353  fi
24354done
24355  done
24356IFS=$as_save_IFS
24357
24358  ;;
24359esac
24360fi
24361ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24362if test -n "$ac_pt_PKGCONFIG"; then
24363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24364printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24365else
24366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24367printf "%s\n" "no" >&6; }
24368fi
24369
24370  if test "x$ac_pt_PKGCONFIG" = x; then
24371    PKGCONFIG="no"
24372  else
24373    case $cross_compiling:$ac_tool_warned in
24374yes:)
24375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24376printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24377ac_tool_warned=yes ;;
24378esac
24379    PKGCONFIG=$ac_pt_PKGCONFIG
24380  fi
24381else
24382  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24383fi
24384
24385    fi
24386
24387    if test "x$PKGCONFIG" != "xno"; then
24388      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
24389printf %s "checking for libzstd options with pkg-config... " >&6; }
24390            itexists=`
24391    if test -n ""; then
24392      PKG_CONFIG_LIBDIR=""
24393      export PKG_CONFIG_LIBDIR
24394    fi
24395         $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
24396
24397      if test -z "$itexists"; then
24398                        PKGCONFIG="no"
24399        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24400printf "%s\n" "no" >&6; }
24401      else
24402        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24403printf "%s\n" "found" >&6; }
24404      fi
24405    fi
24406
24407
24408    if test "$PKGCONFIG" != "no" ; then
24409      LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
24410      LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
24411      CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
24412      version=`$PKGCONFIG --modversion libzstd`
24413      DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
24414    fi
24415
24416    ;;
24417  off)
24418        ;;
24419  *)
24420        PREFIX_ZSTD=$OPT_ZSTD
24421    ;;
24422  esac
24423
24424    if test -n "$PREFIX_ZSTD"; then
24425    LIB_ZSTD="-lzstd"
24426    LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
24427    CPP_ZSTD=-I${PREFIX_ZSTD}/include
24428    DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
24429  fi
24430
24431  LDFLAGS="$LDFLAGS $LD_ZSTD"
24432  CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
24433  LIBS="$LIB_ZSTD $LIBS"
24434
24435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
24436printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
24437if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
24438then :
24439  printf %s "(cached) " >&6
24440else $as_nop
24441  ac_check_lib_save_LIBS=$LIBS
24442LIBS="-lzstd  $LIBS"
24443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24444/* end confdefs.h.  */
24445
24446
24447#ifdef __cplusplus
24448extern "C"
24449#endif
24450char ZSTD_createDStream ();
24451int main (void)
24452{
24453return ZSTD_createDStream ();
24454 ;
24455 return 0;
24456}
24457_ACEOF
24458if ac_fn_c_try_link "$LINENO"
24459then :
24460  ac_cv_lib_zstd_ZSTD_createDStream=yes
24461else $as_nop
24462  ac_cv_lib_zstd_ZSTD_createDStream=no
24463fi
24464rm -f core conftest.err conftest.$ac_objext conftest.beam \
24465    conftest$ac_exeext conftest.$ac_ext
24466LIBS=$ac_check_lib_save_LIBS
24467fi
24468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
24469printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
24470if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
24471then :
24472  printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
24473
24474  LIBS="-lzstd $LIBS"
24475
24476fi
24477
24478
24479         for ac_header in zstd.h
24480do :
24481  ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
24482if test "x$ac_cv_header_zstd_h" = xyes
24483then :
24484  printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
24485 curl_zstd_msg="enabled (libzstd)"
24486    HAVE_ZSTD=1
24487
24488printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
24489
24490    HAVE_ZSTD=1
24491
24492
24493fi
24494
24495done
24496
24497  if test X"$OPT_ZSTD" != Xoff &&
24498     test "$HAVE_ZSTD" != "1"; then
24499    as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
24500  fi
24501
24502  if test "$HAVE_ZSTD" = "1"; then
24503    if test -n "$DIR_ZSTD"; then
24504
24505       if test "x$cross_compiling" != "xyes"; then
24506         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
24507         export CURL_LIBRARY_PATH
24508         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
24509printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
24510       fi
24511    fi
24512  else
24513        LDFLAGS=$CLEANLDFLAGS
24514    CPPFLAGS=$CLEANCPPFLAGS
24515    LIBS=$CLEANLIBS
24516  fi
24517fi
24518
24519
24520LDAPLIBNAME=""
24521
24522# Check whether --with-ldap-lib was given.
24523if test ${with_ldap_lib+y}
24524then :
24525  withval=$with_ldap_lib; LDAPLIBNAME="$withval"
24526fi
24527
24528
24529LBERLIBNAME=""
24530
24531# Check whether --with-lber-lib was given.
24532if test ${with_lber_lib+y}
24533then :
24534  withval=$with_lber_lib; LBERLIBNAME="$withval"
24535fi
24536
24537
24538if test x$CURL_DISABLE_LDAP != x1 ; then
24539
24540
24541    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
24542printf %s "checking for lber.h... " >&6; }
24543if test ${curl_cv_header_lber_h+y}
24544then :
24545  printf %s "(cached) " >&6
24546else $as_nop
24547
24548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24549/* end confdefs.h.  */
24550
24551
24552#undef inline
24553#ifdef _WIN32
24554#ifndef WIN32_LEAN_AND_MEAN
24555#define WIN32_LEAN_AND_MEAN
24556#endif
24557#include <windows.h>
24558#else
24559#ifdef HAVE_SYS_TYPES_H
24560#include <sys/types.h>
24561#endif
24562#endif
24563#ifndef NULL
24564#define NULL (void *)0
24565#endif
24566#include <lber.h>
24567
24568int main (void)
24569{
24570
24571        BerValue *bvp = NULL;
24572        BerElement *bep = ber_init(bvp);
24573        ber_free(bep, 1);
24574
24575 ;
24576 return 0;
24577}
24578
24579_ACEOF
24580if ac_fn_c_try_compile "$LINENO"
24581then :
24582
24583      curl_cv_header_lber_h="yes"
24584
24585else $as_nop
24586
24587      curl_cv_header_lber_h="no"
24588
24589fi
24590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24591
24592fi
24593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
24594printf "%s\n" "$curl_cv_header_lber_h" >&6; }
24595  if test "$curl_cv_header_lber_h" = "yes"; then
24596
24597printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
24598
24599    #
24600    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24601/* end confdefs.h.  */
24602
24603
24604#undef inline
24605#ifdef _WIN32
24606#ifndef WIN32_LEAN_AND_MEAN
24607#define WIN32_LEAN_AND_MEAN
24608#endif
24609#include <windows.h>
24610#else
24611#ifdef HAVE_SYS_TYPES_H
24612#include <sys/types.h>
24613#endif
24614#endif
24615#ifndef NULL
24616#define NULL (void *)0
24617#endif
24618#ifndef LDAP_DEPRECATED
24619#define LDAP_DEPRECATED 1
24620#endif
24621#include <ldap.h>
24622
24623int main (void)
24624{
24625
24626        BerValue *bvp = NULL;
24627        BerElement *bep = ber_init(bvp);
24628        ber_free(bep, 1);
24629
24630 ;
24631 return 0;
24632}
24633
24634_ACEOF
24635if ac_fn_c_try_compile "$LINENO"
24636then :
24637
24638      curl_cv_need_header_lber_h="no"
24639
24640else $as_nop
24641
24642      curl_cv_need_header_lber_h="yes"
24643
24644fi
24645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24646    #
24647    case "$curl_cv_need_header_lber_h" in
24648      yes)
24649
24650printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
24651
24652        ;;
24653    esac
24654  fi
24655
24656
24657    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
24658printf %s "checking for ldap.h... " >&6; }
24659if test ${curl_cv_header_ldap_h+y}
24660then :
24661  printf %s "(cached) " >&6
24662else $as_nop
24663
24664    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24665/* end confdefs.h.  */
24666
24667
24668#undef inline
24669#ifdef _WIN32
24670#ifndef WIN32_LEAN_AND_MEAN
24671#define WIN32_LEAN_AND_MEAN
24672#endif
24673#include <windows.h>
24674#else
24675#ifdef HAVE_SYS_TYPES_H
24676#include <sys/types.h>
24677#endif
24678#endif
24679#ifndef LDAP_DEPRECATED
24680#define LDAP_DEPRECATED 1
24681#endif
24682#ifdef NEED_LBER_H
24683#include <lber.h>
24684#endif
24685#include <ldap.h>
24686
24687int main (void)
24688{
24689
24690        LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
24691        int res = ldap_unbind(ldp);
24692
24693 ;
24694 return 0;
24695}
24696
24697_ACEOF
24698if ac_fn_c_try_compile "$LINENO"
24699then :
24700
24701      curl_cv_header_ldap_h="yes"
24702
24703else $as_nop
24704
24705      curl_cv_header_ldap_h="no"
24706
24707fi
24708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24709
24710fi
24711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
24712printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
24713  case "$curl_cv_header_ldap_h" in
24714    yes)
24715
24716printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
24717
24718      ;;
24719  esac
24720
24721
24722    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
24723printf %s "checking for ldap_ssl.h... " >&6; }
24724if test ${curl_cv_header_ldap_ssl_h+y}
24725then :
24726  printf %s "(cached) " >&6
24727else $as_nop
24728
24729    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24730/* end confdefs.h.  */
24731
24732
24733#undef inline
24734#ifdef _WIN32
24735#ifndef WIN32_LEAN_AND_MEAN
24736#define WIN32_LEAN_AND_MEAN
24737#endif
24738#include <windows.h>
24739#else
24740#ifdef HAVE_SYS_TYPES_H
24741#include <sys/types.h>
24742#endif
24743#endif
24744#ifndef LDAP_DEPRECATED
24745#define LDAP_DEPRECATED 1
24746#endif
24747#ifdef NEED_LBER_H
24748#include <lber.h>
24749#endif
24750#ifdef HAVE_LDAP_H
24751#include <ldap.h>
24752#endif
24753#include <ldap_ssl.h>
24754
24755int main (void)
24756{
24757
24758        LDAP *ldp = ldapssl_init("0.0.0.0", LDAPS_PORT, 1);
24759
24760 ;
24761 return 0;
24762}
24763
24764_ACEOF
24765if ac_fn_c_try_compile "$LINENO"
24766then :
24767
24768      curl_cv_header_ldap_ssl_h="yes"
24769
24770else $as_nop
24771
24772      curl_cv_header_ldap_ssl_h="no"
24773
24774fi
24775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24776
24777fi
24778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
24779printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
24780  case "$curl_cv_header_ldap_ssl_h" in
24781    yes)
24782
24783printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
24784
24785      ;;
24786  esac
24787
24788
24789  if test -z "$LDAPLIBNAME" ; then
24790    if test "$curl_cv_native_windows" = "yes"; then
24791            LDAPLIBNAME="wldap32"
24792      LBERLIBNAME="no"
24793    fi
24794  fi
24795
24796  if test "$LDAPLIBNAME" ; then
24797    as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
24798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
24799printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
24800if eval test \${$as_ac_Lib+y}
24801then :
24802  printf %s "(cached) " >&6
24803else $as_nop
24804  ac_check_lib_save_LIBS=$LIBS
24805LIBS="-l"$LDAPLIBNAME"  $LIBS"
24806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24807/* end confdefs.h.  */
24808
24809
24810#ifdef __cplusplus
24811extern "C"
24812#endif
24813char ldap_init ();
24814int main (void)
24815{
24816return ldap_init ();
24817 ;
24818 return 0;
24819}
24820_ACEOF
24821if ac_fn_c_try_link "$LINENO"
24822then :
24823  eval "$as_ac_Lib=yes"
24824else $as_nop
24825  eval "$as_ac_Lib=no"
24826fi
24827rm -f core conftest.err conftest.$ac_objext conftest.beam \
24828    conftest$ac_exeext conftest.$ac_ext
24829LIBS=$ac_check_lib_save_LIBS
24830fi
24831eval ac_res=\$$as_ac_Lib
24832	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24833printf "%s\n" "$ac_res" >&6; }
24834if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24835then :
24836  cat >>confdefs.h <<_ACEOF
24837#define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
24838_ACEOF
24839
24840  LIBS="-l"$LDAPLIBNAME" $LIBS"
24841
24842else $as_nop
24843
24844      if test -n "$ldap_askedfor"; then
24845        as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24846      fi
24847      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
24848printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
24849
24850printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24851
24852      CURL_DISABLE_LDAP=1
24853
24854
24855printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24856
24857      CURL_DISABLE_LDAPS=1
24858
24859fi
24860
24861  else
24862
24863    #
24864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
24865printf %s "checking for LDAP libraries... " >&6; }
24866  #
24867  u_libs=""
24868  #
24869
24870  #
24871  curl_cv_save_LIBS="$LIBS"
24872  curl_cv_ldap_LIBS="unknown"
24873  #
24874  for x_nlibs in '' "$u_libs" \
24875    '-lldap' \
24876    '-lldap -llber' \
24877    '-llber -lldap' \
24878    '-lldapssl -lldapx -lldapsdk' \
24879    '-lldapsdk -lldapx -lldapssl' \
24880    '-lldap -llber -lssl -lcrypto' ; do
24881
24882    if test "$curl_cv_ldap_LIBS" = "unknown"; then
24883      if test -z "$x_nlibs"; then
24884        LIBS="$curl_cv_save_LIBS"
24885      else
24886        LIBS="$x_nlibs $curl_cv_save_LIBS"
24887      fi
24888      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24889/* end confdefs.h.  */
24890
24891
24892#undef inline
24893#ifdef _WIN32
24894#ifndef WIN32_LEAN_AND_MEAN
24895#define WIN32_LEAN_AND_MEAN
24896#endif
24897#include <windows.h>
24898#else
24899#ifdef HAVE_SYS_TYPES_H
24900#include <sys/types.h>
24901#endif
24902#endif
24903#ifndef NULL
24904#define NULL (void *)0
24905#endif
24906#ifndef LDAP_DEPRECATED
24907#define LDAP_DEPRECATED 1
24908#endif
24909#ifdef NEED_LBER_H
24910#include <lber.h>
24911#endif
24912#ifdef HAVE_LDAP_H
24913#include <ldap.h>
24914#endif
24915
24916int main (void)
24917{
24918
24919          BerValue *bvp = NULL;
24920          BerElement *bep = ber_init(bvp);
24921          LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
24922          int res = ldap_unbind(ldp);
24923          ber_free(bep, 1);
24924
24925 ;
24926 return 0;
24927}
24928
24929_ACEOF
24930if ac_fn_c_try_link "$LINENO"
24931then :
24932
24933        curl_cv_ldap_LIBS="$x_nlibs"
24934
24935fi
24936rm -f core conftest.err conftest.$ac_objext conftest.beam \
24937    conftest$ac_exeext conftest.$ac_ext
24938    fi
24939  done
24940  #
24941  LIBS="$curl_cv_save_LIBS"
24942  #
24943  case X-"$curl_cv_ldap_LIBS" in
24944    X-unknown)
24945      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
24946printf "%s\n" "cannot find LDAP libraries" >&6; }
24947      ;;
24948    X-)
24949      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
24950printf "%s\n" "no additional lib required" >&6; }
24951      ;;
24952    *)
24953      if test -z "$curl_cv_save_LIBS"; then
24954        LIBS="$curl_cv_ldap_LIBS"
24955      else
24956        LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
24957      fi
24958      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
24959printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
24960      ;;
24961  esac
24962  #
24963
24964    case X-"$curl_cv_ldap_LIBS" in
24965      X-unknown)
24966        if test -n "$ldap_askedfor"; then
24967          as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24968        fi
24969        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
24970printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
24971
24972printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24973
24974        CURL_DISABLE_LDAP=1
24975
24976
24977printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24978
24979        CURL_DISABLE_LDAPS=1
24980
24981        ;;
24982    esac
24983  fi
24984fi
24985
24986if test x$CURL_DISABLE_LDAP != x1 ; then
24987
24988  if test "$LBERLIBNAME" ; then
24989            if test "$LBERLIBNAME" != "no" ; then
24990      as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
24991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
24992printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
24993if eval test \${$as_ac_Lib+y}
24994then :
24995  printf %s "(cached) " >&6
24996else $as_nop
24997  ac_check_lib_save_LIBS=$LIBS
24998LIBS="-l"$LBERLIBNAME"  $LIBS"
24999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25000/* end confdefs.h.  */
25001
25002
25003#ifdef __cplusplus
25004extern "C"
25005#endif
25006char ber_free ();
25007int main (void)
25008{
25009return ber_free ();
25010 ;
25011 return 0;
25012}
25013_ACEOF
25014if ac_fn_c_try_link "$LINENO"
25015then :
25016  eval "$as_ac_Lib=yes"
25017else $as_nop
25018  eval "$as_ac_Lib=no"
25019fi
25020rm -f core conftest.err conftest.$ac_objext conftest.beam \
25021    conftest$ac_exeext conftest.$ac_ext
25022LIBS=$ac_check_lib_save_LIBS
25023fi
25024eval ac_res=\$$as_ac_Lib
25025	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25026printf "%s\n" "$ac_res" >&6; }
25027if eval test \"x\$"$as_ac_Lib"\" = x"yes"
25028then :
25029  cat >>confdefs.h <<_ACEOF
25030#define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
25031_ACEOF
25032
25033  LIBS="-l"$LBERLIBNAME" $LIBS"
25034
25035else $as_nop
25036
25037        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
25038printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
25039
25040printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
25041
25042        CURL_DISABLE_LDAP=1
25043
25044
25045printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
25046
25047        CURL_DISABLE_LDAPS=1
25048
25049fi
25050
25051    fi
25052  fi
25053fi
25054
25055if test x$CURL_DISABLE_LDAP != x1 ; then
25056  ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
25057if test "x$ac_cv_func_ldap_url_parse" = xyes
25058then :
25059  printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
25060
25061fi
25062ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd"
25063if test "x$ac_cv_func_ldap_init_fd" = xyes
25064then :
25065  printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h
25066
25067fi
25068
25069
25070  if test "$LDAPLIBNAME" = "wldap32"; then
25071    curl_ldap_msg="enabled (winldap)"
25072
25073printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
25074
25075  else
25076    if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
25077      curl_ldap_msg="enabled (OpenLDAP)"
25078
25079printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
25080
25081      USE_OPENLDAP=1
25082
25083    else
25084      curl_ldap_msg="enabled (ancient OpenLDAP)"
25085    fi
25086  fi
25087fi
25088
25089if test x$CURL_DISABLE_LDAPS != x1 ; then
25090    curl_ldaps_msg="enabled"
25091fi
25092
25093
25094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
25095printf %s "checking whether to enable IPv6... " >&6; }
25096# Check whether --enable-ipv6 was given.
25097if test ${enable_ipv6+y}
25098then :
25099  enableval=$enable_ipv6;  case "$enableval" in
25100  no)
25101       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25102printf "%s\n" "no" >&6; }
25103       ipv6=no
25104       ;;
25105  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25106printf "%s\n" "yes" >&6; }
25107       ipv6=yes
25108       ;;
25109  esac
25110else $as_nop
25111  if test "$cross_compiling" = yes
25112then :
25113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25114printf "%s\n" "yes" >&6; }
25115  ipv6=yes
25116
25117else $as_nop
25118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25119/* end confdefs.h.  */
25120
25121/* are AF_INET6 and sockaddr_in6 available? */
25122#include <sys/types.h>
25123#ifdef _WIN32
25124#include <winsock2.h>
25125#include <ws2tcpip.h>
25126#else
25127#include <sys/socket.h>
25128#include <netinet/in.h>
25129#if defined (__TANDEM)
25130# include <netinet/in6.h>
25131#endif
25132#endif
25133
25134int main(void)
25135{
25136 struct sockaddr_in6 s;
25137 (void)s;
25138 return socket(AF_INET6, SOCK_STREAM, 0) < 0;
25139}
25140
25141
25142_ACEOF
25143if ac_fn_c_try_run "$LINENO"
25144then :
25145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25146printf "%s\n" "yes" >&6; }
25147  ipv6=yes
25148else $as_nop
25149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150printf "%s\n" "no" >&6; }
25151  ipv6=no
25152fi
25153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25154  conftest.$ac_objext conftest.beam conftest.$ac_ext
25155fi
25156
25157fi
25158
25159
25160if test "$ipv6" = yes; then
25161  curl_ipv6_msg="enabled"
25162
25163printf "%s\n" "#define USE_IPV6 1" >>confdefs.h
25164
25165  IPV6_ENABLED=1
25166
25167
25168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
25169printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
25170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25171/* end confdefs.h.  */
25172
25173#include <sys/types.h>
25174#ifdef _WIN32
25175#include <winsock2.h>
25176#include <ws2tcpip.h>
25177#else
25178#include <netinet/in.h>
25179#if defined (__TANDEM)
25180# include <netinet/in6.h>
25181#endif
25182#endif
25183
25184int main (void)
25185{
25186
25187  struct sockaddr_in6 s;
25188  s.sin6_scope_id = 0;
25189
25190 ;
25191 return 0;
25192}
25193_ACEOF
25194if ac_fn_c_try_compile "$LINENO"
25195then :
25196
25197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25198printf "%s\n" "yes" >&6; }
25199
25200printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
25201
25202
25203else $as_nop
25204
25205    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25206printf "%s\n" "no" >&6; }
25207
25208fi
25209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25210fi
25211
25212
25213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
25214printf %s "checking if argv can be written to... " >&6; }
25215
25216   case $host_os in
25217     darwin*)
25218      if test "$cross_compiling" = yes
25219then :
25220  curl_cv_writable_argv=cross
25221
25222else $as_nop
25223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224/* end confdefs.h.  */
25225
25226int main(int argc, char **argv)
25227{
25228#ifdef _WIN32
25229  /* on Windows, writing to the argv does not hide the argument in
25230     process lists so it can just be skipped */
25231  (void)argc;
25232  (void)argv;
25233  return 1;
25234#else
25235  (void)argc;
25236  argv[0][0] = ' ';
25237  return (argv[0][0] == ' ')?0:1;
25238#endif
25239}
25240
25241_ACEOF
25242if ac_fn_c_try_run "$LINENO"
25243then :
25244  curl_cv_writable_argv=yes
25245
25246else $as_nop
25247  curl_cv_writable_argv=no
25248
25249fi
25250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25251  conftest.$ac_objext conftest.beam conftest.$ac_ext
25252fi
25253
25254     ;;
25255     *)
25256      oldcc=$CC
25257      old=$LD_LIBRARY_PATH
25258      CC="sh ./run-compiler"
25259      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
25260      export LD_LIBRARY_PATH
25261      if test "$cross_compiling" = yes
25262then :
25263  curl_cv_writable_argv=cross
25264
25265else $as_nop
25266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25267/* end confdefs.h.  */
25268
25269int main(int argc, char **argv)
25270{
25271#ifdef _WIN32
25272  /* on Windows, writing to the argv does not hide the argument in
25273     process lists so it can just be skipped */
25274  (void)argc;
25275  (void)argv;
25276  return 1;
25277#else
25278  (void)argc;
25279  argv[0][0] = ' ';
25280  return (argv[0][0] == ' ')?0:1;
25281#endif
25282}
25283
25284_ACEOF
25285if ac_fn_c_try_run "$LINENO"
25286then :
25287  curl_cv_writable_argv=yes
25288
25289else $as_nop
25290  curl_cv_writable_argv=no
25291
25292fi
25293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25294  conftest.$ac_objext conftest.beam conftest.$ac_ext
25295fi
25296
25297      LD_LIBRARY_PATH=$old # restore
25298      CC=$oldcc
25299     ;;
25300   esac
25301
25302case $curl_cv_writable_argv in
25303yes)
25304
25305printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
25306
25307        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25308printf "%s\n" "yes" >&6; }
25309        ;;
25310no)
25311        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25312printf "%s\n" "no" >&6; }
25313        ;;
25314*)
25315        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25316printf "%s\n" "no" >&6; }
25317        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
25318printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
25319        ;;
25320esac
25321
25322
25323
25324GSSAPI_ROOT="/usr"
25325
25326# Check whether --with-gssapi-includes was given.
25327if test ${with_gssapi_includes+y}
25328then :
25329  withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
25330    want_gss="yes"
25331
25332fi
25333
25334
25335
25336# Check whether --with-gssapi-libs was given.
25337if test ${with_gssapi_libs+y}
25338then :
25339  withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
25340    want_gss="yes"
25341
25342fi
25343
25344
25345
25346# Check whether --with-gssapi was given.
25347if test ${with_gssapi+y}
25348then :
25349  withval=$with_gssapi;
25350  GSSAPI_ROOT="$withval"
25351  if test x"$GSSAPI_ROOT" != xno; then
25352    want_gss="yes"
25353    if test x"$GSSAPI_ROOT" = xyes; then
25354            GSSAPI_ROOT="/usr"
25355    fi
25356  fi
25357
25358fi
25359
25360
25361: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
25362
25363save_CPPFLAGS="$CPPFLAGS"
25364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
25365printf %s "checking if GSS-API support is requested... " >&6; }
25366if test x"$want_gss" = xyes; then
25367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25368printf "%s\n" "yes" >&6; }
25369
25370  if test $GSSAPI_ROOT != "/usr"; then
25371
25372    if test -n "$PKG_CONFIG"; then
25373      PKGCONFIG="$PKG_CONFIG"
25374    else
25375      if test -n "$ac_tool_prefix"; then
25376  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25377set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25379printf %s "checking for $ac_word... " >&6; }
25380if test ${ac_cv_path_PKGCONFIG+y}
25381then :
25382  printf %s "(cached) " >&6
25383else $as_nop
25384  case $PKGCONFIG in
25385  [\\/]* | ?:[\\/]*)
25386  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25387  ;;
25388  *)
25389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25390as_dummy="$PATH:/usr/bin:/usr/local/bin"
25391for as_dir in $as_dummy
25392do
25393  IFS=$as_save_IFS
25394  case $as_dir in #(((
25395    '') as_dir=./ ;;
25396    */) ;;
25397    *) as_dir=$as_dir/ ;;
25398  esac
25399    for ac_exec_ext in '' $ac_executable_extensions; do
25400  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25401    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25402    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25403    break 2
25404  fi
25405done
25406  done
25407IFS=$as_save_IFS
25408
25409  ;;
25410esac
25411fi
25412PKGCONFIG=$ac_cv_path_PKGCONFIG
25413if test -n "$PKGCONFIG"; then
25414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25415printf "%s\n" "$PKGCONFIG" >&6; }
25416else
25417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25418printf "%s\n" "no" >&6; }
25419fi
25420
25421
25422fi
25423if test -z "$ac_cv_path_PKGCONFIG"; then
25424  ac_pt_PKGCONFIG=$PKGCONFIG
25425  # Extract the first word of "pkg-config", so it can be a program name with args.
25426set dummy pkg-config; ac_word=$2
25427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25428printf %s "checking for $ac_word... " >&6; }
25429if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25430then :
25431  printf %s "(cached) " >&6
25432else $as_nop
25433  case $ac_pt_PKGCONFIG in
25434  [\\/]* | ?:[\\/]*)
25435  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25436  ;;
25437  *)
25438  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25439as_dummy="$PATH:/usr/bin:/usr/local/bin"
25440for as_dir in $as_dummy
25441do
25442  IFS=$as_save_IFS
25443  case $as_dir in #(((
25444    '') as_dir=./ ;;
25445    */) ;;
25446    *) as_dir=$as_dir/ ;;
25447  esac
25448    for ac_exec_ext in '' $ac_executable_extensions; do
25449  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25450    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25451    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25452    break 2
25453  fi
25454done
25455  done
25456IFS=$as_save_IFS
25457
25458  ;;
25459esac
25460fi
25461ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25462if test -n "$ac_pt_PKGCONFIG"; then
25463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25464printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25465else
25466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25467printf "%s\n" "no" >&6; }
25468fi
25469
25470  if test "x$ac_pt_PKGCONFIG" = x; then
25471    PKGCONFIG="no"
25472  else
25473    case $cross_compiling:$ac_tool_warned in
25474yes:)
25475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25476printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25477ac_tool_warned=yes ;;
25478esac
25479    PKGCONFIG=$ac_pt_PKGCONFIG
25480  fi
25481else
25482  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25483fi
25484
25485    fi
25486
25487    if test "x$PKGCONFIG" != "xno"; then
25488      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25489printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25490            itexists=`
25491    if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25492      PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25493      export PKG_CONFIG_LIBDIR
25494    fi
25495         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25496
25497      if test -z "$itexists"; then
25498                        PKGCONFIG="no"
25499        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25500printf "%s\n" "no" >&6; }
25501      else
25502        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25503printf "%s\n" "found" >&6; }
25504      fi
25505    fi
25506
25507  else
25508
25509    if test -n "$PKG_CONFIG"; then
25510      PKGCONFIG="$PKG_CONFIG"
25511    else
25512      if test -n "$ac_tool_prefix"; then
25513  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25514set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25516printf %s "checking for $ac_word... " >&6; }
25517if test ${ac_cv_path_PKGCONFIG+y}
25518then :
25519  printf %s "(cached) " >&6
25520else $as_nop
25521  case $PKGCONFIG in
25522  [\\/]* | ?:[\\/]*)
25523  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25524  ;;
25525  *)
25526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25527as_dummy="$PATH:/usr/bin:/usr/local/bin"
25528for as_dir in $as_dummy
25529do
25530  IFS=$as_save_IFS
25531  case $as_dir in #(((
25532    '') as_dir=./ ;;
25533    */) ;;
25534    *) as_dir=$as_dir/ ;;
25535  esac
25536    for ac_exec_ext in '' $ac_executable_extensions; do
25537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25538    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25540    break 2
25541  fi
25542done
25543  done
25544IFS=$as_save_IFS
25545
25546  ;;
25547esac
25548fi
25549PKGCONFIG=$ac_cv_path_PKGCONFIG
25550if test -n "$PKGCONFIG"; then
25551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25552printf "%s\n" "$PKGCONFIG" >&6; }
25553else
25554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25555printf "%s\n" "no" >&6; }
25556fi
25557
25558
25559fi
25560if test -z "$ac_cv_path_PKGCONFIG"; then
25561  ac_pt_PKGCONFIG=$PKGCONFIG
25562  # Extract the first word of "pkg-config", so it can be a program name with args.
25563set dummy pkg-config; ac_word=$2
25564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25565printf %s "checking for $ac_word... " >&6; }
25566if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25567then :
25568  printf %s "(cached) " >&6
25569else $as_nop
25570  case $ac_pt_PKGCONFIG in
25571  [\\/]* | ?:[\\/]*)
25572  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25573  ;;
25574  *)
25575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25576as_dummy="$PATH:/usr/bin:/usr/local/bin"
25577for as_dir in $as_dummy
25578do
25579  IFS=$as_save_IFS
25580  case $as_dir in #(((
25581    '') as_dir=./ ;;
25582    */) ;;
25583    *) as_dir=$as_dir/ ;;
25584  esac
25585    for ac_exec_ext in '' $ac_executable_extensions; do
25586  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25587    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25588    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25589    break 2
25590  fi
25591done
25592  done
25593IFS=$as_save_IFS
25594
25595  ;;
25596esac
25597fi
25598ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25599if test -n "$ac_pt_PKGCONFIG"; then
25600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25601printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25602else
25603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25604printf "%s\n" "no" >&6; }
25605fi
25606
25607  if test "x$ac_pt_PKGCONFIG" = x; then
25608    PKGCONFIG="no"
25609  else
25610    case $cross_compiling:$ac_tool_warned in
25611yes:)
25612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25613printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25614ac_tool_warned=yes ;;
25615esac
25616    PKGCONFIG=$ac_pt_PKGCONFIG
25617  fi
25618else
25619  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25620fi
25621
25622    fi
25623
25624    if test "x$PKGCONFIG" != "xno"; then
25625      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25626printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25627            itexists=`
25628    if test -n ""; then
25629      PKG_CONFIG_LIBDIR=""
25630      export PKG_CONFIG_LIBDIR
25631    fi
25632         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25633
25634      if test -z "$itexists"; then
25635                        PKGCONFIG="no"
25636        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25637printf "%s\n" "no" >&6; }
25638      else
25639        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25640printf "%s\n" "found" >&6; }
25641      fi
25642    fi
25643
25644  fi
25645  if test -z "$GSSAPI_INCS"; then
25646     if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25647        GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
25648     elif test "$PKGCONFIG" != "no" ; then
25649        GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
25650     elif test -f "$KRB5CONFIG"; then
25651        GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
25652     elif test "$GSSAPI_ROOT" != "yes"; then
25653        GSSAPI_INCS="-I$GSSAPI_ROOT/include"
25654     fi
25655  fi
25656
25657  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
25658
25659  ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
25660if test "x$ac_cv_header_gss_h" = xyes
25661then :
25662
25663
25664printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
25665
25666      gnu_gss=yes
25667
25668else $as_nop
25669
25670                   for ac_header in gssapi/gssapi.h
25671do :
25672  ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
25673if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
25674then :
25675  printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
25676
25677else $as_nop
25678  not_mit=1
25679fi
25680
25681done
25682             for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
25683do :
25684  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25685ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
25686$ac_includes_default
25687#ifdef HAVE_GSSAPI_GSSAPI_H
25688#include <gssapi/gssapi.h>
25689#endif
25690
25691"
25692if eval test \"x\$"$as_ac_Header"\" = x"yes"
25693then :
25694  cat >>confdefs.h <<_ACEOF
25695#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25696_ACEOF
25697
25698else $as_nop
25699  not_mit=1
25700fi
25701
25702done
25703      if test "x$not_mit" = "x1"; then
25704                ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25705if test "x$ac_cv_header_gssapi_h" = xyes
25706then :
25707
25708else $as_nop
25709
25710                            want_gss=no
25711              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
25712printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
25713
25714
25715fi
25716
25717      else
25718                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
25719printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
25720        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721/* end confdefs.h.  */
25722
25723
25724#include <gssapi/gssapi.h>
25725#include <gssapi/gssapi_generic.h>
25726#include <gssapi/gssapi_krb5.h>
25727
25728int main (void)
25729{
25730
25731            gss_import_name(
25732                            (OM_uint32 *)0,
25733                            (gss_buffer_t)0,
25734                            GSS_C_NT_HOSTBASED_SERVICE,
25735                            (gss_name_t *)0);
25736
25737 ;
25738 return 0;
25739}
25740
25741_ACEOF
25742if ac_fn_c_try_compile "$LINENO"
25743then :
25744
25745          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25746printf "%s\n" "yes" >&6; }
25747
25748else $as_nop
25749
25750          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25751printf "%s\n" "no" >&6; }
25752
25753printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
25754
25755
25756fi
25757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25758      fi
25759
25760
25761fi
25762
25763else
25764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25765printf "%s\n" "no" >&6; }
25766fi
25767if test x"$want_gss" = xyes; then
25768
25769printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
25770
25771  HAVE_GSSAPI=1
25772  curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
25773
25774  if test -n "$gnu_gss"; then
25775    curl_gss_msg="enabled (GNU GSS)"
25776    LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25777    LIBS="-lgss $LIBS"
25778  elif test -z "$GSSAPI_LIB_DIR"; then
25779     case $host in
25780     *-*-darwin*)
25781        LIBS="-lgssapi_krb5 -lresolv $LIBS"
25782        ;;
25783     *)
25784        if test $GSSAPI_ROOT != "/usr"; then
25785
25786    if test -n "$PKG_CONFIG"; then
25787      PKGCONFIG="$PKG_CONFIG"
25788    else
25789      if test -n "$ac_tool_prefix"; then
25790  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25791set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25793printf %s "checking for $ac_word... " >&6; }
25794if test ${ac_cv_path_PKGCONFIG+y}
25795then :
25796  printf %s "(cached) " >&6
25797else $as_nop
25798  case $PKGCONFIG in
25799  [\\/]* | ?:[\\/]*)
25800  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25801  ;;
25802  *)
25803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25804as_dummy="$PATH:/usr/bin:/usr/local/bin"
25805for as_dir in $as_dummy
25806do
25807  IFS=$as_save_IFS
25808  case $as_dir in #(((
25809    '') as_dir=./ ;;
25810    */) ;;
25811    *) as_dir=$as_dir/ ;;
25812  esac
25813    for ac_exec_ext in '' $ac_executable_extensions; do
25814  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25815    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25816    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25817    break 2
25818  fi
25819done
25820  done
25821IFS=$as_save_IFS
25822
25823  ;;
25824esac
25825fi
25826PKGCONFIG=$ac_cv_path_PKGCONFIG
25827if test -n "$PKGCONFIG"; then
25828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25829printf "%s\n" "$PKGCONFIG" >&6; }
25830else
25831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25832printf "%s\n" "no" >&6; }
25833fi
25834
25835
25836fi
25837if test -z "$ac_cv_path_PKGCONFIG"; then
25838  ac_pt_PKGCONFIG=$PKGCONFIG
25839  # Extract the first word of "pkg-config", so it can be a program name with args.
25840set dummy pkg-config; ac_word=$2
25841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25842printf %s "checking for $ac_word... " >&6; }
25843if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25844then :
25845  printf %s "(cached) " >&6
25846else $as_nop
25847  case $ac_pt_PKGCONFIG in
25848  [\\/]* | ?:[\\/]*)
25849  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25850  ;;
25851  *)
25852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25853as_dummy="$PATH:/usr/bin:/usr/local/bin"
25854for as_dir in $as_dummy
25855do
25856  IFS=$as_save_IFS
25857  case $as_dir in #(((
25858    '') as_dir=./ ;;
25859    */) ;;
25860    *) as_dir=$as_dir/ ;;
25861  esac
25862    for ac_exec_ext in '' $ac_executable_extensions; do
25863  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25864    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25865    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25866    break 2
25867  fi
25868done
25869  done
25870IFS=$as_save_IFS
25871
25872  ;;
25873esac
25874fi
25875ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25876if test -n "$ac_pt_PKGCONFIG"; then
25877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25878printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25879else
25880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25881printf "%s\n" "no" >&6; }
25882fi
25883
25884  if test "x$ac_pt_PKGCONFIG" = x; then
25885    PKGCONFIG="no"
25886  else
25887    case $cross_compiling:$ac_tool_warned in
25888yes:)
25889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25890printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25891ac_tool_warned=yes ;;
25892esac
25893    PKGCONFIG=$ac_pt_PKGCONFIG
25894  fi
25895else
25896  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25897fi
25898
25899    fi
25900
25901    if test "x$PKGCONFIG" != "xno"; then
25902      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25903printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25904            itexists=`
25905    if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25906      PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25907      export PKG_CONFIG_LIBDIR
25908    fi
25909         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25910
25911      if test -z "$itexists"; then
25912                        PKGCONFIG="no"
25913        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25914printf "%s\n" "no" >&6; }
25915      else
25916        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25917printf "%s\n" "found" >&6; }
25918      fi
25919    fi
25920
25921        else
25922
25923    if test -n "$PKG_CONFIG"; then
25924      PKGCONFIG="$PKG_CONFIG"
25925    else
25926      if test -n "$ac_tool_prefix"; then
25927  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25928set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25930printf %s "checking for $ac_word... " >&6; }
25931if test ${ac_cv_path_PKGCONFIG+y}
25932then :
25933  printf %s "(cached) " >&6
25934else $as_nop
25935  case $PKGCONFIG in
25936  [\\/]* | ?:[\\/]*)
25937  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25938  ;;
25939  *)
25940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25941as_dummy="$PATH:/usr/bin:/usr/local/bin"
25942for as_dir in $as_dummy
25943do
25944  IFS=$as_save_IFS
25945  case $as_dir in #(((
25946    '') as_dir=./ ;;
25947    */) ;;
25948    *) as_dir=$as_dir/ ;;
25949  esac
25950    for ac_exec_ext in '' $ac_executable_extensions; do
25951  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25952    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25953    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25954    break 2
25955  fi
25956done
25957  done
25958IFS=$as_save_IFS
25959
25960  ;;
25961esac
25962fi
25963PKGCONFIG=$ac_cv_path_PKGCONFIG
25964if test -n "$PKGCONFIG"; then
25965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25966printf "%s\n" "$PKGCONFIG" >&6; }
25967else
25968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25969printf "%s\n" "no" >&6; }
25970fi
25971
25972
25973fi
25974if test -z "$ac_cv_path_PKGCONFIG"; then
25975  ac_pt_PKGCONFIG=$PKGCONFIG
25976  # Extract the first word of "pkg-config", so it can be a program name with args.
25977set dummy pkg-config; ac_word=$2
25978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25979printf %s "checking for $ac_word... " >&6; }
25980if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25981then :
25982  printf %s "(cached) " >&6
25983else $as_nop
25984  case $ac_pt_PKGCONFIG in
25985  [\\/]* | ?:[\\/]*)
25986  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25987  ;;
25988  *)
25989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25990as_dummy="$PATH:/usr/bin:/usr/local/bin"
25991for as_dir in $as_dummy
25992do
25993  IFS=$as_save_IFS
25994  case $as_dir in #(((
25995    '') as_dir=./ ;;
25996    */) ;;
25997    *) as_dir=$as_dir/ ;;
25998  esac
25999    for ac_exec_ext in '' $ac_executable_extensions; do
26000  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26001    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26002    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26003    break 2
26004  fi
26005done
26006  done
26007IFS=$as_save_IFS
26008
26009  ;;
26010esac
26011fi
26012ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26013if test -n "$ac_pt_PKGCONFIG"; then
26014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26015printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26016else
26017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26018printf "%s\n" "no" >&6; }
26019fi
26020
26021  if test "x$ac_pt_PKGCONFIG" = x; then
26022    PKGCONFIG="no"
26023  else
26024    case $cross_compiling:$ac_tool_warned in
26025yes:)
26026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26027printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26028ac_tool_warned=yes ;;
26029esac
26030    PKGCONFIG=$ac_pt_PKGCONFIG
26031  fi
26032else
26033  PKGCONFIG="$ac_cv_path_PKGCONFIG"
26034fi
26035
26036    fi
26037
26038    if test "x$PKGCONFIG" != "xno"; then
26039      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
26040printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
26041            itexists=`
26042    if test -n ""; then
26043      PKG_CONFIG_LIBDIR=""
26044      export PKG_CONFIG_LIBDIR
26045    fi
26046         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
26047
26048      if test -z "$itexists"; then
26049                        PKGCONFIG="no"
26050        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26051printf "%s\n" "no" >&6; }
26052      else
26053        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26054printf "%s\n" "found" >&6; }
26055      fi
26056    fi
26057
26058        fi
26059        if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
26060                                 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
26061           LIBS="$gss_libs $LIBS"
26062        elif test "$PKGCONFIG" != "no" ; then
26063           gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
26064           LIBS="$gss_libs $LIBS"
26065        elif test -f "$KRB5CONFIG"; then
26066                                 gss_libs=`$KRB5CONFIG --libs gssapi`
26067           LIBS="$gss_libs $LIBS"
26068        else
26069           case $host in
26070           *-hp-hpux*)
26071              gss_libname="gss"
26072              ;;
26073           *)
26074              gss_libname="gssapi"
26075              ;;
26076           esac
26077
26078           if test "$GSSAPI_ROOT" != "yes"; then
26079              LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
26080              LIBS="-l$gss_libname $LIBS"
26081           else
26082              LIBS="-l$gss_libname $LIBS"
26083           fi
26084        fi
26085        ;;
26086     esac
26087  else
26088     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
26089     case $host in
26090     *-hp-hpux*)
26091        LIBS="-lgss $LIBS"
26092        ;;
26093     *)
26094        LIBS="-lgssapi $LIBS"
26095        ;;
26096     esac
26097  fi
26098else
26099  CPPFLAGS="$save_CPPFLAGS"
26100fi
26101
26102if test x"$want_gss" = xyes; then
26103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
26104printf %s "checking if we can link against GSS-API library... " >&6; }
26105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26106/* end confdefs.h.  */
26107
26108
26109#define gss_init_sec_context innocuous_gss_init_sec_context
26110#ifdef __STDC__
26111# include <limits.h>
26112#else
26113# include <assert.h>
26114#endif
26115#undef gss_init_sec_context
26116#ifdef __cplusplus
26117extern "C"
26118#endif
26119char gss_init_sec_context ();
26120#if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
26121choke me
26122#endif
26123
26124int main (void)
26125{
26126return gss_init_sec_context ();
26127 ;
26128 return 0;
26129}
26130
26131_ACEOF
26132if ac_fn_c_try_link "$LINENO"
26133then :
26134
26135    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26136printf "%s\n" "yes" >&6; }
26137
26138else $as_nop
26139
26140    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26141printf "%s\n" "no" >&6; }
26142    as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
26143
26144fi
26145rm -f core conftest.err conftest.$ac_objext conftest.beam \
26146    conftest$ac_exeext conftest.$ac_ext
26147fi
26148
26149build_libstubgss=no
26150if test x"$want_gss" = "xyes"; then
26151  build_libstubgss=yes
26152fi
26153
26154 if test "x$build_libstubgss" = "xyes"; then
26155  BUILD_STUB_GSS_TRUE=
26156  BUILD_STUB_GSS_FALSE='#'
26157else
26158  BUILD_STUB_GSS_TRUE='#'
26159  BUILD_STUB_GSS_FALSE=
26160fi
26161
26162
26163
26164DEFAULT_SSL_BACKEND=no
26165VALID_DEFAULT_SSL_BACKEND=
26166
26167# Check whether --with-default-ssl-backend was given.
26168if test ${with_default_ssl_backend+y}
26169then :
26170  withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
26171fi
26172
26173case "$DEFAULT_SSL_BACKEND" in
26174  no)
26175        ;;
26176  default|yes)
26177        as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
26178    ;;
26179  *)
26180
26181        VALID_DEFAULT_SSL_BACKEND=no
26182    ;;
26183esac
26184
26185
26186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
26187printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
26188if test "x$OPT_SCHANNEL" != xno; then
26189  ssl_msg=
26190  if test "x$OPT_SCHANNEL" != "xno"  &&
26191     test "x$curl_cv_native_windows" = "xyes"; then
26192    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26193printf "%s\n" "yes" >&6; }
26194
26195printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
26196
26197    USE_SCHANNEL=1
26198
26199    ssl_msg="Schannel"
26200    test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26201    SCHANNEL_ENABLED=1
26202    # --with-schannel implies --enable-sspi
26203
26204printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
26205
26206    USE_WINDOWS_SSPI=1
26207
26208    curl_sspi_msg="enabled"
26209  else
26210    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26211printf "%s\n" "no" >&6; }
26212  fi
26213  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26214else
26215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26216printf "%s\n" "no" >&6; }
26217fi
26218
26219
26220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
26221printf %s "checking whether to enable Secure Transport... " >&6; }
26222if test "x$OPT_SECURETRANSPORT" != xno; then
26223  if test "x$OPT_SECURETRANSPORT" != "xno" &&
26224     (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
26225    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26226printf "%s\n" "yes" >&6; }
26227
26228printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
26229
26230    USE_SECTRANSP=1
26231
26232    ssl_msg="Secure Transport"
26233    test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26234    SECURETRANSPORT_ENABLED=1
26235    LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Security"
26236  else
26237    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26238printf "%s\n" "no" >&6; }
26239  fi
26240  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26241else
26242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26243printf "%s\n" "no" >&6; }
26244fi
26245
26246
26247
26248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
26249printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
26250if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
26251  if test "x$OPT_AMISSL" != xno; then
26252    ssl_msg=
26253    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26254/* end confdefs.h.  */
26255
26256
26257        #include <libraries/amisslmaster.h>
26258        #include <openssl/opensslv.h>
26259
26260int main (void)
26261{
26262
26263        #if defined(AMISSL_CURRENT_VERSION) && defined(AMISSL_V3xx) && \
26264            (OPENSSL_VERSION_NUMBER >= 0x30000000L) && \
26265            defined(PROTO_AMISSL_H)
26266        return 0;
26267        #else
26268        #error not AmiSSL v5 / OpenSSL 3
26269        #endif
26270
26271 ;
26272 return 0;
26273}
26274
26275_ACEOF
26276if ac_fn_c_try_compile "$LINENO"
26277then :
26278
26279      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26280printf "%s\n" "yes" >&6; }
26281      ssl_msg="AmiSSL"
26282      test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26283      AMISSL_ENABLED=1
26284      OPENSSL_ENABLED=1
26285      # Use AmiSSL's built-in ca bundle
26286      check_for_ca_bundle=1
26287      with_ca_fallback=yes
26288      LIBS="-lamisslstubs -lamisslauto $LIBS"
26289
26290printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
26291
26292
26293printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26294
26295
26296printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26297
26298      ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
26299if test "x$ac_cv_header_openssl_x509_h" = xyes
26300then :
26301  printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
26302
26303fi
26304ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
26305if test "x$ac_cv_header_openssl_rsa_h" = xyes
26306then :
26307  printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
26308
26309fi
26310ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
26311if test "x$ac_cv_header_openssl_crypto_h" = xyes
26312then :
26313  printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
26314
26315fi
26316ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
26317if test "x$ac_cv_header_openssl_pem_h" = xyes
26318then :
26319  printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
26320
26321fi
26322ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
26323if test "x$ac_cv_header_openssl_ssl_h" = xyes
26324then :
26325  printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
26326
26327fi
26328ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
26329if test "x$ac_cv_header_openssl_err_h" = xyes
26330then :
26331  printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
26332
26333fi
26334
26335
26336else $as_nop
26337
26338      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26339printf "%s\n" "no" >&6; }
26340
26341fi
26342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26343    test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26344  else
26345    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26346printf "%s\n" "no" >&6; }
26347  fi
26348else
26349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26350printf "%s\n" "no" >&6; }
26351fi
26352
26353
26354
26355if test "x$OPT_OPENSSL" != xno; then
26356  ssl_msg=
26357
26358    CLEANLDFLAGS="$LDFLAGS"
26359  CLEANCPPFLAGS="$CPPFLAGS"
26360  CLEANLIBS="$LIBS"
26361
26362    case $host in
26363    *-*-msys* | *-*-mingw*)
26364      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
26365printf %s "checking for gdi32... " >&6; }
26366      my_ac_save_LIBS=$LIBS
26367      LIBS="-lgdi32 $LIBS"
26368      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26369/* end confdefs.h.  */
26370
26371        #include <windef.h>
26372        #include <wingdi.h>
26373
26374int main (void)
26375{
26376
26377          GdiFlush();
26378
26379 ;
26380 return 0;
26381}
26382_ACEOF
26383if ac_fn_c_try_link "$LINENO"
26384then :
26385           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26386printf "%s\n" "yes" >&6; }
26387else $as_nop
26388           LIBS=$my_ac_save_LIBS
26389        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26390printf "%s\n" "no" >&6; }
26391
26392fi
26393rm -f core conftest.err conftest.$ac_objext conftest.beam \
26394    conftest$ac_exeext conftest.$ac_ext
26395      ;;
26396  esac
26397
26398  case "$OPT_OPENSSL" in
26399  yes)
26400        PKGTEST="yes"
26401    PREFIX_OPENSSL=
26402    ;;
26403  *)
26404        PKGTEST="no"
26405    PREFIX_OPENSSL=$OPT_OPENSSL
26406
26407                OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
26408    if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26409      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26410printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26411      PKGTEST="yes"
26412    fi
26413
26414    if test "$PKGTEST" != "yes"; then
26415      # try lib64 instead
26416      OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
26417      if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26418        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26419printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26420        PKGTEST="yes"
26421      fi
26422    fi
26423
26424    if test "$PKGTEST" != "yes"; then
26425      if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
26426        as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
26427      fi
26428    fi
26429
26430            LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
26431    if test "$PREFIX_OPENSSL" != "/usr" ; then
26432      SSL_LDFLAGS="-L$LIB_OPENSSL"
26433      SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
26434    fi
26435    ;;
26436  esac
26437
26438  if test "$PKGTEST" = "yes"; then
26439
26440
26441    if test -n "$PKG_CONFIG"; then
26442      PKGCONFIG="$PKG_CONFIG"
26443    else
26444      if test -n "$ac_tool_prefix"; then
26445  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26446set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26448printf %s "checking for $ac_word... " >&6; }
26449if test ${ac_cv_path_PKGCONFIG+y}
26450then :
26451  printf %s "(cached) " >&6
26452else $as_nop
26453  case $PKGCONFIG in
26454  [\\/]* | ?:[\\/]*)
26455  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26456  ;;
26457  *)
26458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26459as_dummy="$PATH:/usr/bin:/usr/local/bin"
26460for as_dir in $as_dummy
26461do
26462  IFS=$as_save_IFS
26463  case $as_dir in #(((
26464    '') as_dir=./ ;;
26465    */) ;;
26466    *) as_dir=$as_dir/ ;;
26467  esac
26468    for ac_exec_ext in '' $ac_executable_extensions; do
26469  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26470    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26471    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26472    break 2
26473  fi
26474done
26475  done
26476IFS=$as_save_IFS
26477
26478  ;;
26479esac
26480fi
26481PKGCONFIG=$ac_cv_path_PKGCONFIG
26482if test -n "$PKGCONFIG"; then
26483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26484printf "%s\n" "$PKGCONFIG" >&6; }
26485else
26486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26487printf "%s\n" "no" >&6; }
26488fi
26489
26490
26491fi
26492if test -z "$ac_cv_path_PKGCONFIG"; then
26493  ac_pt_PKGCONFIG=$PKGCONFIG
26494  # Extract the first word of "pkg-config", so it can be a program name with args.
26495set dummy pkg-config; ac_word=$2
26496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26497printf %s "checking for $ac_word... " >&6; }
26498if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26499then :
26500  printf %s "(cached) " >&6
26501else $as_nop
26502  case $ac_pt_PKGCONFIG in
26503  [\\/]* | ?:[\\/]*)
26504  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26505  ;;
26506  *)
26507  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26508as_dummy="$PATH:/usr/bin:/usr/local/bin"
26509for as_dir in $as_dummy
26510do
26511  IFS=$as_save_IFS
26512  case $as_dir in #(((
26513    '') as_dir=./ ;;
26514    */) ;;
26515    *) as_dir=$as_dir/ ;;
26516  esac
26517    for ac_exec_ext in '' $ac_executable_extensions; do
26518  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26519    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26520    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26521    break 2
26522  fi
26523done
26524  done
26525IFS=$as_save_IFS
26526
26527  ;;
26528esac
26529fi
26530ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26531if test -n "$ac_pt_PKGCONFIG"; then
26532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26533printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26534else
26535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26536printf "%s\n" "no" >&6; }
26537fi
26538
26539  if test "x$ac_pt_PKGCONFIG" = x; then
26540    PKGCONFIG="no"
26541  else
26542    case $cross_compiling:$ac_tool_warned in
26543yes:)
26544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26545printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26546ac_tool_warned=yes ;;
26547esac
26548    PKGCONFIG=$ac_pt_PKGCONFIG
26549  fi
26550else
26551  PKGCONFIG="$ac_cv_path_PKGCONFIG"
26552fi
26553
26554    fi
26555
26556    if test "x$PKGCONFIG" != "xno"; then
26557      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
26558printf %s "checking for openssl options with pkg-config... " >&6; }
26559            itexists=`
26560    if test -n "$OPENSSL_PCDIR"; then
26561      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26562      export PKG_CONFIG_LIBDIR
26563    fi
26564         $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
26565
26566      if test -z "$itexists"; then
26567                        PKGCONFIG="no"
26568        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26569printf "%s\n" "no" >&6; }
26570      else
26571        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26572printf "%s\n" "found" >&6; }
26573      fi
26574    fi
26575
26576
26577    if test "$PKGCONFIG" != "no" ; then
26578      SSL_LIBS=`
26579    if test -n "$OPENSSL_PCDIR"; then
26580      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26581      export PKG_CONFIG_LIBDIR
26582    fi
26583         $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
26584
26585      SSL_LDFLAGS=`
26586    if test -n "$OPENSSL_PCDIR"; then
26587      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26588      export PKG_CONFIG_LIBDIR
26589    fi
26590         $PKGCONFIG --libs-only-L openssl 2>/dev/null`
26591
26592      SSL_CPPFLAGS=`
26593    if test -n "$OPENSSL_PCDIR"; then
26594      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26595      export PKG_CONFIG_LIBDIR
26596    fi
26597         $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
26598
26599
26600      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
26601printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
26602      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
26603printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
26604      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
26605printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
26606
26607      LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
26608
26609                                          LIBS="$SSL_LIBS $LIBS"
26610    fi
26611  fi
26612
26613    CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
26614  LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
26615
26616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
26617printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
26618if test ${ac_cv_lib_crypto_HMAC_Update+y}
26619then :
26620  printf %s "(cached) " >&6
26621else $as_nop
26622  ac_check_lib_save_LIBS=$LIBS
26623LIBS="-lcrypto  $LIBS"
26624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26625/* end confdefs.h.  */
26626
26627
26628#ifdef __cplusplus
26629extern "C"
26630#endif
26631char HMAC_Update ();
26632int main (void)
26633{
26634return HMAC_Update ();
26635 ;
26636 return 0;
26637}
26638_ACEOF
26639if ac_fn_c_try_link "$LINENO"
26640then :
26641  ac_cv_lib_crypto_HMAC_Update=yes
26642else $as_nop
26643  ac_cv_lib_crypto_HMAC_Update=no
26644fi
26645rm -f core conftest.err conftest.$ac_objext conftest.beam \
26646    conftest$ac_exeext conftest.$ac_ext
26647LIBS=$ac_check_lib_save_LIBS
26648fi
26649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
26650printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
26651if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
26652then :
26653
26654     HAVECRYPTO="yes"
26655     LIBS="-lcrypto $LIBS"
26656
26657else $as_nop
26658
26659     if test -n "$LIB_OPENSSL" ; then
26660       LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
26661     fi
26662     if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
26663       # only set this if pkg-config wasn't used
26664       CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
26665     fi
26666     # Linking previously failed, try extra paths from --with-openssl or
26667     # pkg-config.  Use a different function name to avoid reusing the earlier
26668     # cached result.
26669     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
26670printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
26671if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
26672then :
26673  printf %s "(cached) " >&6
26674else $as_nop
26675  ac_check_lib_save_LIBS=$LIBS
26676LIBS="-lcrypto  $LIBS"
26677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26678/* end confdefs.h.  */
26679
26680
26681#ifdef __cplusplus
26682extern "C"
26683#endif
26684char HMAC_Init_ex ();
26685int main (void)
26686{
26687return HMAC_Init_ex ();
26688 ;
26689 return 0;
26690}
26691_ACEOF
26692if ac_fn_c_try_link "$LINENO"
26693then :
26694  ac_cv_lib_crypto_HMAC_Init_ex=yes
26695else $as_nop
26696  ac_cv_lib_crypto_HMAC_Init_ex=no
26697fi
26698rm -f core conftest.err conftest.$ac_objext conftest.beam \
26699    conftest$ac_exeext conftest.$ac_ext
26700LIBS=$ac_check_lib_save_LIBS
26701fi
26702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
26703printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
26704if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
26705then :
26706
26707       HAVECRYPTO="yes"
26708       LIBS="-lcrypto $LIBS"
26709else $as_nop
26710
26711
26712              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
26713printf %s "checking OpenSSL linking with -ldl... " >&6; }
26714       LIBS="-lcrypto $CLEANLIBS -ldl"
26715       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26716/* end confdefs.h.  */
26717
26718         #include <openssl/err.h>
26719
26720int main (void)
26721{
26722
26723         ERR_clear_error();
26724
26725 ;
26726 return 0;
26727}
26728_ACEOF
26729if ac_fn_c_try_link "$LINENO"
26730then :
26731
26732         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26733printf "%s\n" "yes" >&6; }
26734         HAVECRYPTO="yes"
26735
26736else $as_nop
26737
26738         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26739printf "%s\n" "no" >&6; }
26740
26741         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
26742printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
26743         LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
26744         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26745/* end confdefs.h.  */
26746
26747
26748           #include <openssl/err.h>
26749
26750int main (void)
26751{
26752
26753           ERR_clear_error();
26754
26755 ;
26756 return 0;
26757}
26758_ACEOF
26759if ac_fn_c_try_link "$LINENO"
26760then :
26761
26762           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26763printf "%s\n" "yes" >&6; }
26764           HAVECRYPTO="yes"
26765
26766else $as_nop
26767
26768           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26769printf "%s\n" "no" >&6; }
26770           LDFLAGS="$CLEANLDFLAGS"
26771           CPPFLAGS="$CLEANCPPFLAGS"
26772           LIBS="$CLEANLIBS"
26773
26774
26775fi
26776rm -f core conftest.err conftest.$ac_objext conftest.beam \
26777    conftest$ac_exeext conftest.$ac_ext
26778
26779
26780fi
26781rm -f core conftest.err conftest.$ac_objext conftest.beam \
26782    conftest$ac_exeext conftest.$ac_ext
26783
26784
26785fi
26786
26787
26788fi
26789
26790
26791  if test X"$HAVECRYPTO" = X"yes"; then
26792
26793    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26794printf %s "checking for SSL_connect in -lssl... " >&6; }
26795if test ${ac_cv_lib_ssl_SSL_connect+y}
26796then :
26797  printf %s "(cached) " >&6
26798else $as_nop
26799  ac_check_lib_save_LIBS=$LIBS
26800LIBS="-lssl  $LIBS"
26801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26802/* end confdefs.h.  */
26803
26804
26805#ifdef __cplusplus
26806extern "C"
26807#endif
26808char SSL_connect ();
26809int main (void)
26810{
26811return SSL_connect ();
26812 ;
26813 return 0;
26814}
26815_ACEOF
26816if ac_fn_c_try_link "$LINENO"
26817then :
26818  ac_cv_lib_ssl_SSL_connect=yes
26819else $as_nop
26820  ac_cv_lib_ssl_SSL_connect=no
26821fi
26822rm -f core conftest.err conftest.$ac_objext conftest.beam \
26823    conftest$ac_exeext conftest.$ac_ext
26824LIBS=$ac_check_lib_save_LIBS
26825fi
26826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26827printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26828if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26829then :
26830  printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26831
26832  LIBS="-lssl $LIBS"
26833
26834fi
26835
26836
26837    if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26838                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
26839printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
26840        OLIBS=$LIBS
26841        LIBS="-lRSAglue -lrsaref $LIBS"
26842        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26843printf %s "checking for SSL_connect in -lssl... " >&6; }
26844if test ${ac_cv_lib_ssl_SSL_connect+y}
26845then :
26846  printf %s "(cached) " >&6
26847else $as_nop
26848  ac_check_lib_save_LIBS=$LIBS
26849LIBS="-lssl  $LIBS"
26850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851/* end confdefs.h.  */
26852
26853
26854#ifdef __cplusplus
26855extern "C"
26856#endif
26857char SSL_connect ();
26858int main (void)
26859{
26860return SSL_connect ();
26861 ;
26862 return 0;
26863}
26864_ACEOF
26865if ac_fn_c_try_link "$LINENO"
26866then :
26867  ac_cv_lib_ssl_SSL_connect=yes
26868else $as_nop
26869  ac_cv_lib_ssl_SSL_connect=no
26870fi
26871rm -f core conftest.err conftest.$ac_objext conftest.beam \
26872    conftest$ac_exeext conftest.$ac_ext
26873LIBS=$ac_check_lib_save_LIBS
26874fi
26875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26876printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26877if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26878then :
26879  printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26880
26881  LIBS="-lssl $LIBS"
26882
26883fi
26884
26885        if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26886                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26887printf "%s\n" "no" >&6; }
26888            LIBS=$OLIBS
26889        else
26890            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26891printf "%s\n" "yes" >&6; }
26892        fi
26893
26894    else
26895
26896                   for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
26897do :
26898  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
26899ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26900if eval test \"x\$"$as_ac_Header"\" = x"yes"
26901then :
26902  cat >>confdefs.h <<_ACEOF
26903#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
26904_ACEOF
26905 ssl_msg="OpenSSL"
26906        test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26907        OPENSSL_ENABLED=1
26908
26909printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26910
26911fi
26912
26913done
26914
26915      if test $ac_cv_header_openssl_x509_h = no; then
26916                                ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
26917if test "x$ac_cv_header_x509_h" = xyes
26918then :
26919  printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
26920
26921fi
26922ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
26923if test "x$ac_cv_header_rsa_h" = xyes
26924then :
26925  printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
26926
26927fi
26928ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
26929if test "x$ac_cv_header_crypto_h" = xyes
26930then :
26931  printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
26932
26933fi
26934ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
26935if test "x$ac_cv_header_pem_h" = xyes
26936then :
26937  printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
26938
26939fi
26940ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
26941if test "x$ac_cv_header_ssl_h" = xyes
26942then :
26943  printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
26944
26945fi
26946ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
26947if test "x$ac_cv_header_err_h" = xyes
26948then :
26949  printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
26950
26951fi
26952
26953
26954        if test $ac_cv_header_x509_h = yes &&
26955           test $ac_cv_header_crypto_h = yes &&
26956           test $ac_cv_header_ssl_h = yes; then
26957                    ssl_msg="OpenSSL"
26958          OPENSSL_ENABLED=1
26959        fi
26960      fi
26961    fi
26962
26963    if test X"$OPENSSL_ENABLED" != X"1"; then
26964       LIBS="$CLEANLIBS"
26965    fi
26966
26967    if test X"$OPT_OPENSSL" != Xoff &&
26968       test "$OPENSSL_ENABLED" != "1"; then
26969      as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
26970    fi
26971  fi
26972
26973  if test X"$OPENSSL_ENABLED" = X"1"; then
26974
26975    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
26976printf %s "checking for BoringSSL... " >&6; }
26977    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26978/* end confdefs.h.  */
26979
26980
26981                #include <openssl/base.h>
26982
26983int main (void)
26984{
26985
26986                #ifndef OPENSSL_IS_BORINGSSL
26987                #error not boringssl
26988                #endif
26989
26990 ;
26991 return 0;
26992}
26993
26994_ACEOF
26995if ac_fn_c_try_compile "$LINENO"
26996then :
26997
26998        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26999printf "%s\n" "yes" >&6; }
27000        ssl_msg="BoringSSL"
27001        OPENSSL_IS_BORINGSSL=1
27002
27003else $as_nop
27004
27005        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27006printf "%s\n" "no" >&6; }
27007
27008fi
27009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27010
27011    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AWS-LC" >&5
27012printf %s "checking for AWS-LC... " >&6; }
27013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014/* end confdefs.h.  */
27015
27016
27017                #include <openssl/base.h>
27018
27019int main (void)
27020{
27021
27022                #ifndef OPENSSL_IS_AWSLC
27023                #error not AWS-LC
27024                #endif
27025
27026 ;
27027 return 0;
27028}
27029
27030_ACEOF
27031if ac_fn_c_try_compile "$LINENO"
27032then :
27033
27034        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27035printf "%s\n" "yes" >&6; }
27036        ssl_msg="AWS-LC"
27037        OPENSSL_IS_BORINGSSL=1
27038
27039else $as_nop
27040
27041        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27042printf "%s\n" "no" >&6; }
27043
27044fi
27045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27046
27047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
27048printf %s "checking for libressl... " >&6; }
27049    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27050/* end confdefs.h.  */
27051
27052
27053#include <openssl/opensslv.h>
27054
27055int main (void)
27056{
27057
27058        int dummy = LIBRESSL_VERSION_NUMBER;
27059
27060 ;
27061 return 0;
27062}
27063
27064_ACEOF
27065if ac_fn_c_try_compile "$LINENO"
27066then :
27067
27068      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27069printf "%s\n" "yes" >&6; }
27070
27071printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
27072
27073      ssl_msg="libressl"
27074
27075else $as_nop
27076
27077      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27078printf "%s\n" "no" >&6; }
27079
27080fi
27081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27082
27083    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
27084printf %s "checking for OpenSSL >= v3... " >&6; }
27085    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27086/* end confdefs.h.  */
27087
27088
27089#include <openssl/opensslv.h>
27090
27091int main (void)
27092{
27093
27094        #if (OPENSSL_VERSION_NUMBER >= 0x30000000L)
27095        return 0;
27096        #else
27097        #error older than 3
27098        #endif
27099
27100 ;
27101 return 0;
27102}
27103
27104_ACEOF
27105if ac_fn_c_try_compile "$LINENO"
27106then :
27107
27108      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27109printf "%s\n" "yes" >&6; }
27110
27111printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
27112
27113      ssl_msg="OpenSSL v3+"
27114
27115else $as_nop
27116
27117      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27118printf "%s\n" "no" >&6; }
27119
27120fi
27121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27122  fi
27123
27124
27125  for ac_func in SSL_set_quic_use_legacy_codepoint
27126do :
27127  ac_fn_c_check_func "$LINENO" "SSL_set_quic_use_legacy_codepoint" "ac_cv_func_SSL_set_quic_use_legacy_codepoint"
27128if test "x$ac_cv_func_SSL_set_quic_use_legacy_codepoint" = xyes
27129then :
27130  printf "%s\n" "#define HAVE_SSL_SET_QUIC_USE_LEGACY_CODEPOINT 1" >>confdefs.h
27131 QUIC_ENABLED=yes
27132fi
27133
27134done
27135  if test "$QUIC_ENABLED" = "yes"; then
27136    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL fork speaks QUIC API" >&5
27137printf "%s\n" "$as_me: OpenSSL fork speaks QUIC API" >&6;}
27138  else
27139    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL version does not speak QUIC API" >&5
27140printf "%s\n" "$as_me: OpenSSL version does not speak QUIC API" >&6;}
27141  fi
27142
27143  if test "$OPENSSL_ENABLED" = "1"; then
27144    if test -n "$LIB_OPENSSL"; then
27145                            if test "x$cross_compiling" != "xyes"; then
27146         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
27147         export CURL_LIBRARY_PATH
27148         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
27149printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
27150       fi
27151    fi
27152    check_for_ca_bundle=1
27153  fi
27154
27155  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27156fi
27157
27158if test X"$OPT_OPENSSL" != Xno &&
27159  test "$OPENSSL_ENABLED" != "1"; then
27160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
27161printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
27162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
27163printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
27164  as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
27165fi
27166
27167
27168if test X"$OPENSSL_ENABLED" = X"1"; then
27169
27170# Check whether --with-random was given.
27171if test ${with_random+y}
27172then :
27173  withval=$with_random;  RANDOM_FILE="$withval"
27174else $as_nop
27175
27176          if test x$cross_compiling != xyes; then
27177                        as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
27178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
27179printf %s "checking for \"/dev/urandom\"... " >&6; }
27180if eval test \${$as_ac_File+y}
27181then :
27182  printf %s "(cached) " >&6
27183else $as_nop
27184  test "$cross_compiling" = yes &&
27185  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27186if test -r ""/dev/urandom""; then
27187  eval "$as_ac_File=yes"
27188else
27189  eval "$as_ac_File=no"
27190fi
27191fi
27192eval ac_res=\$$as_ac_File
27193	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27194printf "%s\n" "$ac_res" >&6; }
27195if eval test \"x\$"$as_ac_File"\" = x"yes"
27196then :
27197   RANDOM_FILE="/dev/urandom"
27198fi
27199
27200          else
27201            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
27202printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
27203          fi
27204
27205
27206fi
27207
27208  if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
27209
27210
27211printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
27212
27213  fi
27214fi
27215
27216if test "$OPENSSL_ENABLED" = "1"; then
27217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
27218printf %s "checking for SRP support in OpenSSL... " >&6; }
27219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27220/* end confdefs.h.  */
27221
27222
27223#include <openssl/ssl.h>
27224
27225int main (void)
27226{
27227
27228      SSL_CTX_set_srp_username(NULL, "");
27229      SSL_CTX_set_srp_password(NULL, "");
27230
27231 ;
27232 return 0;
27233}
27234
27235_ACEOF
27236if ac_fn_c_try_link "$LINENO"
27237then :
27238
27239    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27240printf "%s\n" "yes" >&6; }
27241
27242printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
27243
27244    HAVE_OPENSSL_SRP=1
27245
27246
27247else $as_nop
27248
27249    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27250printf "%s\n" "no" >&6; }
27251
27252fi
27253rm -f core conftest.err conftest.$ac_objext conftest.beam \
27254    conftest$ac_exeext conftest.$ac_ext
27255fi
27256
27257if test X"$OPENSSL_ENABLED" = X"1"; then
27258# Check whether --enable-openssl-auto-load-config was given.
27259if test ${enable_openssl_auto_load_config+y}
27260then :
27261  enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
27262    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
27263printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
27264
27265printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
27266
27267  fi
27268
27269fi
27270
27271fi
27272
27273if test "$OPENSSL_ENABLED" = "1"; then
27274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for QUIC support in OpenSSL" >&5
27275printf %s "checking for QUIC support in OpenSSL... " >&6; }
27276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277/* end confdefs.h.  */
27278
27279
27280#include <openssl/ssl.h>
27281
27282int main (void)
27283{
27284
27285      OSSL_QUIC_client_method();
27286
27287 ;
27288 return 0;
27289}
27290
27291_ACEOF
27292if ac_fn_c_try_link "$LINENO"
27293then :
27294
27295    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27296printf "%s\n" "yes" >&6; }
27297
27298printf "%s\n" "#define HAVE_OPENSSL_QUIC 1" >>confdefs.h
27299
27300    HAVE_OPENSSL_QUIC=1
27301
27302
27303else $as_nop
27304
27305    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27306printf "%s\n" "no" >&6; }
27307
27308fi
27309rm -f core conftest.err conftest.$ac_objext conftest.beam \
27310    conftest$ac_exeext conftest.$ac_ext
27311fi
27312
27313
27314if test "x$OPT_GNUTLS" != xno; then
27315  ssl_msg=
27316
27317  if test X"$OPT_GNUTLS" != Xno; then
27318
27319    addld=""
27320    addlib=""
27321    gtlslib=""
27322    version=""
27323    addcflags=""
27324
27325    if test "x$OPT_GNUTLS" = "xyes"; then
27326
27327    if test -n "$PKG_CONFIG"; then
27328      PKGCONFIG="$PKG_CONFIG"
27329    else
27330      if test -n "$ac_tool_prefix"; then
27331  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27332set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27334printf %s "checking for $ac_word... " >&6; }
27335if test ${ac_cv_path_PKGCONFIG+y}
27336then :
27337  printf %s "(cached) " >&6
27338else $as_nop
27339  case $PKGCONFIG in
27340  [\\/]* | ?:[\\/]*)
27341  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27342  ;;
27343  *)
27344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27345as_dummy="$PATH:/usr/bin:/usr/local/bin"
27346for as_dir in $as_dummy
27347do
27348  IFS=$as_save_IFS
27349  case $as_dir in #(((
27350    '') as_dir=./ ;;
27351    */) ;;
27352    *) as_dir=$as_dir/ ;;
27353  esac
27354    for ac_exec_ext in '' $ac_executable_extensions; do
27355  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27356    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27357    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27358    break 2
27359  fi
27360done
27361  done
27362IFS=$as_save_IFS
27363
27364  ;;
27365esac
27366fi
27367PKGCONFIG=$ac_cv_path_PKGCONFIG
27368if test -n "$PKGCONFIG"; then
27369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27370printf "%s\n" "$PKGCONFIG" >&6; }
27371else
27372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27373printf "%s\n" "no" >&6; }
27374fi
27375
27376
27377fi
27378if test -z "$ac_cv_path_PKGCONFIG"; then
27379  ac_pt_PKGCONFIG=$PKGCONFIG
27380  # Extract the first word of "pkg-config", so it can be a program name with args.
27381set dummy pkg-config; ac_word=$2
27382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27383printf %s "checking for $ac_word... " >&6; }
27384if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27385then :
27386  printf %s "(cached) " >&6
27387else $as_nop
27388  case $ac_pt_PKGCONFIG in
27389  [\\/]* | ?:[\\/]*)
27390  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27391  ;;
27392  *)
27393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27394as_dummy="$PATH:/usr/bin:/usr/local/bin"
27395for as_dir in $as_dummy
27396do
27397  IFS=$as_save_IFS
27398  case $as_dir in #(((
27399    '') as_dir=./ ;;
27400    */) ;;
27401    *) as_dir=$as_dir/ ;;
27402  esac
27403    for ac_exec_ext in '' $ac_executable_extensions; do
27404  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27405    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27406    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27407    break 2
27408  fi
27409done
27410  done
27411IFS=$as_save_IFS
27412
27413  ;;
27414esac
27415fi
27416ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27417if test -n "$ac_pt_PKGCONFIG"; then
27418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27419printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27420else
27421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27422printf "%s\n" "no" >&6; }
27423fi
27424
27425  if test "x$ac_pt_PKGCONFIG" = x; then
27426    PKGCONFIG="no"
27427  else
27428    case $cross_compiling:$ac_tool_warned in
27429yes:)
27430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27431printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27432ac_tool_warned=yes ;;
27433esac
27434    PKGCONFIG=$ac_pt_PKGCONFIG
27435  fi
27436else
27437  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27438fi
27439
27440    fi
27441
27442    if test "x$PKGCONFIG" != "xno"; then
27443      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
27444printf %s "checking for gnutls options with pkg-config... " >&6; }
27445            itexists=`
27446    if test -n ""; then
27447      PKG_CONFIG_LIBDIR=""
27448      export PKG_CONFIG_LIBDIR
27449    fi
27450         $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
27451
27452      if test -z "$itexists"; then
27453                        PKGCONFIG="no"
27454        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27455printf "%s\n" "no" >&6; }
27456      else
27457        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27458printf "%s\n" "found" >&6; }
27459      fi
27460    fi
27461
27462
27463      if test "$PKGCONFIG" != "no" ; then
27464        addlib=`$PKGCONFIG --libs-only-l gnutls`
27465        addld=`$PKGCONFIG --libs-only-L gnutls`
27466        addcflags=`$PKGCONFIG --cflags-only-I gnutls`
27467        version=`$PKGCONFIG --modversion gnutls`
27468        gtlslib=`echo $addld | $SED -e 's/^-L//'`
27469      else
27470                        check=`libgnutls-config --version 2>/dev/null`
27471        if test -n "$check"; then
27472          addlib=`libgnutls-config --libs`
27473          addcflags=`libgnutls-config --cflags`
27474          version=`libgnutls-config --version`
27475          gtlslib=`libgnutls-config --prefix`/lib$libsuff
27476        fi
27477      fi
27478    else
27479                  cfg=$OPT_GNUTLS/bin/libgnutls-config
27480      check=`$cfg --version 2>/dev/null`
27481      if test -n "$check"; then
27482        addlib=`$cfg --libs`
27483        addcflags=`$cfg --cflags`
27484        version=`$cfg --version`
27485        gtlslib=`$cfg --prefix`/lib$libsuff
27486      else
27487                addlib=-lgnutls
27488        addld=-L$OPT_GNUTLS/lib$libsuff
27489        addcflags=-I$OPT_GNUTLS/include
27490        version="" # we just don't know
27491        gtlslib=$OPT_GNUTLS/lib$libsuff
27492      fi
27493    fi
27494
27495    if test -z "$version"; then
27496            version="unknown"
27497    fi
27498
27499    if test -n "$addlib"; then
27500
27501      CLEANLIBS="$LIBS"
27502      CLEANCPPFLAGS="$CPPFLAGS"
27503      CLEANLDFLAGS="$LDFLAGS"
27504
27505      LIBS="$addlib $LIBS"
27506      LDFLAGS="$LDFLAGS $addld"
27507      if test "$addcflags" != "-I/usr/include"; then
27508         CPPFLAGS="$CPPFLAGS $addcflags"
27509      fi
27510
27511            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
27512printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
27513if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
27514then :
27515  printf %s "(cached) " >&6
27516else $as_nop
27517  ac_check_lib_save_LIBS=$LIBS
27518LIBS="-lgnutls  $LIBS"
27519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27520/* end confdefs.h.  */
27521
27522
27523#ifdef __cplusplus
27524extern "C"
27525#endif
27526char gnutls_x509_crt_get_dn2 ();
27527int main (void)
27528{
27529return gnutls_x509_crt_get_dn2 ();
27530 ;
27531 return 0;
27532}
27533_ACEOF
27534if ac_fn_c_try_link "$LINENO"
27535then :
27536  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
27537else $as_nop
27538  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
27539fi
27540rm -f core conftest.err conftest.$ac_objext conftest.beam \
27541    conftest$ac_exeext conftest.$ac_ext
27542LIBS=$ac_check_lib_save_LIBS
27543fi
27544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
27545printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
27546if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
27547then :
27548
27549
27550printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
27551
27552       USE_GNUTLS=1
27553
27554       GNUTLS_ENABLED=1
27555       USE_GNUTLS="yes"
27556       ssl_msg="GnuTLS"
27557       QUIC_ENABLED=yes
27558       test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27559
27560else $as_nop
27561
27562         LIBS="$CLEANLIBS"
27563         CPPFLAGS="$CLEANCPPFLAGS"
27564
27565fi
27566
27567
27568      if test "x$USE_GNUTLS" = "xyes"; then
27569        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
27570printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
27571        check_for_ca_bundle=1
27572        if test -n "$gtlslib"; then
27573                                                  if test "x$cross_compiling" != "xyes"; then
27574            CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
27575            export CURL_LIBRARY_PATH
27576            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
27577printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
27578          fi
27579        fi
27580      fi
27581
27582    fi
27583
27584  fi
27585  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27586fi
27587
27588
27589if test "$GNUTLS_ENABLED" = "1"; then
27590  USE_GNUTLS_NETTLE=
27591  # First check if we can detect either crypto library via transitive linking
27592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
27593printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
27594if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
27595then :
27596  printf %s "(cached) " >&6
27597else $as_nop
27598  ac_check_lib_save_LIBS=$LIBS
27599LIBS="-lgnutls  $LIBS"
27600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27601/* end confdefs.h.  */
27602
27603
27604#ifdef __cplusplus
27605extern "C"
27606#endif
27607char nettle_MD5Init ();
27608int main (void)
27609{
27610return nettle_MD5Init ();
27611 ;
27612 return 0;
27613}
27614_ACEOF
27615if ac_fn_c_try_link "$LINENO"
27616then :
27617  ac_cv_lib_gnutls_nettle_MD5Init=yes
27618else $as_nop
27619  ac_cv_lib_gnutls_nettle_MD5Init=no
27620fi
27621rm -f core conftest.err conftest.$ac_objext conftest.beam \
27622    conftest$ac_exeext conftest.$ac_ext
27623LIBS=$ac_check_lib_save_LIBS
27624fi
27625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
27626printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
27627if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
27628then :
27629   USE_GNUTLS_NETTLE=1
27630fi
27631
27632
27633  # If not, try linking directly to both of them to see if they are available
27634  if test "$USE_GNUTLS_NETTLE" = ""; then
27635    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
27636printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
27637if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
27638then :
27639  printf %s "(cached) " >&6
27640else $as_nop
27641  ac_check_lib_save_LIBS=$LIBS
27642LIBS="-lnettle  $LIBS"
27643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27644/* end confdefs.h.  */
27645
27646
27647#ifdef __cplusplus
27648extern "C"
27649#endif
27650char nettle_MD5Init ();
27651int main (void)
27652{
27653return nettle_MD5Init ();
27654 ;
27655 return 0;
27656}
27657_ACEOF
27658if ac_fn_c_try_link "$LINENO"
27659then :
27660  ac_cv_lib_nettle_nettle_MD5Init=yes
27661else $as_nop
27662  ac_cv_lib_nettle_nettle_MD5Init=no
27663fi
27664rm -f core conftest.err conftest.$ac_objext conftest.beam \
27665    conftest$ac_exeext conftest.$ac_ext
27666LIBS=$ac_check_lib_save_LIBS
27667fi
27668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
27669printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
27670if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
27671then :
27672   USE_GNUTLS_NETTLE=1
27673fi
27674
27675  fi
27676  if test "$USE_GNUTLS_NETTLE" = ""; then
27677    as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
27678  fi
27679  LIBS="-lnettle $LIBS"
27680fi
27681
27682if test "$GNUTLS_ENABLED" = "1"; then
27683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
27684printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
27685if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
27686then :
27687  printf %s "(cached) " >&6
27688else $as_nop
27689  ac_check_lib_save_LIBS=$LIBS
27690LIBS="-lgnutls  $LIBS"
27691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27692/* end confdefs.h.  */
27693
27694
27695#ifdef __cplusplus
27696extern "C"
27697#endif
27698char gnutls_srp_verifier ();
27699int main (void)
27700{
27701return gnutls_srp_verifier ();
27702 ;
27703 return 0;
27704}
27705_ACEOF
27706if ac_fn_c_try_link "$LINENO"
27707then :
27708  ac_cv_lib_gnutls_gnutls_srp_verifier=yes
27709else $as_nop
27710  ac_cv_lib_gnutls_gnutls_srp_verifier=no
27711fi
27712rm -f core conftest.err conftest.$ac_objext conftest.beam \
27713    conftest$ac_exeext conftest.$ac_ext
27714LIBS=$ac_check_lib_save_LIBS
27715fi
27716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
27717printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
27718if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
27719then :
27720
27721
27722printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
27723
27724     HAVE_GNUTLS_SRP=1
27725
27726
27727fi
27728
27729fi
27730
27731
27732
27733
27734if test "x$OPT_MBEDTLS" != xno; then
27735  _cppflags=$CPPFLAGS
27736  _ldflags=$LDFLAGS
27737  ssl_msg=
27738
27739  if test X"$OPT_MBEDTLS" != Xno; then
27740
27741    if test "$OPT_MBEDTLS" = "yes"; then
27742      OPT_MBEDTLS=""
27743    fi
27744
27745    if test -z "$OPT_MBEDTLS" ; then
27746
27747      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27748printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27749if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27750then :
27751  printf %s "(cached) " >&6
27752else $as_nop
27753  ac_check_lib_save_LIBS=$LIBS
27754LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27756/* end confdefs.h.  */
27757
27758
27759#ifdef __cplusplus
27760extern "C"
27761#endif
27762char mbedtls_havege_init ();
27763int main (void)
27764{
27765return mbedtls_havege_init ();
27766 ;
27767 return 0;
27768}
27769_ACEOF
27770if ac_fn_c_try_link "$LINENO"
27771then :
27772  ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27773else $as_nop
27774  ac_cv_lib_mbedtls_mbedtls_havege_init=no
27775fi
27776rm -f core conftest.err conftest.$ac_objext conftest.beam \
27777    conftest$ac_exeext conftest.$ac_ext
27778LIBS=$ac_check_lib_save_LIBS
27779fi
27780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27781printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27782if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27783then :
27784
27785
27786printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27787
27788         USE_MBEDTLS=1
27789
27790         MBEDTLS_ENABLED=1
27791         USE_MBEDTLS="yes"
27792         ssl_msg="mbedTLS"
27793         test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27794
27795fi
27796
27797    fi
27798
27799    addld=""
27800    addlib=""
27801    addcflags=""
27802    mbedtlslib=""
27803
27804    if test "x$USE_MBEDTLS" != "xyes"; then
27805            addld=-L$OPT_MBEDTLS/lib$libsuff
27806      addcflags=-I$OPT_MBEDTLS/include
27807      mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27808
27809      LDFLAGS="$LDFLAGS $addld"
27810      if test "$addcflags" != "-I/usr/include"; then
27811         CPPFLAGS="$CPPFLAGS $addcflags"
27812      fi
27813
27814      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27815printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27816if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27817then :
27818  printf %s "(cached) " >&6
27819else $as_nop
27820  ac_check_lib_save_LIBS=$LIBS
27821LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27823/* end confdefs.h.  */
27824
27825
27826#ifdef __cplusplus
27827extern "C"
27828#endif
27829char mbedtls_ssl_init ();
27830int main (void)
27831{
27832return mbedtls_ssl_init ();
27833 ;
27834 return 0;
27835}
27836_ACEOF
27837if ac_fn_c_try_link "$LINENO"
27838then :
27839  ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27840else $as_nop
27841  ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27842fi
27843rm -f core conftest.err conftest.$ac_objext conftest.beam \
27844    conftest$ac_exeext conftest.$ac_ext
27845LIBS=$ac_check_lib_save_LIBS
27846fi
27847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
27848printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
27849if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
27850then :
27851
27852
27853printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27854
27855       USE_MBEDTLS=1
27856
27857       MBEDTLS_ENABLED=1
27858       USE_MBEDTLS="yes"
27859       ssl_msg="mbedTLS"
27860       test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27861
27862else $as_nop
27863
27864         CPPFLAGS=$_cppflags
27865         LDFLAGS=$_ldflags
27866
27867fi
27868
27869    fi
27870
27871    if test "x$USE_MBEDTLS" = "xyes"; then
27872      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
27873printf "%s\n" "$as_me: detected mbedTLS" >&6;}
27874      check_for_ca_bundle=1
27875
27876      LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27877
27878      if test -n "$mbedtlslib"; then
27879                                        if test "x$cross_compiling" != "xyes"; then
27880          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
27881          export CURL_LIBRARY_PATH
27882          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
27883printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
27884        fi
27885      fi
27886    fi
27887
27888  fi
27889  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27890fi
27891
27892
27893
27894
27895case "$OPT_WOLFSSL" in
27896  yes|no)
27897    wolfpkg=""
27898    ;;
27899  *)
27900    wolfpkg="$withval/lib/pkgconfig"
27901    ;;
27902esac
27903
27904if test "x$OPT_WOLFSSL" != xno; then
27905  _cppflags=$CPPFLAGS
27906  _ldflags=$LDFLAGS
27907
27908  ssl_msg=
27909
27910  if test X"$OPT_WOLFSSL" != Xno; then
27911
27912    if test "$OPT_WOLFSSL" = "yes"; then
27913      OPT_WOLFSSL=""
27914    fi
27915
27916
27917    if test -n "$PKG_CONFIG"; then
27918      PKGCONFIG="$PKG_CONFIG"
27919    else
27920      if test -n "$ac_tool_prefix"; then
27921  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27922set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27924printf %s "checking for $ac_word... " >&6; }
27925if test ${ac_cv_path_PKGCONFIG+y}
27926then :
27927  printf %s "(cached) " >&6
27928else $as_nop
27929  case $PKGCONFIG in
27930  [\\/]* | ?:[\\/]*)
27931  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27932  ;;
27933  *)
27934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27935as_dummy="$PATH:/usr/bin:/usr/local/bin"
27936for as_dir in $as_dummy
27937do
27938  IFS=$as_save_IFS
27939  case $as_dir in #(((
27940    '') as_dir=./ ;;
27941    */) ;;
27942    *) as_dir=$as_dir/ ;;
27943  esac
27944    for ac_exec_ext in '' $ac_executable_extensions; do
27945  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27946    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27947    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27948    break 2
27949  fi
27950done
27951  done
27952IFS=$as_save_IFS
27953
27954  ;;
27955esac
27956fi
27957PKGCONFIG=$ac_cv_path_PKGCONFIG
27958if test -n "$PKGCONFIG"; then
27959  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27960printf "%s\n" "$PKGCONFIG" >&6; }
27961else
27962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27963printf "%s\n" "no" >&6; }
27964fi
27965
27966
27967fi
27968if test -z "$ac_cv_path_PKGCONFIG"; then
27969  ac_pt_PKGCONFIG=$PKGCONFIG
27970  # Extract the first word of "pkg-config", so it can be a program name with args.
27971set dummy pkg-config; ac_word=$2
27972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27973printf %s "checking for $ac_word... " >&6; }
27974if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27975then :
27976  printf %s "(cached) " >&6
27977else $as_nop
27978  case $ac_pt_PKGCONFIG in
27979  [\\/]* | ?:[\\/]*)
27980  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27981  ;;
27982  *)
27983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27984as_dummy="$PATH:/usr/bin:/usr/local/bin"
27985for as_dir in $as_dummy
27986do
27987  IFS=$as_save_IFS
27988  case $as_dir in #(((
27989    '') as_dir=./ ;;
27990    */) ;;
27991    *) as_dir=$as_dir/ ;;
27992  esac
27993    for ac_exec_ext in '' $ac_executable_extensions; do
27994  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27995    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27996    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27997    break 2
27998  fi
27999done
28000  done
28001IFS=$as_save_IFS
28002
28003  ;;
28004esac
28005fi
28006ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28007if test -n "$ac_pt_PKGCONFIG"; then
28008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28009printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28010else
28011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28012printf "%s\n" "no" >&6; }
28013fi
28014
28015  if test "x$ac_pt_PKGCONFIG" = x; then
28016    PKGCONFIG="no"
28017  else
28018    case $cross_compiling:$ac_tool_warned in
28019yes:)
28020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28021printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28022ac_tool_warned=yes ;;
28023esac
28024    PKGCONFIG=$ac_pt_PKGCONFIG
28025  fi
28026else
28027  PKGCONFIG="$ac_cv_path_PKGCONFIG"
28028fi
28029
28030    fi
28031
28032    if test "x$PKGCONFIG" != "xno"; then
28033      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
28034printf %s "checking for wolfssl options with pkg-config... " >&6; }
28035            itexists=`
28036    if test -n "$wolfpkg"; then
28037      PKG_CONFIG_LIBDIR="$wolfpkg"
28038      export PKG_CONFIG_LIBDIR
28039    fi
28040         $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
28041
28042      if test -z "$itexists"; then
28043                        PKGCONFIG="no"
28044        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28045printf "%s\n" "no" >&6; }
28046      else
28047        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28048printf "%s\n" "found" >&6; }
28049      fi
28050    fi
28051
28052    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
28053printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
28054
28055    addld=""
28056    addlib=""
28057    addcflags=""
28058    if test "$PKGCONFIG" != "no" ; then
28059      addlib=`
28060    if test -n "$wolfpkg"; then
28061      PKG_CONFIG_LIBDIR="$wolfpkg"
28062      export PKG_CONFIG_LIBDIR
28063    fi
28064
28065        $PKGCONFIG --libs-only-l wolfssl`
28066      addld=`
28067    if test -n "$wolfpkg"; then
28068      PKG_CONFIG_LIBDIR="$wolfpkg"
28069      export PKG_CONFIG_LIBDIR
28070    fi
28071
28072        $PKGCONFIG --libs-only-L wolfssl`
28073      addcflags=`
28074    if test -n "$wolfpkg"; then
28075      PKG_CONFIG_LIBDIR="$wolfpkg"
28076      export PKG_CONFIG_LIBDIR
28077    fi
28078
28079        $PKGCONFIG --cflags-only-I wolfssl`
28080      version=`
28081    if test -n "$wolfpkg"; then
28082      PKG_CONFIG_LIBDIR="$wolfpkg"
28083      export PKG_CONFIG_LIBDIR
28084    fi
28085
28086        $PKGCONFIG --modversion wolfssl`
28087      wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
28088    else
28089      addlib=-lwolfssl
28090            if test -n "$OPT_WOLFSSL"; then
28091        addld=-L$OPT_WOLFSSL/lib$libsuff
28092        addcflags=-I$OPT_WOLFSSL/include
28093        wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
28094      fi
28095    fi
28096
28097    if test "x$USE_WOLFSSL" != "xyes"; then
28098
28099      LDFLAGS="$LDFLAGS $addld"
28100      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
28101printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
28102      if test "$addcflags" != "-I/usr/include"; then
28103         CPPFLAGS="$CPPFLAGS $addcflags"
28104         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
28105printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
28106      fi
28107
28108      my_ac_save_LIBS="$LIBS"
28109      LIBS="$addlib $LIBS"
28110      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
28111printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
28112
28113      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
28114printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
28115      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28116/* end confdefs.h.  */
28117
28118
28119/* These aren't needed for detection and confuse WolfSSL.
28120   They are set up properly later if it is detected.  */
28121#undef SIZEOF_LONG
28122#undef SIZEOF_LONG_LONG
28123#include <wolfssl/options.h>
28124#include <wolfssl/ssl.h>
28125
28126int main (void)
28127{
28128
28129          return wolfSSL_Init();
28130
28131 ;
28132 return 0;
28133}
28134
28135_ACEOF
28136if ac_fn_c_try_link "$LINENO"
28137then :
28138
28139         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28140printf "%s\n" "yes" >&6; }
28141
28142printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
28143
28144         USE_WOLFSSL=1
28145
28146         WOLFSSL_ENABLED=1
28147         USE_WOLFSSL="yes"
28148         ssl_msg="WolfSSL"
28149         QUIC_ENABLED=yes
28150         test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28151
28152else $as_nop
28153
28154         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28155printf "%s\n" "no" >&6; }
28156         CPPFLAGS=$_cppflags
28157         LDFLAGS=$_ldflags
28158         wolfssllibpath=""
28159
28160fi
28161rm -f core conftest.err conftest.$ac_objext conftest.beam \
28162    conftest$ac_exeext conftest.$ac_ext
28163      LIBS="$my_ac_save_LIBS"
28164    fi
28165
28166    if test "x$USE_WOLFSSL" = "xyes"; then
28167      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
28168printf "%s\n" "$as_me: detected wolfSSL" >&6;}
28169      check_for_ca_bundle=1
28170
28171
28172
28173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
28174printf %s "checking size of long long... " >&6; }
28175  r=0
28176    for typesize in 8 4 2 16 1; do
28177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28178/* end confdefs.h.  */
28179
28180#include <sys/types.h>
28181
28182
28183int main (void)
28184{
28185switch(0) {
28186       case 0:
28187       case (sizeof(long long) == $typesize):;
28188     }
28189
28190 ;
28191 return 0;
28192}
28193_ACEOF
28194if ac_fn_c_try_compile "$LINENO"
28195then :
28196
28197       r=$typesize
28198else $as_nop
28199
28200       r=0
28201fi
28202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28203        if test $r -gt 0; then
28204      break;
28205    fi
28206  done
28207  if test $r -eq 0; then
28208    as_fn_error $? "Failed to find size of long long" "$LINENO" 5
28209  fi
28210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
28211printf "%s\n" "$r" >&6; }
28212    tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
28213  eval "$tname=$r"
28214
28215
28216printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
28217
28218
28219
28220
28221      LIBS="$addlib -lm $LIBS"
28222
28223                        ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
28224if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
28225then :
28226  printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
28227
28228fi
28229ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
28230if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
28231then :
28232  printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
28233
28234fi
28235
28236
28237                  ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
28238if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
28239then :
28240
28241
28242printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
28243
28244            WOLFSSL_NTLM=1
28245
28246
28247fi
28248
28249
28250            ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_set_shutdown" "ac_cv_func_wolfSSL_BIO_set_shutdown"
28251if test "x$ac_cv_func_wolfSSL_BIO_set_shutdown" = xyes
28252then :
28253
28254
28255printf "%s\n" "#define HAVE_WOLFSSL_FULL_BIO 1" >>confdefs.h
28256
28257            WOLFSSL_FULL_BIO=1
28258
28259
28260fi
28261
28262
28263      if test -n "$wolfssllibpath"; then
28264                                        if test "x$cross_compiling" != "xyes"; then
28265          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
28266          export CURL_LIBRARY_PATH
28267          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
28268printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
28269        fi
28270      fi
28271    else
28272        as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5
28273    fi
28274
28275  fi
28276  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28277fi
28278
28279
28280
28281
28282if test "x$OPT_BEARSSL" != xno; then
28283  _cppflags=$CPPFLAGS
28284  _ldflags=$LDFLAGS
28285  ssl_msg=
28286
28287  if test X"$OPT_BEARSSL" != Xno; then
28288
28289    if test "$OPT_BEARSSL" = "yes"; then
28290      OPT_BEARSSL=""
28291    fi
28292
28293    if test -z "$OPT_BEARSSL" ; then
28294
28295      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28296printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28297if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28298then :
28299  printf %s "(cached) " >&6
28300else $as_nop
28301  ac_check_lib_save_LIBS=$LIBS
28302LIBS="-lbearssl -lbearssl $LIBS"
28303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28304/* end confdefs.h.  */
28305
28306
28307#ifdef __cplusplus
28308extern "C"
28309#endif
28310char br_ssl_client_init_full ();
28311int main (void)
28312{
28313return br_ssl_client_init_full ();
28314 ;
28315 return 0;
28316}
28317_ACEOF
28318if ac_fn_c_try_link "$LINENO"
28319then :
28320  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28321else $as_nop
28322  ac_cv_lib_bearssl_br_ssl_client_init_full=no
28323fi
28324rm -f core conftest.err conftest.$ac_objext conftest.beam \
28325    conftest$ac_exeext conftest.$ac_ext
28326LIBS=$ac_check_lib_save_LIBS
28327fi
28328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28329printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28330if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28331then :
28332
28333
28334printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28335
28336         USE_BEARSSL=1
28337
28338         BEARSSL_ENABLED=1
28339         USE_BEARSSL="yes"
28340         ssl_msg="BearSSL"
28341         test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28342
28343fi
28344
28345    fi
28346
28347    addld=""
28348    addlib=""
28349    addcflags=""
28350    bearssllib=""
28351
28352    if test "x$USE_BEARSSL" != "xyes"; then
28353            addld=-L$OPT_BEARSSL/lib$libsuff
28354      addcflags=-I$OPT_BEARSSL/include
28355      bearssllib=$OPT_BEARSSL/lib$libsuff
28356
28357      LDFLAGS="$LDFLAGS $addld"
28358      if test "$addcflags" != "-I/usr/include"; then
28359         CPPFLAGS="$CPPFLAGS $addcflags"
28360      fi
28361
28362      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28363printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28364if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28365then :
28366  printf %s "(cached) " >&6
28367else $as_nop
28368  ac_check_lib_save_LIBS=$LIBS
28369LIBS="-lbearssl -lbearssl $LIBS"
28370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28371/* end confdefs.h.  */
28372
28373
28374#ifdef __cplusplus
28375extern "C"
28376#endif
28377char br_ssl_client_init_full ();
28378int main (void)
28379{
28380return br_ssl_client_init_full ();
28381 ;
28382 return 0;
28383}
28384_ACEOF
28385if ac_fn_c_try_link "$LINENO"
28386then :
28387  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28388else $as_nop
28389  ac_cv_lib_bearssl_br_ssl_client_init_full=no
28390fi
28391rm -f core conftest.err conftest.$ac_objext conftest.beam \
28392    conftest$ac_exeext conftest.$ac_ext
28393LIBS=$ac_check_lib_save_LIBS
28394fi
28395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28396printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28397if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28398then :
28399
28400
28401printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28402
28403       USE_BEARSSL=1
28404
28405       BEARSSL_ENABLED=1
28406       USE_BEARSSL="yes"
28407       ssl_msg="BearSSL"
28408       test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28409
28410else $as_nop
28411
28412         CPPFLAGS=$_cppflags
28413         LDFLAGS=$_ldflags
28414
28415fi
28416
28417    fi
28418
28419    if test "x$USE_BEARSSL" = "xyes"; then
28420      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
28421printf "%s\n" "$as_me: detected BearSSL" >&6;}
28422      check_for_ca_bundle=1
28423
28424      LIBS="-lbearssl $LIBS"
28425
28426      if test -n "$bearssllib"; then
28427                                        if test "x$cross_compiling" != "xyes"; then
28428          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
28429          export CURL_LIBRARY_PATH
28430          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
28431printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
28432        fi
28433      fi
28434    fi
28435
28436  fi
28437  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28438fi
28439
28440
28441
28442if test "x$OPT_RUSTLS" != xno; then
28443  ssl_msg=
28444
28445    CLEANLDFLAGS="$LDFLAGS"
28446  CLEANCPPFLAGS="$CPPFLAGS"
28447
28448  case $host_os in
28449    darwin*)
28450      LDFLAGS="$LDFLAGS -framework Security"
28451      ;;
28452    *)
28453      ;;
28454  esac
28455  ## NEW CODE
28456
28457
28458  case "$OPT_RUSTLS" in
28459    yes)
28460            PKGTEST="yes"
28461      PREFIX_RUSTLS=
28462      ;;
28463    *)
28464            PKGTEST="no"
28465      PREFIX_RUSTLS=$OPT_RUSTLS
28466
28467
28468      RUSTLS_PCDIR="$PREFIX_RUSTLS/lib/pkgconfig"
28469      if test -f "$RUSTLS_PCDIR/rustls.pc"; then
28470        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&5
28471printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&6;}
28472        PKGTEST="yes"
28473      fi
28474
28475      if test "$PKGTEST" != "yes"; then
28476        # try lib64 instead
28477        RUSTLS_PCDIR="$PREFIX_RUSTLS/lib64/pkgconfig"
28478        if test -f "$RUSTLS_PCDIR/rustls.pc"; then
28479          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&5
28480printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&6;}
28481          PKGTEST="yes"
28482        fi
28483      fi
28484
28485      if test "$PKGTEST" != "yes"; then
28486
28487        addld=-L$PREFIX_RUSTLS/lib$libsuff
28488        addcflags=-I$PREFIX_RUSTLS/include
28489
28490        LDFLAGS="$LDFLAGS $addld"
28491        if test "$addcflags" != "-I/usr/include"; then
28492            CPPFLAGS="$CPPFLAGS $addcflags"
28493        fi
28494
28495        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
28496printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
28497if test ${ac_cv_lib_rustls_rustls_connection_read+y}
28498then :
28499  printf %s "(cached) " >&6
28500else $as_nop
28501  ac_check_lib_save_LIBS=$LIBS
28502LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28504/* end confdefs.h.  */
28505
28506
28507#ifdef __cplusplus
28508extern "C"
28509#endif
28510char rustls_connection_read ();
28511int main (void)
28512{
28513return rustls_connection_read ();
28514 ;
28515 return 0;
28516}
28517_ACEOF
28518if ac_fn_c_try_link "$LINENO"
28519then :
28520  ac_cv_lib_rustls_rustls_connection_read=yes
28521else $as_nop
28522  ac_cv_lib_rustls_rustls_connection_read=no
28523fi
28524rm -f core conftest.err conftest.$ac_objext conftest.beam \
28525    conftest$ac_exeext conftest.$ac_ext
28526LIBS=$ac_check_lib_save_LIBS
28527fi
28528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
28529printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
28530if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
28531then :
28532
28533
28534printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28535
28536          USE_RUSTLS=1
28537
28538          RUSTLS_ENABLED=1
28539          USE_RUSTLS="yes"
28540          ssl_msg="rustls"
28541          test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28542
28543else $as_nop
28544  as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
28545fi
28546
28547
28548        LIB_RUSTLS="$PREFIX_RUSTLS/lib$libsuff"
28549        if test "$PREFIX_RUSTLS" != "/usr" ; then
28550          SSL_LDFLAGS="-L$LIB_RUSTLS"
28551          SSL_CPPFLAGS="-I$PREFIX_RUSTLS/include"
28552        fi
28553      fi
28554      ;;
28555  esac
28556
28557  if test "$PKGTEST" = "yes"; then
28558
28559
28560    if test -n "$PKG_CONFIG"; then
28561      PKGCONFIG="$PKG_CONFIG"
28562    else
28563      if test -n "$ac_tool_prefix"; then
28564  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28565set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28567printf %s "checking for $ac_word... " >&6; }
28568if test ${ac_cv_path_PKGCONFIG+y}
28569then :
28570  printf %s "(cached) " >&6
28571else $as_nop
28572  case $PKGCONFIG in
28573  [\\/]* | ?:[\\/]*)
28574  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28575  ;;
28576  *)
28577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28578as_dummy="$PATH:/usr/bin:/usr/local/bin"
28579for as_dir in $as_dummy
28580do
28581  IFS=$as_save_IFS
28582  case $as_dir in #(((
28583    '') as_dir=./ ;;
28584    */) ;;
28585    *) as_dir=$as_dir/ ;;
28586  esac
28587    for ac_exec_ext in '' $ac_executable_extensions; do
28588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28589    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28591    break 2
28592  fi
28593done
28594  done
28595IFS=$as_save_IFS
28596
28597  ;;
28598esac
28599fi
28600PKGCONFIG=$ac_cv_path_PKGCONFIG
28601if test -n "$PKGCONFIG"; then
28602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28603printf "%s\n" "$PKGCONFIG" >&6; }
28604else
28605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28606printf "%s\n" "no" >&6; }
28607fi
28608
28609
28610fi
28611if test -z "$ac_cv_path_PKGCONFIG"; then
28612  ac_pt_PKGCONFIG=$PKGCONFIG
28613  # Extract the first word of "pkg-config", so it can be a program name with args.
28614set dummy pkg-config; ac_word=$2
28615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28616printf %s "checking for $ac_word... " >&6; }
28617if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28618then :
28619  printf %s "(cached) " >&6
28620else $as_nop
28621  case $ac_pt_PKGCONFIG in
28622  [\\/]* | ?:[\\/]*)
28623  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28624  ;;
28625  *)
28626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28627as_dummy="$PATH:/usr/bin:/usr/local/bin"
28628for as_dir in $as_dummy
28629do
28630  IFS=$as_save_IFS
28631  case $as_dir in #(((
28632    '') as_dir=./ ;;
28633    */) ;;
28634    *) as_dir=$as_dir/ ;;
28635  esac
28636    for ac_exec_ext in '' $ac_executable_extensions; do
28637  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28638    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28639    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28640    break 2
28641  fi
28642done
28643  done
28644IFS=$as_save_IFS
28645
28646  ;;
28647esac
28648fi
28649ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28650if test -n "$ac_pt_PKGCONFIG"; then
28651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28652printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28653else
28654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28655printf "%s\n" "no" >&6; }
28656fi
28657
28658  if test "x$ac_pt_PKGCONFIG" = x; then
28659    PKGCONFIG="no"
28660  else
28661    case $cross_compiling:$ac_tool_warned in
28662yes:)
28663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28664printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28665ac_tool_warned=yes ;;
28666esac
28667    PKGCONFIG=$ac_pt_PKGCONFIG
28668  fi
28669else
28670  PKGCONFIG="$ac_cv_path_PKGCONFIG"
28671fi
28672
28673    fi
28674
28675    if test "x$PKGCONFIG" != "xno"; then
28676      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls options with pkg-config" >&5
28677printf %s "checking for rustls options with pkg-config... " >&6; }
28678            itexists=`
28679    if test -n "$RUSTLS_PCDIR"; then
28680      PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR"
28681      export PKG_CONFIG_LIBDIR
28682    fi
28683         $PKGCONFIG --exists rustls >/dev/null 2>&1 && echo 1`
28684
28685      if test -z "$itexists"; then
28686                        PKGCONFIG="no"
28687        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28688printf "%s\n" "no" >&6; }
28689      else
28690        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28691printf "%s\n" "found" >&6; }
28692      fi
28693    fi
28694
28695
28696    if test "$PKGCONFIG" != "no" ; then
28697      SSL_LIBS=`
28698    if test -n "$RUSTLS_PCDIR"; then
28699      PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR"
28700      export PKG_CONFIG_LIBDIR
28701    fi
28702         $PKGCONFIG --libs-only-l --libs-only-other rustls 2>/dev/null`
28703
28704      SSL_LDFLAGS=`
28705    if test -n "$RUSTLS_PCDIR"; then
28706      PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR"
28707      export PKG_CONFIG_LIBDIR
28708    fi
28709         $PKGCONFIG --libs-only-L rustls 2>/dev/null`
28710
28711      SSL_CPPFLAGS=`
28712    if test -n "$RUSTLS_PCDIR"; then
28713      PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR"
28714      export PKG_CONFIG_LIBDIR
28715    fi
28716         $PKGCONFIG --cflags-only-I rustls 2>/dev/null`
28717
28718
28719      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
28720printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
28721      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
28722printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
28723      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
28724printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
28725
28726      LIB_RUSTLS=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
28727
28728                                          LIBS="$SSL_LIBS $LIBS"
28729      ssl_msg="rustls"
28730
28731printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28732
28733      USE_RUSTLS=1
28734
28735      USE_RUSTLS="yes"
28736      RUSTLS_ENABLED=1
28737      test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28738    else
28739      as_fn_error $? "pkg-config: Could not find rustls" "$LINENO" 5
28740    fi
28741
28742  else
28743            LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28744  fi
28745
28746    CPPFLAGS="$CLEAN_CPPFLAGS $SSL_CPPFLAGS"
28747  LDFLAGS="$CLAN_LDFLAGS $SSL_LDFLAGS"
28748
28749  if test "x$USE_RUSTLS" = "xyes"; then
28750    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
28751printf "%s\n" "$as_me: detected rustls" >&6;}
28752    check_for_ca_bundle=1
28753
28754    if test -n "$LIB_RUSTLS"; then
28755                              if test "x$cross_compiling" != "xyes"; then
28756        CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_RUSTLS"
28757        export CURL_LIBRARY_PATH
28758        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_RUSTLS to CURL_LIBRARY_PATH" >&5
28759printf "%s\n" "$as_me: Added $LIB_RUSTLS to CURL_LIBRARY_PATH" >&6;}
28760      fi
28761    fi
28762  fi
28763
28764  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28765
28766  if test X"$OPT_RUSTLS" != Xno &&
28767    test "$RUSTLS_ENABLED" != "1"; then
28768    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_RUSTLS: $OPT_RUSTLS" >&5
28769printf "%s\n" "$as_me: OPT_RUSTLS: $OPT_RUSTLS" >&6;}
28770    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: RUSTLS_ENABLED: $RUSTLS_ENABLED" >&5
28771printf "%s\n" "$as_me: RUSTLS_ENABLED: $RUSTLS_ENABLED" >&6;}
28772    as_fn_error $? "--with-rustls was given but Rustls could not be detected" "$LINENO" 5
28773  fi
28774fi
28775
28776
28777if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28778  LIBS="-ladvapi32 -lcrypt32 $LIBS"
28779fi
28780
28781if test "x$curl_cv_native_windows" = "xyes"; then
28782  LIBS="-lbcrypt $LIBS"
28783fi
28784
28785case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED"
28786in
28787x)
28788  as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
28789Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5
28790  ;;
28791x1)
28792  # one SSL backend is enabled
28793
28794  SSL_ENABLED="1"
28795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28796printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28797  ;;
28798xD)
28799  # explicitly built without TLS
28800  ;;
28801xD*)
28802  as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library
28803(e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
28804Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5
28805  ;;
28806*)
28807  # more than one SSL backend is enabled
28808
28809  SSL_ENABLED="1"
28810
28811  CURL_WITH_MULTI_SSL="1"
28812
28813printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28814
28815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28816printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28817  ;;
28818esac
28819
28820if test -n "$ssl_backends"; then
28821  curl_ssl_msg="enabled ($ssl_backends)"
28822fi
28823
28824if test no = "$VALID_DEFAULT_SSL_BACKEND"
28825then
28826  if test -n "$SSL_ENABLED"
28827  then
28828    as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28829  else
28830    as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28831  fi
28832elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28833then
28834
28835printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28836
28837fi
28838
28839
28840if test -n "$check_for_ca_bundle"; then
28841
28842
28843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28844printf %s "checking default CA cert bundle/path... " >&6; }
28845
28846
28847# Check whether --with-ca-bundle was given.
28848if test ${with_ca_bundle+y}
28849then :
28850  withval=$with_ca_bundle;
28851    want_ca="$withval"
28852    if test "x$want_ca" = "xyes"; then
28853      as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28854    fi
28855
28856else $as_nop
28857   want_ca="unset"
28858fi
28859
28860
28861# Check whether --with-ca-path was given.
28862if test ${with_ca_path+y}
28863then :
28864  withval=$with_ca_path;
28865    want_capath="$withval"
28866    if test "x$want_capath" = "xyes"; then
28867      as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28868    fi
28869
28870else $as_nop
28871   want_capath="unset"
28872fi
28873
28874
28875  ca_warning="   (warning: certs not found)"
28876  capath_warning="   (warning: certs not found)"
28877  check_capath=""
28878
28879  if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28880          "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28881        ca="$want_ca"
28882    capath="$want_capath"
28883  elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28884        ca="$want_ca"
28885    capath="no"
28886  elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28887        if test "x$OPENSSL_ENABLED" != "x1" -a \
28888            "x$GNUTLS_ENABLED" != "x1" -a \
28889            "x$MBEDTLS_ENABLED" != "x1" -a \
28890            "x$WOLFSSL_ENABLED" != "x1"; then
28891      as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS, mbedTLS or wolfSSL" "$LINENO" 5
28892    fi
28893    capath="$want_capath"
28894    ca="no"
28895  else
28896            ca="no"
28897    capath="no"
28898    if test "x$cross_compiling" != "xyes"; then
28899                  if test "x$want_ca" = "xunset"; then
28900                                if test "x$prefix" != xNONE; then
28901          cac="${prefix}/share/curl/curl-ca-bundle.crt"
28902        else
28903          cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28904        fi
28905
28906        for a in /etc/ssl/certs/ca-certificates.crt \
28907                 /etc/pki/tls/certs/ca-bundle.crt \
28908                 /usr/share/ssl/certs/ca-bundle.crt \
28909                 /usr/local/share/certs/ca-root-nss.crt \
28910                 /etc/ssl/cert.pem \
28911                 "$cac"; do
28912          if test -f "$a"; then
28913            ca="$a"
28914            break
28915          fi
28916        done
28917      fi
28918      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: want $want_capath ca $ca" >&5
28919printf "%s\n" "$as_me: want $want_capath ca $ca" >&6;}
28920      if test "x$want_capath" = "xunset"; then
28921        if test "x$OPENSSL_ENABLED" = "x1" -o \
28922                "x$GNUTLS_ENABLED" = "x1" -o \
28923                "x$MBEDTLS_ENABLED" = "x1" -o \
28924                "x$WOLFSSL_ENABLED" = "x1"; then
28925          check_capath="/etc/ssl/certs"
28926        fi
28927      fi
28928    else
28929            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28930printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28931    fi
28932  fi
28933
28934  if test "x$ca" = "xno" || test -f "$ca"; then
28935    ca_warning=""
28936  fi
28937
28938  if test "x$capath" != "xno"; then
28939    check_capath="$capath"
28940  fi
28941
28942  if test ! -z "$check_capath"; then
28943    for a in "$check_capath"; do
28944      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
28945        if test "x$capath" = "xno"; then
28946          capath="$a"
28947        fi
28948        capath_warning=""
28949        break
28950      fi
28951    done
28952  fi
28953
28954  if test "x$capath" = "xno"; then
28955    capath_warning=""
28956  fi
28957
28958  if test "x$ca" != "xno"; then
28959    CURL_CA_BUNDLE='"'$ca'"'
28960
28961printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28962
28963
28964    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28965printf "%s\n" "$ca" >&6; }
28966  fi
28967  if test "x$capath" != "xno"; then
28968    CURL_CA_PATH="\"$capath\""
28969
28970printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28971
28972    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28973printf "%s\n" "$capath (capath)" >&6; }
28974  fi
28975  if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28976    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28977printf "%s\n" "no" >&6; }
28978  fi
28979
28980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28981printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28982
28983# Check whether --with-ca-fallback was given.
28984if test ${with_ca_fallback+y}
28985then :
28986  withval=$with_ca_fallback;
28987    if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28988      as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28989    fi
28990
28991else $as_nop
28992   with_ca_fallback="no"
28993fi
28994
28995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28996printf "%s\n" "$with_ca_fallback" >&6; }
28997  if test "x$with_ca_fallback" = "xyes"; then
28998    if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28999      as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
29000    fi
29001
29002printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
29003
29004  fi
29005
29006fi
29007
29008
29009OPT_LIBPSL=off
29010
29011# Check whether --with-libpsl was given.
29012if test ${with_libpsl+y}
29013then :
29014  withval=$with_libpsl; OPT_LIBPSL=$withval
29015fi
29016
29017
29018if test X"$OPT_LIBPSL" != Xno; then
29019    CLEANLDFLAGS="$LDFLAGS"
29020  CLEANCPPFLAGS="$CPPFLAGS"
29021  CLEANLIBS="$LIBS"
29022
29023  case "$OPT_LIBPSL" in
29024  yes)
29025
29026    if test -n "$PKG_CONFIG"; then
29027      PKGCONFIG="$PKG_CONFIG"
29028    else
29029      if test -n "$ac_tool_prefix"; then
29030  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29031set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29033printf %s "checking for $ac_word... " >&6; }
29034if test ${ac_cv_path_PKGCONFIG+y}
29035then :
29036  printf %s "(cached) " >&6
29037else $as_nop
29038  case $PKGCONFIG in
29039  [\\/]* | ?:[\\/]*)
29040  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29041  ;;
29042  *)
29043  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29044as_dummy="$PATH:/usr/bin:/usr/local/bin"
29045for as_dir in $as_dummy
29046do
29047  IFS=$as_save_IFS
29048  case $as_dir in #(((
29049    '') as_dir=./ ;;
29050    */) ;;
29051    *) as_dir=$as_dir/ ;;
29052  esac
29053    for ac_exec_ext in '' $ac_executable_extensions; do
29054  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29055    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29056    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29057    break 2
29058  fi
29059done
29060  done
29061IFS=$as_save_IFS
29062
29063  ;;
29064esac
29065fi
29066PKGCONFIG=$ac_cv_path_PKGCONFIG
29067if test -n "$PKGCONFIG"; then
29068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29069printf "%s\n" "$PKGCONFIG" >&6; }
29070else
29071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29072printf "%s\n" "no" >&6; }
29073fi
29074
29075
29076fi
29077if test -z "$ac_cv_path_PKGCONFIG"; then
29078  ac_pt_PKGCONFIG=$PKGCONFIG
29079  # Extract the first word of "pkg-config", so it can be a program name with args.
29080set dummy pkg-config; ac_word=$2
29081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29082printf %s "checking for $ac_word... " >&6; }
29083if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29084then :
29085  printf %s "(cached) " >&6
29086else $as_nop
29087  case $ac_pt_PKGCONFIG in
29088  [\\/]* | ?:[\\/]*)
29089  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29090  ;;
29091  *)
29092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29093as_dummy="$PATH:/usr/bin:/usr/local/bin"
29094for as_dir in $as_dummy
29095do
29096  IFS=$as_save_IFS
29097  case $as_dir in #(((
29098    '') as_dir=./ ;;
29099    */) ;;
29100    *) as_dir=$as_dir/ ;;
29101  esac
29102    for ac_exec_ext in '' $ac_executable_extensions; do
29103  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29104    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29105    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29106    break 2
29107  fi
29108done
29109  done
29110IFS=$as_save_IFS
29111
29112  ;;
29113esac
29114fi
29115ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29116if test -n "$ac_pt_PKGCONFIG"; then
29117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29118printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29119else
29120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29121printf "%s\n" "no" >&6; }
29122fi
29123
29124  if test "x$ac_pt_PKGCONFIG" = x; then
29125    PKGCONFIG="no"
29126  else
29127    case $cross_compiling:$ac_tool_warned in
29128yes:)
29129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29130printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29131ac_tool_warned=yes ;;
29132esac
29133    PKGCONFIG=$ac_pt_PKGCONFIG
29134  fi
29135else
29136  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29137fi
29138
29139    fi
29140
29141    if test "x$PKGCONFIG" != "xno"; then
29142      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpsl options with pkg-config" >&5
29143printf %s "checking for libpsl options with pkg-config... " >&6; }
29144            itexists=`
29145    if test -n ""; then
29146      PKG_CONFIG_LIBDIR=""
29147      export PKG_CONFIG_LIBDIR
29148    fi
29149         $PKGCONFIG --exists libpsl >/dev/null 2>&1 && echo 1`
29150
29151      if test -z "$itexists"; then
29152                        PKGCONFIG="no"
29153        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29154printf "%s\n" "no" >&6; }
29155      else
29156        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29157printf "%s\n" "found" >&6; }
29158      fi
29159    fi
29160
29161
29162    if test "$PKGCONFIG" != "no" ; then
29163      LIB_PSL=`$PKGCONFIG --libs-only-l libpsl`
29164      LD_PSL=`$PKGCONFIG --libs-only-L libpsl`
29165      CPP_PSL=`$PKGCONFIG --cflags-only-I libpsl`
29166    else
29167            LIB_PSL="-lpsl"
29168    fi
29169
29170    ;;
29171  off)
29172        LIB_PSL="-lpsl"
29173    ;;
29174  *)
29175        LIB_PSL="-lpsl"
29176    PREFIX_PSL=$OPT_LIBPSL
29177    ;;
29178  esac
29179
29180    if test -n "$PREFIX_PSL"; then
29181    LD_PSL=-L${PREFIX_PSL}/lib$libsuff
29182    CPP_PSL=-I${PREFIX_PSL}/include
29183  fi
29184
29185  LDFLAGS="$LDFLAGS $LD_PSL"
29186  CPPFLAGS="$CPPFLAGS $CPP_PSL"
29187  LIBS="$LIB_PSL $LIBS"
29188
29189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for psl_builtin in -lpsl" >&5
29190printf %s "checking for psl_builtin in -lpsl... " >&6; }
29191if test ${ac_cv_lib_psl_psl_builtin+y}
29192then :
29193  printf %s "(cached) " >&6
29194else $as_nop
29195  ac_check_lib_save_LIBS=$LIBS
29196LIBS="-lpsl  $LIBS"
29197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29198/* end confdefs.h.  */
29199
29200
29201#ifdef __cplusplus
29202extern "C"
29203#endif
29204char psl_builtin ();
29205int main (void)
29206{
29207return psl_builtin ();
29208 ;
29209 return 0;
29210}
29211_ACEOF
29212if ac_fn_c_try_link "$LINENO"
29213then :
29214  ac_cv_lib_psl_psl_builtin=yes
29215else $as_nop
29216  ac_cv_lib_psl_psl_builtin=no
29217fi
29218rm -f core conftest.err conftest.$ac_objext conftest.beam \
29219    conftest$ac_exeext conftest.$ac_ext
29220LIBS=$ac_check_lib_save_LIBS
29221fi
29222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psl_psl_builtin" >&5
29223printf "%s\n" "$ac_cv_lib_psl_psl_builtin" >&6; }
29224if test "x$ac_cv_lib_psl_psl_builtin" = xyes
29225then :
29226
29227            for ac_header in libpsl.h
29228do :
29229  ac_fn_c_check_header_compile "$LINENO" "libpsl.h" "ac_cv_header_libpsl_h" "$ac_includes_default"
29230if test "x$ac_cv_header_libpsl_h" = xyes
29231then :
29232  printf "%s\n" "#define HAVE_LIBPSL_H 1" >>confdefs.h
29233 curl_psl_msg="enabled"
29234        LIBPSL_ENABLED=1
29235
29236printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
29237
29238        USE_LIBPSL=1
29239
29240
29241fi
29242
29243done
29244
29245else $as_nop
29246        LDFLAGS=$CLEANLDFLAGS
29247      CPPFLAGS=$CLEANCPPFLAGS
29248      LIBS=$CLEANLIBS
29249
29250fi
29251
29252
29253  if test X"$OPT_LIBPSL" != Xoff &&
29254     test "$LIBPSL_ENABLED" != "1"; then
29255    as_fn_error $? "libpsl libs and/or directories were not found where specified!" "$LINENO" 5
29256  fi
29257fi
29258 if test "$curl_psl_msg" = "enabled"; then
29259  USE_LIBPSL_TRUE=
29260  USE_LIBPSL_FALSE='#'
29261else
29262  USE_LIBPSL_TRUE='#'
29263  USE_LIBPSL_FALSE=
29264fi
29265
29266
29267
29268
29269
29270# Check whether --with-libgsasl was given.
29271if test ${with_libgsasl+y}
29272then :
29273  withval=$with_libgsasl; with_libgsasl=$withval
29274else $as_nop
29275  with_libgsasl=yes
29276fi
29277
29278if test $with_libgsasl != "no"; then
29279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
29280printf %s "checking for library containing gsasl_init... " >&6; }
29281if test ${ac_cv_search_gsasl_init+y}
29282then :
29283  printf %s "(cached) " >&6
29284else $as_nop
29285  ac_func_search_save_LIBS=$LIBS
29286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29287/* end confdefs.h.  */
29288
29289
29290#ifdef __cplusplus
29291extern "C"
29292#endif
29293char gsasl_init ();
29294int main (void)
29295{
29296return gsasl_init ();
29297 ;
29298 return 0;
29299}
29300_ACEOF
29301for ac_lib in '' gsasl
29302do
29303  if test -z "$ac_lib"; then
29304    ac_res="none required"
29305  else
29306    ac_res=-l$ac_lib
29307    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29308  fi
29309  if ac_fn_c_try_link "$LINENO"
29310then :
29311  ac_cv_search_gsasl_init=$ac_res
29312fi
29313rm -f core conftest.err conftest.$ac_objext conftest.beam \
29314    conftest$ac_exeext
29315  if test ${ac_cv_search_gsasl_init+y}
29316then :
29317  break
29318fi
29319done
29320if test ${ac_cv_search_gsasl_init+y}
29321then :
29322
29323else $as_nop
29324  ac_cv_search_gsasl_init=no
29325fi
29326rm conftest.$ac_ext
29327LIBS=$ac_func_search_save_LIBS
29328fi
29329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
29330printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
29331ac_res=$ac_cv_search_gsasl_init
29332if test "$ac_res" != no
29333then :
29334  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29335  curl_gsasl_msg="enabled";
29336
29337printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
29338
29339
29340else $as_nop
29341  curl_gsasl_msg="no      (libgsasl not found)";
29342     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
29343printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
29344
29345
29346fi
29347
29348fi
29349 if test "$curl_gsasl_msg" = "enabled"; then
29350  USE_GSASL_TRUE=
29351  USE_GSASL_FALSE='#'
29352else
29353  USE_GSASL_TRUE='#'
29354  USE_GSASL_FALSE=
29355fi
29356
29357
29358
29359# Check whether --with-libmetalink was given.
29360if test ${with_libmetalink+y}
29361then :
29362  withval=$with_libmetalink; as_fn_error $? "--with-libmetalink and --without-libmetalink no longer work!" "$LINENO" 5
29363fi
29364
29365
29366
29367OPT_LIBSSH2=off
29368
29369# Check whether --with-libssh2 was given.
29370if test ${with_libssh2+y}
29371then :
29372  withval=$with_libssh2; OPT_LIBSSH2=$withval
29373else $as_nop
29374  OPT_LIBSSH2=no
29375fi
29376
29377
29378
29379OPT_LIBSSH=off
29380
29381# Check whether --with-libssh was given.
29382if test ${with_libssh+y}
29383then :
29384  withval=$with_libssh; OPT_LIBSSH=$withval
29385else $as_nop
29386  OPT_LIBSSH=no
29387fi
29388
29389
29390OPT_WOLFSSH=off
29391
29392# Check whether --with-wolfssh was given.
29393if test ${with_wolfssh+y}
29394then :
29395  withval=$with_wolfssh; OPT_WOLFSSH=$withval
29396else $as_nop
29397  OPT_WOLFSSH=no
29398fi
29399
29400
29401if test X"$OPT_LIBSSH2" != Xno; then
29402    CLEANLDFLAGS="$LDFLAGS"
29403  CLEANCPPFLAGS="$CPPFLAGS"
29404  CLEANLIBS="$LIBS"
29405
29406  case "$OPT_LIBSSH2" in
29407  yes)
29408
29409    if test -n "$PKG_CONFIG"; then
29410      PKGCONFIG="$PKG_CONFIG"
29411    else
29412      if test -n "$ac_tool_prefix"; then
29413  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29414set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29416printf %s "checking for $ac_word... " >&6; }
29417if test ${ac_cv_path_PKGCONFIG+y}
29418then :
29419  printf %s "(cached) " >&6
29420else $as_nop
29421  case $PKGCONFIG in
29422  [\\/]* | ?:[\\/]*)
29423  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29424  ;;
29425  *)
29426  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29427as_dummy="$PATH:/usr/bin:/usr/local/bin"
29428for as_dir in $as_dummy
29429do
29430  IFS=$as_save_IFS
29431  case $as_dir in #(((
29432    '') as_dir=./ ;;
29433    */) ;;
29434    *) as_dir=$as_dir/ ;;
29435  esac
29436    for ac_exec_ext in '' $ac_executable_extensions; do
29437  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29438    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29439    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29440    break 2
29441  fi
29442done
29443  done
29444IFS=$as_save_IFS
29445
29446  ;;
29447esac
29448fi
29449PKGCONFIG=$ac_cv_path_PKGCONFIG
29450if test -n "$PKGCONFIG"; then
29451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29452printf "%s\n" "$PKGCONFIG" >&6; }
29453else
29454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29455printf "%s\n" "no" >&6; }
29456fi
29457
29458
29459fi
29460if test -z "$ac_cv_path_PKGCONFIG"; then
29461  ac_pt_PKGCONFIG=$PKGCONFIG
29462  # Extract the first word of "pkg-config", so it can be a program name with args.
29463set dummy pkg-config; ac_word=$2
29464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29465printf %s "checking for $ac_word... " >&6; }
29466if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29467then :
29468  printf %s "(cached) " >&6
29469else $as_nop
29470  case $ac_pt_PKGCONFIG in
29471  [\\/]* | ?:[\\/]*)
29472  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29473  ;;
29474  *)
29475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29476as_dummy="$PATH:/usr/bin:/usr/local/bin"
29477for as_dir in $as_dummy
29478do
29479  IFS=$as_save_IFS
29480  case $as_dir in #(((
29481    '') as_dir=./ ;;
29482    */) ;;
29483    *) as_dir=$as_dir/ ;;
29484  esac
29485    for ac_exec_ext in '' $ac_executable_extensions; do
29486  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29487    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29488    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29489    break 2
29490  fi
29491done
29492  done
29493IFS=$as_save_IFS
29494
29495  ;;
29496esac
29497fi
29498ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29499if test -n "$ac_pt_PKGCONFIG"; then
29500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29501printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29502else
29503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29504printf "%s\n" "no" >&6; }
29505fi
29506
29507  if test "x$ac_pt_PKGCONFIG" = x; then
29508    PKGCONFIG="no"
29509  else
29510    case $cross_compiling:$ac_tool_warned in
29511yes:)
29512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29513printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29514ac_tool_warned=yes ;;
29515esac
29516    PKGCONFIG=$ac_pt_PKGCONFIG
29517  fi
29518else
29519  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29520fi
29521
29522    fi
29523
29524    if test "x$PKGCONFIG" != "xno"; then
29525      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
29526printf %s "checking for libssh2 options with pkg-config... " >&6; }
29527            itexists=`
29528    if test -n ""; then
29529      PKG_CONFIG_LIBDIR=""
29530      export PKG_CONFIG_LIBDIR
29531    fi
29532         $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
29533
29534      if test -z "$itexists"; then
29535                        PKGCONFIG="no"
29536        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29537printf "%s\n" "no" >&6; }
29538      else
29539        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29540printf "%s\n" "found" >&6; }
29541      fi
29542    fi
29543
29544
29545    if test "$PKGCONFIG" != "no" ; then
29546      LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
29547      LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
29548      CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
29549      version=`$PKGCONFIG --modversion libssh2`
29550      DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
29551    fi
29552
29553    ;;
29554  off)
29555        ;;
29556  *)
29557        PREFIX_SSH2=$OPT_LIBSSH2
29558    ;;
29559  esac
29560
29561    if test -n "$PREFIX_SSH2"; then
29562    LIB_SSH2="-lssh2"
29563    LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
29564    CPP_SSH2=-I${PREFIX_SSH2}/include
29565    DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
29566  fi
29567
29568  LDFLAGS="$LDFLAGS $LD_SSH2"
29569  CPPFLAGS="$CPPFLAGS $CPP_SSH2"
29570  LIBS="$LIB_SSH2 $LIBS"
29571
29572    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
29573printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
29574if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
29575then :
29576  printf %s "(cached) " >&6
29577else $as_nop
29578  ac_check_lib_save_LIBS=$LIBS
29579LIBS="-lssh2  $LIBS"
29580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29581/* end confdefs.h.  */
29582
29583
29584#ifdef __cplusplus
29585extern "C"
29586#endif
29587char libssh2_session_block_directions ();
29588int main (void)
29589{
29590return libssh2_session_block_directions ();
29591 ;
29592 return 0;
29593}
29594_ACEOF
29595if ac_fn_c_try_link "$LINENO"
29596then :
29597  ac_cv_lib_ssh2_libssh2_session_block_directions=yes
29598else $as_nop
29599  ac_cv_lib_ssh2_libssh2_session_block_directions=no
29600fi
29601rm -f core conftest.err conftest.$ac_objext conftest.beam \
29602    conftest$ac_exeext conftest.$ac_ext
29603LIBS=$ac_check_lib_save_LIBS
29604fi
29605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
29606printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
29607if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
29608then :
29609  printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
29610
29611  LIBS="-lssh2 $LIBS"
29612
29613fi
29614
29615
29616  ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
29617if test "x$ac_cv_header_libssh2_h" = xyes
29618then :
29619  curl_ssh_msg="enabled (libSSH2)"
29620    LIBSSH2_ENABLED=1
29621
29622printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
29623
29624    USE_LIBSSH2=1
29625
29626
29627fi
29628
29629
29630  if test X"$OPT_LIBSSH2" != Xoff &&
29631     test "$LIBSSH2_ENABLED" != "1"; then
29632    as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
29633  fi
29634
29635  if test "$LIBSSH2_ENABLED" = "1"; then
29636    if test -n "$DIR_SSH2"; then
29637
29638       if test "x$cross_compiling" != "xyes"; then
29639         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
29640         export CURL_LIBRARY_PATH
29641         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
29642printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
29643       fi
29644    fi
29645  else
29646        LDFLAGS=$CLEANLDFLAGS
29647    CPPFLAGS=$CLEANCPPFLAGS
29648    LIBS=$CLEANLIBS
29649  fi
29650elif test X"$OPT_LIBSSH" != Xno; then
29651    CLEANLDFLAGS="$LDFLAGS"
29652  CLEANCPPFLAGS="$CPPFLAGS"
29653  CLEANLIBS="$LIBS"
29654
29655  case "$OPT_LIBSSH" in
29656  yes)
29657
29658    if test -n "$PKG_CONFIG"; then
29659      PKGCONFIG="$PKG_CONFIG"
29660    else
29661      if test -n "$ac_tool_prefix"; then
29662  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29663set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29665printf %s "checking for $ac_word... " >&6; }
29666if test ${ac_cv_path_PKGCONFIG+y}
29667then :
29668  printf %s "(cached) " >&6
29669else $as_nop
29670  case $PKGCONFIG in
29671  [\\/]* | ?:[\\/]*)
29672  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29673  ;;
29674  *)
29675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29676as_dummy="$PATH:/usr/bin:/usr/local/bin"
29677for as_dir in $as_dummy
29678do
29679  IFS=$as_save_IFS
29680  case $as_dir in #(((
29681    '') as_dir=./ ;;
29682    */) ;;
29683    *) as_dir=$as_dir/ ;;
29684  esac
29685    for ac_exec_ext in '' $ac_executable_extensions; do
29686  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29687    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29688    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29689    break 2
29690  fi
29691done
29692  done
29693IFS=$as_save_IFS
29694
29695  ;;
29696esac
29697fi
29698PKGCONFIG=$ac_cv_path_PKGCONFIG
29699if test -n "$PKGCONFIG"; then
29700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29701printf "%s\n" "$PKGCONFIG" >&6; }
29702else
29703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29704printf "%s\n" "no" >&6; }
29705fi
29706
29707
29708fi
29709if test -z "$ac_cv_path_PKGCONFIG"; then
29710  ac_pt_PKGCONFIG=$PKGCONFIG
29711  # Extract the first word of "pkg-config", so it can be a program name with args.
29712set dummy pkg-config; ac_word=$2
29713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29714printf %s "checking for $ac_word... " >&6; }
29715if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29716then :
29717  printf %s "(cached) " >&6
29718else $as_nop
29719  case $ac_pt_PKGCONFIG in
29720  [\\/]* | ?:[\\/]*)
29721  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29722  ;;
29723  *)
29724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29725as_dummy="$PATH:/usr/bin:/usr/local/bin"
29726for as_dir in $as_dummy
29727do
29728  IFS=$as_save_IFS
29729  case $as_dir in #(((
29730    '') as_dir=./ ;;
29731    */) ;;
29732    *) as_dir=$as_dir/ ;;
29733  esac
29734    for ac_exec_ext in '' $ac_executable_extensions; do
29735  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29736    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29737    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29738    break 2
29739  fi
29740done
29741  done
29742IFS=$as_save_IFS
29743
29744  ;;
29745esac
29746fi
29747ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29748if test -n "$ac_pt_PKGCONFIG"; then
29749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29750printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29751else
29752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29753printf "%s\n" "no" >&6; }
29754fi
29755
29756  if test "x$ac_pt_PKGCONFIG" = x; then
29757    PKGCONFIG="no"
29758  else
29759    case $cross_compiling:$ac_tool_warned in
29760yes:)
29761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29762printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29763ac_tool_warned=yes ;;
29764esac
29765    PKGCONFIG=$ac_pt_PKGCONFIG
29766  fi
29767else
29768  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29769fi
29770
29771    fi
29772
29773    if test "x$PKGCONFIG" != "xno"; then
29774      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29775printf %s "checking for libssh options with pkg-config... " >&6; }
29776            itexists=`
29777    if test -n ""; then
29778      PKG_CONFIG_LIBDIR=""
29779      export PKG_CONFIG_LIBDIR
29780    fi
29781         $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29782
29783      if test -z "$itexists"; then
29784                        PKGCONFIG="no"
29785        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29786printf "%s\n" "no" >&6; }
29787      else
29788        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29789printf "%s\n" "found" >&6; }
29790      fi
29791    fi
29792
29793
29794    if test "$PKGCONFIG" != "no" ; then
29795      LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29796      LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29797      CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29798      version=`$PKGCONFIG --modversion libssh`
29799      DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29800    fi
29801
29802    ;;
29803  off)
29804        ;;
29805  *)
29806        PREFIX_SSH=$OPT_LIBSSH
29807    ;;
29808  esac
29809
29810    if test -n "$PREFIX_SSH"; then
29811    LIB_SSH="-lssh"
29812    LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29813    CPP_SSH=-I${PREFIX_SSH}/include
29814    DIR_SSH=${PREFIX_SSH}/lib$libsuff
29815  fi
29816
29817  LDFLAGS="$LDFLAGS $LD_SSH"
29818  CPPFLAGS="$CPPFLAGS $CPP_SSH"
29819  LIBS="$LIB_SSH $LIBS"
29820
29821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29822printf %s "checking for ssh_new in -lssh... " >&6; }
29823if test ${ac_cv_lib_ssh_ssh_new+y}
29824then :
29825  printf %s "(cached) " >&6
29826else $as_nop
29827  ac_check_lib_save_LIBS=$LIBS
29828LIBS="-lssh  $LIBS"
29829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29830/* end confdefs.h.  */
29831
29832
29833#ifdef __cplusplus
29834extern "C"
29835#endif
29836char ssh_new ();
29837int main (void)
29838{
29839return ssh_new ();
29840 ;
29841 return 0;
29842}
29843_ACEOF
29844if ac_fn_c_try_link "$LINENO"
29845then :
29846  ac_cv_lib_ssh_ssh_new=yes
29847else $as_nop
29848  ac_cv_lib_ssh_ssh_new=no
29849fi
29850rm -f core conftest.err conftest.$ac_objext conftest.beam \
29851    conftest$ac_exeext conftest.$ac_ext
29852LIBS=$ac_check_lib_save_LIBS
29853fi
29854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29855printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29856if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29857then :
29858  printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29859
29860  LIBS="-lssh $LIBS"
29861
29862fi
29863
29864
29865  ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29866if test "x$ac_cv_header_libssh_libssh_h" = xyes
29867then :
29868  curl_ssh_msg="enabled (libSSH)"
29869    LIBSSH_ENABLED=1
29870
29871printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29872
29873    USE_LIBSSH=1
29874
29875
29876fi
29877
29878
29879  if test X"$OPT_LIBSSH" != Xoff &&
29880     test "$LIBSSH_ENABLED" != "1"; then
29881    as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29882  fi
29883
29884  if test "$LIBSSH_ENABLED" = "1"; then
29885    if test -n "$DIR_SSH"; then
29886
29887       if test "x$cross_compiling" != "xyes"; then
29888         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29889         export CURL_LIBRARY_PATH
29890         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29891printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29892       fi
29893    fi
29894  else
29895        LDFLAGS=$CLEANLDFLAGS
29896    CPPFLAGS=$CLEANCPPFLAGS
29897    LIBS=$CLEANLIBS
29898  fi
29899elif test X"$OPT_WOLFSSH" != Xno; then
29900    CLEANLDFLAGS="$LDFLAGS"
29901  CLEANCPPFLAGS="$CPPFLAGS"
29902  CLEANLIBS="$LIBS"
29903
29904
29905  if test "$OPT_WOLFSSH" != yes; then
29906     WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29907     LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29908     CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29909  fi
29910
29911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29912printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29913if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29914then :
29915  printf %s "(cached) " >&6
29916else $as_nop
29917  ac_check_lib_save_LIBS=$LIBS
29918LIBS="-lwolfssh  $LIBS"
29919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29920/* end confdefs.h.  */
29921
29922
29923#ifdef __cplusplus
29924extern "C"
29925#endif
29926char wolfSSH_Init ();
29927int main (void)
29928{
29929return wolfSSH_Init ();
29930 ;
29931 return 0;
29932}
29933_ACEOF
29934if ac_fn_c_try_link "$LINENO"
29935then :
29936  ac_cv_lib_wolfssh_wolfSSH_Init=yes
29937else $as_nop
29938  ac_cv_lib_wolfssh_wolfSSH_Init=no
29939fi
29940rm -f core conftest.err conftest.$ac_objext conftest.beam \
29941    conftest$ac_exeext conftest.$ac_ext
29942LIBS=$ac_check_lib_save_LIBS
29943fi
29944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29945printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29946if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29947then :
29948  printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29949
29950  LIBS="-lwolfssh $LIBS"
29951
29952fi
29953
29954
29955         for ac_header in wolfssh/ssh.h
29956do :
29957  ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29958if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29959then :
29960  printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29961 curl_ssh_msg="enabled (wolfSSH)"
29962    WOLFSSH_ENABLED=1
29963
29964printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29965
29966    USE_WOLFSSH=1
29967
29968
29969fi
29970
29971done
29972
29973fi
29974
29975
29976OPT_LIBRTMP=off
29977
29978# Check whether --with-librtmp was given.
29979if test ${with_librtmp+y}
29980then :
29981  withval=$with_librtmp; OPT_LIBRTMP=$withval
29982fi
29983
29984
29985if test X"$OPT_LIBRTMP" != Xno; then
29986    CLEANLDFLAGS="$LDFLAGS"
29987  CLEANCPPFLAGS="$CPPFLAGS"
29988  CLEANLIBS="$LIBS"
29989
29990  case "$OPT_LIBRTMP" in
29991  yes)
29992
29993    if test -n "$PKG_CONFIG"; then
29994      PKGCONFIG="$PKG_CONFIG"
29995    else
29996      if test -n "$ac_tool_prefix"; then
29997  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29998set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30000printf %s "checking for $ac_word... " >&6; }
30001if test ${ac_cv_path_PKGCONFIG+y}
30002then :
30003  printf %s "(cached) " >&6
30004else $as_nop
30005  case $PKGCONFIG in
30006  [\\/]* | ?:[\\/]*)
30007  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30008  ;;
30009  *)
30010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30011as_dummy="$PATH:/usr/bin:/usr/local/bin"
30012for as_dir in $as_dummy
30013do
30014  IFS=$as_save_IFS
30015  case $as_dir in #(((
30016    '') as_dir=./ ;;
30017    */) ;;
30018    *) as_dir=$as_dir/ ;;
30019  esac
30020    for ac_exec_ext in '' $ac_executable_extensions; do
30021  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30022    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30023    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30024    break 2
30025  fi
30026done
30027  done
30028IFS=$as_save_IFS
30029
30030  ;;
30031esac
30032fi
30033PKGCONFIG=$ac_cv_path_PKGCONFIG
30034if test -n "$PKGCONFIG"; then
30035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30036printf "%s\n" "$PKGCONFIG" >&6; }
30037else
30038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30039printf "%s\n" "no" >&6; }
30040fi
30041
30042
30043fi
30044if test -z "$ac_cv_path_PKGCONFIG"; then
30045  ac_pt_PKGCONFIG=$PKGCONFIG
30046  # Extract the first word of "pkg-config", so it can be a program name with args.
30047set dummy pkg-config; ac_word=$2
30048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30049printf %s "checking for $ac_word... " >&6; }
30050if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30051then :
30052  printf %s "(cached) " >&6
30053else $as_nop
30054  case $ac_pt_PKGCONFIG in
30055  [\\/]* | ?:[\\/]*)
30056  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30057  ;;
30058  *)
30059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30060as_dummy="$PATH:/usr/bin:/usr/local/bin"
30061for as_dir in $as_dummy
30062do
30063  IFS=$as_save_IFS
30064  case $as_dir in #(((
30065    '') as_dir=./ ;;
30066    */) ;;
30067    *) as_dir=$as_dir/ ;;
30068  esac
30069    for ac_exec_ext in '' $ac_executable_extensions; do
30070  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30071    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30072    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30073    break 2
30074  fi
30075done
30076  done
30077IFS=$as_save_IFS
30078
30079  ;;
30080esac
30081fi
30082ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30083if test -n "$ac_pt_PKGCONFIG"; then
30084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30085printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30086else
30087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30088printf "%s\n" "no" >&6; }
30089fi
30090
30091  if test "x$ac_pt_PKGCONFIG" = x; then
30092    PKGCONFIG="no"
30093  else
30094    case $cross_compiling:$ac_tool_warned in
30095yes:)
30096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30097printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30098ac_tool_warned=yes ;;
30099esac
30100    PKGCONFIG=$ac_pt_PKGCONFIG
30101  fi
30102else
30103  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30104fi
30105
30106    fi
30107
30108    if test "x$PKGCONFIG" != "xno"; then
30109      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
30110printf %s "checking for librtmp options with pkg-config... " >&6; }
30111            itexists=`
30112    if test -n ""; then
30113      PKG_CONFIG_LIBDIR=""
30114      export PKG_CONFIG_LIBDIR
30115    fi
30116         $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
30117
30118      if test -z "$itexists"; then
30119                        PKGCONFIG="no"
30120        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30121printf "%s\n" "no" >&6; }
30122      else
30123        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30124printf "%s\n" "found" >&6; }
30125      fi
30126    fi
30127
30128
30129    if test "$PKGCONFIG" != "no" ; then
30130      LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
30131      LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
30132      CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
30133      version=`$PKGCONFIG --modversion librtmp`
30134      DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
30135    else
30136                  as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
30137    fi
30138
30139    ;;
30140  off)
30141        LIB_RTMP="-lrtmp"
30142    ;;
30143  *)
30144        LIB_RTMP="-lrtmp"
30145    PREFIX_RTMP=$OPT_LIBRTMP
30146    ;;
30147  esac
30148
30149    if test -n "$PREFIX_RTMP"; then
30150    LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
30151    CPP_RTMP=-I${PREFIX_RTMP}/include
30152    DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
30153  fi
30154
30155  LDFLAGS="$LDFLAGS $LD_RTMP"
30156  CPPFLAGS="$CPPFLAGS $CPP_RTMP"
30157  LIBS="$LIB_RTMP $LIBS"
30158
30159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
30160printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
30161if test ${ac_cv_lib_rtmp_RTMP_Init+y}
30162then :
30163  printf %s "(cached) " >&6
30164else $as_nop
30165  ac_check_lib_save_LIBS=$LIBS
30166LIBS="-lrtmp  $LIBS"
30167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30168/* end confdefs.h.  */
30169
30170
30171#ifdef __cplusplus
30172extern "C"
30173#endif
30174char RTMP_Init ();
30175int main (void)
30176{
30177return RTMP_Init ();
30178 ;
30179 return 0;
30180}
30181_ACEOF
30182if ac_fn_c_try_link "$LINENO"
30183then :
30184  ac_cv_lib_rtmp_RTMP_Init=yes
30185else $as_nop
30186  ac_cv_lib_rtmp_RTMP_Init=no
30187fi
30188rm -f core conftest.err conftest.$ac_objext conftest.beam \
30189    conftest$ac_exeext conftest.$ac_ext
30190LIBS=$ac_check_lib_save_LIBS
30191fi
30192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
30193printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
30194if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
30195then :
30196
30197            for ac_header in librtmp/rtmp.h
30198do :
30199  ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
30200if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
30201then :
30202  printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
30203 curl_rtmp_msg="enabled (librtmp)"
30204        LIBRTMP_ENABLED=1
30205
30206printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
30207
30208        USE_LIBRTMP=1
30209
30210
30211fi
30212
30213done
30214
30215else $as_nop
30216        LDFLAGS=$CLEANLDFLAGS
30217      CPPFLAGS=$CLEANCPPFLAGS
30218      LIBS=$CLEANLIBS
30219
30220fi
30221
30222
30223  if test X"$OPT_LIBRTMP" != Xoff &&
30224     test "$LIBRTMP_ENABLED" != "1"; then
30225    as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
30226  fi
30227
30228fi
30229
30230
30231versioned_symbols_flavour=
30232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
30233printf %s "checking whether versioned symbols are wanted... " >&6; }
30234# Check whether --enable-versioned-symbols was given.
30235if test ${enable_versioned_symbols+y}
30236then :
30237  enableval=$enable_versioned_symbols;  case "$enableval" in
30238  yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30239printf "%s\n" "yes" >&6; }
30240    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
30241printf %s "checking if libraries can be versioned... " >&6; }
30242    GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
30243    if test -z "$GLD"; then
30244        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30245printf "%s\n" "no" >&6; }
30246        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
30247printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
30248    else
30249        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30250printf "%s\n" "yes" >&6; }
30251        if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
30252          versioned_symbols_flavour="MULTISSL_"
30253        elif test "x$OPENSSL_ENABLED" = "x1"; then
30254          versioned_symbols_flavour="OPENSSL_"
30255        elif test "x$GNUTLS_ENABLED" = "x1"; then
30256          versioned_symbols_flavour="GNUTLS_"
30257        elif test "x$WOLFSSL_ENABLED" = "x1"; then
30258          versioned_symbols_flavour="WOLFSSL_"
30259        elif test "x$SCHANNEL_ENABLED" = "x1"; then
30260          versioned_symbols_flavour="SCHANNEL_"
30261        elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
30262          versioned_symbols_flavour="SECURE_TRANSPORT_"
30263        else
30264          versioned_symbols_flavour=""
30265        fi
30266        versioned_symbols="yes"
30267    fi
30268    ;;
30269
30270  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30271printf "%s\n" "no" >&6; }
30272    ;;
30273  esac
30274
30275else $as_nop
30276
30277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30278printf "%s\n" "no" >&6; }
30279
30280
30281fi
30282
30283
30284CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
30285
30286 if test "x$versioned_symbols" = 'xyes'; then
30287  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
30288  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
30289else
30290  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
30291  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
30292fi
30293
30294
30295
30296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
30297printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
30298OPT_WINIDN="default"
30299
30300# Check whether --with-winidn was given.
30301if test ${with_winidn+y}
30302then :
30303  withval=$with_winidn; OPT_WINIDN=$withval
30304fi
30305
30306case "$OPT_WINIDN" in
30307  no|default)
30308        want_winidn="no"
30309    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30310printf "%s\n" "no" >&6; }
30311    ;;
30312  yes)
30313        want_winidn="yes"
30314    want_winidn_path="default"
30315    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30316printf "%s\n" "yes" >&6; }
30317    ;;
30318  *)
30319        want_winidn="yes"
30320    want_winidn_path="$withval"
30321    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
30322printf "%s\n" "yes ($withval)" >&6; }
30323    ;;
30324esac
30325
30326if test "$want_winidn" = "yes"; then
30327    clean_CFLAGS="$CFLAGS"
30328  clean_CPPFLAGS="$CPPFLAGS"
30329  clean_LDFLAGS="$LDFLAGS"
30330  clean_LIBS="$LIBS"
30331  WINIDN_LIBS="-lnormaliz"
30332  WINIDN_CPPFLAGS=""
30333  #
30334  if test "$want_winidn_path" != "default"; then
30335            WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
30336    WINIDN_CPPFLAGS="-I$want_winidn_path/include"
30337    WINIDN_DIR="$want_winidn_path/lib$libsuff"
30338  fi
30339  #
30340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30341/* end confdefs.h.  */
30342
30343
30344      #include <windows.h>
30345
30346int main (void)
30347{
30348
30349      #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
30350      #error
30351      #endif
30352
30353 ;
30354 return 0;
30355}
30356
30357_ACEOF
30358if ac_fn_c_try_compile "$LINENO"
30359then :
30360
30361
30362else $as_nop
30363
30364     CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
30365     CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
30366     CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
30367     CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
30368     WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
30369
30370fi
30371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30372  #
30373  CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
30374  LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
30375  LIBS="$WINIDN_LIBS $LIBS"
30376  #
30377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
30378printf %s "checking if IdnToUnicode can be linked... " >&6; }
30379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30380/* end confdefs.h.  */
30381
30382
30383      #include <windows.h>
30384
30385int main (void)
30386{
30387
30388      IdnToUnicode(0, NULL, 0, NULL, 0);
30389
30390 ;
30391 return 0;
30392}
30393
30394_ACEOF
30395if ac_fn_c_try_link "$LINENO"
30396then :
30397
30398    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30399printf "%s\n" "yes" >&6; }
30400    tst_links_winidn="yes"
30401
30402else $as_nop
30403
30404    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30405printf "%s\n" "no" >&6; }
30406    tst_links_winidn="no"
30407
30408fi
30409rm -f core conftest.err conftest.$ac_objext conftest.beam \
30410    conftest$ac_exeext conftest.$ac_ext
30411  #
30412  if test "$tst_links_winidn" = "yes"; then
30413
30414printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
30415
30416    IDN_ENABLED=1
30417
30418    curl_idn_msg="enabled (Windows-native)"
30419  else
30420    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30421printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30422    CFLAGS="$clean_CFLAGS"
30423    CPPFLAGS="$clean_CPPFLAGS"
30424    LDFLAGS="$clean_LDFLAGS"
30425    LIBS="$clean_LIBS"
30426  fi
30427fi
30428
30429
30430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
30431printf %s "checking whether to build with libidn2... " >&6; }
30432OPT_IDN="default"
30433
30434# Check whether --with-libidn2 was given.
30435if test ${with_libidn2+y}
30436then :
30437  withval=$with_libidn2; OPT_IDN=$withval
30438fi
30439
30440if test "x$tst_links_winidn" = "xyes"; then
30441  want_idn="no"
30442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
30443printf "%s\n" "no (using winidn instead)" >&6; }
30444else
30445  case "$OPT_IDN" in
30446    no)
30447            want_idn="no"
30448      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30449printf "%s\n" "no" >&6; }
30450      ;;
30451    default)
30452            want_idn="yes"
30453      want_idn_path="default"
30454      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
30455printf "%s\n" "(assumed) yes" >&6; }
30456      ;;
30457    yes)
30458            want_idn="yes"
30459      want_idn_path="default"
30460      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30461printf "%s\n" "yes" >&6; }
30462      ;;
30463    *)
30464            want_idn="yes"
30465      want_idn_path="$withval"
30466      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
30467printf "%s\n" "yes ($withval)" >&6; }
30468      ;;
30469  esac
30470fi
30471
30472if test "$want_idn" = "yes"; then
30473    clean_CPPFLAGS="$CPPFLAGS"
30474  clean_LDFLAGS="$LDFLAGS"
30475  clean_LIBS="$LIBS"
30476  PKGCONFIG="no"
30477  #
30478  if test "$want_idn_path" != "default"; then
30479        IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
30480
30481    if test -n "$PKG_CONFIG"; then
30482      PKGCONFIG="$PKG_CONFIG"
30483    else
30484      if test -n "$ac_tool_prefix"; then
30485  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30486set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30488printf %s "checking for $ac_word... " >&6; }
30489if test ${ac_cv_path_PKGCONFIG+y}
30490then :
30491  printf %s "(cached) " >&6
30492else $as_nop
30493  case $PKGCONFIG in
30494  [\\/]* | ?:[\\/]*)
30495  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30496  ;;
30497  *)
30498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30499as_dummy="$PATH:/usr/bin:/usr/local/bin"
30500for as_dir in $as_dummy
30501do
30502  IFS=$as_save_IFS
30503  case $as_dir in #(((
30504    '') as_dir=./ ;;
30505    */) ;;
30506    *) as_dir=$as_dir/ ;;
30507  esac
30508    for ac_exec_ext in '' $ac_executable_extensions; do
30509  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30510    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30511    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30512    break 2
30513  fi
30514done
30515  done
30516IFS=$as_save_IFS
30517
30518  ;;
30519esac
30520fi
30521PKGCONFIG=$ac_cv_path_PKGCONFIG
30522if test -n "$PKGCONFIG"; then
30523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30524printf "%s\n" "$PKGCONFIG" >&6; }
30525else
30526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30527printf "%s\n" "no" >&6; }
30528fi
30529
30530
30531fi
30532if test -z "$ac_cv_path_PKGCONFIG"; then
30533  ac_pt_PKGCONFIG=$PKGCONFIG
30534  # Extract the first word of "pkg-config", so it can be a program name with args.
30535set dummy pkg-config; ac_word=$2
30536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30537printf %s "checking for $ac_word... " >&6; }
30538if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30539then :
30540  printf %s "(cached) " >&6
30541else $as_nop
30542  case $ac_pt_PKGCONFIG in
30543  [\\/]* | ?:[\\/]*)
30544  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30545  ;;
30546  *)
30547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30548as_dummy="$PATH:/usr/bin:/usr/local/bin"
30549for as_dir in $as_dummy
30550do
30551  IFS=$as_save_IFS
30552  case $as_dir in #(((
30553    '') as_dir=./ ;;
30554    */) ;;
30555    *) as_dir=$as_dir/ ;;
30556  esac
30557    for ac_exec_ext in '' $ac_executable_extensions; do
30558  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30559    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30560    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30561    break 2
30562  fi
30563done
30564  done
30565IFS=$as_save_IFS
30566
30567  ;;
30568esac
30569fi
30570ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30571if test -n "$ac_pt_PKGCONFIG"; then
30572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30573printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30574else
30575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30576printf "%s\n" "no" >&6; }
30577fi
30578
30579  if test "x$ac_pt_PKGCONFIG" = x; then
30580    PKGCONFIG="no"
30581  else
30582    case $cross_compiling:$ac_tool_warned in
30583yes:)
30584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30585printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30586ac_tool_warned=yes ;;
30587esac
30588    PKGCONFIG=$ac_pt_PKGCONFIG
30589  fi
30590else
30591  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30592fi
30593
30594    fi
30595
30596    if test "x$PKGCONFIG" != "xno"; then
30597      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30598printf %s "checking for libidn2 options with pkg-config... " >&6; }
30599            itexists=`
30600    if test -n "$IDN_PCDIR"; then
30601      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30602      export PKG_CONFIG_LIBDIR
30603    fi
30604         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30605
30606      if test -z "$itexists"; then
30607                        PKGCONFIG="no"
30608        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30609printf "%s\n" "no" >&6; }
30610      else
30611        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30612printf "%s\n" "found" >&6; }
30613      fi
30614    fi
30615
30616    if test "$PKGCONFIG" != "no"; then
30617      IDN_LIBS=`
30618    if test -n "$IDN_PCDIR"; then
30619      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30620      export PKG_CONFIG_LIBDIR
30621    fi
30622         $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30623      IDN_LDFLAGS=`
30624    if test -n "$IDN_PCDIR"; then
30625      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30626      export PKG_CONFIG_LIBDIR
30627    fi
30628         $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30629      IDN_CPPFLAGS=`
30630    if test -n "$IDN_PCDIR"; then
30631      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30632      export PKG_CONFIG_LIBDIR
30633    fi
30634         $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30635      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30636    else
30637            IDN_LIBS="-lidn2"
30638      IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
30639      IDN_CPPFLAGS="-I$want_idn_path/include"
30640      IDN_DIR="$want_idn_path/lib$libsuff"
30641    fi
30642  else
30643
30644    if test -n "$PKG_CONFIG"; then
30645      PKGCONFIG="$PKG_CONFIG"
30646    else
30647      if test -n "$ac_tool_prefix"; then
30648  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30649set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30651printf %s "checking for $ac_word... " >&6; }
30652if test ${ac_cv_path_PKGCONFIG+y}
30653then :
30654  printf %s "(cached) " >&6
30655else $as_nop
30656  case $PKGCONFIG in
30657  [\\/]* | ?:[\\/]*)
30658  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30659  ;;
30660  *)
30661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30662as_dummy="$PATH:/usr/bin:/usr/local/bin"
30663for as_dir in $as_dummy
30664do
30665  IFS=$as_save_IFS
30666  case $as_dir in #(((
30667    '') as_dir=./ ;;
30668    */) ;;
30669    *) as_dir=$as_dir/ ;;
30670  esac
30671    for ac_exec_ext in '' $ac_executable_extensions; do
30672  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30673    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30674    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30675    break 2
30676  fi
30677done
30678  done
30679IFS=$as_save_IFS
30680
30681  ;;
30682esac
30683fi
30684PKGCONFIG=$ac_cv_path_PKGCONFIG
30685if test -n "$PKGCONFIG"; then
30686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30687printf "%s\n" "$PKGCONFIG" >&6; }
30688else
30689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30690printf "%s\n" "no" >&6; }
30691fi
30692
30693
30694fi
30695if test -z "$ac_cv_path_PKGCONFIG"; then
30696  ac_pt_PKGCONFIG=$PKGCONFIG
30697  # Extract the first word of "pkg-config", so it can be a program name with args.
30698set dummy pkg-config; ac_word=$2
30699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30700printf %s "checking for $ac_word... " >&6; }
30701if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30702then :
30703  printf %s "(cached) " >&6
30704else $as_nop
30705  case $ac_pt_PKGCONFIG in
30706  [\\/]* | ?:[\\/]*)
30707  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30708  ;;
30709  *)
30710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30711as_dummy="$PATH:/usr/bin:/usr/local/bin"
30712for as_dir in $as_dummy
30713do
30714  IFS=$as_save_IFS
30715  case $as_dir in #(((
30716    '') as_dir=./ ;;
30717    */) ;;
30718    *) as_dir=$as_dir/ ;;
30719  esac
30720    for ac_exec_ext in '' $ac_executable_extensions; do
30721  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30722    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30723    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30724    break 2
30725  fi
30726done
30727  done
30728IFS=$as_save_IFS
30729
30730  ;;
30731esac
30732fi
30733ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30734if test -n "$ac_pt_PKGCONFIG"; then
30735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30736printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30737else
30738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30739printf "%s\n" "no" >&6; }
30740fi
30741
30742  if test "x$ac_pt_PKGCONFIG" = x; then
30743    PKGCONFIG="no"
30744  else
30745    case $cross_compiling:$ac_tool_warned in
30746yes:)
30747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30748printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30749ac_tool_warned=yes ;;
30750esac
30751    PKGCONFIG=$ac_pt_PKGCONFIG
30752  fi
30753else
30754  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30755fi
30756
30757    fi
30758
30759    if test "x$PKGCONFIG" != "xno"; then
30760      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30761printf %s "checking for libidn2 options with pkg-config... " >&6; }
30762            itexists=`
30763    if test -n ""; then
30764      PKG_CONFIG_LIBDIR=""
30765      export PKG_CONFIG_LIBDIR
30766    fi
30767         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30768
30769      if test -z "$itexists"; then
30770                        PKGCONFIG="no"
30771        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30772printf "%s\n" "no" >&6; }
30773      else
30774        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30775printf "%s\n" "found" >&6; }
30776      fi
30777    fi
30778
30779    if test "$PKGCONFIG" != "no"; then
30780      IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30781      IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30782      IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30783      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30784    else
30785            IDN_LIBS="-lidn2"
30786    fi
30787  fi
30788  #
30789  if test "$PKGCONFIG" != "no"; then
30790    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30791printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30792    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30793printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30794    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30795printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30796    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30797printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30798  else
30799    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30800printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30801    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30802printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30803    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30804printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30805    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30806printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30807  fi
30808  #
30809  CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30810  LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30811  LIBS="$IDN_LIBS $LIBS"
30812  #
30813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30814printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30816/* end confdefs.h.  */
30817
30818
30819#define idn2_lookup_ul innocuous_idn2_lookup_ul
30820#ifdef __STDC__
30821# include <limits.h>
30822#else
30823# include <assert.h>
30824#endif
30825#undef idn2_lookup_ul
30826#ifdef __cplusplus
30827extern "C"
30828#endif
30829char idn2_lookup_ul ();
30830#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30831choke me
30832#endif
30833
30834int main (void)
30835{
30836return idn2_lookup_ul ();
30837 ;
30838 return 0;
30839}
30840
30841_ACEOF
30842if ac_fn_c_try_link "$LINENO"
30843then :
30844
30845    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30846printf "%s\n" "yes" >&6; }
30847    tst_links_libidn="yes"
30848
30849else $as_nop
30850
30851    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30852printf "%s\n" "no" >&6; }
30853    tst_links_libidn="no"
30854
30855fi
30856rm -f core conftest.err conftest.$ac_objext conftest.beam \
30857    conftest$ac_exeext conftest.$ac_ext
30858  #
30859  ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30860if test "x$ac_cv_header_idn2_h" = xyes
30861then :
30862  printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30863
30864fi
30865
30866
30867  if test "$tst_links_libidn" = "yes"; then
30868
30869printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30870
30871
30872    IDN_ENABLED=1
30873
30874    curl_idn_msg="enabled (libidn2)"
30875    if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30876      CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30877      export CURL_LIBRARY_PATH
30878      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30879printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30880    fi
30881  else
30882    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30883printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30884    CPPFLAGS="$clean_CPPFLAGS"
30885    LDFLAGS="$clean_LDFLAGS"
30886    LIBS="$clean_LIBS"
30887  fi
30888fi
30889
30890
30891OPT_H2="yes"
30892
30893if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30894  # without HTTP or with Hyper, nghttp2 is no use
30895  OPT_H2="no"
30896fi
30897
30898
30899# Check whether --with-nghttp2 was given.
30900if test ${with_nghttp2+y}
30901then :
30902  withval=$with_nghttp2; OPT_H2=$withval
30903fi
30904
30905case "$OPT_H2" in
30906  no)
30907        want_nghttp2="no"
30908    ;;
30909  yes)
30910        want_nghttp2="default"
30911    want_nghttp2_path=""
30912    want_nghttp2_pkg_config_path=""
30913    ;;
30914  *)
30915        want_nghttp2="yes"
30916    want_nghttp2_path="$withval"
30917    want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
30918    ;;
30919esac
30920
30921if test X"$want_nghttp2" != Xno; then
30922    CLEANLDFLAGS="$LDFLAGS"
30923  CLEANCPPFLAGS="$CPPFLAGS"
30924  CLEANLIBS="$LIBS"
30925
30926
30927    if test -n "$PKG_CONFIG"; then
30928      PKGCONFIG="$PKG_CONFIG"
30929    else
30930      if test -n "$ac_tool_prefix"; then
30931  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30932set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30934printf %s "checking for $ac_word... " >&6; }
30935if test ${ac_cv_path_PKGCONFIG+y}
30936then :
30937  printf %s "(cached) " >&6
30938else $as_nop
30939  case $PKGCONFIG in
30940  [\\/]* | ?:[\\/]*)
30941  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30942  ;;
30943  *)
30944  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30945as_dummy="$PATH:/usr/bin:/usr/local/bin"
30946for as_dir in $as_dummy
30947do
30948  IFS=$as_save_IFS
30949  case $as_dir in #(((
30950    '') as_dir=./ ;;
30951    */) ;;
30952    *) as_dir=$as_dir/ ;;
30953  esac
30954    for ac_exec_ext in '' $ac_executable_extensions; do
30955  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30956    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30957    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30958    break 2
30959  fi
30960done
30961  done
30962IFS=$as_save_IFS
30963
30964  ;;
30965esac
30966fi
30967PKGCONFIG=$ac_cv_path_PKGCONFIG
30968if test -n "$PKGCONFIG"; then
30969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30970printf "%s\n" "$PKGCONFIG" >&6; }
30971else
30972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30973printf "%s\n" "no" >&6; }
30974fi
30975
30976
30977fi
30978if test -z "$ac_cv_path_PKGCONFIG"; then
30979  ac_pt_PKGCONFIG=$PKGCONFIG
30980  # Extract the first word of "pkg-config", so it can be a program name with args.
30981set dummy pkg-config; ac_word=$2
30982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30983printf %s "checking for $ac_word... " >&6; }
30984if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30985then :
30986  printf %s "(cached) " >&6
30987else $as_nop
30988  case $ac_pt_PKGCONFIG in
30989  [\\/]* | ?:[\\/]*)
30990  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30991  ;;
30992  *)
30993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30994as_dummy="$PATH:/usr/bin:/usr/local/bin"
30995for as_dir in $as_dummy
30996do
30997  IFS=$as_save_IFS
30998  case $as_dir in #(((
30999    '') as_dir=./ ;;
31000    */) ;;
31001    *) as_dir=$as_dir/ ;;
31002  esac
31003    for ac_exec_ext in '' $ac_executable_extensions; do
31004  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31005    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31006    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31007    break 2
31008  fi
31009done
31010  done
31011IFS=$as_save_IFS
31012
31013  ;;
31014esac
31015fi
31016ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31017if test -n "$ac_pt_PKGCONFIG"; then
31018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31019printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31020else
31021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31022printf "%s\n" "no" >&6; }
31023fi
31024
31025  if test "x$ac_pt_PKGCONFIG" = x; then
31026    PKGCONFIG="no"
31027  else
31028    case $cross_compiling:$ac_tool_warned in
31029yes:)
31030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31031printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31032ac_tool_warned=yes ;;
31033esac
31034    PKGCONFIG=$ac_pt_PKGCONFIG
31035  fi
31036else
31037  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31038fi
31039
31040    fi
31041
31042    if test "x$PKGCONFIG" != "xno"; then
31043      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
31044printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
31045            itexists=`
31046    if test -n "$want_nghttp2_pkg_config_path"; then
31047      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
31048      export PKG_CONFIG_LIBDIR
31049    fi
31050         $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
31051
31052      if test -z "$itexists"; then
31053                        PKGCONFIG="no"
31054        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31055printf "%s\n" "no" >&6; }
31056      else
31057        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31058printf "%s\n" "found" >&6; }
31059      fi
31060    fi
31061
31062
31063  if test "$PKGCONFIG" != "no" ; then
31064    LIB_H2=`
31065    if test -n "$want_nghttp2_pkg_config_path"; then
31066      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
31067      export PKG_CONFIG_LIBDIR
31068    fi
31069
31070      $PKGCONFIG --libs-only-l libnghttp2`
31071    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
31072printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
31073
31074    CPP_H2=`
31075    if test -n "$want_nghttp2_pkg_config_path"; then
31076      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
31077      export PKG_CONFIG_LIBDIR
31078    fi
31079       $PKGCONFIG --cflags-only-I libnghttp2`
31080    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
31081printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
31082
31083    LD_H2=`
31084    if test -n "$want_nghttp2_pkg_config_path"; then
31085      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
31086      export PKG_CONFIG_LIBDIR
31087    fi
31088
31089      $PKGCONFIG --libs-only-L libnghttp2`
31090    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
31091printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
31092
31093    DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
31094  elif test x"$want_nghttp2_path" != x; then
31095    LIB_H2="-lnghttp2"
31096    LD_H2=-L${want_nghttp2_path}/lib$libsuff
31097    CPP_H2=-I${want_nghttp2_path}/include
31098    DIR_H2=${want_nghttp2_path}/lib$libsuff
31099  elif test X"$want_nghttp2" != Xdefault; then
31100            as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
31101  else
31102    LIB_H2="-lnghttp2"
31103  fi
31104
31105  LDFLAGS="$LDFLAGS $LD_H2"
31106  CPPFLAGS="$CPPFLAGS $CPP_H2"
31107  LIBS="$LIB_H2 $LIBS"
31108
31109  # use nghttp2_session_get_stream_local_window_size to require nghttp2
31110  # >= 1.15.0
31111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_get_stream_local_window_size in -lnghttp2" >&5
31112printf %s "checking for nghttp2_session_get_stream_local_window_size in -lnghttp2... " >&6; }
31113if test ${ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size+y}
31114then :
31115  printf %s "(cached) " >&6
31116else $as_nop
31117  ac_check_lib_save_LIBS=$LIBS
31118LIBS="-lnghttp2  $LIBS"
31119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31120/* end confdefs.h.  */
31121
31122
31123#ifdef __cplusplus
31124extern "C"
31125#endif
31126char nghttp2_session_get_stream_local_window_size ();
31127int main (void)
31128{
31129return nghttp2_session_get_stream_local_window_size ();
31130 ;
31131 return 0;
31132}
31133_ACEOF
31134if ac_fn_c_try_link "$LINENO"
31135then :
31136  ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=yes
31137else $as_nop
31138  ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=no
31139fi
31140rm -f core conftest.err conftest.$ac_objext conftest.beam \
31141    conftest$ac_exeext conftest.$ac_ext
31142LIBS=$ac_check_lib_save_LIBS
31143fi
31144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&5
31145printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&6; }
31146if test "x$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" = xyes
31147then :
31148
31149            for ac_header in nghttp2/nghttp2.h
31150do :
31151  ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
31152if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
31153then :
31154  printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
31155 curl_h2_msg="enabled (nghttp2)"
31156        NGHTTP2_ENABLED=1
31157
31158printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
31159
31160        USE_NGHTTP2=1
31161
31162
31163fi
31164
31165done
31166
31167     CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
31168     export CURL_LIBRARY_PATH
31169     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
31170printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
31171
31172else $as_nop
31173        LDFLAGS=$CLEANLDFLAGS
31174      CPPFLAGS=$CLEANCPPFLAGS
31175      LIBS=$CLEANLIBS
31176
31177fi
31178
31179fi
31180
31181
31182OPT_TCP2="no"
31183
31184if test "x$disable_http" = "xyes"; then
31185  # without HTTP, ngtcp2 is no use
31186  OPT_TCP2="no"
31187fi
31188
31189
31190# Check whether --with-ngtcp2 was given.
31191if test ${with_ngtcp2+y}
31192then :
31193  withval=$with_ngtcp2; OPT_TCP2=$withval
31194fi
31195
31196case "$OPT_TCP2" in
31197  no)
31198        want_tcp2="no"
31199    ;;
31200  yes)
31201        want_tcp2="default"
31202    want_tcp2_path=""
31203    ;;
31204  *)
31205        want_tcp2="yes"
31206    want_tcp2_path="$withval/lib/pkgconfig"
31207    ;;
31208esac
31209
31210curl_tcp2_msg="no      (--with-ngtcp2)"
31211if test X"$want_tcp2" != Xno; then
31212
31213  if test "$QUIC_ENABLED" != "yes"; then
31214    as_fn_error $? "the detected TLS library does not support QUIC, making --with-ngtcp2 a no-no" "$LINENO" 5
31215  fi
31216
31217    CLEANLDFLAGS="$LDFLAGS"
31218  CLEANCPPFLAGS="$CPPFLAGS"
31219  CLEANLIBS="$LIBS"
31220
31221
31222    if test -n "$PKG_CONFIG"; then
31223      PKGCONFIG="$PKG_CONFIG"
31224    else
31225      if test -n "$ac_tool_prefix"; then
31226  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31227set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31229printf %s "checking for $ac_word... " >&6; }
31230if test ${ac_cv_path_PKGCONFIG+y}
31231then :
31232  printf %s "(cached) " >&6
31233else $as_nop
31234  case $PKGCONFIG in
31235  [\\/]* | ?:[\\/]*)
31236  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31237  ;;
31238  *)
31239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31240as_dummy="$PATH:/usr/bin:/usr/local/bin"
31241for as_dir in $as_dummy
31242do
31243  IFS=$as_save_IFS
31244  case $as_dir in #(((
31245    '') as_dir=./ ;;
31246    */) ;;
31247    *) as_dir=$as_dir/ ;;
31248  esac
31249    for ac_exec_ext in '' $ac_executable_extensions; do
31250  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31251    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31252    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31253    break 2
31254  fi
31255done
31256  done
31257IFS=$as_save_IFS
31258
31259  ;;
31260esac
31261fi
31262PKGCONFIG=$ac_cv_path_PKGCONFIG
31263if test -n "$PKGCONFIG"; then
31264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31265printf "%s\n" "$PKGCONFIG" >&6; }
31266else
31267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31268printf "%s\n" "no" >&6; }
31269fi
31270
31271
31272fi
31273if test -z "$ac_cv_path_PKGCONFIG"; then
31274  ac_pt_PKGCONFIG=$PKGCONFIG
31275  # Extract the first word of "pkg-config", so it can be a program name with args.
31276set dummy pkg-config; ac_word=$2
31277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31278printf %s "checking for $ac_word... " >&6; }
31279if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31280then :
31281  printf %s "(cached) " >&6
31282else $as_nop
31283  case $ac_pt_PKGCONFIG in
31284  [\\/]* | ?:[\\/]*)
31285  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31286  ;;
31287  *)
31288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31289as_dummy="$PATH:/usr/bin:/usr/local/bin"
31290for as_dir in $as_dummy
31291do
31292  IFS=$as_save_IFS
31293  case $as_dir in #(((
31294    '') as_dir=./ ;;
31295    */) ;;
31296    *) as_dir=$as_dir/ ;;
31297  esac
31298    for ac_exec_ext in '' $ac_executable_extensions; do
31299  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31300    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31301    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31302    break 2
31303  fi
31304done
31305  done
31306IFS=$as_save_IFS
31307
31308  ;;
31309esac
31310fi
31311ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31312if test -n "$ac_pt_PKGCONFIG"; then
31313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31314printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31315else
31316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31317printf "%s\n" "no" >&6; }
31318fi
31319
31320  if test "x$ac_pt_PKGCONFIG" = x; then
31321    PKGCONFIG="no"
31322  else
31323    case $cross_compiling:$ac_tool_warned in
31324yes:)
31325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31326printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31327ac_tool_warned=yes ;;
31328esac
31329    PKGCONFIG=$ac_pt_PKGCONFIG
31330  fi
31331else
31332  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31333fi
31334
31335    fi
31336
31337    if test "x$PKGCONFIG" != "xno"; then
31338      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
31339printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
31340            itexists=`
31341    if test -n "$want_tcp2_path"; then
31342      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31343      export PKG_CONFIG_LIBDIR
31344    fi
31345         $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
31346
31347      if test -z "$itexists"; then
31348                        PKGCONFIG="no"
31349        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31350printf "%s\n" "no" >&6; }
31351      else
31352        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31353printf "%s\n" "found" >&6; }
31354      fi
31355    fi
31356
31357
31358  if test "$PKGCONFIG" != "no" ; then
31359    LIB_TCP2=`
31360    if test -n "$want_tcp2_path"; then
31361      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31362      export PKG_CONFIG_LIBDIR
31363    fi
31364
31365      $PKGCONFIG --libs-only-l libngtcp2`
31366    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
31367printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
31368
31369    CPP_TCP2=`
31370    if test -n "$want_tcp2_path"; then
31371      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31372      export PKG_CONFIG_LIBDIR
31373    fi
31374       $PKGCONFIG --cflags-only-I libngtcp2`
31375    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
31376printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
31377
31378    LD_TCP2=`
31379    if test -n "$want_tcp2_path"; then
31380      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31381      export PKG_CONFIG_LIBDIR
31382    fi
31383
31384      $PKGCONFIG --libs-only-L libngtcp2`
31385    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
31386printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
31387
31388    LDFLAGS="$LDFLAGS $LD_TCP2"
31389    CPPFLAGS="$CPPFLAGS $CPP_TCP2"
31390    LIBS="$LIB_TCP2 $LIBS"
31391
31392    if test "x$cross_compiling" != "xyes"; then
31393      DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
31394    fi
31395    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
31396printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
31397if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
31398then :
31399  printf %s "(cached) " >&6
31400else $as_nop
31401  ac_check_lib_save_LIBS=$LIBS
31402LIBS="-lngtcp2  $LIBS"
31403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31404/* end confdefs.h.  */
31405
31406
31407#ifdef __cplusplus
31408extern "C"
31409#endif
31410char ngtcp2_conn_client_new_versioned ();
31411int main (void)
31412{
31413return ngtcp2_conn_client_new_versioned ();
31414 ;
31415 return 0;
31416}
31417_ACEOF
31418if ac_fn_c_try_link "$LINENO"
31419then :
31420  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
31421else $as_nop
31422  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
31423fi
31424rm -f core conftest.err conftest.$ac_objext conftest.beam \
31425    conftest$ac_exeext conftest.$ac_ext
31426LIBS=$ac_check_lib_save_LIBS
31427fi
31428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
31429printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
31430if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
31431then :
31432
31433              for ac_header in ngtcp2/ngtcp2.h
31434do :
31435  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
31436if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
31437then :
31438  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
31439 NGTCP2_ENABLED=1
31440
31441printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
31442
31443          USE_NGTCP2=1
31444
31445          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
31446          export CURL_LIBRARY_PATH
31447          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
31448printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
31449
31450fi
31451
31452done
31453
31454else $as_nop
31455          LDFLAGS=$CLEANLDFLAGS
31456        CPPFLAGS=$CLEANCPPFLAGS
31457        LIBS=$CLEANLIBS
31458
31459fi
31460
31461
31462  else
31463        if test X"$want_tcp2" != Xdefault; then
31464                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
31465    fi
31466  fi
31467
31468fi
31469
31470if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" != "x1"; then
31471    CLEANLDFLAGS="$LDFLAGS"
31472  CLEANCPPFLAGS="$CPPFLAGS"
31473  CLEANLIBS="$LIBS"
31474
31475
31476    if test -n "$PKG_CONFIG"; then
31477      PKGCONFIG="$PKG_CONFIG"
31478    else
31479      if test -n "$ac_tool_prefix"; then
31480  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31481set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31483printf %s "checking for $ac_word... " >&6; }
31484if test ${ac_cv_path_PKGCONFIG+y}
31485then :
31486  printf %s "(cached) " >&6
31487else $as_nop
31488  case $PKGCONFIG in
31489  [\\/]* | ?:[\\/]*)
31490  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31491  ;;
31492  *)
31493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31494as_dummy="$PATH:/usr/bin:/usr/local/bin"
31495for as_dir in $as_dummy
31496do
31497  IFS=$as_save_IFS
31498  case $as_dir in #(((
31499    '') as_dir=./ ;;
31500    */) ;;
31501    *) as_dir=$as_dir/ ;;
31502  esac
31503    for ac_exec_ext in '' $ac_executable_extensions; do
31504  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31505    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31506    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31507    break 2
31508  fi
31509done
31510  done
31511IFS=$as_save_IFS
31512
31513  ;;
31514esac
31515fi
31516PKGCONFIG=$ac_cv_path_PKGCONFIG
31517if test -n "$PKGCONFIG"; then
31518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31519printf "%s\n" "$PKGCONFIG" >&6; }
31520else
31521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31522printf "%s\n" "no" >&6; }
31523fi
31524
31525
31526fi
31527if test -z "$ac_cv_path_PKGCONFIG"; then
31528  ac_pt_PKGCONFIG=$PKGCONFIG
31529  # Extract the first word of "pkg-config", so it can be a program name with args.
31530set dummy pkg-config; ac_word=$2
31531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31532printf %s "checking for $ac_word... " >&6; }
31533if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31534then :
31535  printf %s "(cached) " >&6
31536else $as_nop
31537  case $ac_pt_PKGCONFIG in
31538  [\\/]* | ?:[\\/]*)
31539  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31540  ;;
31541  *)
31542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31543as_dummy="$PATH:/usr/bin:/usr/local/bin"
31544for as_dir in $as_dummy
31545do
31546  IFS=$as_save_IFS
31547  case $as_dir in #(((
31548    '') as_dir=./ ;;
31549    */) ;;
31550    *) as_dir=$as_dir/ ;;
31551  esac
31552    for ac_exec_ext in '' $ac_executable_extensions; do
31553  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31554    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31555    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31556    break 2
31557  fi
31558done
31559  done
31560IFS=$as_save_IFS
31561
31562  ;;
31563esac
31564fi
31565ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31566if test -n "$ac_pt_PKGCONFIG"; then
31567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31568printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31569else
31570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31571printf "%s\n" "no" >&6; }
31572fi
31573
31574  if test "x$ac_pt_PKGCONFIG" = x; then
31575    PKGCONFIG="no"
31576  else
31577    case $cross_compiling:$ac_tool_warned in
31578yes:)
31579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31580printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31581ac_tool_warned=yes ;;
31582esac
31583    PKGCONFIG=$ac_pt_PKGCONFIG
31584  fi
31585else
31586  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31587fi
31588
31589    fi
31590
31591    if test "x$PKGCONFIG" != "xno"; then
31592      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_quictls options with pkg-config" >&5
31593printf %s "checking for libngtcp2_crypto_quictls options with pkg-config... " >&6; }
31594            itexists=`
31595    if test -n "$want_tcp2_path"; then
31596      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31597      export PKG_CONFIG_LIBDIR
31598    fi
31599         $PKGCONFIG --exists libngtcp2_crypto_quictls >/dev/null 2>&1 && echo 1`
31600
31601      if test -z "$itexists"; then
31602                        PKGCONFIG="no"
31603        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31604printf "%s\n" "no" >&6; }
31605      else
31606        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31607printf "%s\n" "found" >&6; }
31608      fi
31609    fi
31610
31611
31612  if test "$PKGCONFIG" != "no" ; then
31613    LIB_NGTCP2_CRYPTO_QUICTLS=`
31614    if test -n "$want_tcp2_path"; then
31615      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31616      export PKG_CONFIG_LIBDIR
31617    fi
31618
31619      $PKGCONFIG --libs-only-l libngtcp2_crypto_quictls`
31620    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&5
31621printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&6;}
31622
31623    CPP_NGTCP2_CRYPTO_QUICTLS=`
31624    if test -n "$want_tcp2_path"; then
31625      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31626      export PKG_CONFIG_LIBDIR
31627    fi
31628       $PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls`
31629    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&5
31630printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&6;}
31631
31632    LD_NGTCP2_CRYPTO_QUICTLS=`
31633    if test -n "$want_tcp2_path"; then
31634      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31635      export PKG_CONFIG_LIBDIR
31636    fi
31637
31638      $PKGCONFIG --libs-only-L libngtcp2_crypto_quictls`
31639    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&5
31640printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&6;}
31641
31642    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_QUICTLS"
31643    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_QUICTLS"
31644    LIBS="$LIB_NGTCP2_CRYPTO_QUICTLS $LIBS"
31645
31646    if test "x$cross_compiling" != "xyes"; then
31647      DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'`
31648    fi
31649    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls" >&5
31650printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls... " >&6; }
31651if test ${ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb+y}
31652then :
31653  printf %s "(cached) " >&6
31654else $as_nop
31655  ac_check_lib_save_LIBS=$LIBS
31656LIBS="-lngtcp2_crypto_quictls  $LIBS"
31657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31658/* end confdefs.h.  */
31659
31660
31661#ifdef __cplusplus
31662extern "C"
31663#endif
31664char ngtcp2_crypto_recv_client_initial_cb ();
31665int main (void)
31666{
31667return ngtcp2_crypto_recv_client_initial_cb ();
31668 ;
31669 return 0;
31670}
31671_ACEOF
31672if ac_fn_c_try_link "$LINENO"
31673then :
31674  ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=yes
31675else $as_nop
31676  ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=no
31677fi
31678rm -f core conftest.err conftest.$ac_objext conftest.beam \
31679    conftest$ac_exeext conftest.$ac_ext
31680LIBS=$ac_check_lib_save_LIBS
31681fi
31682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&5
31683printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31684if test "x$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31685then :
31686
31687              for ac_header in ngtcp2/ngtcp2_crypto.h
31688do :
31689  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31690if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31691then :
31692  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31693 NGTCP2_ENABLED=1
31694
31695printf "%s\n" "#define USE_NGTCP2_CRYPTO_QUICTLS 1" >>confdefs.h
31696
31697          USE_NGTCP2_CRYPTO_QUICTLS=1
31698
31699          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_QUICTLS"
31700          export CURL_LIBRARY_PATH
31701          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&5
31702printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&6;}
31703
31704fi
31705
31706done
31707
31708else $as_nop
31709          LDFLAGS=$CLEANLDFLAGS
31710        CPPFLAGS=$CLEANCPPFLAGS
31711        LIBS=$CLEANLIBS
31712
31713fi
31714
31715
31716  else
31717        if test X"$want_tcp2" != Xdefault; then
31718                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_quictls pkg-config file." "$LINENO" 5
31719    fi
31720  fi
31721fi
31722
31723if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" = "x1"; then
31724    CLEANLDFLAGS="$LDFLAGS"
31725  CLEANCPPFLAGS="$CPPFLAGS"
31726  CLEANLIBS="$LIBS"
31727
31728
31729    if test -n "$PKG_CONFIG"; then
31730      PKGCONFIG="$PKG_CONFIG"
31731    else
31732      if test -n "$ac_tool_prefix"; then
31733  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31734set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31736printf %s "checking for $ac_word... " >&6; }
31737if test ${ac_cv_path_PKGCONFIG+y}
31738then :
31739  printf %s "(cached) " >&6
31740else $as_nop
31741  case $PKGCONFIG in
31742  [\\/]* | ?:[\\/]*)
31743  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31744  ;;
31745  *)
31746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31747as_dummy="$PATH:/usr/bin:/usr/local/bin"
31748for as_dir in $as_dummy
31749do
31750  IFS=$as_save_IFS
31751  case $as_dir in #(((
31752    '') as_dir=./ ;;
31753    */) ;;
31754    *) as_dir=$as_dir/ ;;
31755  esac
31756    for ac_exec_ext in '' $ac_executable_extensions; do
31757  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31758    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31759    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31760    break 2
31761  fi
31762done
31763  done
31764IFS=$as_save_IFS
31765
31766  ;;
31767esac
31768fi
31769PKGCONFIG=$ac_cv_path_PKGCONFIG
31770if test -n "$PKGCONFIG"; then
31771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31772printf "%s\n" "$PKGCONFIG" >&6; }
31773else
31774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31775printf "%s\n" "no" >&6; }
31776fi
31777
31778
31779fi
31780if test -z "$ac_cv_path_PKGCONFIG"; then
31781  ac_pt_PKGCONFIG=$PKGCONFIG
31782  # Extract the first word of "pkg-config", so it can be a program name with args.
31783set dummy pkg-config; ac_word=$2
31784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31785printf %s "checking for $ac_word... " >&6; }
31786if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31787then :
31788  printf %s "(cached) " >&6
31789else $as_nop
31790  case $ac_pt_PKGCONFIG in
31791  [\\/]* | ?:[\\/]*)
31792  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31793  ;;
31794  *)
31795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31796as_dummy="$PATH:/usr/bin:/usr/local/bin"
31797for as_dir in $as_dummy
31798do
31799  IFS=$as_save_IFS
31800  case $as_dir in #(((
31801    '') as_dir=./ ;;
31802    */) ;;
31803    *) as_dir=$as_dir/ ;;
31804  esac
31805    for ac_exec_ext in '' $ac_executable_extensions; do
31806  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31807    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31808    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31809    break 2
31810  fi
31811done
31812  done
31813IFS=$as_save_IFS
31814
31815  ;;
31816esac
31817fi
31818ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31819if test -n "$ac_pt_PKGCONFIG"; then
31820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31821printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31822else
31823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31824printf "%s\n" "no" >&6; }
31825fi
31826
31827  if test "x$ac_pt_PKGCONFIG" = x; then
31828    PKGCONFIG="no"
31829  else
31830    case $cross_compiling:$ac_tool_warned in
31831yes:)
31832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31833printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31834ac_tool_warned=yes ;;
31835esac
31836    PKGCONFIG=$ac_pt_PKGCONFIG
31837  fi
31838else
31839  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31840fi
31841
31842    fi
31843
31844    if test "x$PKGCONFIG" != "xno"; then
31845      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_boringssl options with pkg-config" >&5
31846printf %s "checking for libngtcp2_crypto_boringssl options with pkg-config... " >&6; }
31847            itexists=`
31848    if test -n "$want_tcp2_path"; then
31849      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31850      export PKG_CONFIG_LIBDIR
31851    fi
31852         $PKGCONFIG --exists libngtcp2_crypto_boringssl >/dev/null 2>&1 && echo 1`
31853
31854      if test -z "$itexists"; then
31855                        PKGCONFIG="no"
31856        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31857printf "%s\n" "no" >&6; }
31858      else
31859        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31860printf "%s\n" "found" >&6; }
31861      fi
31862    fi
31863
31864
31865  if test "$PKGCONFIG" != "no" ; then
31866    LIB_NGTCP2_CRYPTO_BORINGSSL=`
31867    if test -n "$want_tcp2_path"; then
31868      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31869      export PKG_CONFIG_LIBDIR
31870    fi
31871
31872      $PKGCONFIG --libs-only-l libngtcp2_crypto_boringssl`
31873    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_BORINGSSL" >&5
31874printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_BORINGSSL" >&6;}
31875
31876    CPP_NGTCP2_CRYPTO_BORINGSSL=`
31877    if test -n "$want_tcp2_path"; then
31878      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31879      export PKG_CONFIG_LIBDIR
31880    fi
31881       $PKGCONFIG --cflags-only-I libngtcp2_crypto_boringssl`
31882    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_BORINGSSL" >&5
31883printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_BORINGSSL" >&6;}
31884
31885    LD_NGTCP2_CRYPTO_BORINGSSL=`
31886    if test -n "$want_tcp2_path"; then
31887      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31888      export PKG_CONFIG_LIBDIR
31889    fi
31890
31891      $PKGCONFIG --libs-only-L libngtcp2_crypto_boringssl`
31892    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_BORINGSSL" >&5
31893printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_BORINGSSL" >&6;}
31894
31895    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_BORINGSSL"
31896    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_BORINGSSL"
31897    LIBS="$LIB_NGTCP2_CRYPTO_BORINGSSL $LIBS"
31898
31899    if test "x$cross_compiling" != "xyes"; then
31900      DIR_NGTCP2_CRYPTO_BORINGSSL=`echo $LD_NGTCP2_CRYPTO_BORINGSSL | $SED -e 's/^-L//'`
31901    fi
31902    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_boringssl" >&5
31903printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_boringssl... " >&6; }
31904if test ${ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb+y}
31905then :
31906  printf %s "(cached) " >&6
31907else $as_nop
31908  ac_check_lib_save_LIBS=$LIBS
31909LIBS="-lngtcp2_crypto_boringssl  $LIBS"
31910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31911/* end confdefs.h.  */
31912
31913
31914#ifdef __cplusplus
31915extern "C"
31916#endif
31917char ngtcp2_crypto_recv_client_initial_cb ();
31918int main (void)
31919{
31920return ngtcp2_crypto_recv_client_initial_cb ();
31921 ;
31922 return 0;
31923}
31924_ACEOF
31925if ac_fn_c_try_link "$LINENO"
31926then :
31927  ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb=yes
31928else $as_nop
31929  ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb=no
31930fi
31931rm -f core conftest.err conftest.$ac_objext conftest.beam \
31932    conftest$ac_exeext conftest.$ac_ext
31933LIBS=$ac_check_lib_save_LIBS
31934fi
31935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31936printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31937if test "x$ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31938then :
31939
31940              for ac_header in ngtcp2/ngtcp2_crypto.h
31941do :
31942  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31943if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31944then :
31945  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31946 NGTCP2_ENABLED=1
31947
31948printf "%s\n" "#define USE_NGTCP2_CRYPTO_BORINGSSL 1" >>confdefs.h
31949
31950          USE_NGTCP2_CRYPTO_BORINGSSL=1
31951
31952          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_BORINGSSL"
31953          export CURL_LIBRARY_PATH
31954          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_BORINGSSL to CURL_LIBRARY_PATH" >&5
31955printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_BORINGSSL to CURL_LIBRARY_PATH" >&6;}
31956
31957fi
31958
31959done
31960
31961else $as_nop
31962          LDFLAGS=$CLEANLDFLAGS
31963        CPPFLAGS=$CLEANCPPFLAGS
31964        LIBS=$CLEANLIBS
31965
31966fi
31967
31968
31969  else
31970        if test X"$want_tcp2" != Xdefault; then
31971                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_boringssl pkg-config file." "$LINENO" 5
31972    fi
31973  fi
31974fi
31975
31976if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31977    CLEANLDFLAGS="$LDFLAGS"
31978  CLEANCPPFLAGS="$CPPFLAGS"
31979  CLEANLIBS="$LIBS"
31980
31981
31982    if test -n "$PKG_CONFIG"; then
31983      PKGCONFIG="$PKG_CONFIG"
31984    else
31985      if test -n "$ac_tool_prefix"; then
31986  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31987set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31989printf %s "checking for $ac_word... " >&6; }
31990if test ${ac_cv_path_PKGCONFIG+y}
31991then :
31992  printf %s "(cached) " >&6
31993else $as_nop
31994  case $PKGCONFIG in
31995  [\\/]* | ?:[\\/]*)
31996  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31997  ;;
31998  *)
31999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32000as_dummy="$PATH:/usr/bin:/usr/local/bin"
32001for as_dir in $as_dummy
32002do
32003  IFS=$as_save_IFS
32004  case $as_dir in #(((
32005    '') as_dir=./ ;;
32006    */) ;;
32007    *) as_dir=$as_dir/ ;;
32008  esac
32009    for ac_exec_ext in '' $ac_executable_extensions; do
32010  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32011    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32012    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32013    break 2
32014  fi
32015done
32016  done
32017IFS=$as_save_IFS
32018
32019  ;;
32020esac
32021fi
32022PKGCONFIG=$ac_cv_path_PKGCONFIG
32023if test -n "$PKGCONFIG"; then
32024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32025printf "%s\n" "$PKGCONFIG" >&6; }
32026else
32027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32028printf "%s\n" "no" >&6; }
32029fi
32030
32031
32032fi
32033if test -z "$ac_cv_path_PKGCONFIG"; then
32034  ac_pt_PKGCONFIG=$PKGCONFIG
32035  # Extract the first word of "pkg-config", so it can be a program name with args.
32036set dummy pkg-config; ac_word=$2
32037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32038printf %s "checking for $ac_word... " >&6; }
32039if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32040then :
32041  printf %s "(cached) " >&6
32042else $as_nop
32043  case $ac_pt_PKGCONFIG in
32044  [\\/]* | ?:[\\/]*)
32045  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32046  ;;
32047  *)
32048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32049as_dummy="$PATH:/usr/bin:/usr/local/bin"
32050for as_dir in $as_dummy
32051do
32052  IFS=$as_save_IFS
32053  case $as_dir in #(((
32054    '') as_dir=./ ;;
32055    */) ;;
32056    *) as_dir=$as_dir/ ;;
32057  esac
32058    for ac_exec_ext in '' $ac_executable_extensions; do
32059  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32060    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32061    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32062    break 2
32063  fi
32064done
32065  done
32066IFS=$as_save_IFS
32067
32068  ;;
32069esac
32070fi
32071ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32072if test -n "$ac_pt_PKGCONFIG"; then
32073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32074printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32075else
32076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32077printf "%s\n" "no" >&6; }
32078fi
32079
32080  if test "x$ac_pt_PKGCONFIG" = x; then
32081    PKGCONFIG="no"
32082  else
32083    case $cross_compiling:$ac_tool_warned in
32084yes:)
32085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32086printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32087ac_tool_warned=yes ;;
32088esac
32089    PKGCONFIG=$ac_pt_PKGCONFIG
32090  fi
32091else
32092  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32093fi
32094
32095    fi
32096
32097    if test "x$PKGCONFIG" != "xno"; then
32098      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
32099printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
32100            itexists=`
32101    if test -n "$want_tcp2_path"; then
32102      PKG_CONFIG_LIBDIR="$want_tcp2_path"
32103      export PKG_CONFIG_LIBDIR
32104    fi
32105         $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
32106
32107      if test -z "$itexists"; then
32108                        PKGCONFIG="no"
32109        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32110printf "%s\n" "no" >&6; }
32111      else
32112        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32113printf "%s\n" "found" >&6; }
32114      fi
32115    fi
32116
32117
32118  if test "$PKGCONFIG" != "no" ; then
32119    LIB_NGTCP2_CRYPTO_GNUTLS=`
32120    if test -n "$want_tcp2_path"; then
32121      PKG_CONFIG_LIBDIR="$want_tcp2_path"
32122      export PKG_CONFIG_LIBDIR
32123    fi
32124
32125      $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
32126    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
32127printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
32128
32129    CPP_NGTCP2_CRYPTO_GNUTLS=`
32130    if test -n "$want_tcp2_path"; then
32131      PKG_CONFIG_LIBDIR="$want_tcp2_path"
32132      export PKG_CONFIG_LIBDIR
32133    fi
32134       $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
32135    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
32136printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
32137
32138    LD_NGTCP2_CRYPTO_GNUTLS=`
32139    if test -n "$want_tcp2_path"; then
32140      PKG_CONFIG_LIBDIR="$want_tcp2_path"
32141      export PKG_CONFIG_LIBDIR
32142    fi
32143
32144      $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
32145    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
32146printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
32147
32148    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
32149    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
32150    LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
32151
32152    if test "x$cross_compiling" != "xyes"; then
32153      DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
32154    fi
32155    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
32156printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
32157if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
32158then :
32159  printf %s "(cached) " >&6
32160else $as_nop
32161  ac_check_lib_save_LIBS=$LIBS
32162LIBS="-lngtcp2_crypto_gnutls  $LIBS"
32163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32164/* end confdefs.h.  */
32165
32166
32167#ifdef __cplusplus
32168extern "C"
32169#endif
32170char ngtcp2_crypto_recv_client_initial_cb ();
32171int main (void)
32172{
32173return ngtcp2_crypto_recv_client_initial_cb ();
32174 ;
32175 return 0;
32176}
32177_ACEOF
32178if ac_fn_c_try_link "$LINENO"
32179then :
32180  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
32181else $as_nop
32182  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
32183fi
32184rm -f core conftest.err conftest.$ac_objext conftest.beam \
32185    conftest$ac_exeext conftest.$ac_ext
32186LIBS=$ac_check_lib_save_LIBS
32187fi
32188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
32189printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
32190if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
32191then :
32192
32193              for ac_header in ngtcp2/ngtcp2_crypto.h
32194do :
32195  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
32196if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
32197then :
32198  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
32199 NGTCP2_ENABLED=1
32200
32201printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
32202
32203          USE_NGTCP2_CRYPTO_GNUTLS=1
32204
32205          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
32206          export CURL_LIBRARY_PATH
32207          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
32208printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
32209
32210fi
32211
32212done
32213
32214else $as_nop
32215          LDFLAGS=$CLEANLDFLAGS
32216        CPPFLAGS=$CLEANCPPFLAGS
32217        LIBS=$CLEANLIBS
32218
32219fi
32220
32221
32222  else
32223        if test X"$want_tcp2" != Xdefault; then
32224                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
32225    fi
32226  fi
32227fi
32228
32229if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
32230    CLEANLDFLAGS="$LDFLAGS"
32231  CLEANCPPFLAGS="$CPPFLAGS"
32232  CLEANLIBS="$LIBS"
32233
32234
32235    if test -n "$PKG_CONFIG"; then
32236      PKGCONFIG="$PKG_CONFIG"
32237    else
32238      if test -n "$ac_tool_prefix"; then
32239  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32240set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32242printf %s "checking for $ac_word... " >&6; }
32243if test ${ac_cv_path_PKGCONFIG+y}
32244then :
32245  printf %s "(cached) " >&6
32246else $as_nop
32247  case $PKGCONFIG in
32248  [\\/]* | ?:[\\/]*)
32249  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32250  ;;
32251  *)
32252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32253as_dummy="$PATH:/usr/bin:/usr/local/bin"
32254for as_dir in $as_dummy
32255do
32256  IFS=$as_save_IFS
32257  case $as_dir in #(((
32258    '') as_dir=./ ;;
32259    */) ;;
32260    *) as_dir=$as_dir/ ;;
32261  esac
32262    for ac_exec_ext in '' $ac_executable_extensions; do
32263  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32264    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32265    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32266    break 2
32267  fi
32268done
32269  done
32270IFS=$as_save_IFS
32271
32272  ;;
32273esac
32274fi
32275PKGCONFIG=$ac_cv_path_PKGCONFIG
32276if test -n "$PKGCONFIG"; then
32277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32278printf "%s\n" "$PKGCONFIG" >&6; }
32279else
32280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32281printf "%s\n" "no" >&6; }
32282fi
32283
32284
32285fi
32286if test -z "$ac_cv_path_PKGCONFIG"; then
32287  ac_pt_PKGCONFIG=$PKGCONFIG
32288  # Extract the first word of "pkg-config", so it can be a program name with args.
32289set dummy pkg-config; ac_word=$2
32290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32291printf %s "checking for $ac_word... " >&6; }
32292if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32293then :
32294  printf %s "(cached) " >&6
32295else $as_nop
32296  case $ac_pt_PKGCONFIG in
32297  [\\/]* | ?:[\\/]*)
32298  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32299  ;;
32300  *)
32301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32302as_dummy="$PATH:/usr/bin:/usr/local/bin"
32303for as_dir in $as_dummy
32304do
32305  IFS=$as_save_IFS
32306  case $as_dir in #(((
32307    '') as_dir=./ ;;
32308    */) ;;
32309    *) as_dir=$as_dir/ ;;
32310  esac
32311    for ac_exec_ext in '' $ac_executable_extensions; do
32312  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32313    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32314    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32315    break 2
32316  fi
32317done
32318  done
32319IFS=$as_save_IFS
32320
32321  ;;
32322esac
32323fi
32324ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32325if test -n "$ac_pt_PKGCONFIG"; then
32326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32327printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32328else
32329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32330printf "%s\n" "no" >&6; }
32331fi
32332
32333  if test "x$ac_pt_PKGCONFIG" = x; then
32334    PKGCONFIG="no"
32335  else
32336    case $cross_compiling:$ac_tool_warned in
32337yes:)
32338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32339printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32340ac_tool_warned=yes ;;
32341esac
32342    PKGCONFIG=$ac_pt_PKGCONFIG
32343  fi
32344else
32345  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32346fi
32347
32348    fi
32349
32350    if test "x$PKGCONFIG" != "xno"; then
32351      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
32352printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
32353            itexists=`
32354    if test -n "$want_tcp2_path"; then
32355      PKG_CONFIG_LIBDIR="$want_tcp2_path"
32356      export PKG_CONFIG_LIBDIR
32357    fi
32358         $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
32359
32360      if test -z "$itexists"; then
32361                        PKGCONFIG="no"
32362        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32363printf "%s\n" "no" >&6; }
32364      else
32365        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32366printf "%s\n" "found" >&6; }
32367      fi
32368    fi
32369
32370
32371  if test "$PKGCONFIG" != "no" ; then
32372    LIB_NGTCP2_CRYPTO_WOLFSSL=`
32373    if test -n "$want_tcp2_path"; then
32374      PKG_CONFIG_LIBDIR="$want_tcp2_path"
32375      export PKG_CONFIG_LIBDIR
32376    fi
32377
32378      $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
32379    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
32380printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
32381
32382    CPP_NGTCP2_CRYPTO_WOLFSSL=`
32383    if test -n "$want_tcp2_path"; then
32384      PKG_CONFIG_LIBDIR="$want_tcp2_path"
32385      export PKG_CONFIG_LIBDIR
32386    fi
32387       $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
32388    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
32389printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
32390
32391    LD_NGTCP2_CRYPTO_WOLFSSL=`
32392    if test -n "$want_tcp2_path"; then
32393      PKG_CONFIG_LIBDIR="$want_tcp2_path"
32394      export PKG_CONFIG_LIBDIR
32395    fi
32396
32397      $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
32398    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
32399printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
32400
32401    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
32402    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
32403    LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
32404
32405    if test "x$cross_compiling" != "xyes"; then
32406      DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
32407    fi
32408    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
32409printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
32410if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
32411then :
32412  printf %s "(cached) " >&6
32413else $as_nop
32414  ac_check_lib_save_LIBS=$LIBS
32415LIBS="-lngtcp2_crypto_wolfssl  $LIBS"
32416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32417/* end confdefs.h.  */
32418
32419
32420#ifdef __cplusplus
32421extern "C"
32422#endif
32423char ngtcp2_crypto_recv_client_initial_cb ();
32424int main (void)
32425{
32426return ngtcp2_crypto_recv_client_initial_cb ();
32427 ;
32428 return 0;
32429}
32430_ACEOF
32431if ac_fn_c_try_link "$LINENO"
32432then :
32433  ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
32434else $as_nop
32435  ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
32436fi
32437rm -f core conftest.err conftest.$ac_objext conftest.beam \
32438    conftest$ac_exeext conftest.$ac_ext
32439LIBS=$ac_check_lib_save_LIBS
32440fi
32441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
32442printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
32443if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
32444then :
32445
32446              for ac_header in ngtcp2/ngtcp2_crypto.h
32447do :
32448  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
32449if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
32450then :
32451  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
32452 NGTCP2_ENABLED=1
32453
32454printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
32455
32456          USE_NGTCP2_CRYPTO_WOLFSSL=1
32457
32458          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
32459          export CURL_LIBRARY_PATH
32460          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
32461printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
32462
32463fi
32464
32465done
32466
32467else $as_nop
32468          LDFLAGS=$CLEANLDFLAGS
32469        CPPFLAGS=$CLEANCPPFLAGS
32470        LIBS=$CLEANLIBS
32471
32472fi
32473
32474
32475  else
32476        if test X"$want_tcp2" != Xdefault; then
32477                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
32478    fi
32479  fi
32480fi
32481
32482
32483OPT_OPENSSL_QUIC="no"
32484
32485if test "x$disable_http" = "xyes" -o "x$OPENSSL_ENABLED" != "x1"; then
32486  # without HTTP or without openssl, no use
32487  OPT_OPENSSL_QUIC="no"
32488fi
32489
32490
32491# Check whether --with-openssl-quic was given.
32492if test ${with_openssl_quic+y}
32493then :
32494  withval=$with_openssl_quic; OPT_OPENSSL_QUIC=$withval
32495fi
32496
32497case "$OPT_OPENSSL_QUIC" in
32498  no)
32499        want_openssl_quic="no"
32500    ;;
32501  yes)
32502        want_openssl_quic="yes"
32503    ;;
32504esac
32505
32506curl_openssl_quic_msg="no      (--with-openssl-quic)"
32507if test "x$want_openssl_quic" = "xyes"; then
32508
32509  if test "$NGTCP2_ENABLED" = 1; then
32510    as_fn_error $? "--with-openssl-quic and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32511  fi
32512  if test "$HAVE_OPENSSL_QUIC" != 1; then
32513    as_fn_error $? "--with-openssl-quic requires quic support in OpenSSL" "$LINENO" 5
32514  fi
32515
32516printf "%s\n" "#define USE_OPENSSL_QUIC 1" >>confdefs.h
32517
32518  USE_OPENSSL_QUIC=1
32519
32520fi
32521
32522
32523OPT_NGHTTP3="yes"
32524
32525if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then
32526  # without ngtcp2 or openssl quic, nghttp3 is of no use for us
32527  OPT_NGHTTP3="no"
32528  want_nghttp3="no"
32529fi
32530
32531
32532# Check whether --with-nghttp3 was given.
32533if test ${with_nghttp3+y}
32534then :
32535  withval=$with_nghttp3; OPT_NGHTTP3=$withval
32536fi
32537
32538case "$OPT_NGHTTP3" in
32539  no)
32540        want_nghttp3="no"
32541    ;;
32542  yes)
32543        want_nghttp3="default"
32544    want_nghttp3_path=""
32545    ;;
32546  *)
32547        want_nghttp3="yes"
32548    want_nghttp3_path="$withval/lib/pkgconfig"
32549    ;;
32550esac
32551
32552curl_http3_msg="no      (--with-nghttp3)"
32553if test X"$want_nghttp3" != Xno; then
32554
32555    CLEANLDFLAGS="$LDFLAGS"
32556  CLEANCPPFLAGS="$CPPFLAGS"
32557  CLEANLIBS="$LIBS"
32558
32559
32560    if test -n "$PKG_CONFIG"; then
32561      PKGCONFIG="$PKG_CONFIG"
32562    else
32563      if test -n "$ac_tool_prefix"; then
32564  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32565set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32567printf %s "checking for $ac_word... " >&6; }
32568if test ${ac_cv_path_PKGCONFIG+y}
32569then :
32570  printf %s "(cached) " >&6
32571else $as_nop
32572  case $PKGCONFIG in
32573  [\\/]* | ?:[\\/]*)
32574  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32575  ;;
32576  *)
32577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32578as_dummy="$PATH:/usr/bin:/usr/local/bin"
32579for as_dir in $as_dummy
32580do
32581  IFS=$as_save_IFS
32582  case $as_dir in #(((
32583    '') as_dir=./ ;;
32584    */) ;;
32585    *) as_dir=$as_dir/ ;;
32586  esac
32587    for ac_exec_ext in '' $ac_executable_extensions; do
32588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32589    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32591    break 2
32592  fi
32593done
32594  done
32595IFS=$as_save_IFS
32596
32597  ;;
32598esac
32599fi
32600PKGCONFIG=$ac_cv_path_PKGCONFIG
32601if test -n "$PKGCONFIG"; then
32602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32603printf "%s\n" "$PKGCONFIG" >&6; }
32604else
32605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32606printf "%s\n" "no" >&6; }
32607fi
32608
32609
32610fi
32611if test -z "$ac_cv_path_PKGCONFIG"; then
32612  ac_pt_PKGCONFIG=$PKGCONFIG
32613  # Extract the first word of "pkg-config", so it can be a program name with args.
32614set dummy pkg-config; ac_word=$2
32615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32616printf %s "checking for $ac_word... " >&6; }
32617if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32618then :
32619  printf %s "(cached) " >&6
32620else $as_nop
32621  case $ac_pt_PKGCONFIG in
32622  [\\/]* | ?:[\\/]*)
32623  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32624  ;;
32625  *)
32626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32627as_dummy="$PATH:/usr/bin:/usr/local/bin"
32628for as_dir in $as_dummy
32629do
32630  IFS=$as_save_IFS
32631  case $as_dir in #(((
32632    '') as_dir=./ ;;
32633    */) ;;
32634    *) as_dir=$as_dir/ ;;
32635  esac
32636    for ac_exec_ext in '' $ac_executable_extensions; do
32637  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32638    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32639    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32640    break 2
32641  fi
32642done
32643  done
32644IFS=$as_save_IFS
32645
32646  ;;
32647esac
32648fi
32649ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32650if test -n "$ac_pt_PKGCONFIG"; then
32651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32652printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32653else
32654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32655printf "%s\n" "no" >&6; }
32656fi
32657
32658  if test "x$ac_pt_PKGCONFIG" = x; then
32659    PKGCONFIG="no"
32660  else
32661    case $cross_compiling:$ac_tool_warned in
32662yes:)
32663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32664printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32665ac_tool_warned=yes ;;
32666esac
32667    PKGCONFIG=$ac_pt_PKGCONFIG
32668  fi
32669else
32670  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32671fi
32672
32673    fi
32674
32675    if test "x$PKGCONFIG" != "xno"; then
32676      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
32677printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
32678            itexists=`
32679    if test -n "$want_nghttp3_path"; then
32680      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32681      export PKG_CONFIG_LIBDIR
32682    fi
32683         $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
32684
32685      if test -z "$itexists"; then
32686                        PKGCONFIG="no"
32687        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32688printf "%s\n" "no" >&6; }
32689      else
32690        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32691printf "%s\n" "found" >&6; }
32692      fi
32693    fi
32694
32695
32696  if test "$PKGCONFIG" != "no" ; then
32697    LIB_NGHTTP3=`
32698    if test -n "$want_nghttp3_path"; then
32699      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32700      export PKG_CONFIG_LIBDIR
32701    fi
32702
32703      $PKGCONFIG --libs-only-l libnghttp3`
32704    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
32705printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
32706
32707    CPP_NGHTTP3=`
32708    if test -n "$want_nghttp3_path"; then
32709      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32710      export PKG_CONFIG_LIBDIR
32711    fi
32712       $PKGCONFIG --cflags-only-I libnghttp3`
32713    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
32714printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
32715
32716    LD_NGHTTP3=`
32717    if test -n "$want_nghttp3_path"; then
32718      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32719      export PKG_CONFIG_LIBDIR
32720    fi
32721
32722      $PKGCONFIG --libs-only-L libnghttp3`
32723    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
32724printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
32725
32726    LDFLAGS="$LDFLAGS $LD_NGHTTP3"
32727    CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
32728    LIBS="$LIB_NGHTTP3 $LIBS"
32729
32730    if test "x$cross_compiling" != "xyes"; then
32731      DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
32732    fi
32733    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
32734printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
32735if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
32736then :
32737  printf %s "(cached) " >&6
32738else $as_nop
32739  ac_check_lib_save_LIBS=$LIBS
32740LIBS="-lnghttp3  $LIBS"
32741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32742/* end confdefs.h.  */
32743
32744
32745#ifdef __cplusplus
32746extern "C"
32747#endif
32748char nghttp3_conn_client_new_versioned ();
32749int main (void)
32750{
32751return nghttp3_conn_client_new_versioned ();
32752 ;
32753 return 0;
32754}
32755_ACEOF
32756if ac_fn_c_try_link "$LINENO"
32757then :
32758  ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
32759else $as_nop
32760  ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
32761fi
32762rm -f core conftest.err conftest.$ac_objext conftest.beam \
32763    conftest$ac_exeext conftest.$ac_ext
32764LIBS=$ac_check_lib_save_LIBS
32765fi
32766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
32767printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
32768if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
32769then :
32770
32771              for ac_header in nghttp3/nghttp3.h
32772do :
32773  ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
32774if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
32775then :
32776  printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
32777
32778printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
32779
32780          USE_NGHTTP3=1
32781
32782          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
32783          export CURL_LIBRARY_PATH
32784          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
32785printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
32786
32787fi
32788
32789done
32790
32791else $as_nop
32792          LDFLAGS=$CLEANLDFLAGS
32793        CPPFLAGS=$CLEANCPPFLAGS
32794        LIBS=$CLEANLIBS
32795
32796fi
32797
32798
32799  else
32800        if test X"$want_nghttp3" != Xdefault; then
32801                  as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
32802    fi
32803  fi
32804
32805fi
32806
32807
32808if test "x$NGTCP2_ENABLED" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
32809
32810printf "%s\n" "#define USE_NGTCP2_H3 1" >>confdefs.h
32811
32812  USE_NGTCP2_H3=1
32813
32814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32815printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32816  curl_h3_msg="enabled (ngtcp2 + nghttp3)"
32817fi
32818
32819
32820if test "x$USE_OPENSSL_QUIC" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
32821  experimental="$experimental HTTP3"
32822
32823printf "%s\n" "#define USE_OPENSSL_H3 1" >>confdefs.h
32824
32825  USE_OPENSSL_H3=1
32826
32827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32828printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32829  curl_h3_msg="enabled (openssl + nghttp3)"
32830fi
32831
32832
32833OPT_QUICHE="no"
32834
32835if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32836  # without HTTP or with ngtcp2, quiche is no use
32837  OPT_QUICHE="no"
32838fi
32839
32840
32841# Check whether --with-quiche was given.
32842if test ${with_quiche+y}
32843then :
32844  withval=$with_quiche; OPT_QUICHE=$withval
32845fi
32846
32847case "$OPT_QUICHE" in
32848  no)
32849        want_quiche="no"
32850    ;;
32851  yes)
32852        want_quiche="default"
32853    want_quiche_path=""
32854    ;;
32855  *)
32856        want_quiche="yes"
32857    want_quiche_path="$withval"
32858    ;;
32859esac
32860
32861if test X"$want_quiche" != Xno; then
32862
32863  if test "$QUIC_ENABLED" != "yes"; then
32864    as_fn_error $? "the detected TLS library does not support QUIC, making --with-quiche a no-no" "$LINENO" 5
32865  fi
32866
32867  if test "$NGHTTP3_ENABLED" = 1; then
32868    as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32869  fi
32870
32871    CLEANLDFLAGS="$LDFLAGS"
32872  CLEANCPPFLAGS="$CPPFLAGS"
32873  CLEANLIBS="$LIBS"
32874
32875
32876    if test -n "$PKG_CONFIG"; then
32877      PKGCONFIG="$PKG_CONFIG"
32878    else
32879      if test -n "$ac_tool_prefix"; then
32880  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32881set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32883printf %s "checking for $ac_word... " >&6; }
32884if test ${ac_cv_path_PKGCONFIG+y}
32885then :
32886  printf %s "(cached) " >&6
32887else $as_nop
32888  case $PKGCONFIG in
32889  [\\/]* | ?:[\\/]*)
32890  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32891  ;;
32892  *)
32893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32894as_dummy="$PATH:/usr/bin:/usr/local/bin"
32895for as_dir in $as_dummy
32896do
32897  IFS=$as_save_IFS
32898  case $as_dir in #(((
32899    '') as_dir=./ ;;
32900    */) ;;
32901    *) as_dir=$as_dir/ ;;
32902  esac
32903    for ac_exec_ext in '' $ac_executable_extensions; do
32904  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32905    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32906    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32907    break 2
32908  fi
32909done
32910  done
32911IFS=$as_save_IFS
32912
32913  ;;
32914esac
32915fi
32916PKGCONFIG=$ac_cv_path_PKGCONFIG
32917if test -n "$PKGCONFIG"; then
32918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32919printf "%s\n" "$PKGCONFIG" >&6; }
32920else
32921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32922printf "%s\n" "no" >&6; }
32923fi
32924
32925
32926fi
32927if test -z "$ac_cv_path_PKGCONFIG"; then
32928  ac_pt_PKGCONFIG=$PKGCONFIG
32929  # Extract the first word of "pkg-config", so it can be a program name with args.
32930set dummy pkg-config; ac_word=$2
32931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32932printf %s "checking for $ac_word... " >&6; }
32933if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32934then :
32935  printf %s "(cached) " >&6
32936else $as_nop
32937  case $ac_pt_PKGCONFIG in
32938  [\\/]* | ?:[\\/]*)
32939  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32940  ;;
32941  *)
32942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32943as_dummy="$PATH:/usr/bin:/usr/local/bin"
32944for as_dir in $as_dummy
32945do
32946  IFS=$as_save_IFS
32947  case $as_dir in #(((
32948    '') as_dir=./ ;;
32949    */) ;;
32950    *) as_dir=$as_dir/ ;;
32951  esac
32952    for ac_exec_ext in '' $ac_executable_extensions; do
32953  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32954    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32956    break 2
32957  fi
32958done
32959  done
32960IFS=$as_save_IFS
32961
32962  ;;
32963esac
32964fi
32965ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32966if test -n "$ac_pt_PKGCONFIG"; then
32967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32968printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32969else
32970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32971printf "%s\n" "no" >&6; }
32972fi
32973
32974  if test "x$ac_pt_PKGCONFIG" = x; then
32975    PKGCONFIG="no"
32976  else
32977    case $cross_compiling:$ac_tool_warned in
32978yes:)
32979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32980printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32981ac_tool_warned=yes ;;
32982esac
32983    PKGCONFIG=$ac_pt_PKGCONFIG
32984  fi
32985else
32986  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32987fi
32988
32989    fi
32990
32991    if test "x$PKGCONFIG" != "xno"; then
32992      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
32993printf %s "checking for quiche options with pkg-config... " >&6; }
32994            itexists=`
32995    if test -n "$want_quiche_path"; then
32996      PKG_CONFIG_LIBDIR="$want_quiche_path"
32997      export PKG_CONFIG_LIBDIR
32998    fi
32999         $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
33000
33001      if test -z "$itexists"; then
33002                        PKGCONFIG="no"
33003        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33004printf "%s\n" "no" >&6; }
33005      else
33006        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
33007printf "%s\n" "found" >&6; }
33008      fi
33009    fi
33010
33011
33012  if test "$PKGCONFIG" != "no" ; then
33013    LIB_QUICHE=`
33014    if test -n "$want_quiche_path"; then
33015      PKG_CONFIG_LIBDIR="$want_quiche_path"
33016      export PKG_CONFIG_LIBDIR
33017    fi
33018
33019      $PKGCONFIG --libs-only-l quiche`
33020    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
33021printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
33022
33023    CPP_QUICHE=`
33024    if test -n "$want_quiche_path"; then
33025      PKG_CONFIG_LIBDIR="$want_quiche_path"
33026      export PKG_CONFIG_LIBDIR
33027    fi
33028       $PKGCONFIG --cflags-only-I quiche`
33029    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
33030printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
33031
33032    LD_QUICHE=`
33033    if test -n "$want_quiche_path"; then
33034      PKG_CONFIG_LIBDIR="$want_quiche_path"
33035      export PKG_CONFIG_LIBDIR
33036    fi
33037
33038      $PKGCONFIG --libs-only-L quiche`
33039    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
33040printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
33041
33042    LDFLAGS="$LDFLAGS $LD_QUICHE"
33043    CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
33044    LIBS="$LIB_QUICHE $LIBS"
33045
33046    if test "x$cross_compiling" != "xyes"; then
33047      DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
33048    fi
33049    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_conn_send_ack_eliciting in -lquiche" >&5
33050printf %s "checking for quiche_conn_send_ack_eliciting in -lquiche... " >&6; }
33051if test ${ac_cv_lib_quiche_quiche_conn_send_ack_eliciting+y}
33052then :
33053  printf %s "(cached) " >&6
33054else $as_nop
33055  ac_check_lib_save_LIBS=$LIBS
33056LIBS="-lquiche  $LIBS"
33057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33058/* end confdefs.h.  */
33059
33060
33061#ifdef __cplusplus
33062extern "C"
33063#endif
33064char quiche_conn_send_ack_eliciting ();
33065int main (void)
33066{
33067return quiche_conn_send_ack_eliciting ();
33068 ;
33069 return 0;
33070}
33071_ACEOF
33072if ac_fn_c_try_link "$LINENO"
33073then :
33074  ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=yes
33075else $as_nop
33076  ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=no
33077fi
33078rm -f core conftest.err conftest.$ac_objext conftest.beam \
33079    conftest$ac_exeext conftest.$ac_ext
33080LIBS=$ac_check_lib_save_LIBS
33081fi
33082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&5
33083printf "%s\n" "$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&6; }
33084if test "x$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" = xyes
33085then :
33086
33087              for ac_header in quiche.h
33088do :
33089  ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
33090$ac_includes_default
33091#include <sys/socket.h>
33092
33093
33094"
33095if test "x$ac_cv_header_quiche_h" = xyes
33096then :
33097  printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
33098 experimental="$experimental HTTP3"
33099          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
33100printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
33101          curl_h3_msg="enabled (quiche)"
33102          QUICHE_ENABLED=1
33103
33104printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
33105
33106          USE_QUICHE=1
33107
33108          ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
33109if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
33110then :
33111  printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
33112
33113fi
33114
33115          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
33116          export CURL_LIBRARY_PATH
33117          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
33118printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
33119fi
33120
33121done
33122
33123else $as_nop
33124          as_fn_error $? "couldn't use quiche" "$LINENO" 5
33125
33126fi
33127
33128  else
33129        if test X"$want_quiche" != Xdefault; then
33130                  as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
33131    fi
33132  fi
33133fi
33134
33135
33136OPT_MSH3="no"
33137
33138if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
33139  # without HTTP or with ngtcp2, msh3 is no use
33140  OPT_MSH3="no"
33141fi
33142
33143
33144# Check whether --with-msh3 was given.
33145if test ${with_msh3+y}
33146then :
33147  withval=$with_msh3; OPT_MSH3=$withval
33148fi
33149
33150case "$OPT_MSH3" in
33151  no)
33152        want_msh3="no"
33153    ;;
33154  yes)
33155        want_msh3="default"
33156    want_msh3_path=""
33157    ;;
33158  *)
33159        want_msh3="yes"
33160    want_msh3_path="$withval"
33161    ;;
33162esac
33163
33164if test X"$want_msh3" != Xno; then
33165
33166    if test "$curl_cv_native_windows" != "yes"; then
33167    if test "$QUIC_ENABLED" != "yes"; then
33168      as_fn_error $? "the detected TLS library does not support QUIC, making --with-msh3 a no-no" "$LINENO" 5
33169    fi
33170    if test "$OPENSSL_ENABLED" != "1"; then
33171      as_fn_error $? "msh3 requires OpenSSL" "$LINENO" 5
33172    fi
33173  fi
33174
33175  if test "$NGHTTP3_ENABLED" = 1; then
33176    as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
33177  fi
33178  if test "$QUICHE_ENABLED" = 1; then
33179    as_fn_error $? "--with-msh3 and --with-quiche are mutually exclusive" "$LINENO" 5
33180  fi
33181
33182    CLEANLDFLAGS="$LDFLAGS"
33183  CLEANCPPFLAGS="$CPPFLAGS"
33184  CLEANLIBS="$LIBS"
33185
33186  if test -n "$want_msh3_path"; then
33187    LD_MSH3="-L$want_msh3_path/lib"
33188    CPP_MSH3="-I$want_msh3_path/include"
33189    DIR_MSH3="$want_msh3_path/lib"
33190    LDFLAGS="$LDFLAGS $LD_MSH3"
33191    CPPFLAGS="$CPPFLAGS $CPP_MSH3"
33192  fi
33193  LIBS="-lmsh3 $LIBS"
33194
33195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
33196printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
33197if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
33198then :
33199  printf %s "(cached) " >&6
33200else $as_nop
33201  ac_check_lib_save_LIBS=$LIBS
33202LIBS="-lmsh3  $LIBS"
33203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33204/* end confdefs.h.  */
33205
33206
33207#ifdef __cplusplus
33208extern "C"
33209#endif
33210char MsH3ApiOpen ();
33211int main (void)
33212{
33213return MsH3ApiOpen ();
33214 ;
33215 return 0;
33216}
33217_ACEOF
33218if ac_fn_c_try_link "$LINENO"
33219then :
33220  ac_cv_lib_msh3_MsH3ApiOpen=yes
33221else $as_nop
33222  ac_cv_lib_msh3_MsH3ApiOpen=no
33223fi
33224rm -f core conftest.err conftest.$ac_objext conftest.beam \
33225    conftest$ac_exeext conftest.$ac_ext
33226LIBS=$ac_check_lib_save_LIBS
33227fi
33228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
33229printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
33230if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
33231then :
33232
33233           for ac_header in msh3.h
33234do :
33235  ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
33236if test "x$ac_cv_header_msh3_h" = xyes
33237then :
33238  printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
33239 curl_h3_msg="enabled (msh3)"
33240        MSH3_ENABLED=1
33241
33242printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
33243
33244        USE_MSH3=1
33245
33246        CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
33247        export CURL_LIBRARY_PATH
33248        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
33249printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
33250else $as_nop
33251  experimental="$experimental HTTP3"
33252
33253fi
33254
33255done
33256
33257else $as_nop
33258        LDFLAGS=$CLEANLDFLAGS
33259      CPPFLAGS=$CLEANCPPFLAGS
33260      LIBS=$CLEANLIBS
33261
33262fi
33263
33264fi
33265
33266
33267OPT_ZSH_FPATH=default
33268
33269# Check whether --with-zsh-functions-dir was given.
33270if test ${with_zsh_functions_dir+y}
33271then :
33272  withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
33273fi
33274
33275case "$OPT_ZSH_FPATH" in
33276  default|no)
33277        ;;
33278  yes)
33279        ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
33280
33281    ;;
33282  *)
33283        ZSH_FUNCTIONS_DIR="$withval"
33284
33285    ;;
33286esac
33287 if test x"$ZSH_FUNCTIONS_DIR" != x; then
33288  USE_ZSH_COMPLETION_TRUE=
33289  USE_ZSH_COMPLETION_FALSE='#'
33290else
33291  USE_ZSH_COMPLETION_TRUE='#'
33292  USE_ZSH_COMPLETION_FALSE=
33293fi
33294
33295
33296
33297OPT_FISH_FPATH=default
33298
33299# Check whether --with-fish-functions-dir was given.
33300if test ${with_fish_functions_dir+y}
33301then :
33302  withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
33303fi
33304
33305case "$OPT_FISH_FPATH" in
33306  default|no)
33307        ;;
33308  yes)
33309
33310    if test -n "$PKG_CONFIG"; then
33311      PKGCONFIG="$PKG_CONFIG"
33312    else
33313      if test -n "$ac_tool_prefix"; then
33314  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33315set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33317printf %s "checking for $ac_word... " >&6; }
33318if test ${ac_cv_path_PKGCONFIG+y}
33319then :
33320  printf %s "(cached) " >&6
33321else $as_nop
33322  case $PKGCONFIG in
33323  [\\/]* | ?:[\\/]*)
33324  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
33325  ;;
33326  *)
33327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33328as_dummy="$PATH:/usr/bin:/usr/local/bin"
33329for as_dir in $as_dummy
33330do
33331  IFS=$as_save_IFS
33332  case $as_dir in #(((
33333    '') as_dir=./ ;;
33334    */) ;;
33335    *) as_dir=$as_dir/ ;;
33336  esac
33337    for ac_exec_ext in '' $ac_executable_extensions; do
33338  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33339    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
33340    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33341    break 2
33342  fi
33343done
33344  done
33345IFS=$as_save_IFS
33346
33347  ;;
33348esac
33349fi
33350PKGCONFIG=$ac_cv_path_PKGCONFIG
33351if test -n "$PKGCONFIG"; then
33352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
33353printf "%s\n" "$PKGCONFIG" >&6; }
33354else
33355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33356printf "%s\n" "no" >&6; }
33357fi
33358
33359
33360fi
33361if test -z "$ac_cv_path_PKGCONFIG"; then
33362  ac_pt_PKGCONFIG=$PKGCONFIG
33363  # Extract the first word of "pkg-config", so it can be a program name with args.
33364set dummy pkg-config; ac_word=$2
33365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33366printf %s "checking for $ac_word... " >&6; }
33367if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
33368then :
33369  printf %s "(cached) " >&6
33370else $as_nop
33371  case $ac_pt_PKGCONFIG in
33372  [\\/]* | ?:[\\/]*)
33373  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
33374  ;;
33375  *)
33376  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33377as_dummy="$PATH:/usr/bin:/usr/local/bin"
33378for as_dir in $as_dummy
33379do
33380  IFS=$as_save_IFS
33381  case $as_dir in #(((
33382    '') as_dir=./ ;;
33383    */) ;;
33384    *) as_dir=$as_dir/ ;;
33385  esac
33386    for ac_exec_ext in '' $ac_executable_extensions; do
33387  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33388    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
33389    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33390    break 2
33391  fi
33392done
33393  done
33394IFS=$as_save_IFS
33395
33396  ;;
33397esac
33398fi
33399ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
33400if test -n "$ac_pt_PKGCONFIG"; then
33401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
33402printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
33403else
33404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33405printf "%s\n" "no" >&6; }
33406fi
33407
33408  if test "x$ac_pt_PKGCONFIG" = x; then
33409    PKGCONFIG="no"
33410  else
33411    case $cross_compiling:$ac_tool_warned in
33412yes:)
33413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33414printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33415ac_tool_warned=yes ;;
33416esac
33417    PKGCONFIG=$ac_pt_PKGCONFIG
33418  fi
33419else
33420  PKGCONFIG="$ac_cv_path_PKGCONFIG"
33421fi
33422
33423    fi
33424
33425    if test "x$PKGCONFIG" != "xno"; then
33426      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
33427printf %s "checking for fish options with pkg-config... " >&6; }
33428            itexists=`
33429    if test -n ""; then
33430      PKG_CONFIG_LIBDIR=""
33431      export PKG_CONFIG_LIBDIR
33432    fi
33433         $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
33434
33435      if test -z "$itexists"; then
33436                        PKGCONFIG="no"
33437        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33438printf "%s\n" "no" >&6; }
33439      else
33440        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
33441printf "%s\n" "found" >&6; }
33442      fi
33443    fi
33444
33445    if test "$PKGCONFIG" != "no" ; then
33446      FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
33447    else
33448      FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
33449    fi
33450
33451    ;;
33452  *)
33453        FISH_FUNCTIONS_DIR="$withval"
33454
33455    ;;
33456esac
33457 if test x"$FISH_FUNCTIONS_DIR" != x; then
33458  USE_FISH_COMPLETION_TRUE=
33459  USE_FISH_COMPLETION_FALSE='#'
33460else
33461  USE_FISH_COMPLETION_TRUE='#'
33462  USE_FISH_COMPLETION_FALSE=
33463fi
33464
33465
33466ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
33467#ifdef HAVE_SYS_TYPES_H
33468#include <sys/types.h>
33469#endif
33470#ifdef HAVE_SYS_TIME_H
33471#include <sys/time.h>
33472#endif
33473#ifdef HAVE_SYS_SELECT_H
33474#include <sys/select.h>
33475#elif defined(HAVE_UNISTD_H)
33476#include <unistd.h>
33477#endif
33478#ifdef HAVE_SYS_SOCKET_H
33479#include <sys/socket.h>
33480#endif
33481#ifdef HAVE_NETINET_IN_H
33482#include <netinet/in.h>
33483#endif
33484#ifdef HAVE_NETINET_IN6_H
33485#include <netinet/in6.h>
33486#endif
33487#ifdef HAVE_SYS_UN_H
33488#include <sys/un.h>
33489#endif
33490
33491
33492"
33493if test "x$ac_cv_header_sys_types_h" = xyes
33494then :
33495  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33496
33497fi
33498ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
33499#ifdef HAVE_SYS_TYPES_H
33500#include <sys/types.h>
33501#endif
33502#ifdef HAVE_SYS_TIME_H
33503#include <sys/time.h>
33504#endif
33505#ifdef HAVE_SYS_SELECT_H
33506#include <sys/select.h>
33507#elif defined(HAVE_UNISTD_H)
33508#include <unistd.h>
33509#endif
33510#ifdef HAVE_SYS_SOCKET_H
33511#include <sys/socket.h>
33512#endif
33513#ifdef HAVE_NETINET_IN_H
33514#include <netinet/in.h>
33515#endif
33516#ifdef HAVE_NETINET_IN6_H
33517#include <netinet/in6.h>
33518#endif
33519#ifdef HAVE_SYS_UN_H
33520#include <sys/un.h>
33521#endif
33522
33523
33524"
33525if test "x$ac_cv_header_sys_time_h" = xyes
33526then :
33527  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
33528
33529fi
33530ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
33531#ifdef HAVE_SYS_TYPES_H
33532#include <sys/types.h>
33533#endif
33534#ifdef HAVE_SYS_TIME_H
33535#include <sys/time.h>
33536#endif
33537#ifdef HAVE_SYS_SELECT_H
33538#include <sys/select.h>
33539#elif defined(HAVE_UNISTD_H)
33540#include <unistd.h>
33541#endif
33542#ifdef HAVE_SYS_SOCKET_H
33543#include <sys/socket.h>
33544#endif
33545#ifdef HAVE_NETINET_IN_H
33546#include <netinet/in.h>
33547#endif
33548#ifdef HAVE_NETINET_IN6_H
33549#include <netinet/in6.h>
33550#endif
33551#ifdef HAVE_SYS_UN_H
33552#include <sys/un.h>
33553#endif
33554
33555
33556"
33557if test "x$ac_cv_header_sys_select_h" = xyes
33558then :
33559  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
33560
33561fi
33562ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
33563#ifdef HAVE_SYS_TYPES_H
33564#include <sys/types.h>
33565#endif
33566#ifdef HAVE_SYS_TIME_H
33567#include <sys/time.h>
33568#endif
33569#ifdef HAVE_SYS_SELECT_H
33570#include <sys/select.h>
33571#elif defined(HAVE_UNISTD_H)
33572#include <unistd.h>
33573#endif
33574#ifdef HAVE_SYS_SOCKET_H
33575#include <sys/socket.h>
33576#endif
33577#ifdef HAVE_NETINET_IN_H
33578#include <netinet/in.h>
33579#endif
33580#ifdef HAVE_NETINET_IN6_H
33581#include <netinet/in6.h>
33582#endif
33583#ifdef HAVE_SYS_UN_H
33584#include <sys/un.h>
33585#endif
33586
33587
33588"
33589if test "x$ac_cv_header_sys_socket_h" = xyes
33590then :
33591  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33592
33593fi
33594ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
33595#ifdef HAVE_SYS_TYPES_H
33596#include <sys/types.h>
33597#endif
33598#ifdef HAVE_SYS_TIME_H
33599#include <sys/time.h>
33600#endif
33601#ifdef HAVE_SYS_SELECT_H
33602#include <sys/select.h>
33603#elif defined(HAVE_UNISTD_H)
33604#include <unistd.h>
33605#endif
33606#ifdef HAVE_SYS_SOCKET_H
33607#include <sys/socket.h>
33608#endif
33609#ifdef HAVE_NETINET_IN_H
33610#include <netinet/in.h>
33611#endif
33612#ifdef HAVE_NETINET_IN6_H
33613#include <netinet/in6.h>
33614#endif
33615#ifdef HAVE_SYS_UN_H
33616#include <sys/un.h>
33617#endif
33618
33619
33620"
33621if test "x$ac_cv_header_sys_ioctl_h" = xyes
33622then :
33623  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
33624
33625fi
33626ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
33627#ifdef HAVE_SYS_TYPES_H
33628#include <sys/types.h>
33629#endif
33630#ifdef HAVE_SYS_TIME_H
33631#include <sys/time.h>
33632#endif
33633#ifdef HAVE_SYS_SELECT_H
33634#include <sys/select.h>
33635#elif defined(HAVE_UNISTD_H)
33636#include <unistd.h>
33637#endif
33638#ifdef HAVE_SYS_SOCKET_H
33639#include <sys/socket.h>
33640#endif
33641#ifdef HAVE_NETINET_IN_H
33642#include <netinet/in.h>
33643#endif
33644#ifdef HAVE_NETINET_IN6_H
33645#include <netinet/in6.h>
33646#endif
33647#ifdef HAVE_SYS_UN_H
33648#include <sys/un.h>
33649#endif
33650
33651
33652"
33653if test "x$ac_cv_header_unistd_h" = xyes
33654then :
33655  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
33656
33657fi
33658ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
33659#ifdef HAVE_SYS_TYPES_H
33660#include <sys/types.h>
33661#endif
33662#ifdef HAVE_SYS_TIME_H
33663#include <sys/time.h>
33664#endif
33665#ifdef HAVE_SYS_SELECT_H
33666#include <sys/select.h>
33667#elif defined(HAVE_UNISTD_H)
33668#include <unistd.h>
33669#endif
33670#ifdef HAVE_SYS_SOCKET_H
33671#include <sys/socket.h>
33672#endif
33673#ifdef HAVE_NETINET_IN_H
33674#include <netinet/in.h>
33675#endif
33676#ifdef HAVE_NETINET_IN6_H
33677#include <netinet/in6.h>
33678#endif
33679#ifdef HAVE_SYS_UN_H
33680#include <sys/un.h>
33681#endif
33682
33683
33684"
33685if test "x$ac_cv_header_stdlib_h" = xyes
33686then :
33687  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
33688
33689fi
33690ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
33691#ifdef HAVE_SYS_TYPES_H
33692#include <sys/types.h>
33693#endif
33694#ifdef HAVE_SYS_TIME_H
33695#include <sys/time.h>
33696#endif
33697#ifdef HAVE_SYS_SELECT_H
33698#include <sys/select.h>
33699#elif defined(HAVE_UNISTD_H)
33700#include <unistd.h>
33701#endif
33702#ifdef HAVE_SYS_SOCKET_H
33703#include <sys/socket.h>
33704#endif
33705#ifdef HAVE_NETINET_IN_H
33706#include <netinet/in.h>
33707#endif
33708#ifdef HAVE_NETINET_IN6_H
33709#include <netinet/in6.h>
33710#endif
33711#ifdef HAVE_SYS_UN_H
33712#include <sys/un.h>
33713#endif
33714
33715
33716"
33717if test "x$ac_cv_header_arpa_inet_h" = xyes
33718then :
33719  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
33720
33721fi
33722ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
33723#ifdef HAVE_SYS_TYPES_H
33724#include <sys/types.h>
33725#endif
33726#ifdef HAVE_SYS_TIME_H
33727#include <sys/time.h>
33728#endif
33729#ifdef HAVE_SYS_SELECT_H
33730#include <sys/select.h>
33731#elif defined(HAVE_UNISTD_H)
33732#include <unistd.h>
33733#endif
33734#ifdef HAVE_SYS_SOCKET_H
33735#include <sys/socket.h>
33736#endif
33737#ifdef HAVE_NETINET_IN_H
33738#include <netinet/in.h>
33739#endif
33740#ifdef HAVE_NETINET_IN6_H
33741#include <netinet/in6.h>
33742#endif
33743#ifdef HAVE_SYS_UN_H
33744#include <sys/un.h>
33745#endif
33746
33747
33748"
33749if test "x$ac_cv_header_net_if_h" = xyes
33750then :
33751  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
33752
33753fi
33754ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
33755#ifdef HAVE_SYS_TYPES_H
33756#include <sys/types.h>
33757#endif
33758#ifdef HAVE_SYS_TIME_H
33759#include <sys/time.h>
33760#endif
33761#ifdef HAVE_SYS_SELECT_H
33762#include <sys/select.h>
33763#elif defined(HAVE_UNISTD_H)
33764#include <unistd.h>
33765#endif
33766#ifdef HAVE_SYS_SOCKET_H
33767#include <sys/socket.h>
33768#endif
33769#ifdef HAVE_NETINET_IN_H
33770#include <netinet/in.h>
33771#endif
33772#ifdef HAVE_NETINET_IN6_H
33773#include <netinet/in6.h>
33774#endif
33775#ifdef HAVE_SYS_UN_H
33776#include <sys/un.h>
33777#endif
33778
33779
33780"
33781if test "x$ac_cv_header_netinet_in_h" = xyes
33782then :
33783  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
33784
33785fi
33786ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
33787#ifdef HAVE_SYS_TYPES_H
33788#include <sys/types.h>
33789#endif
33790#ifdef HAVE_SYS_TIME_H
33791#include <sys/time.h>
33792#endif
33793#ifdef HAVE_SYS_SELECT_H
33794#include <sys/select.h>
33795#elif defined(HAVE_UNISTD_H)
33796#include <unistd.h>
33797#endif
33798#ifdef HAVE_SYS_SOCKET_H
33799#include <sys/socket.h>
33800#endif
33801#ifdef HAVE_NETINET_IN_H
33802#include <netinet/in.h>
33803#endif
33804#ifdef HAVE_NETINET_IN6_H
33805#include <netinet/in6.h>
33806#endif
33807#ifdef HAVE_SYS_UN_H
33808#include <sys/un.h>
33809#endif
33810
33811
33812"
33813if test "x$ac_cv_header_netinet_in6_h" = xyes
33814then :
33815  printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
33816
33817fi
33818ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
33819#ifdef HAVE_SYS_TYPES_H
33820#include <sys/types.h>
33821#endif
33822#ifdef HAVE_SYS_TIME_H
33823#include <sys/time.h>
33824#endif
33825#ifdef HAVE_SYS_SELECT_H
33826#include <sys/select.h>
33827#elif defined(HAVE_UNISTD_H)
33828#include <unistd.h>
33829#endif
33830#ifdef HAVE_SYS_SOCKET_H
33831#include <sys/socket.h>
33832#endif
33833#ifdef HAVE_NETINET_IN_H
33834#include <netinet/in.h>
33835#endif
33836#ifdef HAVE_NETINET_IN6_H
33837#include <netinet/in6.h>
33838#endif
33839#ifdef HAVE_SYS_UN_H
33840#include <sys/un.h>
33841#endif
33842
33843
33844"
33845if test "x$ac_cv_header_sys_un_h" = xyes
33846then :
33847  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
33848
33849fi
33850ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
33851#ifdef HAVE_SYS_TYPES_H
33852#include <sys/types.h>
33853#endif
33854#ifdef HAVE_SYS_TIME_H
33855#include <sys/time.h>
33856#endif
33857#ifdef HAVE_SYS_SELECT_H
33858#include <sys/select.h>
33859#elif defined(HAVE_UNISTD_H)
33860#include <unistd.h>
33861#endif
33862#ifdef HAVE_SYS_SOCKET_H
33863#include <sys/socket.h>
33864#endif
33865#ifdef HAVE_NETINET_IN_H
33866#include <netinet/in.h>
33867#endif
33868#ifdef HAVE_NETINET_IN6_H
33869#include <netinet/in6.h>
33870#endif
33871#ifdef HAVE_SYS_UN_H
33872#include <sys/un.h>
33873#endif
33874
33875
33876"
33877if test "x$ac_cv_header_linux_tcp_h" = xyes
33878then :
33879  printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
33880
33881fi
33882ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
33883#ifdef HAVE_SYS_TYPES_H
33884#include <sys/types.h>
33885#endif
33886#ifdef HAVE_SYS_TIME_H
33887#include <sys/time.h>
33888#endif
33889#ifdef HAVE_SYS_SELECT_H
33890#include <sys/select.h>
33891#elif defined(HAVE_UNISTD_H)
33892#include <unistd.h>
33893#endif
33894#ifdef HAVE_SYS_SOCKET_H
33895#include <sys/socket.h>
33896#endif
33897#ifdef HAVE_NETINET_IN_H
33898#include <netinet/in.h>
33899#endif
33900#ifdef HAVE_NETINET_IN6_H
33901#include <netinet/in6.h>
33902#endif
33903#ifdef HAVE_SYS_UN_H
33904#include <sys/un.h>
33905#endif
33906
33907
33908"
33909if test "x$ac_cv_header_netinet_tcp_h" = xyes
33910then :
33911  printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
33912
33913fi
33914ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
33915#ifdef HAVE_SYS_TYPES_H
33916#include <sys/types.h>
33917#endif
33918#ifdef HAVE_SYS_TIME_H
33919#include <sys/time.h>
33920#endif
33921#ifdef HAVE_SYS_SELECT_H
33922#include <sys/select.h>
33923#elif defined(HAVE_UNISTD_H)
33924#include <unistd.h>
33925#endif
33926#ifdef HAVE_SYS_SOCKET_H
33927#include <sys/socket.h>
33928#endif
33929#ifdef HAVE_NETINET_IN_H
33930#include <netinet/in.h>
33931#endif
33932#ifdef HAVE_NETINET_IN6_H
33933#include <netinet/in6.h>
33934#endif
33935#ifdef HAVE_SYS_UN_H
33936#include <sys/un.h>
33937#endif
33938
33939
33940"
33941if test "x$ac_cv_header_netinet_udp_h" = xyes
33942then :
33943  printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
33944
33945fi
33946ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
33947#ifdef HAVE_SYS_TYPES_H
33948#include <sys/types.h>
33949#endif
33950#ifdef HAVE_SYS_TIME_H
33951#include <sys/time.h>
33952#endif
33953#ifdef HAVE_SYS_SELECT_H
33954#include <sys/select.h>
33955#elif defined(HAVE_UNISTD_H)
33956#include <unistd.h>
33957#endif
33958#ifdef HAVE_SYS_SOCKET_H
33959#include <sys/socket.h>
33960#endif
33961#ifdef HAVE_NETINET_IN_H
33962#include <netinet/in.h>
33963#endif
33964#ifdef HAVE_NETINET_IN6_H
33965#include <netinet/in6.h>
33966#endif
33967#ifdef HAVE_SYS_UN_H
33968#include <sys/un.h>
33969#endif
33970
33971
33972"
33973if test "x$ac_cv_header_netdb_h" = xyes
33974then :
33975  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33976
33977fi
33978ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
33979#ifdef HAVE_SYS_TYPES_H
33980#include <sys/types.h>
33981#endif
33982#ifdef HAVE_SYS_TIME_H
33983#include <sys/time.h>
33984#endif
33985#ifdef HAVE_SYS_SELECT_H
33986#include <sys/select.h>
33987#elif defined(HAVE_UNISTD_H)
33988#include <unistd.h>
33989#endif
33990#ifdef HAVE_SYS_SOCKET_H
33991#include <sys/socket.h>
33992#endif
33993#ifdef HAVE_NETINET_IN_H
33994#include <netinet/in.h>
33995#endif
33996#ifdef HAVE_NETINET_IN6_H
33997#include <netinet/in6.h>
33998#endif
33999#ifdef HAVE_SYS_UN_H
34000#include <sys/un.h>
34001#endif
34002
34003
34004"
34005if test "x$ac_cv_header_sys_sockio_h" = xyes
34006then :
34007  printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
34008
34009fi
34010ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
34011#ifdef HAVE_SYS_TYPES_H
34012#include <sys/types.h>
34013#endif
34014#ifdef HAVE_SYS_TIME_H
34015#include <sys/time.h>
34016#endif
34017#ifdef HAVE_SYS_SELECT_H
34018#include <sys/select.h>
34019#elif defined(HAVE_UNISTD_H)
34020#include <unistd.h>
34021#endif
34022#ifdef HAVE_SYS_SOCKET_H
34023#include <sys/socket.h>
34024#endif
34025#ifdef HAVE_NETINET_IN_H
34026#include <netinet/in.h>
34027#endif
34028#ifdef HAVE_NETINET_IN6_H
34029#include <netinet/in6.h>
34030#endif
34031#ifdef HAVE_SYS_UN_H
34032#include <sys/un.h>
34033#endif
34034
34035
34036"
34037if test "x$ac_cv_header_sys_stat_h" = xyes
34038then :
34039  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
34040
34041fi
34042ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
34043#ifdef HAVE_SYS_TYPES_H
34044#include <sys/types.h>
34045#endif
34046#ifdef HAVE_SYS_TIME_H
34047#include <sys/time.h>
34048#endif
34049#ifdef HAVE_SYS_SELECT_H
34050#include <sys/select.h>
34051#elif defined(HAVE_UNISTD_H)
34052#include <unistd.h>
34053#endif
34054#ifdef HAVE_SYS_SOCKET_H
34055#include <sys/socket.h>
34056#endif
34057#ifdef HAVE_NETINET_IN_H
34058#include <netinet/in.h>
34059#endif
34060#ifdef HAVE_NETINET_IN6_H
34061#include <netinet/in6.h>
34062#endif
34063#ifdef HAVE_SYS_UN_H
34064#include <sys/un.h>
34065#endif
34066
34067
34068"
34069if test "x$ac_cv_header_sys_param_h" = xyes
34070then :
34071  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
34072
34073fi
34074ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
34075#ifdef HAVE_SYS_TYPES_H
34076#include <sys/types.h>
34077#endif
34078#ifdef HAVE_SYS_TIME_H
34079#include <sys/time.h>
34080#endif
34081#ifdef HAVE_SYS_SELECT_H
34082#include <sys/select.h>
34083#elif defined(HAVE_UNISTD_H)
34084#include <unistd.h>
34085#endif
34086#ifdef HAVE_SYS_SOCKET_H
34087#include <sys/socket.h>
34088#endif
34089#ifdef HAVE_NETINET_IN_H
34090#include <netinet/in.h>
34091#endif
34092#ifdef HAVE_NETINET_IN6_H
34093#include <netinet/in6.h>
34094#endif
34095#ifdef HAVE_SYS_UN_H
34096#include <sys/un.h>
34097#endif
34098
34099
34100"
34101if test "x$ac_cv_header_termios_h" = xyes
34102then :
34103  printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
34104
34105fi
34106ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
34107#ifdef HAVE_SYS_TYPES_H
34108#include <sys/types.h>
34109#endif
34110#ifdef HAVE_SYS_TIME_H
34111#include <sys/time.h>
34112#endif
34113#ifdef HAVE_SYS_SELECT_H
34114#include <sys/select.h>
34115#elif defined(HAVE_UNISTD_H)
34116#include <unistd.h>
34117#endif
34118#ifdef HAVE_SYS_SOCKET_H
34119#include <sys/socket.h>
34120#endif
34121#ifdef HAVE_NETINET_IN_H
34122#include <netinet/in.h>
34123#endif
34124#ifdef HAVE_NETINET_IN6_H
34125#include <netinet/in6.h>
34126#endif
34127#ifdef HAVE_SYS_UN_H
34128#include <sys/un.h>
34129#endif
34130
34131
34132"
34133if test "x$ac_cv_header_termio_h" = xyes
34134then :
34135  printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
34136
34137fi
34138ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
34139#ifdef HAVE_SYS_TYPES_H
34140#include <sys/types.h>
34141#endif
34142#ifdef HAVE_SYS_TIME_H
34143#include <sys/time.h>
34144#endif
34145#ifdef HAVE_SYS_SELECT_H
34146#include <sys/select.h>
34147#elif defined(HAVE_UNISTD_H)
34148#include <unistd.h>
34149#endif
34150#ifdef HAVE_SYS_SOCKET_H
34151#include <sys/socket.h>
34152#endif
34153#ifdef HAVE_NETINET_IN_H
34154#include <netinet/in.h>
34155#endif
34156#ifdef HAVE_NETINET_IN6_H
34157#include <netinet/in6.h>
34158#endif
34159#ifdef HAVE_SYS_UN_H
34160#include <sys/un.h>
34161#endif
34162
34163
34164"
34165if test "x$ac_cv_header_fcntl_h" = xyes
34166then :
34167  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
34168
34169fi
34170ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
34171#ifdef HAVE_SYS_TYPES_H
34172#include <sys/types.h>
34173#endif
34174#ifdef HAVE_SYS_TIME_H
34175#include <sys/time.h>
34176#endif
34177#ifdef HAVE_SYS_SELECT_H
34178#include <sys/select.h>
34179#elif defined(HAVE_UNISTD_H)
34180#include <unistd.h>
34181#endif
34182#ifdef HAVE_SYS_SOCKET_H
34183#include <sys/socket.h>
34184#endif
34185#ifdef HAVE_NETINET_IN_H
34186#include <netinet/in.h>
34187#endif
34188#ifdef HAVE_NETINET_IN6_H
34189#include <netinet/in6.h>
34190#endif
34191#ifdef HAVE_SYS_UN_H
34192#include <sys/un.h>
34193#endif
34194
34195
34196"
34197if test "x$ac_cv_header_io_h" = xyes
34198then :
34199  printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
34200
34201fi
34202ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
34203#ifdef HAVE_SYS_TYPES_H
34204#include <sys/types.h>
34205#endif
34206#ifdef HAVE_SYS_TIME_H
34207#include <sys/time.h>
34208#endif
34209#ifdef HAVE_SYS_SELECT_H
34210#include <sys/select.h>
34211#elif defined(HAVE_UNISTD_H)
34212#include <unistd.h>
34213#endif
34214#ifdef HAVE_SYS_SOCKET_H
34215#include <sys/socket.h>
34216#endif
34217#ifdef HAVE_NETINET_IN_H
34218#include <netinet/in.h>
34219#endif
34220#ifdef HAVE_NETINET_IN6_H
34221#include <netinet/in6.h>
34222#endif
34223#ifdef HAVE_SYS_UN_H
34224#include <sys/un.h>
34225#endif
34226
34227
34228"
34229if test "x$ac_cv_header_pwd_h" = xyes
34230then :
34231  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
34232
34233fi
34234ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
34235#ifdef HAVE_SYS_TYPES_H
34236#include <sys/types.h>
34237#endif
34238#ifdef HAVE_SYS_TIME_H
34239#include <sys/time.h>
34240#endif
34241#ifdef HAVE_SYS_SELECT_H
34242#include <sys/select.h>
34243#elif defined(HAVE_UNISTD_H)
34244#include <unistd.h>
34245#endif
34246#ifdef HAVE_SYS_SOCKET_H
34247#include <sys/socket.h>
34248#endif
34249#ifdef HAVE_NETINET_IN_H
34250#include <netinet/in.h>
34251#endif
34252#ifdef HAVE_NETINET_IN6_H
34253#include <netinet/in6.h>
34254#endif
34255#ifdef HAVE_SYS_UN_H
34256#include <sys/un.h>
34257#endif
34258
34259
34260"
34261if test "x$ac_cv_header_utime_h" = xyes
34262then :
34263  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
34264
34265fi
34266ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
34267#ifdef HAVE_SYS_TYPES_H
34268#include <sys/types.h>
34269#endif
34270#ifdef HAVE_SYS_TIME_H
34271#include <sys/time.h>
34272#endif
34273#ifdef HAVE_SYS_SELECT_H
34274#include <sys/select.h>
34275#elif defined(HAVE_UNISTD_H)
34276#include <unistd.h>
34277#endif
34278#ifdef HAVE_SYS_SOCKET_H
34279#include <sys/socket.h>
34280#endif
34281#ifdef HAVE_NETINET_IN_H
34282#include <netinet/in.h>
34283#endif
34284#ifdef HAVE_NETINET_IN6_H
34285#include <netinet/in6.h>
34286#endif
34287#ifdef HAVE_SYS_UN_H
34288#include <sys/un.h>
34289#endif
34290
34291
34292"
34293if test "x$ac_cv_header_sys_utime_h" = xyes
34294then :
34295  printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
34296
34297fi
34298ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
34299#ifdef HAVE_SYS_TYPES_H
34300#include <sys/types.h>
34301#endif
34302#ifdef HAVE_SYS_TIME_H
34303#include <sys/time.h>
34304#endif
34305#ifdef HAVE_SYS_SELECT_H
34306#include <sys/select.h>
34307#elif defined(HAVE_UNISTD_H)
34308#include <unistd.h>
34309#endif
34310#ifdef HAVE_SYS_SOCKET_H
34311#include <sys/socket.h>
34312#endif
34313#ifdef HAVE_NETINET_IN_H
34314#include <netinet/in.h>
34315#endif
34316#ifdef HAVE_NETINET_IN6_H
34317#include <netinet/in6.h>
34318#endif
34319#ifdef HAVE_SYS_UN_H
34320#include <sys/un.h>
34321#endif
34322
34323
34324"
34325if test "x$ac_cv_header_sys_poll_h" = xyes
34326then :
34327  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
34328
34329fi
34330ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
34331#ifdef HAVE_SYS_TYPES_H
34332#include <sys/types.h>
34333#endif
34334#ifdef HAVE_SYS_TIME_H
34335#include <sys/time.h>
34336#endif
34337#ifdef HAVE_SYS_SELECT_H
34338#include <sys/select.h>
34339#elif defined(HAVE_UNISTD_H)
34340#include <unistd.h>
34341#endif
34342#ifdef HAVE_SYS_SOCKET_H
34343#include <sys/socket.h>
34344#endif
34345#ifdef HAVE_NETINET_IN_H
34346#include <netinet/in.h>
34347#endif
34348#ifdef HAVE_NETINET_IN6_H
34349#include <netinet/in6.h>
34350#endif
34351#ifdef HAVE_SYS_UN_H
34352#include <sys/un.h>
34353#endif
34354
34355
34356"
34357if test "x$ac_cv_header_poll_h" = xyes
34358then :
34359  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
34360
34361fi
34362ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
34363#ifdef HAVE_SYS_TYPES_H
34364#include <sys/types.h>
34365#endif
34366#ifdef HAVE_SYS_TIME_H
34367#include <sys/time.h>
34368#endif
34369#ifdef HAVE_SYS_SELECT_H
34370#include <sys/select.h>
34371#elif defined(HAVE_UNISTD_H)
34372#include <unistd.h>
34373#endif
34374#ifdef HAVE_SYS_SOCKET_H
34375#include <sys/socket.h>
34376#endif
34377#ifdef HAVE_NETINET_IN_H
34378#include <netinet/in.h>
34379#endif
34380#ifdef HAVE_NETINET_IN6_H
34381#include <netinet/in6.h>
34382#endif
34383#ifdef HAVE_SYS_UN_H
34384#include <sys/un.h>
34385#endif
34386
34387
34388"
34389if test "x$ac_cv_header_socket_h" = xyes
34390then :
34391  printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
34392
34393fi
34394ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
34395#ifdef HAVE_SYS_TYPES_H
34396#include <sys/types.h>
34397#endif
34398#ifdef HAVE_SYS_TIME_H
34399#include <sys/time.h>
34400#endif
34401#ifdef HAVE_SYS_SELECT_H
34402#include <sys/select.h>
34403#elif defined(HAVE_UNISTD_H)
34404#include <unistd.h>
34405#endif
34406#ifdef HAVE_SYS_SOCKET_H
34407#include <sys/socket.h>
34408#endif
34409#ifdef HAVE_NETINET_IN_H
34410#include <netinet/in.h>
34411#endif
34412#ifdef HAVE_NETINET_IN6_H
34413#include <netinet/in6.h>
34414#endif
34415#ifdef HAVE_SYS_UN_H
34416#include <sys/un.h>
34417#endif
34418
34419
34420"
34421if test "x$ac_cv_header_sys_resource_h" = xyes
34422then :
34423  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
34424
34425fi
34426ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
34427#ifdef HAVE_SYS_TYPES_H
34428#include <sys/types.h>
34429#endif
34430#ifdef HAVE_SYS_TIME_H
34431#include <sys/time.h>
34432#endif
34433#ifdef HAVE_SYS_SELECT_H
34434#include <sys/select.h>
34435#elif defined(HAVE_UNISTD_H)
34436#include <unistd.h>
34437#endif
34438#ifdef HAVE_SYS_SOCKET_H
34439#include <sys/socket.h>
34440#endif
34441#ifdef HAVE_NETINET_IN_H
34442#include <netinet/in.h>
34443#endif
34444#ifdef HAVE_NETINET_IN6_H
34445#include <netinet/in6.h>
34446#endif
34447#ifdef HAVE_SYS_UN_H
34448#include <sys/un.h>
34449#endif
34450
34451
34452"
34453if test "x$ac_cv_header_libgen_h" = xyes
34454then :
34455  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
34456
34457fi
34458ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
34459#ifdef HAVE_SYS_TYPES_H
34460#include <sys/types.h>
34461#endif
34462#ifdef HAVE_SYS_TIME_H
34463#include <sys/time.h>
34464#endif
34465#ifdef HAVE_SYS_SELECT_H
34466#include <sys/select.h>
34467#elif defined(HAVE_UNISTD_H)
34468#include <unistd.h>
34469#endif
34470#ifdef HAVE_SYS_SOCKET_H
34471#include <sys/socket.h>
34472#endif
34473#ifdef HAVE_NETINET_IN_H
34474#include <netinet/in.h>
34475#endif
34476#ifdef HAVE_NETINET_IN6_H
34477#include <netinet/in6.h>
34478#endif
34479#ifdef HAVE_SYS_UN_H
34480#include <sys/un.h>
34481#endif
34482
34483
34484"
34485if test "x$ac_cv_header_locale_h" = xyes
34486then :
34487  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
34488
34489fi
34490ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
34491#ifdef HAVE_SYS_TYPES_H
34492#include <sys/types.h>
34493#endif
34494#ifdef HAVE_SYS_TIME_H
34495#include <sys/time.h>
34496#endif
34497#ifdef HAVE_SYS_SELECT_H
34498#include <sys/select.h>
34499#elif defined(HAVE_UNISTD_H)
34500#include <unistd.h>
34501#endif
34502#ifdef HAVE_SYS_SOCKET_H
34503#include <sys/socket.h>
34504#endif
34505#ifdef HAVE_NETINET_IN_H
34506#include <netinet/in.h>
34507#endif
34508#ifdef HAVE_NETINET_IN6_H
34509#include <netinet/in6.h>
34510#endif
34511#ifdef HAVE_SYS_UN_H
34512#include <sys/un.h>
34513#endif
34514
34515
34516"
34517if test "x$ac_cv_header_stdbool_h" = xyes
34518then :
34519  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
34520
34521fi
34522ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
34523#ifdef HAVE_SYS_TYPES_H
34524#include <sys/types.h>
34525#endif
34526#ifdef HAVE_SYS_TIME_H
34527#include <sys/time.h>
34528#endif
34529#ifdef HAVE_SYS_SELECT_H
34530#include <sys/select.h>
34531#elif defined(HAVE_UNISTD_H)
34532#include <unistd.h>
34533#endif
34534#ifdef HAVE_SYS_SOCKET_H
34535#include <sys/socket.h>
34536#endif
34537#ifdef HAVE_NETINET_IN_H
34538#include <netinet/in.h>
34539#endif
34540#ifdef HAVE_NETINET_IN6_H
34541#include <netinet/in6.h>
34542#endif
34543#ifdef HAVE_SYS_UN_H
34544#include <sys/un.h>
34545#endif
34546
34547
34548"
34549if test "x$ac_cv_header_sys_filio_h" = xyes
34550then :
34551  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
34552
34553fi
34554ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
34555#ifdef HAVE_SYS_TYPES_H
34556#include <sys/types.h>
34557#endif
34558#ifdef HAVE_SYS_TIME_H
34559#include <sys/time.h>
34560#endif
34561#ifdef HAVE_SYS_SELECT_H
34562#include <sys/select.h>
34563#elif defined(HAVE_UNISTD_H)
34564#include <unistd.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_NETINET_IN6_H
34573#include <netinet/in6.h>
34574#endif
34575#ifdef HAVE_SYS_UN_H
34576#include <sys/un.h>
34577#endif
34578
34579
34580"
34581if test "x$ac_cv_header_sys_wait_h" = xyes
34582then :
34583  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
34584
34585fi
34586ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
34587#ifdef HAVE_SYS_TYPES_H
34588#include <sys/types.h>
34589#endif
34590#ifdef HAVE_SYS_TIME_H
34591#include <sys/time.h>
34592#endif
34593#ifdef HAVE_SYS_SELECT_H
34594#include <sys/select.h>
34595#elif defined(HAVE_UNISTD_H)
34596#include <unistd.h>
34597#endif
34598#ifdef HAVE_SYS_SOCKET_H
34599#include <sys/socket.h>
34600#endif
34601#ifdef HAVE_NETINET_IN_H
34602#include <netinet/in.h>
34603#endif
34604#ifdef HAVE_NETINET_IN6_H
34605#include <netinet/in6.h>
34606#endif
34607#ifdef HAVE_SYS_UN_H
34608#include <sys/un.h>
34609#endif
34610
34611
34612"
34613if test "x$ac_cv_header_setjmp_h" = xyes
34614then :
34615  printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
34616
34617fi
34618
34619
34620
34621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
34622printf %s "checking for an ANSI C-conforming const... " >&6; }
34623if test ${ac_cv_c_const+y}
34624then :
34625  printf %s "(cached) " >&6
34626else $as_nop
34627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34628/* end confdefs.h.  */
34629
34630int main (void)
34631{
34632
34633#ifndef __cplusplus
34634  /* Ultrix mips cc rejects this sort of thing.  */
34635  typedef int charset[2];
34636  const charset cs = { 0, 0 };
34637  /* SunOS 4.1.1 cc rejects this.  */
34638  char const *const *pcpcc;
34639  char **ppc;
34640  /* NEC SVR4.0.2 mips cc rejects this.  */
34641  struct point {int x, y;};
34642  static struct point const zero = {0,0};
34643  /* IBM XL C 1.02.0.0 rejects this.
34644     It does not let you subtract one const X* pointer from another in
34645     an arm of an if-expression whose if-part is not a constant
34646     expression */
34647  const char *g = "string";
34648  pcpcc = &g + (g ? g-g : 0);
34649  /* HPUX 7.0 cc rejects these. */
34650  ++pcpcc;
34651  ppc = (char**) pcpcc;
34652  pcpcc = (char const *const *) ppc;
34653  { /* SCO 3.2v4 cc rejects this sort of thing.  */
34654    char tx;
34655    char *t = &tx;
34656    char const *s = 0 ? (char *) 0 : (char const *) 0;
34657
34658    *t++ = 0;
34659    if (s) return 0;
34660  }
34661  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34662    int x[] = {25, 17};
34663    const int *foo = &x[0];
34664    ++foo;
34665  }
34666  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34667    typedef const int *iptr;
34668    iptr p = 0;
34669    ++p;
34670  }
34671  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
34672       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34673    struct s { int j; const int *ap[3]; } bx;
34674    struct s *b = &bx; b->j = 5;
34675  }
34676  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34677    const int foo = 10;
34678    if (!foo) return 0;
34679  }
34680  return !cs[0] && !zero.x;
34681#endif
34682
34683 ;
34684 return 0;
34685}
34686_ACEOF
34687if ac_fn_c_try_compile "$LINENO"
34688then :
34689  ac_cv_c_const=yes
34690else $as_nop
34691  ac_cv_c_const=no
34692fi
34693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34694fi
34695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
34696printf "%s\n" "$ac_cv_c_const" >&6; }
34697if test $ac_cv_c_const = no; then
34698
34699printf "%s\n" "#define const /**/" >>confdefs.h
34700
34701fi
34702
34703ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
34704if test "x$ac_cv_type_size_t" = xyes
34705then :
34706
34707else $as_nop
34708
34709printf "%s\n" "#define size_t unsigned int" >>confdefs.h
34710
34711fi
34712
34713
34714
34715    ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34716if test "x$ac_cv_header_sys_types_h" = xyes
34717then :
34718  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34719
34720fi
34721ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
34722if test "x$ac_cv_header_sys_time_h" = xyes
34723then :
34724  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
34725
34726fi
34727ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34728if test "x$ac_cv_header_sys_socket_h" = xyes
34729then :
34730  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34731
34732fi
34733
34734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
34735printf %s "checking for struct timeval... " >&6; }
34736if test ${curl_cv_struct_timeval+y}
34737then :
34738  printf %s "(cached) " >&6
34739else $as_nop
34740
34741    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34742/* end confdefs.h.  */
34743
34744
34745#undef inline
34746#ifdef _WIN32
34747#ifndef WIN32_LEAN_AND_MEAN
34748#define WIN32_LEAN_AND_MEAN
34749#endif
34750#include <winsock2.h>
34751#endif
34752#ifdef HAVE_SYS_TYPES_H
34753#include <sys/types.h>
34754#endif
34755#ifdef HAVE_SYS_TIME_H
34756#include <sys/time.h>
34757#endif
34758#include <time.h>
34759#ifdef HAVE_SYS_SOCKET_H
34760#include <sys/socket.h>
34761#endif
34762
34763int main (void)
34764{
34765
34766        struct timeval ts;
34767        ts.tv_sec  = 0;
34768        ts.tv_usec = 0;
34769
34770 ;
34771 return 0;
34772}
34773
34774_ACEOF
34775if ac_fn_c_try_compile "$LINENO"
34776then :
34777
34778      curl_cv_struct_timeval="yes"
34779
34780else $as_nop
34781
34782      curl_cv_struct_timeval="no"
34783
34784fi
34785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34786
34787fi
34788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
34789printf "%s\n" "$curl_cv_struct_timeval" >&6; }
34790  case "$curl_cv_struct_timeval" in
34791    yes)
34792
34793printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
34794
34795      ;;
34796  esac
34797
34798
34799
34800    if test "x$cross_compiling" != xyes; then
34801
34802            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
34803printf %s "checking run-time libs availability... " >&6; }
34804
34805   case $host_os in
34806     darwin*)
34807      if test "$cross_compiling" = yes
34808then :
34809  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34810printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34811as_fn_error $? "cannot run test program while cross compiling
34812See \`config.log' for more details" "$LINENO" 5; }
34813else $as_nop
34814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34815/* end confdefs.h.  */
34816
34817int main()
34818{
34819  return 0;
34820}
34821
34822_ACEOF
34823if ac_fn_c_try_run "$LINENO"
34824then :
34825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34826printf "%s\n" "fine" >&6; }
34827else $as_nop
34828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34829printf "%s\n" "failed" >&6; }
34830    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34831
34832fi
34833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34834  conftest.$ac_objext conftest.beam conftest.$ac_ext
34835fi
34836
34837     ;;
34838     *)
34839      oldcc=$CC
34840      old=$LD_LIBRARY_PATH
34841      CC="sh ./run-compiler"
34842      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34843      export LD_LIBRARY_PATH
34844      if test "$cross_compiling" = yes
34845then :
34846  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34847printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34848as_fn_error $? "cannot run test program while cross compiling
34849See \`config.log' for more details" "$LINENO" 5; }
34850else $as_nop
34851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34852/* end confdefs.h.  */
34853
34854int main()
34855{
34856  return 0;
34857}
34858
34859_ACEOF
34860if ac_fn_c_try_run "$LINENO"
34861then :
34862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34863printf "%s\n" "fine" >&6; }
34864else $as_nop
34865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34866printf "%s\n" "failed" >&6; }
34867    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34868
34869fi
34870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34871  conftest.$ac_objext conftest.beam conftest.$ac_ext
34872fi
34873
34874      LD_LIBRARY_PATH=$old # restore
34875      CC=$oldcc
34876     ;;
34877   esac
34878
34879
34880      fi
34881
34882
34883
34884
34885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34886printf %s "checking size of size_t... " >&6; }
34887  r=0
34888    for typesize in 8 4 2 16 1; do
34889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34890/* end confdefs.h.  */
34891
34892#include <sys/types.h>
34893
34894
34895int main (void)
34896{
34897switch(0) {
34898       case 0:
34899       case (sizeof(size_t) == $typesize):;
34900     }
34901
34902 ;
34903 return 0;
34904}
34905_ACEOF
34906if ac_fn_c_try_compile "$LINENO"
34907then :
34908
34909       r=$typesize
34910else $as_nop
34911
34912       r=0
34913fi
34914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34915        if test $r -gt 0; then
34916      break;
34917    fi
34918  done
34919  if test $r -eq 0; then
34920    as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
34921  fi
34922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34923printf "%s\n" "$r" >&6; }
34924    tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
34925  eval "$tname=$r"
34926
34927
34928printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
34929
34930
34931
34932
34933
34934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34935printf %s "checking size of long... " >&6; }
34936  r=0
34937    for typesize in 8 4 2 16 1; do
34938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34939/* end confdefs.h.  */
34940
34941#include <sys/types.h>
34942
34943
34944int main (void)
34945{
34946switch(0) {
34947       case 0:
34948       case (sizeof(long) == $typesize):;
34949     }
34950
34951 ;
34952 return 0;
34953}
34954_ACEOF
34955if ac_fn_c_try_compile "$LINENO"
34956then :
34957
34958       r=$typesize
34959else $as_nop
34960
34961       r=0
34962fi
34963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34964        if test $r -gt 0; then
34965      break;
34966    fi
34967  done
34968  if test $r -eq 0; then
34969    as_fn_error $? "Failed to find size of long" "$LINENO" 5
34970  fi
34971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34972printf "%s\n" "$r" >&6; }
34973    tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
34974  eval "$tname=$r"
34975
34976
34977printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
34978
34979
34980
34981
34982
34983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34984printf %s "checking size of int... " >&6; }
34985  r=0
34986    for typesize in 8 4 2 16 1; do
34987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34988/* end confdefs.h.  */
34989
34990#include <sys/types.h>
34991
34992
34993int main (void)
34994{
34995switch(0) {
34996       case 0:
34997       case (sizeof(int) == $typesize):;
34998     }
34999
35000 ;
35001 return 0;
35002}
35003_ACEOF
35004if ac_fn_c_try_compile "$LINENO"
35005then :
35006
35007       r=$typesize
35008else $as_nop
35009
35010       r=0
35011fi
35012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35013        if test $r -gt 0; then
35014      break;
35015    fi
35016  done
35017  if test $r -eq 0; then
35018    as_fn_error $? "Failed to find size of int" "$LINENO" 5
35019  fi
35020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
35021printf "%s\n" "$r" >&6; }
35022    tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
35023  eval "$tname=$r"
35024
35025
35026printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
35027
35028
35029
35030
35031
35032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
35033printf %s "checking size of time_t... " >&6; }
35034  r=0
35035    for typesize in 8 4 2 16 1; do
35036     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35037/* end confdefs.h.  */
35038
35039#include <sys/types.h>
35040
35041
35042int main (void)
35043{
35044switch(0) {
35045       case 0:
35046       case (sizeof(time_t) == $typesize):;
35047     }
35048
35049 ;
35050 return 0;
35051}
35052_ACEOF
35053if ac_fn_c_try_compile "$LINENO"
35054then :
35055
35056       r=$typesize
35057else $as_nop
35058
35059       r=0
35060fi
35061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35062        if test $r -gt 0; then
35063      break;
35064    fi
35065  done
35066  if test $r -eq 0; then
35067    as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
35068  fi
35069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
35070printf "%s\n" "$r" >&6; }
35071    tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
35072  eval "$tname=$r"
35073
35074
35075printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
35076
35077
35078
35079
35080
35081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
35082printf %s "checking size of off_t... " >&6; }
35083  r=0
35084    for typesize in 8 4 2 16 1; do
35085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35086/* end confdefs.h.  */
35087
35088#include <sys/types.h>
35089
35090
35091int main (void)
35092{
35093switch(0) {
35094       case 0:
35095       case (sizeof(off_t) == $typesize):;
35096     }
35097
35098 ;
35099 return 0;
35100}
35101_ACEOF
35102if ac_fn_c_try_compile "$LINENO"
35103then :
35104
35105       r=$typesize
35106else $as_nop
35107
35108       r=0
35109fi
35110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35111        if test $r -gt 0; then
35112      break;
35113    fi
35114  done
35115  if test $r -eq 0; then
35116    as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
35117  fi
35118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
35119printf "%s\n" "$r" >&6; }
35120    tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
35121  eval "$tname=$r"
35122
35123
35124printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
35125
35126
35127
35128
35129o=$CPPFLAGS
35130CPPFLAGS="-I$srcdir/include $CPPFLAGS"
35131
35132
35133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
35134printf %s "checking size of curl_off_t... " >&6; }
35135  r=0
35136    for typesize in 8 4 2 16 1; do
35137     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35138/* end confdefs.h.  */
35139
35140#include <sys/types.h>
35141
35142#include <curl/system.h>
35143
35144
35145int main (void)
35146{
35147switch(0) {
35148       case 0:
35149       case (sizeof(curl_off_t) == $typesize):;
35150     }
35151
35152 ;
35153 return 0;
35154}
35155_ACEOF
35156if ac_fn_c_try_compile "$LINENO"
35157then :
35158
35159       r=$typesize
35160else $as_nop
35161
35162       r=0
35163fi
35164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35165        if test $r -gt 0; then
35166      break;
35167    fi
35168  done
35169  if test $r -eq 0; then
35170    as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
35171  fi
35172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
35173printf "%s\n" "$r" >&6; }
35174    tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
35175  eval "$tname=$r"
35176
35177
35178printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
35179
35180
35181
35182
35183
35184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_socket_t" >&5
35185printf %s "checking size of curl_socket_t... " >&6; }
35186  r=0
35187    for typesize in 8 4 2 16 1; do
35188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35189/* end confdefs.h.  */
35190
35191#include <sys/types.h>
35192
35193#include <curl/curl.h>
35194
35195
35196int main (void)
35197{
35198switch(0) {
35199       case 0:
35200       case (sizeof(curl_socket_t) == $typesize):;
35201     }
35202
35203 ;
35204 return 0;
35205}
35206_ACEOF
35207if ac_fn_c_try_compile "$LINENO"
35208then :
35209
35210       r=$typesize
35211else $as_nop
35212
35213       r=0
35214fi
35215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35216        if test $r -gt 0; then
35217      break;
35218    fi
35219  done
35220  if test $r -eq 0; then
35221    as_fn_error $? "Failed to find size of curl_socket_t" "$LINENO" 5
35222  fi
35223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
35224printf "%s\n" "$r" >&6; }
35225    tname=$(echo "ac_cv_sizeof_curl_socket_t" | tr A-Z a-z | tr " " "_")
35226  eval "$tname=$r"
35227
35228
35229printf "%s\n" "#define SIZEOF_CURL_SOCKET_T $r" >>confdefs.h
35230
35231
35232
35233CPPFLAGS=$o
35234
35235ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
35236if test "x$ac_cv_type_long_long" = xyes
35237then :
35238
35239printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
35240
35241   longlong="yes"
35242
35243fi
35244
35245
35246if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
35247  as_fn_error $? "64 bit curl_off_t is required" "$LINENO" 5
35248fi
35249
35250# check for ssize_t
35251ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
35252if test "x$ac_cv_type_ssize_t" = xyes
35253then :
35254
35255else $as_nop
35256
35257printf "%s\n" "#define ssize_t int" >>confdefs.h
35258
35259fi
35260
35261
35262# check for bool type
35263ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
35264#ifdef HAVE_SYS_TYPES_H
35265#include <sys/types.h>
35266#endif
35267#ifdef HAVE_STDBOOL_H
35268#include <stdbool.h>
35269#endif
35270
35271"
35272if test "x$ac_cv_type_bool" = xyes
35273then :
35274
35275
35276printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
35277
35278
35279fi
35280
35281
35282# check for sa_family_t
35283ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
35284#ifdef HAVE_SYS_SOCKET_H
35285#include <sys/socket.h>
35286#endif
35287
35288"
35289if test "x$ac_cv_type_sa_family_t" = xyes
35290then :
35291
35292printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
35293
35294else $as_nop
35295
35296   # The windows name?
35297   ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
35298#ifdef _WIN32
35299#ifndef WIN32_LEAN_AND_MEAN
35300#define WIN32_LEAN_AND_MEAN
35301#endif
35302#include <winsock2.h>
35303#endif
35304#ifdef HAVE_SYS_SOCKET_H
35305#include <sys/socket.h>
35306#endif
35307
35308"
35309if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
35310then :
35311
35312printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
35313
35314else $as_nop
35315
35316printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
35317
35318fi
35319
35320
35321fi
35322
35323
35324# check for suseconds_t
35325ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
35326#ifdef HAVE_SYS_TYPES_H
35327#include <sys/types.h>
35328#endif
35329#ifdef HAVE_SYS_TIME_H
35330#include <sys/time.h>
35331#endif
35332
35333"
35334if test "x$ac_cv_type_suseconds_t" = xyes
35335then :
35336
35337
35338printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
35339
35340
35341fi
35342
35343
35344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
35345printf %s "checking if time_t is unsigned... " >&6; }
35346
35347   case $host_os in
35348     darwin*)
35349      if test "$cross_compiling" = yes
35350then :
35351    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35352printf "%s\n" "no" >&6; }
35353
35354else $as_nop
35355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35356/* end confdefs.h.  */
35357
35358  #include <time.h>
35359  #include <limits.h>
35360  int main(void) {
35361    time_t t = -1;
35362    return (t < 0);
35363  }
35364
35365_ACEOF
35366if ac_fn_c_try_run "$LINENO"
35367then :
35368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35369printf "%s\n" "yes" >&6; }
35370
35371printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
35372
35373
35374else $as_nop
35375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35376printf "%s\n" "no" >&6; }
35377
35378fi
35379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35380  conftest.$ac_objext conftest.beam conftest.$ac_ext
35381fi
35382
35383     ;;
35384     *)
35385      oldcc=$CC
35386      old=$LD_LIBRARY_PATH
35387      CC="sh ./run-compiler"
35388      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35389      export LD_LIBRARY_PATH
35390      if test "$cross_compiling" = yes
35391then :
35392    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35393printf "%s\n" "no" >&6; }
35394
35395else $as_nop
35396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35397/* end confdefs.h.  */
35398
35399  #include <time.h>
35400  #include <limits.h>
35401  int main(void) {
35402    time_t t = -1;
35403    return (t < 0);
35404  }
35405
35406_ACEOF
35407if ac_fn_c_try_run "$LINENO"
35408then :
35409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35410printf "%s\n" "yes" >&6; }
35411
35412printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
35413
35414
35415else $as_nop
35416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35417printf "%s\n" "no" >&6; }
35418
35419fi
35420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35421  conftest.$ac_objext conftest.beam conftest.$ac_ext
35422fi
35423
35424      LD_LIBRARY_PATH=$old # restore
35425      CC=$oldcc
35426     ;;
35427   esac
35428
35429
35430
35431  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
35432#undef inline
35433#ifdef _WIN32
35434#ifndef WIN32_LEAN_AND_MEAN
35435#define WIN32_LEAN_AND_MEAN
35436#endif
35437#include <winsock2.h>
35438#else
35439#ifdef HAVE_SYS_TYPES_H
35440#include <sys/types.h>
35441#endif
35442#ifdef HAVE_SYS_SOCKET_H
35443#include <sys/socket.h>
35444#endif
35445#ifdef HAVE_NETINET_IN_H
35446#include <netinet/in.h>
35447#endif
35448#ifdef HAVE_ARPA_INET_H
35449#include <arpa/inet.h>
35450#endif
35451#endif
35452
35453"
35454if test "x$ac_cv_type_in_addr_t" = xyes
35455then :
35456
35457else $as_nop
35458
35459        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
35460printf %s "checking for in_addr_t equivalent... " >&6; }
35461if test ${curl_cv_in_addr_t_equiv+y}
35462then :
35463  printf %s "(cached) " >&6
35464else $as_nop
35465
35466      curl_cv_in_addr_t_equiv="unknown"
35467      for t in "unsigned long" int size_t unsigned long; do
35468        if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
35469          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35470/* end confdefs.h.  */
35471
35472
35473#undef inline
35474#ifdef _WIN32
35475#ifndef WIN32_LEAN_AND_MEAN
35476#define WIN32_LEAN_AND_MEAN
35477#endif
35478#include <winsock2.h>
35479#else
35480#ifdef HAVE_SYS_TYPES_H
35481#include <sys/types.h>
35482#endif
35483#ifdef HAVE_SYS_SOCKET_H
35484#include <sys/socket.h>
35485#endif
35486#ifdef HAVE_NETINET_IN_H
35487#include <netinet/in.h>
35488#endif
35489#ifdef HAVE_ARPA_INET_H
35490#include <arpa/inet.h>
35491#endif
35492#endif
35493
35494int main (void)
35495{
35496
35497              $t data = inet_addr ("1.2.3.4");
35498
35499 ;
35500 return 0;
35501}
35502
35503_ACEOF
35504if ac_fn_c_try_link "$LINENO"
35505then :
35506
35507            curl_cv_in_addr_t_equiv="$t"
35508
35509fi
35510rm -f core conftest.err conftest.$ac_objext conftest.beam \
35511    conftest$ac_exeext conftest.$ac_ext
35512        fi
35513      done
35514
35515fi
35516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
35517printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
35518    case "$curl_cv_in_addr_t_equiv" in
35519      unknown)
35520        as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
35521        ;;
35522      *)
35523
35524printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
35525
35526        ;;
35527    esac
35528
35529fi
35530
35531
35532
35533
35534   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
35535#undef inline
35536#ifdef _WIN32
35537#ifndef WIN32_LEAN_AND_MEAN
35538#define WIN32_LEAN_AND_MEAN
35539#endif
35540#include <winsock2.h>
35541#else
35542#ifdef HAVE_SYS_TYPES_H
35543#include <sys/types.h>
35544#endif
35545#ifdef HAVE_SYS_SOCKET_H
35546#include <sys/socket.h>
35547#endif
35548#ifdef HAVE_NETINET_IN_H
35549#include <netinet/in.h>
35550#endif
35551#ifdef HAVE_ARPA_INET_H
35552#include <arpa/inet.h>
35553#endif
35554#endif
35555
35556"
35557if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
35558then :
35559
35560printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35561
35562fi
35563
35564
35565
35566
35567      ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
35568if test "x$ac_cv_header_sys_select_h" = xyes
35569then :
35570  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
35571
35572fi
35573ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35574if test "x$ac_cv_header_sys_socket_h" = xyes
35575then :
35576  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35577
35578fi
35579
35580  #
35581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
35582printf %s "checking for select... " >&6; }
35583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35584/* end confdefs.h.  */
35585
35586
35587#undef inline
35588#ifdef _WIN32
35589#ifndef WIN32_LEAN_AND_MEAN
35590#define WIN32_LEAN_AND_MEAN
35591#endif
35592#include <winsock2.h>
35593#endif
35594#ifdef HAVE_SYS_TYPES_H
35595#include <sys/types.h>
35596#endif
35597#ifdef HAVE_SYS_TIME_H
35598#include <sys/time.h>
35599#endif
35600#include <time.h>
35601#ifndef _WIN32
35602#ifdef HAVE_SYS_SELECT_H
35603#include <sys/select.h>
35604#elif defined(HAVE_UNISTD_H)
35605#include <unistd.h>
35606#endif
35607#ifdef HAVE_SYS_SOCKET_H
35608#include <sys/socket.h>
35609#endif
35610$curl_includes_bsdsocket
35611#endif
35612
35613int main (void)
35614{
35615
35616      select(0, 0, 0, 0, 0);
35617
35618 ;
35619 return 0;
35620}
35621
35622_ACEOF
35623if ac_fn_c_try_link "$LINENO"
35624then :
35625
35626    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35627printf "%s\n" "yes" >&6; }
35628    curl_cv_select="yes"
35629
35630else $as_nop
35631
35632    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35633printf "%s\n" "no" >&6; }
35634    curl_cv_select="no"
35635
35636fi
35637rm -f core conftest.err conftest.$ac_objext conftest.beam \
35638    conftest$ac_exeext conftest.$ac_ext
35639  #
35640  if test "$curl_cv_select" = "yes"; then
35641
35642printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
35643
35644    curl_cv_func_select="yes"
35645  fi
35646
35647
35648
35649      ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35650if test "x$ac_cv_header_sys_types_h" = xyes
35651then :
35652  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35653
35654fi
35655ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35656if test "x$ac_cv_header_sys_socket_h" = xyes
35657then :
35658  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35659
35660fi
35661
35662  #
35663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
35664printf %s "checking for recv... " >&6; }
35665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35666/* end confdefs.h.  */
35667
35668
35669#undef inline
35670#ifdef _WIN32
35671#ifndef WIN32_LEAN_AND_MEAN
35672#define WIN32_LEAN_AND_MEAN
35673#endif
35674#include <winsock2.h>
35675#else
35676$curl_includes_bsdsocket
35677#ifdef HAVE_SYS_TYPES_H
35678#include <sys/types.h>
35679#endif
35680#ifdef HAVE_SYS_SOCKET_H
35681#include <sys/socket.h>
35682#endif
35683#endif
35684
35685int main (void)
35686{
35687
35688      recv(0, 0, 0, 0);
35689
35690 ;
35691 return 0;
35692}
35693
35694_ACEOF
35695if ac_fn_c_try_link "$LINENO"
35696then :
35697
35698    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35699printf "%s\n" "yes" >&6; }
35700    curl_cv_recv="yes"
35701
35702else $as_nop
35703
35704    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35705printf "%s\n" "no" >&6; }
35706    curl_cv_recv="no"
35707
35708fi
35709rm -f core conftest.err conftest.$ac_objext conftest.beam \
35710    conftest$ac_exeext conftest.$ac_ext
35711  #
35712  if test "$curl_cv_recv" = "yes"; then
35713
35714printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
35715
35716      curl_cv_func_recv="yes"
35717  else
35718    as_fn_error $? "Unable to link function recv" "$LINENO" 5
35719  fi
35720
35721
35722      ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35723if test "x$ac_cv_header_sys_types_h" = xyes
35724then :
35725  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35726
35727fi
35728ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35729if test "x$ac_cv_header_sys_socket_h" = xyes
35730then :
35731  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35732
35733fi
35734
35735  #
35736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35737printf %s "checking for send... " >&6; }
35738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35739/* end confdefs.h.  */
35740
35741
35742#undef inline
35743#ifdef _WIN32
35744#ifndef WIN32_LEAN_AND_MEAN
35745#define WIN32_LEAN_AND_MEAN
35746#endif
35747#include <winsock2.h>
35748#else
35749$curl_includes_bsdsocket
35750#ifdef HAVE_SYS_TYPES_H
35751#include <sys/types.h>
35752#endif
35753#ifdef HAVE_SYS_SOCKET_H
35754#include <sys/socket.h>
35755#endif
35756#endif
35757
35758int main (void)
35759{
35760
35761      send(0, 0, 0, 0);
35762
35763 ;
35764 return 0;
35765}
35766
35767_ACEOF
35768if ac_fn_c_try_link "$LINENO"
35769then :
35770
35771    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35772printf "%s\n" "yes" >&6; }
35773    curl_cv_send="yes"
35774
35775else $as_nop
35776
35777    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35778printf "%s\n" "no" >&6; }
35779    curl_cv_send="no"
35780
35781fi
35782rm -f core conftest.err conftest.$ac_objext conftest.beam \
35783    conftest$ac_exeext conftest.$ac_ext
35784  #
35785  if test "$curl_cv_send" = "yes"; then
35786
35787printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35788
35789    curl_cv_func_send="yes"
35790  else
35791    as_fn_error $? "Unable to link function send" "$LINENO" 5
35792  fi
35793
35794
35795  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35796if test "x$ac_cv_header_sys_types_h" = xyes
35797then :
35798  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35799
35800fi
35801ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35802if test "x$ac_cv_header_sys_socket_h" = xyes
35803then :
35804  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35805
35806fi
35807
35808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35809printf %s "checking for MSG_NOSIGNAL... " >&6; }
35810if test ${curl_cv_msg_nosignal+y}
35811then :
35812  printf %s "(cached) " >&6
35813else $as_nop
35814
35815    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35816/* end confdefs.h.  */
35817
35818
35819#undef inline
35820#ifdef _WIN32
35821#ifndef WIN32_LEAN_AND_MEAN
35822#define WIN32_LEAN_AND_MEAN
35823#endif
35824#include <winsock2.h>
35825#else
35826#ifdef HAVE_SYS_TYPES_H
35827#include <sys/types.h>
35828#endif
35829#ifdef HAVE_SYS_SOCKET_H
35830#include <sys/socket.h>
35831#endif
35832#endif
35833
35834int main (void)
35835{
35836
35837        int flag=MSG_NOSIGNAL;
35838
35839 ;
35840 return 0;
35841}
35842
35843_ACEOF
35844if ac_fn_c_try_compile "$LINENO"
35845then :
35846
35847      curl_cv_msg_nosignal="yes"
35848
35849else $as_nop
35850
35851      curl_cv_msg_nosignal="no"
35852
35853fi
35854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35855
35856fi
35857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35858printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35859  case "$curl_cv_msg_nosignal" in
35860    yes)
35861
35862printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35863
35864      ;;
35865  esac
35866
35867
35868
35869curl_includes_unistd="\
35870/* includes start */
35871#ifdef HAVE_SYS_TYPES_H
35872#  include <sys/types.h>
35873#endif
35874#ifdef HAVE_UNISTD_H
35875#  include <unistd.h>
35876#endif
35877/* includes end */"
35878  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35879"
35880if test "x$ac_cv_header_sys_types_h" = xyes
35881then :
35882  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35883
35884fi
35885ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35886"
35887if test "x$ac_cv_header_unistd_h" = xyes
35888then :
35889  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35890
35891fi
35892
35893
35894
35895    #
35896  tst_links_alarm="unknown"
35897  tst_proto_alarm="unknown"
35898  tst_compi_alarm="unknown"
35899  tst_allow_alarm="unknown"
35900  #
35901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35902printf %s "checking if alarm can be linked... " >&6; }
35903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35904/* end confdefs.h.  */
35905
35906
35907#define alarm innocuous_alarm
35908#ifdef __STDC__
35909# include <limits.h>
35910#else
35911# include <assert.h>
35912#endif
35913#undef alarm
35914#ifdef __cplusplus
35915extern "C"
35916#endif
35917char alarm ();
35918#if defined __stub_alarm || defined __stub___alarm
35919choke me
35920#endif
35921
35922int main (void)
35923{
35924return alarm ();
35925 ;
35926 return 0;
35927}
35928
35929_ACEOF
35930if ac_fn_c_try_link "$LINENO"
35931then :
35932
35933    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35934printf "%s\n" "yes" >&6; }
35935    tst_links_alarm="yes"
35936
35937else $as_nop
35938
35939    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35940printf "%s\n" "no" >&6; }
35941    tst_links_alarm="no"
35942
35943fi
35944rm -f core conftest.err conftest.$ac_objext conftest.beam \
35945    conftest$ac_exeext conftest.$ac_ext
35946  #
35947  if test "$tst_links_alarm" = "yes"; then
35948    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35949printf %s "checking if alarm is prototyped... " >&6; }
35950    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35951/* end confdefs.h.  */
35952
35953      $curl_includes_unistd
35954
35955_ACEOF
35956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35957  $EGREP "alarm" >/dev/null 2>&1
35958then :
35959
35960      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35961printf "%s\n" "yes" >&6; }
35962      tst_proto_alarm="yes"
35963
35964else $as_nop
35965
35966      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35967printf "%s\n" "no" >&6; }
35968      tst_proto_alarm="no"
35969
35970fi
35971rm -rf conftest*
35972
35973  fi
35974  #
35975  if test "$tst_proto_alarm" = "yes"; then
35976    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35977printf %s "checking if alarm is compilable... " >&6; }
35978    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35979/* end confdefs.h.  */
35980
35981
35982        $curl_includes_unistd
35983
35984int main (void)
35985{
35986
35987        if(0 != alarm(0))
35988          return 1;
35989
35990 ;
35991 return 0;
35992}
35993
35994_ACEOF
35995if ac_fn_c_try_compile "$LINENO"
35996then :
35997
35998      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35999printf "%s\n" "yes" >&6; }
36000      tst_compi_alarm="yes"
36001
36002else $as_nop
36003
36004      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36005printf "%s\n" "no" >&6; }
36006      tst_compi_alarm="no"
36007
36008fi
36009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36010  fi
36011  #
36012  if test "$tst_compi_alarm" = "yes"; then
36013    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
36014printf %s "checking if alarm usage allowed... " >&6; }
36015    if test "x$curl_disallow_alarm" != "xyes"; then
36016      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36017printf "%s\n" "yes" >&6; }
36018      tst_allow_alarm="yes"
36019    else
36020      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36021printf "%s\n" "no" >&6; }
36022      tst_allow_alarm="no"
36023    fi
36024  fi
36025  #
36026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
36027printf %s "checking if alarm might be used... " >&6; }
36028  if test "$tst_links_alarm" = "yes" &&
36029     test "$tst_proto_alarm" = "yes" &&
36030     test "$tst_compi_alarm" = "yes" &&
36031     test "$tst_allow_alarm" = "yes"; then
36032    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36033printf "%s\n" "yes" >&6; }
36034
36035printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
36036
36037    curl_cv_func_alarm="yes"
36038  else
36039    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36040printf "%s\n" "no" >&6; }
36041    curl_cv_func_alarm="no"
36042  fi
36043
36044
36045curl_includes_string="\
36046/* includes start */
36047#ifdef HAVE_SYS_TYPES_H
36048#  include <sys/types.h>
36049#endif
36050#include <string.h>
36051#ifdef HAVE_STRINGS_H
36052#  include <strings.h>
36053#endif
36054/* includes end */"
36055  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
36056"
36057if test "x$ac_cv_header_sys_types_h" = xyes
36058then :
36059  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36060
36061fi
36062ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
36063"
36064if test "x$ac_cv_header_strings_h" = xyes
36065then :
36066  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
36067
36068fi
36069
36070
36071
36072curl_includes_libgen="\
36073/* includes start */
36074#ifdef HAVE_SYS_TYPES_H
36075#  include <sys/types.h>
36076#endif
36077#ifdef HAVE_LIBGEN_H
36078#  include <libgen.h>
36079#endif
36080/* includes end */"
36081  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
36082"
36083if test "x$ac_cv_header_sys_types_h" = xyes
36084then :
36085  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36086
36087fi
36088ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
36089"
36090if test "x$ac_cv_header_libgen_h" = xyes
36091then :
36092  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
36093
36094fi
36095
36096
36097
36098        #
36099  tst_links_basename="unknown"
36100  tst_proto_basename="unknown"
36101  tst_compi_basename="unknown"
36102  tst_allow_basename="unknown"
36103  #
36104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
36105printf %s "checking if basename can be linked... " >&6; }
36106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36107/* end confdefs.h.  */
36108
36109
36110#define basename innocuous_basename
36111#ifdef __STDC__
36112# include <limits.h>
36113#else
36114# include <assert.h>
36115#endif
36116#undef basename
36117#ifdef __cplusplus
36118extern "C"
36119#endif
36120char basename ();
36121#if defined __stub_basename || defined __stub___basename
36122choke me
36123#endif
36124
36125int main (void)
36126{
36127return basename ();
36128 ;
36129 return 0;
36130}
36131
36132_ACEOF
36133if ac_fn_c_try_link "$LINENO"
36134then :
36135
36136    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36137printf "%s\n" "yes" >&6; }
36138    tst_links_basename="yes"
36139
36140else $as_nop
36141
36142    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36143printf "%s\n" "no" >&6; }
36144    tst_links_basename="no"
36145
36146fi
36147rm -f core conftest.err conftest.$ac_objext conftest.beam \
36148    conftest$ac_exeext conftest.$ac_ext
36149  #
36150  if test "$tst_links_basename" = "yes"; then
36151    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
36152printf %s "checking if basename is prototyped... " >&6; }
36153    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36154/* end confdefs.h.  */
36155
36156      $curl_includes_string
36157      $curl_includes_libgen
36158      $curl_includes_unistd
36159
36160_ACEOF
36161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36162  $EGREP "basename" >/dev/null 2>&1
36163then :
36164
36165      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36166printf "%s\n" "yes" >&6; }
36167      tst_proto_basename="yes"
36168
36169else $as_nop
36170
36171      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36172printf "%s\n" "no" >&6; }
36173      tst_proto_basename="no"
36174
36175fi
36176rm -rf conftest*
36177
36178  fi
36179  #
36180  if test "$tst_proto_basename" = "yes"; then
36181    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
36182printf %s "checking if basename is compilable... " >&6; }
36183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36184/* end confdefs.h.  */
36185
36186
36187        $curl_includes_string
36188        $curl_includes_libgen
36189        $curl_includes_unistd
36190
36191int main (void)
36192{
36193
36194        if(0 != basename(0))
36195          return 1;
36196
36197 ;
36198 return 0;
36199}
36200
36201_ACEOF
36202if ac_fn_c_try_compile "$LINENO"
36203then :
36204
36205      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36206printf "%s\n" "yes" >&6; }
36207      tst_compi_basename="yes"
36208
36209else $as_nop
36210
36211      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36212printf "%s\n" "no" >&6; }
36213      tst_compi_basename="no"
36214
36215fi
36216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36217  fi
36218  #
36219  if test "$tst_compi_basename" = "yes"; then
36220    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
36221printf %s "checking if basename usage allowed... " >&6; }
36222    if test "x$curl_disallow_basename" != "xyes"; then
36223      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36224printf "%s\n" "yes" >&6; }
36225      tst_allow_basename="yes"
36226    else
36227      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36228printf "%s\n" "no" >&6; }
36229      tst_allow_basename="no"
36230    fi
36231  fi
36232  #
36233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
36234printf %s "checking if basename might be used... " >&6; }
36235  if test "$tst_links_basename" = "yes" &&
36236     test "$tst_proto_basename" = "yes" &&
36237     test "$tst_compi_basename" = "yes" &&
36238     test "$tst_allow_basename" = "yes"; then
36239    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36240printf "%s\n" "yes" >&6; }
36241
36242printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
36243
36244    curl_cv_func_basename="yes"
36245  else
36246    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36247printf "%s\n" "no" >&6; }
36248    curl_cv_func_basename="no"
36249  fi
36250
36251
36252curl_includes_socket="\
36253/* includes start */
36254#ifdef HAVE_SYS_TYPES_H
36255#  include <sys/types.h>
36256#endif
36257#ifdef HAVE_SOCKET_H
36258#  include <socket.h>
36259#endif
36260/* includes end */"
36261  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
36262"
36263if test "x$ac_cv_header_sys_types_h" = xyes
36264then :
36265  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36266
36267fi
36268ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
36269"
36270if test "x$ac_cv_header_socket_h" = xyes
36271then :
36272  printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
36273
36274fi
36275
36276
36277
36278      #
36279  tst_links_closesocket="unknown"
36280  tst_proto_closesocket="unknown"
36281  tst_compi_closesocket="unknown"
36282  tst_allow_closesocket="unknown"
36283  #
36284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
36285printf %s "checking if closesocket can be linked... " >&6; }
36286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36287/* end confdefs.h.  */
36288
36289
36290      $curl_includes_winsock2
36291      $curl_includes_socket
36292
36293int main (void)
36294{
36295
36296      if(0 != closesocket(0))
36297        return 1;
36298
36299 ;
36300 return 0;
36301}
36302
36303_ACEOF
36304if ac_fn_c_try_link "$LINENO"
36305then :
36306
36307    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36308printf "%s\n" "yes" >&6; }
36309    tst_links_closesocket="yes"
36310
36311else $as_nop
36312
36313    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36314printf "%s\n" "no" >&6; }
36315    tst_links_closesocket="no"
36316
36317fi
36318rm -f core conftest.err conftest.$ac_objext conftest.beam \
36319    conftest$ac_exeext conftest.$ac_ext
36320  #
36321  if test "$tst_links_closesocket" = "yes"; then
36322    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
36323printf %s "checking if closesocket is prototyped... " >&6; }
36324    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36325/* end confdefs.h.  */
36326
36327      $curl_includes_winsock2
36328      $curl_includes_socket
36329
36330_ACEOF
36331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36332  $EGREP "closesocket" >/dev/null 2>&1
36333then :
36334
36335      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36336printf "%s\n" "yes" >&6; }
36337      tst_proto_closesocket="yes"
36338
36339else $as_nop
36340
36341      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36342printf "%s\n" "no" >&6; }
36343      tst_proto_closesocket="no"
36344
36345fi
36346rm -rf conftest*
36347
36348  fi
36349  #
36350  if test "$tst_proto_closesocket" = "yes"; then
36351    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
36352printf %s "checking if closesocket is compilable... " >&6; }
36353    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36354/* end confdefs.h.  */
36355
36356
36357        $curl_includes_winsock2
36358        $curl_includes_socket
36359
36360int main (void)
36361{
36362
36363        if(0 != closesocket(0))
36364          return 1;
36365
36366 ;
36367 return 0;
36368}
36369
36370_ACEOF
36371if ac_fn_c_try_compile "$LINENO"
36372then :
36373
36374      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36375printf "%s\n" "yes" >&6; }
36376      tst_compi_closesocket="yes"
36377
36378else $as_nop
36379
36380      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36381printf "%s\n" "no" >&6; }
36382      tst_compi_closesocket="no"
36383
36384fi
36385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36386  fi
36387  #
36388  if test "$tst_compi_closesocket" = "yes"; then
36389    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
36390printf %s "checking if closesocket usage allowed... " >&6; }
36391    if test "x$curl_disallow_closesocket" != "xyes"; then
36392      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36393printf "%s\n" "yes" >&6; }
36394      tst_allow_closesocket="yes"
36395    else
36396      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36397printf "%s\n" "no" >&6; }
36398      tst_allow_closesocket="no"
36399    fi
36400  fi
36401  #
36402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
36403printf %s "checking if closesocket might be used... " >&6; }
36404  if test "$tst_links_closesocket" = "yes" &&
36405     test "$tst_proto_closesocket" = "yes" &&
36406     test "$tst_compi_closesocket" = "yes" &&
36407     test "$tst_allow_closesocket" = "yes"; then
36408    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36409printf "%s\n" "yes" >&6; }
36410
36411printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
36412
36413    curl_cv_func_closesocket="yes"
36414  else
36415    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36416printf "%s\n" "no" >&6; }
36417    curl_cv_func_closesocket="no"
36418  fi
36419
36420
36421curl_includes_sys_socket="\
36422/* includes start */
36423#ifdef HAVE_SYS_TYPES_H
36424#  include <sys/types.h>
36425#endif
36426#ifdef HAVE_SYS_SOCKET_H
36427#  include <sys/socket.h>
36428#endif
36429/* includes end */"
36430  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
36431"
36432if test "x$ac_cv_header_sys_types_h" = xyes
36433then :
36434  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36435
36436fi
36437ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
36438"
36439if test "x$ac_cv_header_sys_socket_h" = xyes
36440then :
36441  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
36442
36443fi
36444
36445
36446
36447      #
36448  tst_links_closesocket_camel="unknown"
36449  tst_proto_closesocket_camel="unknown"
36450  tst_compi_closesocket_camel="unknown"
36451  tst_allow_closesocket_camel="unknown"
36452  #
36453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
36454printf %s "checking if CloseSocket can be linked... " >&6; }
36455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36456/* end confdefs.h.  */
36457
36458
36459      $curl_includes_bsdsocket
36460      $curl_includes_sys_socket
36461
36462int main (void)
36463{
36464
36465      if(0 != CloseSocket(0))
36466        return 1;
36467
36468 ;
36469 return 0;
36470}
36471
36472_ACEOF
36473if ac_fn_c_try_link "$LINENO"
36474then :
36475
36476    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36477printf "%s\n" "yes" >&6; }
36478    tst_links_closesocket_camel="yes"
36479
36480else $as_nop
36481
36482    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36483printf "%s\n" "no" >&6; }
36484    tst_links_closesocket_camel="no"
36485
36486fi
36487rm -f core conftest.err conftest.$ac_objext conftest.beam \
36488    conftest$ac_exeext conftest.$ac_ext
36489  #
36490  if test "$tst_links_closesocket_camel" = "yes"; then
36491    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
36492printf %s "checking if CloseSocket is prototyped... " >&6; }
36493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36494/* end confdefs.h.  */
36495
36496      $curl_includes_bsdsocket
36497      $curl_includes_sys_socket
36498
36499_ACEOF
36500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36501  $EGREP "CloseSocket" >/dev/null 2>&1
36502then :
36503
36504      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36505printf "%s\n" "yes" >&6; }
36506      tst_proto_closesocket_camel="yes"
36507
36508else $as_nop
36509
36510      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36511printf "%s\n" "no" >&6; }
36512      tst_proto_closesocket_camel="no"
36513
36514fi
36515rm -rf conftest*
36516
36517  fi
36518  #
36519  if test "$tst_proto_closesocket_camel" = "yes"; then
36520    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
36521printf %s "checking if CloseSocket is compilable... " >&6; }
36522    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36523/* end confdefs.h.  */
36524
36525
36526        $curl_includes_bsdsocket
36527        $curl_includes_sys_socket
36528
36529int main (void)
36530{
36531
36532        if(0 != CloseSocket(0))
36533          return 1;
36534
36535 ;
36536 return 0;
36537}
36538
36539_ACEOF
36540if ac_fn_c_try_compile "$LINENO"
36541then :
36542
36543      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36544printf "%s\n" "yes" >&6; }
36545      tst_compi_closesocket_camel="yes"
36546
36547else $as_nop
36548
36549      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36550printf "%s\n" "no" >&6; }
36551      tst_compi_closesocket_camel="no"
36552
36553fi
36554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36555  fi
36556  #
36557  if test "$tst_compi_closesocket_camel" = "yes"; then
36558    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
36559printf %s "checking if CloseSocket usage allowed... " >&6; }
36560    if test "x$curl_disallow_closesocket_camel" != "xyes"; then
36561      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36562printf "%s\n" "yes" >&6; }
36563      tst_allow_closesocket_camel="yes"
36564    else
36565      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36566printf "%s\n" "no" >&6; }
36567      tst_allow_closesocket_camel="no"
36568    fi
36569  fi
36570  #
36571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
36572printf %s "checking if CloseSocket might be used... " >&6; }
36573  if test "$tst_links_closesocket_camel" = "yes" &&
36574     test "$tst_proto_closesocket_camel" = "yes" &&
36575     test "$tst_compi_closesocket_camel" = "yes" &&
36576     test "$tst_allow_closesocket_camel" = "yes"; then
36577    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36578printf "%s\n" "yes" >&6; }
36579
36580printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
36581
36582    curl_cv_func_closesocket_camel="yes"
36583  else
36584    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36585printf "%s\n" "no" >&6; }
36586    curl_cv_func_closesocket_camel="no"
36587  fi
36588
36589
36590curl_includes_fcntl="\
36591/* includes start */
36592#ifdef HAVE_SYS_TYPES_H
36593#  include <sys/types.h>
36594#endif
36595#ifdef HAVE_UNISTD_H
36596#  include <unistd.h>
36597#endif
36598#ifdef HAVE_FCNTL_H
36599#  include <fcntl.h>
36600#endif
36601/* includes end */"
36602  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36603"
36604if test "x$ac_cv_header_sys_types_h" = xyes
36605then :
36606  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36607
36608fi
36609ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36610"
36611if test "x$ac_cv_header_unistd_h" = xyes
36612then :
36613  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36614
36615fi
36616ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36617"
36618if test "x$ac_cv_header_fcntl_h" = xyes
36619then :
36620  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36621
36622fi
36623
36624
36625
36626    #
36627  tst_links_fcntl="unknown"
36628  tst_proto_fcntl="unknown"
36629  tst_compi_fcntl="unknown"
36630  tst_allow_fcntl="unknown"
36631  #
36632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36633printf %s "checking if fcntl can be linked... " >&6; }
36634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36635/* end confdefs.h.  */
36636
36637
36638#define fcntl innocuous_fcntl
36639#ifdef __STDC__
36640# include <limits.h>
36641#else
36642# include <assert.h>
36643#endif
36644#undef fcntl
36645#ifdef __cplusplus
36646extern "C"
36647#endif
36648char fcntl ();
36649#if defined __stub_fcntl || defined __stub___fcntl
36650choke me
36651#endif
36652
36653int main (void)
36654{
36655return fcntl ();
36656 ;
36657 return 0;
36658}
36659
36660_ACEOF
36661if ac_fn_c_try_link "$LINENO"
36662then :
36663
36664    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36665printf "%s\n" "yes" >&6; }
36666    tst_links_fcntl="yes"
36667
36668else $as_nop
36669
36670    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36671printf "%s\n" "no" >&6; }
36672    tst_links_fcntl="no"
36673
36674fi
36675rm -f core conftest.err conftest.$ac_objext conftest.beam \
36676    conftest$ac_exeext conftest.$ac_ext
36677  #
36678  if test "$tst_links_fcntl" = "yes"; then
36679    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36680printf %s "checking if fcntl is prototyped... " >&6; }
36681    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36682/* end confdefs.h.  */
36683
36684      $curl_includes_fcntl
36685
36686_ACEOF
36687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36688  $EGREP "fcntl" >/dev/null 2>&1
36689then :
36690
36691      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36692printf "%s\n" "yes" >&6; }
36693      tst_proto_fcntl="yes"
36694
36695else $as_nop
36696
36697      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36698printf "%s\n" "no" >&6; }
36699      tst_proto_fcntl="no"
36700
36701fi
36702rm -rf conftest*
36703
36704  fi
36705  #
36706  if test "$tst_proto_fcntl" = "yes"; then
36707    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36708printf %s "checking if fcntl is compilable... " >&6; }
36709    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36710/* end confdefs.h.  */
36711
36712
36713        $curl_includes_fcntl
36714
36715int main (void)
36716{
36717
36718        if(0 != fcntl(0, 0, 0))
36719          return 1;
36720
36721 ;
36722 return 0;
36723}
36724
36725_ACEOF
36726if ac_fn_c_try_compile "$LINENO"
36727then :
36728
36729      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36730printf "%s\n" "yes" >&6; }
36731      tst_compi_fcntl="yes"
36732
36733else $as_nop
36734
36735      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36736printf "%s\n" "no" >&6; }
36737      tst_compi_fcntl="no"
36738
36739fi
36740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36741  fi
36742  #
36743  if test "$tst_compi_fcntl" = "yes"; then
36744    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36745printf %s "checking if fcntl usage allowed... " >&6; }
36746    if test "x$curl_disallow_fcntl" != "xyes"; then
36747      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36748printf "%s\n" "yes" >&6; }
36749      tst_allow_fcntl="yes"
36750    else
36751      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36752printf "%s\n" "no" >&6; }
36753      tst_allow_fcntl="no"
36754    fi
36755  fi
36756  #
36757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36758printf %s "checking if fcntl might be used... " >&6; }
36759  if test "$tst_links_fcntl" = "yes" &&
36760     test "$tst_proto_fcntl" = "yes" &&
36761     test "$tst_compi_fcntl" = "yes" &&
36762     test "$tst_allow_fcntl" = "yes"; then
36763    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36764printf "%s\n" "yes" >&6; }
36765
36766printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36767
36768    curl_cv_func_fcntl="yes"
36769
36770  #
36771  tst_compi_fcntl_o_nonblock="unknown"
36772  tst_allow_fcntl_o_nonblock="unknown"
36773  #
36774  case $host_os in
36775    sunos4* | aix3*)
36776            curl_disallow_fcntl_o_nonblock="yes"
36777      ;;
36778  esac
36779  #
36780  if test "$curl_cv_func_fcntl" = "yes"; then
36781    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36782printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36783    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36784/* end confdefs.h.  */
36785
36786
36787        $curl_includes_fcntl
36788
36789int main (void)
36790{
36791
36792        int flags = 0;
36793        if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36794          return 1;
36795
36796 ;
36797 return 0;
36798}
36799
36800_ACEOF
36801if ac_fn_c_try_compile "$LINENO"
36802then :
36803
36804      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36805printf "%s\n" "yes" >&6; }
36806      tst_compi_fcntl_o_nonblock="yes"
36807
36808else $as_nop
36809
36810      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36811printf "%s\n" "no" >&6; }
36812      tst_compi_fcntl_o_nonblock="no"
36813
36814fi
36815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36816  fi
36817  #
36818  if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36819    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36820printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36821    if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36822      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36823printf "%s\n" "yes" >&6; }
36824      tst_allow_fcntl_o_nonblock="yes"
36825    else
36826      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36827printf "%s\n" "no" >&6; }
36828      tst_allow_fcntl_o_nonblock="no"
36829    fi
36830  fi
36831  #
36832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36833printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36834  if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36835     test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36836    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36837printf "%s\n" "yes" >&6; }
36838
36839printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36840
36841    curl_cv_func_fcntl_o_nonblock="yes"
36842  else
36843    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36844printf "%s\n" "no" >&6; }
36845    curl_cv_func_fcntl_o_nonblock="no"
36846  fi
36847
36848  else
36849    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36850printf "%s\n" "no" >&6; }
36851    curl_cv_func_fcntl="no"
36852  fi
36853
36854
36855curl_includes_ws2tcpip="\
36856/* includes start */
36857#ifdef _WIN32
36858#  ifndef WIN32_LEAN_AND_MEAN
36859#    define WIN32_LEAN_AND_MEAN
36860#  endif
36861#  include <winsock2.h>
36862#  include <ws2tcpip.h>
36863#endif
36864/* includes end */"
36865
36866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
36867printf %s "checking whether build target is a native Windows one... " >&6; }
36868if test ${curl_cv_native_windows+y}
36869then :
36870  printf %s "(cached) " >&6
36871else $as_nop
36872
36873    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36874/* end confdefs.h.  */
36875
36876
36877
36878int main (void)
36879{
36880
36881#ifdef _WIN32
36882        int dummy=1;
36883#else
36884        Not a native Windows build target.
36885#endif
36886
36887 ;
36888 return 0;
36889}
36890
36891_ACEOF
36892if ac_fn_c_try_compile "$LINENO"
36893then :
36894
36895      curl_cv_native_windows="yes"
36896
36897else $as_nop
36898
36899      curl_cv_native_windows="no"
36900
36901fi
36902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36903
36904fi
36905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
36906printf "%s\n" "$curl_cv_native_windows" >&6; }
36907   if test "x$curl_cv_native_windows" = xyes; then
36908  DOING_NATIVE_WINDOWS_TRUE=
36909  DOING_NATIVE_WINDOWS_FALSE='#'
36910else
36911  DOING_NATIVE_WINDOWS_TRUE='#'
36912  DOING_NATIVE_WINDOWS_FALSE=
36913fi
36914
36915
36916
36917
36918curl_includes_netdb="\
36919/* includes start */
36920#ifdef HAVE_SYS_TYPES_H
36921#  include <sys/types.h>
36922#endif
36923#ifdef HAVE_NETDB_H
36924#  include <netdb.h>
36925#endif
36926/* includes end */"
36927  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36928"
36929if test "x$ac_cv_header_sys_types_h" = xyes
36930then :
36931  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36932
36933fi
36934ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36935"
36936if test "x$ac_cv_header_netdb_h" = xyes
36937then :
36938  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36939
36940fi
36941
36942
36943
36944        #
36945  tst_links_freeaddrinfo="unknown"
36946  tst_proto_freeaddrinfo="unknown"
36947  tst_compi_freeaddrinfo="unknown"
36948  tst_allow_freeaddrinfo="unknown"
36949  #
36950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36951printf %s "checking if freeaddrinfo can be linked... " >&6; }
36952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36953/* end confdefs.h.  */
36954
36955
36956      $curl_includes_ws2tcpip
36957      $curl_includes_sys_socket
36958      $curl_includes_netdb
36959
36960int main (void)
36961{
36962
36963      freeaddrinfo(0);
36964
36965 ;
36966 return 0;
36967}
36968
36969_ACEOF
36970if ac_fn_c_try_link "$LINENO"
36971then :
36972
36973    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36974printf "%s\n" "yes" >&6; }
36975    tst_links_freeaddrinfo="yes"
36976
36977else $as_nop
36978
36979    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36980printf "%s\n" "no" >&6; }
36981    tst_links_freeaddrinfo="no"
36982
36983fi
36984rm -f core conftest.err conftest.$ac_objext conftest.beam \
36985    conftest$ac_exeext conftest.$ac_ext
36986  #
36987  if test "$tst_links_freeaddrinfo" = "yes"; then
36988    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36989printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36991/* end confdefs.h.  */
36992
36993      $curl_includes_ws2tcpip
36994      $curl_includes_sys_socket
36995      $curl_includes_netdb
36996
36997_ACEOF
36998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36999  $EGREP "freeaddrinfo" >/dev/null 2>&1
37000then :
37001
37002      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37003printf "%s\n" "yes" >&6; }
37004      tst_proto_freeaddrinfo="yes"
37005
37006else $as_nop
37007
37008      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37009printf "%s\n" "no" >&6; }
37010      tst_proto_freeaddrinfo="no"
37011
37012fi
37013rm -rf conftest*
37014
37015  fi
37016  #
37017  if test "$tst_proto_freeaddrinfo" = "yes"; then
37018    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
37019printf %s "checking if freeaddrinfo is compilable... " >&6; }
37020    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37021/* end confdefs.h.  */
37022
37023
37024        $curl_includes_ws2tcpip
37025        $curl_includes_sys_socket
37026        $curl_includes_netdb
37027
37028int main (void)
37029{
37030
37031        freeaddrinfo(0);
37032
37033 ;
37034 return 0;
37035}
37036
37037_ACEOF
37038if ac_fn_c_try_compile "$LINENO"
37039then :
37040
37041      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37042printf "%s\n" "yes" >&6; }
37043      tst_compi_freeaddrinfo="yes"
37044
37045else $as_nop
37046
37047      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37048printf "%s\n" "no" >&6; }
37049      tst_compi_freeaddrinfo="no"
37050
37051fi
37052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37053  fi
37054  #
37055  if test "$tst_compi_freeaddrinfo" = "yes"; then
37056    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
37057printf %s "checking if freeaddrinfo usage allowed... " >&6; }
37058    if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
37059      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37060printf "%s\n" "yes" >&6; }
37061      tst_allow_freeaddrinfo="yes"
37062    else
37063      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37064printf "%s\n" "no" >&6; }
37065      tst_allow_freeaddrinfo="no"
37066    fi
37067  fi
37068  #
37069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
37070printf %s "checking if freeaddrinfo might be used... " >&6; }
37071  if test "$tst_links_freeaddrinfo" = "yes" &&
37072     test "$tst_proto_freeaddrinfo" = "yes" &&
37073     test "$tst_compi_freeaddrinfo" = "yes" &&
37074     test "$tst_allow_freeaddrinfo" = "yes"; then
37075    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37076printf "%s\n" "yes" >&6; }
37077
37078printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
37079
37080    curl_cv_func_freeaddrinfo="yes"
37081  else
37082    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37083printf "%s\n" "no" >&6; }
37084    curl_cv_func_freeaddrinfo="no"
37085  fi
37086
37087
37088curl_includes_sys_xattr="\
37089/* includes start */
37090#ifdef HAVE_SYS_TYPES_H
37091#  include <sys/types.h>
37092#endif
37093#ifdef HAVE_SYS_XATTR_H
37094#  include <sys/xattr.h>
37095#endif
37096/* includes end */"
37097  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
37098"
37099if test "x$ac_cv_header_sys_types_h" = xyes
37100then :
37101  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37102
37103fi
37104ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
37105"
37106if test "x$ac_cv_header_sys_xattr_h" = xyes
37107then :
37108  printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
37109
37110fi
37111
37112
37113
37114    #
37115  tst_links_fsetxattr="unknown"
37116  tst_proto_fsetxattr="unknown"
37117  tst_compi_fsetxattr="unknown"
37118  tst_allow_fsetxattr="unknown"
37119  tst_nargs_fsetxattr="unknown"
37120  #
37121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
37122printf %s "checking if fsetxattr can be linked... " >&6; }
37123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37124/* end confdefs.h.  */
37125
37126
37127#define fsetxattr innocuous_fsetxattr
37128#ifdef __STDC__
37129# include <limits.h>
37130#else
37131# include <assert.h>
37132#endif
37133#undef fsetxattr
37134#ifdef __cplusplus
37135extern "C"
37136#endif
37137char fsetxattr ();
37138#if defined __stub_fsetxattr || defined __stub___fsetxattr
37139choke me
37140#endif
37141
37142int main (void)
37143{
37144return fsetxattr ();
37145 ;
37146 return 0;
37147}
37148
37149_ACEOF
37150if ac_fn_c_try_link "$LINENO"
37151then :
37152
37153    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37154printf "%s\n" "yes" >&6; }
37155    tst_links_fsetxattr="yes"
37156
37157else $as_nop
37158
37159    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37160printf "%s\n" "no" >&6; }
37161    tst_links_fsetxattr="no"
37162
37163fi
37164rm -f core conftest.err conftest.$ac_objext conftest.beam \
37165    conftest$ac_exeext conftest.$ac_ext
37166  #
37167  if test "$tst_links_fsetxattr" = "yes"; then
37168    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
37169printf %s "checking if fsetxattr is prototyped... " >&6; }
37170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37171/* end confdefs.h.  */
37172
37173      $curl_includes_sys_xattr
37174
37175_ACEOF
37176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37177  $EGREP "fsetxattr" >/dev/null 2>&1
37178then :
37179
37180      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37181printf "%s\n" "yes" >&6; }
37182      tst_proto_fsetxattr="yes"
37183
37184else $as_nop
37185
37186      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37187printf "%s\n" "no" >&6; }
37188      tst_proto_fsetxattr="no"
37189
37190fi
37191rm -rf conftest*
37192
37193  fi
37194  #
37195  if test "$tst_proto_fsetxattr" = "yes"; then
37196    if test "$tst_nargs_fsetxattr" = "unknown"; then
37197      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
37198printf %s "checking if fsetxattr takes 5 args.... " >&6; }
37199      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37200/* end confdefs.h.  */
37201
37202
37203          $curl_includes_sys_xattr
37204
37205int main (void)
37206{
37207
37208          if(0 != fsetxattr(0, 0, 0, 0, 0))
37209            return 1;
37210
37211 ;
37212 return 0;
37213}
37214
37215_ACEOF
37216if ac_fn_c_try_compile "$LINENO"
37217then :
37218
37219        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37220printf "%s\n" "yes" >&6; }
37221        tst_compi_fsetxattr="yes"
37222        tst_nargs_fsetxattr="5"
37223
37224else $as_nop
37225
37226        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37227printf "%s\n" "no" >&6; }
37228        tst_compi_fsetxattr="no"
37229
37230fi
37231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37232    fi
37233    if test "$tst_nargs_fsetxattr" = "unknown"; then
37234      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
37235printf %s "checking if fsetxattr takes 6 args.... " >&6; }
37236      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37237/* end confdefs.h.  */
37238
37239
37240          $curl_includes_sys_xattr
37241
37242int main (void)
37243{
37244
37245          if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
37246            return 1;
37247
37248 ;
37249 return 0;
37250}
37251
37252_ACEOF
37253if ac_fn_c_try_compile "$LINENO"
37254then :
37255
37256        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37257printf "%s\n" "yes" >&6; }
37258        tst_compi_fsetxattr="yes"
37259        tst_nargs_fsetxattr="6"
37260
37261else $as_nop
37262
37263        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37264printf "%s\n" "no" >&6; }
37265        tst_compi_fsetxattr="no"
37266
37267fi
37268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37269    fi
37270    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
37271printf %s "checking if fsetxattr is compilable... " >&6; }
37272    if test "$tst_compi_fsetxattr" = "yes"; then
37273      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37274printf "%s\n" "yes" >&6; }
37275    else
37276      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37277printf "%s\n" "no" >&6; }
37278    fi
37279  fi
37280  #
37281  if test "$tst_compi_fsetxattr" = "yes"; then
37282    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
37283printf %s "checking if fsetxattr usage allowed... " >&6; }
37284    if test "x$curl_disallow_fsetxattr" != "xyes"; then
37285      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37286printf "%s\n" "yes" >&6; }
37287      tst_allow_fsetxattr="yes"
37288    else
37289      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37290printf "%s\n" "no" >&6; }
37291      tst_allow_fsetxattr="no"
37292    fi
37293  fi
37294  #
37295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
37296printf %s "checking if fsetxattr might be used... " >&6; }
37297  if test "$tst_links_fsetxattr" = "yes" &&
37298     test "$tst_proto_fsetxattr" = "yes" &&
37299     test "$tst_compi_fsetxattr" = "yes" &&
37300     test "$tst_allow_fsetxattr" = "yes"; then
37301    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37302printf "%s\n" "yes" >&6; }
37303
37304printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
37305
37306            #
37307    if test "$tst_nargs_fsetxattr" -eq "5"; then
37308
37309printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
37310
37311    elif test "$tst_nargs_fsetxattr" -eq "6"; then
37312
37313printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
37314
37315    fi
37316    #
37317    curl_cv_func_fsetxattr="yes"
37318  else
37319    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37320printf "%s\n" "no" >&6; }
37321    curl_cv_func_fsetxattr="no"
37322  fi
37323
37324
37325    #
37326  tst_links_ftruncate="unknown"
37327  tst_proto_ftruncate="unknown"
37328  tst_compi_ftruncate="unknown"
37329  tst_allow_ftruncate="unknown"
37330  #
37331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
37332printf %s "checking if ftruncate can be linked... " >&6; }
37333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37334/* end confdefs.h.  */
37335
37336
37337#define ftruncate innocuous_ftruncate
37338#ifdef __STDC__
37339# include <limits.h>
37340#else
37341# include <assert.h>
37342#endif
37343#undef ftruncate
37344#ifdef __cplusplus
37345extern "C"
37346#endif
37347char ftruncate ();
37348#if defined __stub_ftruncate || defined __stub___ftruncate
37349choke me
37350#endif
37351
37352int main (void)
37353{
37354return ftruncate ();
37355 ;
37356 return 0;
37357}
37358
37359_ACEOF
37360if ac_fn_c_try_link "$LINENO"
37361then :
37362
37363    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37364printf "%s\n" "yes" >&6; }
37365    tst_links_ftruncate="yes"
37366
37367else $as_nop
37368
37369    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37370printf "%s\n" "no" >&6; }
37371    tst_links_ftruncate="no"
37372
37373fi
37374rm -f core conftest.err conftest.$ac_objext conftest.beam \
37375    conftest$ac_exeext conftest.$ac_ext
37376  #
37377  if test "$tst_links_ftruncate" = "yes"; then
37378    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
37379printf %s "checking if ftruncate is prototyped... " >&6; }
37380    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37381/* end confdefs.h.  */
37382
37383      $curl_includes_unistd
37384
37385_ACEOF
37386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37387  $EGREP "ftruncate" >/dev/null 2>&1
37388then :
37389
37390      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37391printf "%s\n" "yes" >&6; }
37392      tst_proto_ftruncate="yes"
37393
37394else $as_nop
37395
37396      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37397printf "%s\n" "no" >&6; }
37398      tst_proto_ftruncate="no"
37399
37400fi
37401rm -rf conftest*
37402
37403  fi
37404  #
37405  if test "$tst_proto_ftruncate" = "yes"; then
37406    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
37407printf %s "checking if ftruncate is compilable... " >&6; }
37408    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37409/* end confdefs.h.  */
37410
37411
37412        $curl_includes_unistd
37413
37414int main (void)
37415{
37416
37417        if(0 != ftruncate(0, 0))
37418          return 1;
37419
37420 ;
37421 return 0;
37422}
37423
37424_ACEOF
37425if ac_fn_c_try_compile "$LINENO"
37426then :
37427
37428      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37429printf "%s\n" "yes" >&6; }
37430      tst_compi_ftruncate="yes"
37431
37432else $as_nop
37433
37434      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37435printf "%s\n" "no" >&6; }
37436      tst_compi_ftruncate="no"
37437
37438fi
37439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37440  fi
37441  #
37442  if test "$tst_compi_ftruncate" = "yes"; then
37443    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37444printf %s "checking if ftruncate usage allowed... " >&6; }
37445    if test "x$curl_disallow_ftruncate" != "xyes"; then
37446      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37447printf "%s\n" "yes" >&6; }
37448      tst_allow_ftruncate="yes"
37449    else
37450      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37451printf "%s\n" "no" >&6; }
37452      tst_allow_ftruncate="no"
37453    fi
37454  fi
37455  #
37456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37457printf %s "checking if ftruncate might be used... " >&6; }
37458  if test "$tst_links_ftruncate" = "yes" &&
37459     test "$tst_proto_ftruncate" = "yes" &&
37460     test "$tst_compi_ftruncate" = "yes" &&
37461     test "$tst_allow_ftruncate" = "yes"; then
37462    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37463printf "%s\n" "yes" >&6; }
37464
37465printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37466
37467    curl_cv_func_ftruncate="yes"
37468  else
37469    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37470printf "%s\n" "no" >&6; }
37471    curl_cv_func_ftruncate="no"
37472  fi
37473
37474
37475curl_includes_stdlib="\
37476/* includes start */
37477#ifdef HAVE_SYS_TYPES_H
37478#  include <sys/types.h>
37479#endif
37480#include <stdlib.h>
37481/* includes end */"
37482  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37483"
37484if test "x$ac_cv_header_sys_types_h" = xyes
37485then :
37486  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37487
37488fi
37489
37490
37491
37492              #
37493  tst_links_getaddrinfo="unknown"
37494  tst_proto_getaddrinfo="unknown"
37495  tst_compi_getaddrinfo="unknown"
37496  tst_works_getaddrinfo="unknown"
37497  tst_allow_getaddrinfo="unknown"
37498  tst_tsafe_getaddrinfo="unknown"
37499  #
37500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37501printf %s "checking if getaddrinfo can be linked... " >&6; }
37502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37503/* end confdefs.h.  */
37504
37505
37506      $curl_includes_ws2tcpip
37507      $curl_includes_sys_socket
37508      $curl_includes_netdb
37509
37510int main (void)
37511{
37512
37513      if(0 != getaddrinfo(0, 0, 0, 0))
37514        return 1;
37515
37516 ;
37517 return 0;
37518}
37519
37520_ACEOF
37521if ac_fn_c_try_link "$LINENO"
37522then :
37523
37524    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37525printf "%s\n" "yes" >&6; }
37526    tst_links_getaddrinfo="yes"
37527
37528else $as_nop
37529
37530    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37531printf "%s\n" "no" >&6; }
37532    tst_links_getaddrinfo="no"
37533
37534fi
37535rm -f core conftest.err conftest.$ac_objext conftest.beam \
37536    conftest$ac_exeext conftest.$ac_ext
37537  #
37538  if test "$tst_links_getaddrinfo" = "yes"; then
37539    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37540printf %s "checking if getaddrinfo is prototyped... " >&6; }
37541    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37542/* end confdefs.h.  */
37543
37544      $curl_includes_ws2tcpip
37545      $curl_includes_sys_socket
37546      $curl_includes_netdb
37547
37548_ACEOF
37549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37550  $EGREP "getaddrinfo" >/dev/null 2>&1
37551then :
37552
37553      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37554printf "%s\n" "yes" >&6; }
37555      tst_proto_getaddrinfo="yes"
37556
37557else $as_nop
37558
37559      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37560printf "%s\n" "no" >&6; }
37561      tst_proto_getaddrinfo="no"
37562
37563fi
37564rm -rf conftest*
37565
37566  fi
37567  #
37568  if test "$tst_proto_getaddrinfo" = "yes"; then
37569    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37570printf %s "checking if getaddrinfo is compilable... " >&6; }
37571    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37572/* end confdefs.h.  */
37573
37574
37575        $curl_includes_ws2tcpip
37576        $curl_includes_sys_socket
37577        $curl_includes_netdb
37578
37579int main (void)
37580{
37581
37582        if(0 != getaddrinfo(0, 0, 0, 0))
37583          return 1;
37584
37585 ;
37586 return 0;
37587}
37588
37589_ACEOF
37590if ac_fn_c_try_compile "$LINENO"
37591then :
37592
37593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37594printf "%s\n" "yes" >&6; }
37595      tst_compi_getaddrinfo="yes"
37596
37597else $as_nop
37598
37599      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37600printf "%s\n" "no" >&6; }
37601      tst_compi_getaddrinfo="no"
37602
37603fi
37604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37605  fi
37606  #
37607    if test "x$cross_compiling" != "xyes" &&
37608    test "$tst_compi_getaddrinfo" = "yes"; then
37609    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37610printf %s "checking if getaddrinfo seems to work... " >&6; }
37611
37612   case $host_os in
37613     darwin*)
37614      if test "$cross_compiling" = yes
37615then :
37616  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37617printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37618as_fn_error $? "cannot run test program while cross compiling
37619See \`config.log' for more details" "$LINENO" 5; }
37620else $as_nop
37621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37622/* end confdefs.h.  */
37623
37624
37625        $curl_includes_ws2tcpip
37626        $curl_includes_stdlib
37627        $curl_includes_string
37628        $curl_includes_sys_socket
37629        $curl_includes_netdb
37630
37631int main (void)
37632{
37633
37634        struct addrinfo hints;
37635        struct addrinfo *ai = 0;
37636        int error;
37637
37638        #ifdef _WIN32
37639        WSADATA wsa;
37640        if(WSAStartup(MAKEWORD(2, 2), &wsa))
37641          exit(2);
37642        #endif
37643
37644        memset(&hints, 0, sizeof(hints));
37645        hints.ai_flags = AI_NUMERICHOST;
37646        hints.ai_family = AF_UNSPEC;
37647        hints.ai_socktype = SOCK_STREAM;
37648        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37649        if(error || !ai)
37650          exit(1); /* fail */
37651        else
37652          exit(0);
37653
37654 ;
37655 return 0;
37656}
37657
37658_ACEOF
37659if ac_fn_c_try_run "$LINENO"
37660then :
37661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37662printf "%s\n" "yes" >&6; }
37663      tst_works_getaddrinfo="yes"
37664
37665else $as_nop
37666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37667printf "%s\n" "no" >&6; }
37668      tst_works_getaddrinfo="no"
37669
37670fi
37671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37672  conftest.$ac_objext conftest.beam conftest.$ac_ext
37673fi
37674
37675     ;;
37676     *)
37677      oldcc=$CC
37678      old=$LD_LIBRARY_PATH
37679      CC="sh ./run-compiler"
37680      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37681      export LD_LIBRARY_PATH
37682      if test "$cross_compiling" = yes
37683then :
37684  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37685printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37686as_fn_error $? "cannot run test program while cross compiling
37687See \`config.log' for more details" "$LINENO" 5; }
37688else $as_nop
37689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37690/* end confdefs.h.  */
37691
37692
37693        $curl_includes_ws2tcpip
37694        $curl_includes_stdlib
37695        $curl_includes_string
37696        $curl_includes_sys_socket
37697        $curl_includes_netdb
37698
37699int main (void)
37700{
37701
37702        struct addrinfo hints;
37703        struct addrinfo *ai = 0;
37704        int error;
37705
37706        #ifdef _WIN32
37707        WSADATA wsa;
37708        if(WSAStartup(MAKEWORD(2, 2), &wsa))
37709          exit(2);
37710        #endif
37711
37712        memset(&hints, 0, sizeof(hints));
37713        hints.ai_flags = AI_NUMERICHOST;
37714        hints.ai_family = AF_UNSPEC;
37715        hints.ai_socktype = SOCK_STREAM;
37716        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37717        if(error || !ai)
37718          exit(1); /* fail */
37719        else
37720          exit(0);
37721
37722 ;
37723 return 0;
37724}
37725
37726_ACEOF
37727if ac_fn_c_try_run "$LINENO"
37728then :
37729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37730printf "%s\n" "yes" >&6; }
37731      tst_works_getaddrinfo="yes"
37732
37733else $as_nop
37734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37735printf "%s\n" "no" >&6; }
37736      tst_works_getaddrinfo="no"
37737
37738fi
37739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37740  conftest.$ac_objext conftest.beam conftest.$ac_ext
37741fi
37742
37743      LD_LIBRARY_PATH=$old # restore
37744      CC=$oldcc
37745     ;;
37746   esac
37747
37748  fi
37749  #
37750  if test "$tst_compi_getaddrinfo" = "yes" &&
37751    test "$tst_works_getaddrinfo" != "no"; then
37752    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37753printf %s "checking if getaddrinfo usage allowed... " >&6; }
37754    if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37755      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37756printf "%s\n" "yes" >&6; }
37757      tst_allow_getaddrinfo="yes"
37758    else
37759      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37760printf "%s\n" "no" >&6; }
37761      tst_allow_getaddrinfo="no"
37762    fi
37763  fi
37764  #
37765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37766printf %s "checking if getaddrinfo might be used... " >&6; }
37767  if test "$tst_links_getaddrinfo" = "yes" &&
37768     test "$tst_proto_getaddrinfo" = "yes" &&
37769     test "$tst_compi_getaddrinfo" = "yes" &&
37770     test "$tst_allow_getaddrinfo" = "yes" &&
37771     test "$tst_works_getaddrinfo" != "no"; then
37772    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37773printf "%s\n" "yes" >&6; }
37774
37775printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37776
37777    curl_cv_func_getaddrinfo="yes"
37778  else
37779    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37780printf "%s\n" "no" >&6; }
37781    curl_cv_func_getaddrinfo="no"
37782    curl_cv_func_getaddrinfo_threadsafe="no"
37783  fi
37784  #
37785  if test "$curl_cv_func_getaddrinfo" = "yes"; then
37786    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37787printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37788    case $host_os in
37789      aix[1234].* | aix5.[01].*)
37790                tst_tsafe_getaddrinfo="no"
37791        ;;
37792      aix*)
37793                tst_tsafe_getaddrinfo="yes"
37794        ;;
37795      darwin[12345].*)
37796                tst_tsafe_getaddrinfo="no"
37797        ;;
37798      darwin*)
37799                tst_tsafe_getaddrinfo="yes"
37800        ;;
37801      freebsd[1234].* | freebsd5.[1234]*)
37802                tst_tsafe_getaddrinfo="no"
37803        ;;
37804      freebsd*)
37805                tst_tsafe_getaddrinfo="yes"
37806        ;;
37807      hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37808                tst_tsafe_getaddrinfo="no"
37809        ;;
37810      hpux*)
37811                tst_tsafe_getaddrinfo="yes"
37812        ;;
37813      midnightbsd*)
37814                tst_tsafe_getaddrinfo="yes"
37815        ;;
37816      netbsd[123].*)
37817                tst_tsafe_getaddrinfo="no"
37818        ;;
37819      netbsd*)
37820                tst_tsafe_getaddrinfo="yes"
37821        ;;
37822      *bsd*)
37823                tst_tsafe_getaddrinfo="no"
37824        ;;
37825      solaris2*)
37826                tst_tsafe_getaddrinfo="yes"
37827        ;;
37828    esac
37829    if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37830       test "$curl_cv_native_windows" = "yes"; then
37831      tst_tsafe_getaddrinfo="yes"
37832    fi
37833    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37834
37835
37836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37837/* end confdefs.h.  */
37838
37839
37840        $curl_includes_sys_socket
37841        $curl_includes_netdb
37842
37843int main (void)
37844{
37845#ifdef h_errno
37846  return 0;
37847#else
37848  force compilation error
37849#endif
37850}
37851
37852
37853_ACEOF
37854if ac_fn_c_try_compile "$LINENO"
37855then :
37856
37857    tst_symbol_defined="yes"
37858
37859else $as_nop
37860
37861    tst_symbol_defined="no"
37862
37863fi
37864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37865  if test "$tst_symbol_defined" = "yes"; then
37866    curl_cv_have_def_h_errno=yes
37867
37868  else
37869    curl_cv_have_def_h_errno=no
37870
37871  fi
37872
37873      if test "$curl_cv_have_def_h_errno" = "yes"; then
37874        tst_h_errno_macro="yes"
37875      else
37876        tst_h_errno_macro="no"
37877      fi
37878      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37879/* end confdefs.h.  */
37880
37881
37882          $curl_includes_sys_socket
37883          $curl_includes_netdb
37884
37885int main (void)
37886{
37887
37888          h_errno = 2;
37889          if(0 != h_errno)
37890            return 1;
37891
37892 ;
37893 return 0;
37894}
37895
37896_ACEOF
37897if ac_fn_c_try_compile "$LINENO"
37898then :
37899
37900        tst_h_errno_modifiable_lvalue="yes"
37901
37902else $as_nop
37903
37904        tst_h_errno_modifiable_lvalue="no"
37905
37906fi
37907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37908      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37909/* end confdefs.h.  */
37910
37911
37912
37913int main (void)
37914{
37915
37916#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37917          return 0;
37918#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37919          return 0;
37920#else
37921          force compilation error
37922#endif
37923
37924 ;
37925 return 0;
37926}
37927
37928_ACEOF
37929if ac_fn_c_try_compile "$LINENO"
37930then :
37931
37932        tst_h_errno_sbs_issue_7="yes"
37933
37934else $as_nop
37935
37936        tst_h_errno_sbs_issue_7="no"
37937
37938fi
37939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37940      if test "$tst_h_errno_macro" = "no" &&
37941         test "$tst_h_errno_modifiable_lvalue" = "no" &&
37942         test "$tst_h_errno_sbs_issue_7" = "no"; then
37943        tst_tsafe_getaddrinfo="no"
37944      else
37945        tst_tsafe_getaddrinfo="yes"
37946      fi
37947    fi
37948    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37949printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37950    if test "$tst_tsafe_getaddrinfo" = "yes"; then
37951
37952printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37953
37954      curl_cv_func_getaddrinfo_threadsafe="yes"
37955    else
37956      curl_cv_func_getaddrinfo_threadsafe="no"
37957    fi
37958  fi
37959
37960
37961      #
37962  tst_links_gethostbyname="unknown"
37963  tst_proto_gethostbyname="unknown"
37964  tst_compi_gethostbyname="unknown"
37965  tst_allow_gethostbyname="unknown"
37966  #
37967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37968printf %s "checking if gethostbyname can be linked... " >&6; }
37969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37970/* end confdefs.h.  */
37971
37972
37973      $curl_includes_winsock2
37974      $curl_includes_bsdsocket
37975      $curl_includes_netdb
37976
37977int main (void)
37978{
37979
37980      if(0 != gethostbyname(0))
37981        return 1;
37982
37983 ;
37984 return 0;
37985}
37986
37987_ACEOF
37988if ac_fn_c_try_link "$LINENO"
37989then :
37990
37991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37992printf "%s\n" "yes" >&6; }
37993    tst_links_gethostbyname="yes"
37994
37995else $as_nop
37996
37997    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37998printf "%s\n" "no" >&6; }
37999    tst_links_gethostbyname="no"
38000
38001fi
38002rm -f core conftest.err conftest.$ac_objext conftest.beam \
38003    conftest$ac_exeext conftest.$ac_ext
38004  #
38005  if test "$tst_links_gethostbyname" = "yes"; then
38006    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
38007printf %s "checking if gethostbyname is prototyped... " >&6; }
38008    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38009/* end confdefs.h.  */
38010
38011      $curl_includes_winsock2
38012      $curl_includes_bsdsocket
38013      $curl_includes_netdb
38014
38015_ACEOF
38016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38017  $EGREP "gethostbyname" >/dev/null 2>&1
38018then :
38019
38020      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38021printf "%s\n" "yes" >&6; }
38022      tst_proto_gethostbyname="yes"
38023
38024else $as_nop
38025
38026      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38027printf "%s\n" "no" >&6; }
38028      tst_proto_gethostbyname="no"
38029
38030fi
38031rm -rf conftest*
38032
38033  fi
38034  #
38035  if test "$tst_proto_gethostbyname" = "yes"; then
38036    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
38037printf %s "checking if gethostbyname is compilable... " >&6; }
38038    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38039/* end confdefs.h.  */
38040
38041
38042        $curl_includes_winsock2
38043        $curl_includes_bsdsocket
38044        $curl_includes_netdb
38045
38046int main (void)
38047{
38048
38049        if(0 != gethostbyname(0))
38050          return 1;
38051
38052 ;
38053 return 0;
38054}
38055
38056_ACEOF
38057if ac_fn_c_try_compile "$LINENO"
38058then :
38059
38060      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38061printf "%s\n" "yes" >&6; }
38062      tst_compi_gethostbyname="yes"
38063
38064else $as_nop
38065
38066      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38067printf "%s\n" "no" >&6; }
38068      tst_compi_gethostbyname="no"
38069
38070fi
38071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38072  fi
38073  #
38074  if test "$tst_compi_gethostbyname" = "yes"; then
38075    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
38076printf %s "checking if gethostbyname usage allowed... " >&6; }
38077    if test "x$curl_disallow_gethostbyname" != "xyes"; then
38078      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38079printf "%s\n" "yes" >&6; }
38080      tst_allow_gethostbyname="yes"
38081    else
38082      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38083printf "%s\n" "no" >&6; }
38084      tst_allow_gethostbyname="no"
38085    fi
38086  fi
38087  #
38088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
38089printf %s "checking if gethostbyname might be used... " >&6; }
38090  if test "$tst_links_gethostbyname" = "yes" &&
38091     test "$tst_proto_gethostbyname" = "yes" &&
38092     test "$tst_compi_gethostbyname" = "yes" &&
38093     test "$tst_allow_gethostbyname" = "yes"; then
38094    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38095printf "%s\n" "yes" >&6; }
38096
38097printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
38098
38099    curl_cv_func_gethostbyname="yes"
38100  else
38101    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38102printf "%s\n" "no" >&6; }
38103    curl_cv_func_gethostbyname="no"
38104  fi
38105
38106
38107    #
38108  tst_links_gethostbyname_r="unknown"
38109  tst_proto_gethostbyname_r="unknown"
38110  tst_compi_gethostbyname_r="unknown"
38111  tst_allow_gethostbyname_r="unknown"
38112  tst_nargs_gethostbyname_r="unknown"
38113  #
38114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
38115printf %s "checking if gethostbyname_r can be linked... " >&6; }
38116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38117/* end confdefs.h.  */
38118
38119
38120#define gethostbyname_r innocuous_gethostbyname_r
38121#ifdef __STDC__
38122# include <limits.h>
38123#else
38124# include <assert.h>
38125#endif
38126#undef gethostbyname_r
38127#ifdef __cplusplus
38128extern "C"
38129#endif
38130char gethostbyname_r ();
38131#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38132choke me
38133#endif
38134
38135int main (void)
38136{
38137return gethostbyname_r ();
38138 ;
38139 return 0;
38140}
38141
38142_ACEOF
38143if ac_fn_c_try_link "$LINENO"
38144then :
38145
38146    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38147printf "%s\n" "yes" >&6; }
38148    tst_links_gethostbyname_r="yes"
38149
38150else $as_nop
38151
38152    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38153printf "%s\n" "no" >&6; }
38154    tst_links_gethostbyname_r="no"
38155
38156fi
38157rm -f core conftest.err conftest.$ac_objext conftest.beam \
38158    conftest$ac_exeext conftest.$ac_ext
38159  #
38160  if test "$tst_links_gethostbyname_r" = "yes"; then
38161    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
38162printf %s "checking if gethostbyname_r is prototyped... " >&6; }
38163    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38164/* end confdefs.h.  */
38165
38166      $curl_includes_netdb
38167
38168_ACEOF
38169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38170  $EGREP "gethostbyname_r" >/dev/null 2>&1
38171then :
38172
38173      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38174printf "%s\n" "yes" >&6; }
38175      tst_proto_gethostbyname_r="yes"
38176
38177else $as_nop
38178
38179      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38180printf "%s\n" "no" >&6; }
38181      tst_proto_gethostbyname_r="no"
38182
38183fi
38184rm -rf conftest*
38185
38186  fi
38187  #
38188  if test "$tst_proto_gethostbyname_r" = "yes"; then
38189    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38190      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
38191printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
38192      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38193/* end confdefs.h.  */
38194
38195
38196          $curl_includes_netdb
38197          $curl_includes_bsdsocket
38198
38199int main (void)
38200{
38201
38202          if(0 != gethostbyname_r(0, 0, 0))
38203            return 1;
38204
38205 ;
38206 return 0;
38207}
38208
38209_ACEOF
38210if ac_fn_c_try_compile "$LINENO"
38211then :
38212
38213        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38214printf "%s\n" "yes" >&6; }
38215        tst_compi_gethostbyname_r="yes"
38216        tst_nargs_gethostbyname_r="3"
38217
38218else $as_nop
38219
38220        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38221printf "%s\n" "no" >&6; }
38222        tst_compi_gethostbyname_r="no"
38223
38224fi
38225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38226    fi
38227    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38228      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
38229printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
38230      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38231/* end confdefs.h.  */
38232
38233
38234          $curl_includes_netdb
38235          $curl_includes_bsdsocket
38236
38237int main (void)
38238{
38239
38240          if(0 != gethostbyname_r(0, 0, 0, 0, 0))
38241            return 1;
38242
38243 ;
38244 return 0;
38245}
38246
38247_ACEOF
38248if ac_fn_c_try_compile "$LINENO"
38249then :
38250
38251        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38252printf "%s\n" "yes" >&6; }
38253        tst_compi_gethostbyname_r="yes"
38254        tst_nargs_gethostbyname_r="5"
38255
38256else $as_nop
38257
38258        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38259printf "%s\n" "no" >&6; }
38260        tst_compi_gethostbyname_r="no"
38261
38262fi
38263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38264    fi
38265    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38266      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
38267printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
38268      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38269/* end confdefs.h.  */
38270
38271
38272          $curl_includes_netdb
38273          $curl_includes_bsdsocket
38274
38275int main (void)
38276{
38277
38278          if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
38279            return 1;
38280
38281 ;
38282 return 0;
38283}
38284
38285_ACEOF
38286if ac_fn_c_try_compile "$LINENO"
38287then :
38288
38289        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38290printf "%s\n" "yes" >&6; }
38291        tst_compi_gethostbyname_r="yes"
38292        tst_nargs_gethostbyname_r="6"
38293
38294else $as_nop
38295
38296        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38297printf "%s\n" "no" >&6; }
38298        tst_compi_gethostbyname_r="no"
38299
38300fi
38301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38302    fi
38303    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
38304printf %s "checking if gethostbyname_r is compilable... " >&6; }
38305    if test "$tst_compi_gethostbyname_r" = "yes"; then
38306      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38307printf "%s\n" "yes" >&6; }
38308    else
38309      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38310printf "%s\n" "no" >&6; }
38311    fi
38312  fi
38313  #
38314  if test "$tst_compi_gethostbyname_r" = "yes"; then
38315    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
38316printf %s "checking if gethostbyname_r usage allowed... " >&6; }
38317    if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
38318      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38319printf "%s\n" "yes" >&6; }
38320      tst_allow_gethostbyname_r="yes"
38321    else
38322      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38323printf "%s\n" "no" >&6; }
38324      tst_allow_gethostbyname_r="no"
38325    fi
38326  fi
38327  #
38328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
38329printf %s "checking if gethostbyname_r might be used... " >&6; }
38330  if test "$tst_links_gethostbyname_r" = "yes" &&
38331     test "$tst_proto_gethostbyname_r" = "yes" &&
38332     test "$tst_compi_gethostbyname_r" = "yes" &&
38333     test "$tst_allow_gethostbyname_r" = "yes"; then
38334    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38335printf "%s\n" "yes" >&6; }
38336
38337printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
38338
38339            #
38340    if test "$tst_nargs_gethostbyname_r" -eq "3"; then
38341
38342printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
38343
38344    elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
38345
38346printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
38347
38348    elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
38349
38350printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
38351
38352    fi
38353    #
38354    curl_cv_func_gethostbyname_r="yes"
38355  else
38356    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38357printf "%s\n" "no" >&6; }
38358    curl_cv_func_gethostbyname_r="no"
38359  fi
38360
38361
38362curl_preprocess_callconv="\
38363/* preprocess start */
38364#ifdef _WIN32
38365#  define FUNCALLCONV __stdcall
38366#else
38367#  define FUNCALLCONV
38368#endif
38369/* preprocess end */"
38370
38371
38372          #
38373  tst_links_gethostname="unknown"
38374  tst_proto_gethostname="unknown"
38375  tst_compi_gethostname="unknown"
38376  tst_allow_gethostname="unknown"
38377  #
38378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
38379printf %s "checking if gethostname can be linked... " >&6; }
38380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38381/* end confdefs.h.  */
38382
38383
38384      $curl_includes_winsock2
38385      $curl_includes_unistd
38386      $curl_includes_bsdsocket
38387
38388int main (void)
38389{
38390
38391      if(0 != gethostname(0, 0))
38392        return 1;
38393
38394 ;
38395 return 0;
38396}
38397
38398_ACEOF
38399if ac_fn_c_try_link "$LINENO"
38400then :
38401
38402    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38403printf "%s\n" "yes" >&6; }
38404    tst_links_gethostname="yes"
38405
38406else $as_nop
38407
38408    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38409printf "%s\n" "no" >&6; }
38410    tst_links_gethostname="no"
38411
38412fi
38413rm -f core conftest.err conftest.$ac_objext conftest.beam \
38414    conftest$ac_exeext conftest.$ac_ext
38415  #
38416  if test "$tst_links_gethostname" = "yes"; then
38417    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
38418printf %s "checking if gethostname is prototyped... " >&6; }
38419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38420/* end confdefs.h.  */
38421
38422      $curl_includes_winsock2
38423      $curl_includes_unistd
38424      $curl_includes_bsdsocket
38425
38426_ACEOF
38427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38428  $EGREP "gethostname" >/dev/null 2>&1
38429then :
38430
38431      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38432printf "%s\n" "yes" >&6; }
38433      tst_proto_gethostname="yes"
38434
38435else $as_nop
38436
38437      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38438printf "%s\n" "no" >&6; }
38439      tst_proto_gethostname="no"
38440
38441fi
38442rm -rf conftest*
38443
38444  fi
38445  #
38446  if test "$tst_proto_gethostname" = "yes"; then
38447    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38448printf %s "checking if gethostname is compilable... " >&6; }
38449    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38450/* end confdefs.h.  */
38451
38452
38453        $curl_includes_winsock2
38454        $curl_includes_unistd
38455        $curl_includes_bsdsocket
38456
38457int main (void)
38458{
38459
38460        if(0 != gethostname(0, 0))
38461          return 1;
38462
38463 ;
38464 return 0;
38465}
38466
38467_ACEOF
38468if ac_fn_c_try_compile "$LINENO"
38469then :
38470
38471      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38472printf "%s\n" "yes" >&6; }
38473      tst_compi_gethostname="yes"
38474
38475else $as_nop
38476
38477      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38478printf "%s\n" "no" >&6; }
38479      tst_compi_gethostname="no"
38480
38481fi
38482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38483  fi
38484  #
38485  if test "$tst_compi_gethostname" = "yes"; then
38486    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38487printf %s "checking for gethostname arg 2 data type... " >&6; }
38488    tst_gethostname_type_arg2="unknown"
38489    for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38490      for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38491        if test "$tst_gethostname_type_arg2" = "unknown"; then
38492          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38493/* end confdefs.h.  */
38494
38495
38496              $curl_includes_winsock2
38497              $curl_includes_unistd
38498              $curl_includes_bsdsocket
38499              $curl_preprocess_callconv
38500              extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38501
38502int main (void)
38503{
38504
38505              if(0 != gethostname(0, 0))
38506                return 1;
38507
38508 ;
38509 return 0;
38510}
38511
38512_ACEOF
38513if ac_fn_c_try_compile "$LINENO"
38514then :
38515
38516            tst_gethostname_type_arg2="$tst_arg2"
38517
38518fi
38519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38520        fi
38521      done
38522    done
38523    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38524printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38525    if test "$tst_gethostname_type_arg2" != "unknown"; then
38526
38527printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38528
38529    fi
38530  fi
38531  #
38532  if test "$tst_compi_gethostname" = "yes"; then
38533    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38534printf %s "checking if gethostname usage allowed... " >&6; }
38535    if test "x$curl_disallow_gethostname" != "xyes"; then
38536      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38537printf "%s\n" "yes" >&6; }
38538      tst_allow_gethostname="yes"
38539    else
38540      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38541printf "%s\n" "no" >&6; }
38542      tst_allow_gethostname="no"
38543    fi
38544  fi
38545  #
38546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38547printf %s "checking if gethostname might be used... " >&6; }
38548  if test "$tst_links_gethostname" = "yes" &&
38549     test "$tst_proto_gethostname" = "yes" &&
38550     test "$tst_compi_gethostname" = "yes" &&
38551     test "$tst_allow_gethostname" = "yes"; then
38552    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38553printf "%s\n" "yes" >&6; }
38554
38555printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38556
38557    curl_cv_func_gethostname="yes"
38558  else
38559    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560printf "%s\n" "no" >&6; }
38561    curl_cv_func_gethostname="no"
38562  fi
38563
38564
38565          #
38566  tst_links_getpeername="unknown"
38567  tst_proto_getpeername="unknown"
38568  tst_compi_getpeername="unknown"
38569  tst_allow_getpeername="unknown"
38570  #
38571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38572printf %s "checking if getpeername can be linked... " >&6; }
38573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38574/* end confdefs.h.  */
38575
38576
38577      $curl_includes_winsock2
38578      $curl_includes_bsdsocket
38579      $curl_includes_sys_socket
38580
38581int main (void)
38582{
38583
38584      if(0 != getpeername(0, (void *)0, (void *)0))
38585        return 1;
38586
38587 ;
38588 return 0;
38589}
38590
38591_ACEOF
38592if ac_fn_c_try_link "$LINENO"
38593then :
38594
38595    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38596printf "%s\n" "yes" >&6; }
38597    tst_links_getpeername="yes"
38598
38599else $as_nop
38600
38601    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38602printf "%s\n" "no" >&6; }
38603    tst_links_getpeername="no"
38604
38605fi
38606rm -f core conftest.err conftest.$ac_objext conftest.beam \
38607    conftest$ac_exeext conftest.$ac_ext
38608  #
38609  if test "$tst_links_getpeername" = "yes"; then
38610    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38611printf %s "checking if getpeername is prototyped... " >&6; }
38612    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38613/* end confdefs.h.  */
38614
38615      $curl_includes_winsock2
38616      $curl_includes_bsdsocket
38617      $curl_includes_sys_socket
38618
38619_ACEOF
38620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38621  $EGREP "getpeername" >/dev/null 2>&1
38622then :
38623
38624      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38625printf "%s\n" "yes" >&6; }
38626      tst_proto_getpeername="yes"
38627
38628else $as_nop
38629
38630      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38631printf "%s\n" "no" >&6; }
38632      tst_proto_getpeername="no"
38633
38634fi
38635rm -rf conftest*
38636
38637  fi
38638  #
38639  if test "$tst_proto_getpeername" = "yes"; then
38640    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38641printf %s "checking if getpeername is compilable... " >&6; }
38642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38643/* end confdefs.h.  */
38644
38645
38646        $curl_includes_winsock2
38647        $curl_includes_bsdsocket
38648        $curl_includes_sys_socket
38649
38650int main (void)
38651{
38652
38653        if(0 != getpeername(0, (void *)0, (void *)0))
38654          return 1;
38655
38656 ;
38657 return 0;
38658}
38659
38660_ACEOF
38661if ac_fn_c_try_compile "$LINENO"
38662then :
38663
38664      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38665printf "%s\n" "yes" >&6; }
38666      tst_compi_getpeername="yes"
38667
38668else $as_nop
38669
38670      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38671printf "%s\n" "no" >&6; }
38672      tst_compi_getpeername="no"
38673
38674fi
38675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38676  fi
38677  #
38678  if test "$tst_compi_getpeername" = "yes"; then
38679    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38680printf %s "checking if getpeername usage allowed... " >&6; }
38681    if test "x$curl_disallow_getpeername" != "xyes"; then
38682      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38683printf "%s\n" "yes" >&6; }
38684      tst_allow_getpeername="yes"
38685    else
38686      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38687printf "%s\n" "no" >&6; }
38688      tst_allow_getpeername="no"
38689    fi
38690  fi
38691  #
38692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38693printf %s "checking if getpeername might be used... " >&6; }
38694  if test "$tst_links_getpeername" = "yes" &&
38695     test "$tst_proto_getpeername" = "yes" &&
38696     test "$tst_compi_getpeername" = "yes" &&
38697     test "$tst_allow_getpeername" = "yes"; then
38698    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38699printf "%s\n" "yes" >&6; }
38700
38701printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38702
38703    curl_cv_func_getpeername="yes"
38704  else
38705    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38706printf "%s\n" "no" >&6; }
38707    curl_cv_func_getpeername="no"
38708  fi
38709
38710
38711          #
38712  tst_links_getsockname="unknown"
38713  tst_proto_getsockname="unknown"
38714  tst_compi_getsockname="unknown"
38715  tst_allow_getsockname="unknown"
38716  #
38717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38718printf %s "checking if getsockname can be linked... " >&6; }
38719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38720/* end confdefs.h.  */
38721
38722
38723      $curl_includes_winsock2
38724      $curl_includes_bsdsocket
38725      $curl_includes_sys_socket
38726
38727int main (void)
38728{
38729
38730      if(0 != getsockname(0, (void *)0, (void *)0))
38731        return 1;
38732
38733 ;
38734 return 0;
38735}
38736
38737_ACEOF
38738if ac_fn_c_try_link "$LINENO"
38739then :
38740
38741    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38742printf "%s\n" "yes" >&6; }
38743    tst_links_getsockname="yes"
38744
38745else $as_nop
38746
38747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38748printf "%s\n" "no" >&6; }
38749    tst_links_getsockname="no"
38750
38751fi
38752rm -f core conftest.err conftest.$ac_objext conftest.beam \
38753    conftest$ac_exeext conftest.$ac_ext
38754  #
38755  if test "$tst_links_getsockname" = "yes"; then
38756    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38757printf %s "checking if getsockname is prototyped... " >&6; }
38758    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38759/* end confdefs.h.  */
38760
38761      $curl_includes_winsock2
38762      $curl_includes_bsdsocket
38763      $curl_includes_sys_socket
38764
38765_ACEOF
38766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38767  $EGREP "getsockname" >/dev/null 2>&1
38768then :
38769
38770      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38771printf "%s\n" "yes" >&6; }
38772      tst_proto_getsockname="yes"
38773
38774else $as_nop
38775
38776      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38777printf "%s\n" "no" >&6; }
38778      tst_proto_getsockname="no"
38779
38780fi
38781rm -rf conftest*
38782
38783  fi
38784  #
38785  if test "$tst_proto_getsockname" = "yes"; then
38786    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38787printf %s "checking if getsockname is compilable... " >&6; }
38788    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38789/* end confdefs.h.  */
38790
38791
38792        $curl_includes_winsock2
38793        $curl_includes_bsdsocket
38794        $curl_includes_sys_socket
38795
38796int main (void)
38797{
38798
38799        if(0 != getsockname(0, (void *)0, (void *)0))
38800          return 1;
38801
38802 ;
38803 return 0;
38804}
38805
38806_ACEOF
38807if ac_fn_c_try_compile "$LINENO"
38808then :
38809
38810      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38811printf "%s\n" "yes" >&6; }
38812      tst_compi_getsockname="yes"
38813
38814else $as_nop
38815
38816      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38817printf "%s\n" "no" >&6; }
38818      tst_compi_getsockname="no"
38819
38820fi
38821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38822  fi
38823  #
38824  if test "$tst_compi_getsockname" = "yes"; then
38825    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38826printf %s "checking if getsockname usage allowed... " >&6; }
38827    if test "x$curl_disallow_getsockname" != "xyes"; then
38828      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38829printf "%s\n" "yes" >&6; }
38830      tst_allow_getsockname="yes"
38831    else
38832      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38833printf "%s\n" "no" >&6; }
38834      tst_allow_getsockname="no"
38835    fi
38836  fi
38837  #
38838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38839printf %s "checking if getsockname might be used... " >&6; }
38840  if test "$tst_links_getsockname" = "yes" &&
38841     test "$tst_proto_getsockname" = "yes" &&
38842     test "$tst_compi_getsockname" = "yes" &&
38843     test "$tst_allow_getsockname" = "yes"; then
38844    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38845printf "%s\n" "yes" >&6; }
38846
38847printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38848
38849    curl_cv_func_getsockname="yes"
38850  else
38851    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38852printf "%s\n" "no" >&6; }
38853    curl_cv_func_getsockname="no"
38854  fi
38855
38856
38857curl_includes_netif="\
38858/* includes start */
38859#ifdef HAVE_NET_IF_H
38860#  include <net/if.h>
38861#endif
38862/* includes end */"
38863  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38864"
38865if test "x$ac_cv_header_net_if_h" = xyes
38866then :
38867  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38868
38869fi
38870
38871
38872
38873        #
38874  tst_links_if_nametoindex="unknown"
38875  tst_proto_if_nametoindex="unknown"
38876  tst_compi_if_nametoindex="unknown"
38877  tst_allow_if_nametoindex="unknown"
38878  #
38879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38880printf %s "checking if if_nametoindex can be linked... " >&6; }
38881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38882/* end confdefs.h.  */
38883
38884
38885      $curl_includes_winsock2
38886      $curl_includes_bsdsocket
38887      #include <net/if.h>
38888
38889int main (void)
38890{
38891
38892      if(0 != if_nametoindex(""))
38893        return 1;
38894
38895 ;
38896 return 0;
38897}
38898
38899_ACEOF
38900if ac_fn_c_try_link "$LINENO"
38901then :
38902
38903    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38904printf "%s\n" "yes" >&6; }
38905    tst_links_if_nametoindex="yes"
38906
38907else $as_nop
38908
38909    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38910printf "%s\n" "no" >&6; }
38911    tst_links_if_nametoindex="no"
38912
38913fi
38914rm -f core conftest.err conftest.$ac_objext conftest.beam \
38915    conftest$ac_exeext conftest.$ac_ext
38916  #
38917  if test "$tst_links_if_nametoindex" = "yes"; then
38918    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38919printf %s "checking if if_nametoindex is prototyped... " >&6; }
38920    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38921/* end confdefs.h.  */
38922
38923      $curl_includes_winsock2
38924      $curl_includes_netif
38925
38926_ACEOF
38927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38928  $EGREP "if_nametoindex" >/dev/null 2>&1
38929then :
38930
38931      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38932printf "%s\n" "yes" >&6; }
38933      tst_proto_if_nametoindex="yes"
38934
38935else $as_nop
38936
38937      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38938printf "%s\n" "no" >&6; }
38939      tst_proto_if_nametoindex="no"
38940
38941fi
38942rm -rf conftest*
38943
38944  fi
38945  #
38946  if test "$tst_proto_if_nametoindex" = "yes"; then
38947    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38948printf %s "checking if if_nametoindex is compilable... " >&6; }
38949    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38950/* end confdefs.h.  */
38951
38952
38953        $curl_includes_winsock2
38954        $curl_includes_netif
38955
38956int main (void)
38957{
38958
38959        if(0 != if_nametoindex(""))
38960          return 1;
38961
38962 ;
38963 return 0;
38964}
38965
38966_ACEOF
38967if ac_fn_c_try_compile "$LINENO"
38968then :
38969
38970      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38971printf "%s\n" "yes" >&6; }
38972      tst_compi_if_nametoindex="yes"
38973
38974else $as_nop
38975
38976      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38977printf "%s\n" "no" >&6; }
38978      tst_compi_if_nametoindex="no"
38979
38980fi
38981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38982  fi
38983  #
38984  if test "$tst_compi_if_nametoindex" = "yes"; then
38985    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38986printf %s "checking if if_nametoindex usage allowed... " >&6; }
38987    if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38988      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38989printf "%s\n" "yes" >&6; }
38990      tst_allow_if_nametoindex="yes"
38991    else
38992      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38993printf "%s\n" "no" >&6; }
38994      tst_allow_if_nametoindex="no"
38995    fi
38996  fi
38997  #
38998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38999printf %s "checking if if_nametoindex might be used... " >&6; }
39000  if test "$tst_links_if_nametoindex" = "yes" &&
39001     test "$tst_proto_if_nametoindex" = "yes" &&
39002     test "$tst_compi_if_nametoindex" = "yes" &&
39003     test "$tst_allow_if_nametoindex" = "yes"; then
39004    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39005printf "%s\n" "yes" >&6; }
39006
39007printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
39008
39009    curl_cv_func_if_nametoindex="yes"
39010  else
39011    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39012printf "%s\n" "no" >&6; }
39013    curl_cv_func_if_nametoindex="no"
39014  fi
39015
39016
39017curl_includes_ifaddrs="\
39018/* includes start */
39019#ifdef HAVE_SYS_TYPES_H
39020#  include <sys/types.h>
39021#endif
39022#ifdef HAVE_SYS_SOCKET_H
39023#  include <sys/socket.h>
39024#endif
39025#ifdef HAVE_NETINET_IN_H
39026#  include <netinet/in.h>
39027#endif
39028#ifdef HAVE_IFADDRS_H
39029#  include <ifaddrs.h>
39030#endif
39031/* includes end */"
39032  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
39033"
39034if test "x$ac_cv_header_sys_types_h" = xyes
39035then :
39036  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39037
39038fi
39039ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
39040"
39041if test "x$ac_cv_header_sys_socket_h" = xyes
39042then :
39043  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39044
39045fi
39046ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
39047"
39048if test "x$ac_cv_header_netinet_in_h" = xyes
39049then :
39050  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39051
39052fi
39053ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
39054"
39055if test "x$ac_cv_header_ifaddrs_h" = xyes
39056then :
39057  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
39058
39059fi
39060
39061
39062
39063      #
39064  tst_links_getifaddrs="unknown"
39065  tst_proto_getifaddrs="unknown"
39066  tst_compi_getifaddrs="unknown"
39067  tst_works_getifaddrs="unknown"
39068  tst_allow_getifaddrs="unknown"
39069  #
39070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
39071printf %s "checking if getifaddrs can be linked... " >&6; }
39072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39073/* end confdefs.h.  */
39074
39075
39076#define getifaddrs innocuous_getifaddrs
39077#ifdef __STDC__
39078# include <limits.h>
39079#else
39080# include <assert.h>
39081#endif
39082#undef getifaddrs
39083#ifdef __cplusplus
39084extern "C"
39085#endif
39086char getifaddrs ();
39087#if defined __stub_getifaddrs || defined __stub___getifaddrs
39088choke me
39089#endif
39090
39091int main (void)
39092{
39093return getifaddrs ();
39094 ;
39095 return 0;
39096}
39097
39098_ACEOF
39099if ac_fn_c_try_link "$LINENO"
39100then :
39101
39102    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39103printf "%s\n" "yes" >&6; }
39104    tst_links_getifaddrs="yes"
39105
39106else $as_nop
39107
39108    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39109printf "%s\n" "no" >&6; }
39110    tst_links_getifaddrs="no"
39111
39112fi
39113rm -f core conftest.err conftest.$ac_objext conftest.beam \
39114    conftest$ac_exeext conftest.$ac_ext
39115  #
39116  if test "$tst_links_getifaddrs" = "yes"; then
39117    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
39118printf %s "checking if getifaddrs is prototyped... " >&6; }
39119    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39120/* end confdefs.h.  */
39121
39122      $curl_includes_ifaddrs
39123
39124_ACEOF
39125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39126  $EGREP "getifaddrs" >/dev/null 2>&1
39127then :
39128
39129      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39130printf "%s\n" "yes" >&6; }
39131      tst_proto_getifaddrs="yes"
39132
39133else $as_nop
39134
39135      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39136printf "%s\n" "no" >&6; }
39137      tst_proto_getifaddrs="no"
39138
39139fi
39140rm -rf conftest*
39141
39142  fi
39143  #
39144  if test "$tst_proto_getifaddrs" = "yes"; then
39145    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
39146printf %s "checking if getifaddrs is compilable... " >&6; }
39147    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39148/* end confdefs.h.  */
39149
39150
39151        $curl_includes_ifaddrs
39152
39153int main (void)
39154{
39155
39156        if(0 != getifaddrs(0))
39157          return 1;
39158
39159 ;
39160 return 0;
39161}
39162
39163_ACEOF
39164if ac_fn_c_try_compile "$LINENO"
39165then :
39166
39167      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39168printf "%s\n" "yes" >&6; }
39169      tst_compi_getifaddrs="yes"
39170
39171else $as_nop
39172
39173      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39174printf "%s\n" "no" >&6; }
39175      tst_compi_getifaddrs="no"
39176
39177fi
39178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39179  fi
39180  #
39181    if test "x$cross_compiling" != "xyes" &&
39182    test "$tst_compi_getifaddrs" = "yes"; then
39183    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
39184printf %s "checking if getifaddrs seems to work... " >&6; }
39185
39186   case $host_os in
39187     darwin*)
39188      if test "$cross_compiling" = yes
39189then :
39190  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39191printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39192as_fn_error $? "cannot run test program while cross compiling
39193See \`config.log' for more details" "$LINENO" 5; }
39194else $as_nop
39195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39196/* end confdefs.h.  */
39197
39198
39199        $curl_includes_stdlib
39200        $curl_includes_ifaddrs
39201
39202int main (void)
39203{
39204
39205        struct ifaddrs *ifa = 0;
39206        int error;
39207
39208        error = getifaddrs(&ifa);
39209        if(error || !ifa)
39210          exit(1); /* fail */
39211        else
39212          exit(0);
39213
39214 ;
39215 return 0;
39216}
39217
39218_ACEOF
39219if ac_fn_c_try_run "$LINENO"
39220then :
39221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39222printf "%s\n" "yes" >&6; }
39223      tst_works_getifaddrs="yes"
39224
39225else $as_nop
39226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39227printf "%s\n" "no" >&6; }
39228      tst_works_getifaddrs="no"
39229
39230fi
39231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39232  conftest.$ac_objext conftest.beam conftest.$ac_ext
39233fi
39234
39235     ;;
39236     *)
39237      oldcc=$CC
39238      old=$LD_LIBRARY_PATH
39239      CC="sh ./run-compiler"
39240      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39241      export LD_LIBRARY_PATH
39242      if test "$cross_compiling" = yes
39243then :
39244  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39245printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39246as_fn_error $? "cannot run test program while cross compiling
39247See \`config.log' for more details" "$LINENO" 5; }
39248else $as_nop
39249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39250/* end confdefs.h.  */
39251
39252
39253        $curl_includes_stdlib
39254        $curl_includes_ifaddrs
39255
39256int main (void)
39257{
39258
39259        struct ifaddrs *ifa = 0;
39260        int error;
39261
39262        error = getifaddrs(&ifa);
39263        if(error || !ifa)
39264          exit(1); /* fail */
39265        else
39266          exit(0);
39267
39268 ;
39269 return 0;
39270}
39271
39272_ACEOF
39273if ac_fn_c_try_run "$LINENO"
39274then :
39275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39276printf "%s\n" "yes" >&6; }
39277      tst_works_getifaddrs="yes"
39278
39279else $as_nop
39280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39281printf "%s\n" "no" >&6; }
39282      tst_works_getifaddrs="no"
39283
39284fi
39285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39286  conftest.$ac_objext conftest.beam conftest.$ac_ext
39287fi
39288
39289      LD_LIBRARY_PATH=$old # restore
39290      CC=$oldcc
39291     ;;
39292   esac
39293
39294  fi
39295  #
39296  if test "$tst_compi_getifaddrs" = "yes" &&
39297    test "$tst_works_getifaddrs" != "no"; then
39298    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
39299printf %s "checking if getifaddrs usage allowed... " >&6; }
39300    if test "x$curl_disallow_getifaddrs" != "xyes"; then
39301      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39302printf "%s\n" "yes" >&6; }
39303      tst_allow_getifaddrs="yes"
39304    else
39305      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39306printf "%s\n" "no" >&6; }
39307      tst_allow_getifaddrs="no"
39308    fi
39309  fi
39310  #
39311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
39312printf %s "checking if getifaddrs might be used... " >&6; }
39313  if test "$tst_links_getifaddrs" = "yes" &&
39314     test "$tst_proto_getifaddrs" = "yes" &&
39315     test "$tst_compi_getifaddrs" = "yes" &&
39316     test "$tst_allow_getifaddrs" = "yes" &&
39317     test "$tst_works_getifaddrs" != "no"; then
39318    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39319printf "%s\n" "yes" >&6; }
39320
39321printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
39322
39323    curl_cv_func_getifaddrs="yes"
39324  else
39325    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39326printf "%s\n" "no" >&6; }
39327    curl_cv_func_getifaddrs="no"
39328  fi
39329
39330
39331curl_includes_time="\
39332/* includes start */
39333#ifdef HAVE_SYS_TYPES_H
39334#  include <sys/types.h>
39335#endif
39336#ifdef HAVE_SYS_TIME_H
39337#  include <sys/time.h>
39338#endif
39339#include <time.h>
39340/* includes end */"
39341  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
39342"
39343if test "x$ac_cv_header_sys_types_h" = xyes
39344then :
39345  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39346
39347fi
39348ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
39349"
39350if test "x$ac_cv_header_sys_time_h" = xyes
39351then :
39352  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
39353
39354fi
39355
39356
39357
39358      #
39359  tst_links_gmtime_r="unknown"
39360  tst_proto_gmtime_r="unknown"
39361  tst_compi_gmtime_r="unknown"
39362  tst_works_gmtime_r="unknown"
39363  tst_allow_gmtime_r="unknown"
39364  #
39365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
39366printf %s "checking if gmtime_r can be linked... " >&6; }
39367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39368/* end confdefs.h.  */
39369
39370
39371#define gmtime_r innocuous_gmtime_r
39372#ifdef __STDC__
39373# include <limits.h>
39374#else
39375# include <assert.h>
39376#endif
39377#undef gmtime_r
39378#ifdef __cplusplus
39379extern "C"
39380#endif
39381char gmtime_r ();
39382#if defined __stub_gmtime_r || defined __stub___gmtime_r
39383choke me
39384#endif
39385
39386int main (void)
39387{
39388return gmtime_r ();
39389 ;
39390 return 0;
39391}
39392
39393_ACEOF
39394if ac_fn_c_try_link "$LINENO"
39395then :
39396
39397    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39398printf "%s\n" "yes" >&6; }
39399    tst_links_gmtime_r="yes"
39400
39401else $as_nop
39402
39403    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39404printf "%s\n" "no" >&6; }
39405    tst_links_gmtime_r="no"
39406
39407fi
39408rm -f core conftest.err conftest.$ac_objext conftest.beam \
39409    conftest$ac_exeext conftest.$ac_ext
39410  #
39411  if test "$tst_links_gmtime_r" = "yes"; then
39412    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
39413printf %s "checking if gmtime_r is prototyped... " >&6; }
39414    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39415/* end confdefs.h.  */
39416
39417      $curl_includes_time
39418
39419_ACEOF
39420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39421  $EGREP "gmtime_r" >/dev/null 2>&1
39422then :
39423
39424      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39425printf "%s\n" "yes" >&6; }
39426      tst_proto_gmtime_r="yes"
39427
39428else $as_nop
39429
39430      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39431printf "%s\n" "no" >&6; }
39432      tst_proto_gmtime_r="no"
39433
39434fi
39435rm -rf conftest*
39436
39437  fi
39438  #
39439  if test "$tst_proto_gmtime_r" = "yes"; then
39440    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39441printf %s "checking if gmtime_r is compilable... " >&6; }
39442    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39443/* end confdefs.h.  */
39444
39445
39446        $curl_includes_time
39447
39448int main (void)
39449{
39450
39451        if(0 != gmtime_r(0, 0))
39452          return 1;
39453
39454 ;
39455 return 0;
39456}
39457
39458_ACEOF
39459if ac_fn_c_try_compile "$LINENO"
39460then :
39461
39462      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39463printf "%s\n" "yes" >&6; }
39464      tst_compi_gmtime_r="yes"
39465
39466else $as_nop
39467
39468      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39469printf "%s\n" "no" >&6; }
39470      tst_compi_gmtime_r="no"
39471
39472fi
39473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39474  fi
39475  #
39476    if test "x$cross_compiling" != "xyes" &&
39477    test "$tst_compi_gmtime_r" = "yes"; then
39478    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39479printf %s "checking if gmtime_r seems to work... " >&6; }
39480
39481   case $host_os in
39482     darwin*)
39483      if test "$cross_compiling" = yes
39484then :
39485  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39486printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39487as_fn_error $? "cannot run test program while cross compiling
39488See \`config.log' for more details" "$LINENO" 5; }
39489else $as_nop
39490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39491/* end confdefs.h.  */
39492
39493
39494        $curl_includes_stdlib
39495        $curl_includes_time
39496
39497int main (void)
39498{
39499
39500        time_t local = 1170352587;
39501        struct tm *gmt = 0;
39502        struct tm result;
39503        gmt = gmtime_r(&local, &result);
39504        if(gmt)
39505          exit(0);
39506        else
39507          exit(1);
39508
39509 ;
39510 return 0;
39511}
39512
39513_ACEOF
39514if ac_fn_c_try_run "$LINENO"
39515then :
39516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39517printf "%s\n" "yes" >&6; }
39518      tst_works_gmtime_r="yes"
39519
39520else $as_nop
39521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39522printf "%s\n" "no" >&6; }
39523      tst_works_gmtime_r="no"
39524
39525fi
39526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39527  conftest.$ac_objext conftest.beam conftest.$ac_ext
39528fi
39529
39530     ;;
39531     *)
39532      oldcc=$CC
39533      old=$LD_LIBRARY_PATH
39534      CC="sh ./run-compiler"
39535      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39536      export LD_LIBRARY_PATH
39537      if test "$cross_compiling" = yes
39538then :
39539  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39540printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39541as_fn_error $? "cannot run test program while cross compiling
39542See \`config.log' for more details" "$LINENO" 5; }
39543else $as_nop
39544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39545/* end confdefs.h.  */
39546
39547
39548        $curl_includes_stdlib
39549        $curl_includes_time
39550
39551int main (void)
39552{
39553
39554        time_t local = 1170352587;
39555        struct tm *gmt = 0;
39556        struct tm result;
39557        gmt = gmtime_r(&local, &result);
39558        if(gmt)
39559          exit(0);
39560        else
39561          exit(1);
39562
39563 ;
39564 return 0;
39565}
39566
39567_ACEOF
39568if ac_fn_c_try_run "$LINENO"
39569then :
39570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39571printf "%s\n" "yes" >&6; }
39572      tst_works_gmtime_r="yes"
39573
39574else $as_nop
39575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39576printf "%s\n" "no" >&6; }
39577      tst_works_gmtime_r="no"
39578
39579fi
39580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39581  conftest.$ac_objext conftest.beam conftest.$ac_ext
39582fi
39583
39584      LD_LIBRARY_PATH=$old # restore
39585      CC=$oldcc
39586     ;;
39587   esac
39588
39589  fi
39590  #
39591  if test "$tst_compi_gmtime_r" = "yes" &&
39592    test "$tst_works_gmtime_r" != "no"; then
39593    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39594printf %s "checking if gmtime_r usage allowed... " >&6; }
39595    if test "x$curl_disallow_gmtime_r" != "xyes"; then
39596      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39597printf "%s\n" "yes" >&6; }
39598      tst_allow_gmtime_r="yes"
39599    else
39600      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39601printf "%s\n" "no" >&6; }
39602      tst_allow_gmtime_r="no"
39603    fi
39604  fi
39605  #
39606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39607printf %s "checking if gmtime_r might be used... " >&6; }
39608  if test "$tst_links_gmtime_r" = "yes" &&
39609     test "$tst_proto_gmtime_r" = "yes" &&
39610     test "$tst_compi_gmtime_r" = "yes" &&
39611     test "$tst_allow_gmtime_r" = "yes" &&
39612     test "$tst_works_gmtime_r" != "no"; then
39613    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39614printf "%s\n" "yes" >&6; }
39615
39616printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39617
39618    curl_cv_func_gmtime_r="yes"
39619  else
39620    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39621printf "%s\n" "no" >&6; }
39622    curl_cv_func_gmtime_r="no"
39623  fi
39624
39625
39626curl_includes_arpa_inet="\
39627/* includes start */
39628#ifdef HAVE_SYS_TYPES_H
39629#  include <sys/types.h>
39630#endif
39631#ifdef HAVE_SYS_SOCKET_H
39632#  include <sys/socket.h>
39633#endif
39634#ifdef HAVE_NETINET_IN_H
39635#  include <netinet/in.h>
39636#endif
39637#ifdef HAVE_ARPA_INET_H
39638#  include <arpa/inet.h>
39639#endif
39640#ifdef _WIN32
39641#include <winsock2.h>
39642#include <ws2tcpip.h>
39643#endif
39644/* includes end */"
39645  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39646"
39647if test "x$ac_cv_header_sys_types_h" = xyes
39648then :
39649  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39650
39651fi
39652ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39653"
39654if test "x$ac_cv_header_sys_socket_h" = xyes
39655then :
39656  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39657
39658fi
39659ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39660"
39661if test "x$ac_cv_header_netinet_in_h" = xyes
39662then :
39663  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39664
39665fi
39666ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39667"
39668if test "x$ac_cv_header_arpa_inet_h" = xyes
39669then :
39670  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39671
39672fi
39673
39674
39675
39676        #
39677  tst_links_inet_ntop="unknown"
39678  tst_proto_inet_ntop="unknown"
39679  tst_compi_inet_ntop="unknown"
39680  tst_works_inet_ntop="unknown"
39681  tst_allow_inet_ntop="unknown"
39682  #
39683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39684printf %s "checking if inet_ntop can be linked... " >&6; }
39685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39686/* end confdefs.h.  */
39687
39688
39689#define inet_ntop innocuous_inet_ntop
39690#ifdef __STDC__
39691# include <limits.h>
39692#else
39693# include <assert.h>
39694#endif
39695#undef inet_ntop
39696#ifdef __cplusplus
39697extern "C"
39698#endif
39699char inet_ntop ();
39700#if defined __stub_inet_ntop || defined __stub___inet_ntop
39701choke me
39702#endif
39703
39704int main (void)
39705{
39706return inet_ntop ();
39707 ;
39708 return 0;
39709}
39710
39711_ACEOF
39712if ac_fn_c_try_link "$LINENO"
39713then :
39714
39715    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39716printf "%s\n" "yes" >&6; }
39717    tst_links_inet_ntop="yes"
39718
39719else $as_nop
39720
39721    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39722printf "%s\n" "no" >&6; }
39723    tst_links_inet_ntop="no"
39724
39725fi
39726rm -f core conftest.err conftest.$ac_objext conftest.beam \
39727    conftest$ac_exeext conftest.$ac_ext
39728  #
39729  if test "$tst_links_inet_ntop" = "yes"; then
39730    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39731printf %s "checking if inet_ntop is prototyped... " >&6; }
39732    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39733/* end confdefs.h.  */
39734
39735      $curl_includes_arpa_inet
39736
39737_ACEOF
39738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39739  $EGREP "inet_ntop" >/dev/null 2>&1
39740then :
39741
39742      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39743printf "%s\n" "yes" >&6; }
39744      tst_proto_inet_ntop="yes"
39745
39746else $as_nop
39747
39748      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39749printf "%s\n" "no" >&6; }
39750      tst_proto_inet_ntop="no"
39751
39752fi
39753rm -rf conftest*
39754
39755  fi
39756  #
39757  if test "$tst_proto_inet_ntop" = "yes"; then
39758    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39759printf %s "checking if inet_ntop is compilable... " >&6; }
39760    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39761/* end confdefs.h.  */
39762
39763
39764        $curl_includes_arpa_inet
39765
39766int main (void)
39767{
39768
39769        if(0 != inet_ntop(0, 0, 0, 0))
39770          return 1;
39771
39772 ;
39773 return 0;
39774}
39775
39776_ACEOF
39777if ac_fn_c_try_compile "$LINENO"
39778then :
39779
39780      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39781printf "%s\n" "yes" >&6; }
39782      tst_compi_inet_ntop="yes"
39783
39784else $as_nop
39785
39786      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39787printf "%s\n" "no" >&6; }
39788      tst_compi_inet_ntop="no"
39789
39790fi
39791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39792  fi
39793  #
39794    if test "x$cross_compiling" != "xyes" &&
39795    test "$tst_compi_inet_ntop" = "yes"; then
39796    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39797printf %s "checking if inet_ntop seems to work... " >&6; }
39798
39799   case $host_os in
39800     darwin*)
39801      if test "$cross_compiling" = yes
39802then :
39803  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39804printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39805as_fn_error $? "cannot run test program while cross compiling
39806See \`config.log' for more details" "$LINENO" 5; }
39807else $as_nop
39808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39809/* end confdefs.h.  */
39810
39811
39812        $curl_includes_stdlib
39813        $curl_includes_arpa_inet
39814        $curl_includes_string
39815
39816int main (void)
39817{
39818
39819        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39820        char ipv4res[sizeof "255.255.255.255"];
39821        unsigned char ipv6a[26];
39822        unsigned char ipv4a[5];
39823        char *ipv6ptr = 0;
39824        char *ipv4ptr = 0;
39825        /* - */
39826        ipv4res[0] = '\0';
39827        ipv4a[0] = 0xc0;
39828        ipv4a[1] = 0xa8;
39829        ipv4a[2] = 0x64;
39830        ipv4a[3] = 0x01;
39831        ipv4a[4] = 0x01;
39832        /* - */
39833        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39834        if(!ipv4ptr)
39835          exit(1); /* fail */
39836        if(ipv4ptr != ipv4res)
39837          exit(1); /* fail */
39838        if(!ipv4ptr[0])
39839          exit(1); /* fail */
39840        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39841          exit(1); /* fail */
39842        /* - */
39843        ipv6res[0] = '\0';
39844        memset(ipv6a, 0, sizeof(ipv6a));
39845        ipv6a[0] = 0xfe;
39846        ipv6a[1] = 0x80;
39847        ipv6a[8] = 0x02;
39848        ipv6a[9] = 0x14;
39849        ipv6a[10] = 0x4f;
39850        ipv6a[11] = 0xff;
39851        ipv6a[12] = 0xfe;
39852        ipv6a[13] = 0x0b;
39853        ipv6a[14] = 0x76;
39854        ipv6a[15] = 0xc8;
39855        ipv6a[25] = 0x01;
39856        /* - */
39857        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39858        if(!ipv6ptr)
39859          exit(1); /* fail */
39860        if(ipv6ptr != ipv6res)
39861          exit(1); /* fail */
39862        if(!ipv6ptr[0])
39863          exit(1); /* fail */
39864        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39865          exit(1); /* fail */
39866        /* - */
39867        exit(0);
39868
39869 ;
39870 return 0;
39871}
39872
39873_ACEOF
39874if ac_fn_c_try_run "$LINENO"
39875then :
39876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39877printf "%s\n" "yes" >&6; }
39878      tst_works_inet_ntop="yes"
39879
39880else $as_nop
39881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39882printf "%s\n" "no" >&6; }
39883      tst_works_inet_ntop="no"
39884
39885fi
39886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39887  conftest.$ac_objext conftest.beam conftest.$ac_ext
39888fi
39889
39890     ;;
39891     *)
39892      oldcc=$CC
39893      old=$LD_LIBRARY_PATH
39894      CC="sh ./run-compiler"
39895      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39896      export LD_LIBRARY_PATH
39897      if test "$cross_compiling" = yes
39898then :
39899  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39900printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39901as_fn_error $? "cannot run test program while cross compiling
39902See \`config.log' for more details" "$LINENO" 5; }
39903else $as_nop
39904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39905/* end confdefs.h.  */
39906
39907
39908        $curl_includes_stdlib
39909        $curl_includes_arpa_inet
39910        $curl_includes_string
39911
39912int main (void)
39913{
39914
39915        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39916        char ipv4res[sizeof "255.255.255.255"];
39917        unsigned char ipv6a[26];
39918        unsigned char ipv4a[5];
39919        char *ipv6ptr = 0;
39920        char *ipv4ptr = 0;
39921        /* - */
39922        ipv4res[0] = '\0';
39923        ipv4a[0] = 0xc0;
39924        ipv4a[1] = 0xa8;
39925        ipv4a[2] = 0x64;
39926        ipv4a[3] = 0x01;
39927        ipv4a[4] = 0x01;
39928        /* - */
39929        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39930        if(!ipv4ptr)
39931          exit(1); /* fail */
39932        if(ipv4ptr != ipv4res)
39933          exit(1); /* fail */
39934        if(!ipv4ptr[0])
39935          exit(1); /* fail */
39936        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39937          exit(1); /* fail */
39938        /* - */
39939        ipv6res[0] = '\0';
39940        memset(ipv6a, 0, sizeof(ipv6a));
39941        ipv6a[0] = 0xfe;
39942        ipv6a[1] = 0x80;
39943        ipv6a[8] = 0x02;
39944        ipv6a[9] = 0x14;
39945        ipv6a[10] = 0x4f;
39946        ipv6a[11] = 0xff;
39947        ipv6a[12] = 0xfe;
39948        ipv6a[13] = 0x0b;
39949        ipv6a[14] = 0x76;
39950        ipv6a[15] = 0xc8;
39951        ipv6a[25] = 0x01;
39952        /* - */
39953        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39954        if(!ipv6ptr)
39955          exit(1); /* fail */
39956        if(ipv6ptr != ipv6res)
39957          exit(1); /* fail */
39958        if(!ipv6ptr[0])
39959          exit(1); /* fail */
39960        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39961          exit(1); /* fail */
39962        /* - */
39963        exit(0);
39964
39965 ;
39966 return 0;
39967}
39968
39969_ACEOF
39970if ac_fn_c_try_run "$LINENO"
39971then :
39972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39973printf "%s\n" "yes" >&6; }
39974      tst_works_inet_ntop="yes"
39975
39976else $as_nop
39977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39978printf "%s\n" "no" >&6; }
39979      tst_works_inet_ntop="no"
39980
39981fi
39982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39983  conftest.$ac_objext conftest.beam conftest.$ac_ext
39984fi
39985
39986      LD_LIBRARY_PATH=$old # restore
39987      CC=$oldcc
39988     ;;
39989   esac
39990
39991  fi
39992  #
39993  if test "$tst_compi_inet_ntop" = "yes" &&
39994    test "$tst_works_inet_ntop" != "no"; then
39995    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39996printf %s "checking if inet_ntop usage allowed... " >&6; }
39997    if test "x$curl_disallow_inet_ntop" != "xyes"; then
39998      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39999printf "%s\n" "yes" >&6; }
40000      tst_allow_inet_ntop="yes"
40001    else
40002      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40003printf "%s\n" "no" >&6; }
40004      tst_allow_inet_ntop="no"
40005    fi
40006  fi
40007  #
40008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
40009printf %s "checking if inet_ntop might be used... " >&6; }
40010  if test "$tst_links_inet_ntop" = "yes" &&
40011     test "$tst_proto_inet_ntop" = "yes" &&
40012     test "$tst_compi_inet_ntop" = "yes" &&
40013     test "$tst_allow_inet_ntop" = "yes" &&
40014     test "$tst_works_inet_ntop" != "no"; then
40015    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40016printf "%s\n" "yes" >&6; }
40017
40018printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
40019
40020    curl_cv_func_inet_ntop="yes"
40021  else
40022    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40023printf "%s\n" "no" >&6; }
40024    curl_cv_func_inet_ntop="no"
40025  fi
40026
40027
40028        #
40029  tst_links_inet_pton="unknown"
40030  tst_proto_inet_pton="unknown"
40031  tst_compi_inet_pton="unknown"
40032  tst_works_inet_pton="unknown"
40033  tst_allow_inet_pton="unknown"
40034  #
40035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
40036printf %s "checking if inet_pton can be linked... " >&6; }
40037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40038/* end confdefs.h.  */
40039
40040
40041#define inet_pton innocuous_inet_pton
40042#ifdef __STDC__
40043# include <limits.h>
40044#else
40045# include <assert.h>
40046#endif
40047#undef inet_pton
40048#ifdef __cplusplus
40049extern "C"
40050#endif
40051char inet_pton ();
40052#if defined __stub_inet_pton || defined __stub___inet_pton
40053choke me
40054#endif
40055
40056int main (void)
40057{
40058return inet_pton ();
40059 ;
40060 return 0;
40061}
40062
40063_ACEOF
40064if ac_fn_c_try_link "$LINENO"
40065then :
40066
40067    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40068printf "%s\n" "yes" >&6; }
40069    tst_links_inet_pton="yes"
40070
40071else $as_nop
40072
40073    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40074printf "%s\n" "no" >&6; }
40075    tst_links_inet_pton="no"
40076
40077fi
40078rm -f core conftest.err conftest.$ac_objext conftest.beam \
40079    conftest$ac_exeext conftest.$ac_ext
40080  #
40081  if test "$tst_links_inet_pton" = "yes"; then
40082    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
40083printf %s "checking if inet_pton is prototyped... " >&6; }
40084    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40085/* end confdefs.h.  */
40086
40087      $curl_includes_arpa_inet
40088
40089_ACEOF
40090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40091  $EGREP "inet_pton" >/dev/null 2>&1
40092then :
40093
40094      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40095printf "%s\n" "yes" >&6; }
40096      tst_proto_inet_pton="yes"
40097
40098else $as_nop
40099
40100      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40101printf "%s\n" "no" >&6; }
40102      tst_proto_inet_pton="no"
40103
40104fi
40105rm -rf conftest*
40106
40107  fi
40108  #
40109  if test "$tst_proto_inet_pton" = "yes"; then
40110    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
40111printf %s "checking if inet_pton is compilable... " >&6; }
40112    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40113/* end confdefs.h.  */
40114
40115
40116        $curl_includes_arpa_inet
40117
40118int main (void)
40119{
40120
40121        if(0 != inet_pton(0, 0, 0))
40122          return 1;
40123
40124 ;
40125 return 0;
40126}
40127
40128_ACEOF
40129if ac_fn_c_try_compile "$LINENO"
40130then :
40131
40132      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40133printf "%s\n" "yes" >&6; }
40134      tst_compi_inet_pton="yes"
40135
40136else $as_nop
40137
40138      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40139printf "%s\n" "no" >&6; }
40140      tst_compi_inet_pton="no"
40141
40142fi
40143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40144  fi
40145  #
40146    if test "x$cross_compiling" != "xyes" &&
40147    test "$tst_compi_inet_pton" = "yes"; then
40148    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
40149printf %s "checking if inet_pton seems to work... " >&6; }
40150
40151   case $host_os in
40152     darwin*)
40153      if test "$cross_compiling" = yes
40154then :
40155  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40156printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40157as_fn_error $? "cannot run test program while cross compiling
40158See \`config.log' for more details" "$LINENO" 5; }
40159else $as_nop
40160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40161/* end confdefs.h.  */
40162
40163
40164        $curl_includes_stdlib
40165        $curl_includes_arpa_inet
40166        $curl_includes_string
40167
40168int main (void)
40169{
40170
40171        unsigned char ipv6a[16+1];
40172        unsigned char ipv4a[4+1];
40173        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
40174        const char *ipv4src = "192.168.100.1";
40175        /* - */
40176        memset(ipv4a, 1, sizeof(ipv4a));
40177        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
40178          exit(1); /* fail */
40179        /* - */
40180        if( (ipv4a[0] != 0xc0) ||
40181            (ipv4a[1] != 0xa8) ||
40182            (ipv4a[2] != 0x64) ||
40183            (ipv4a[3] != 0x01) ||
40184            (ipv4a[4] != 0x01) )
40185          exit(1); /* fail */
40186        /* - */
40187        memset(ipv6a, 1, sizeof(ipv6a));
40188        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
40189          exit(1); /* fail */
40190        /* - */
40191        if( (ipv6a[0]  != 0xfe) ||
40192            (ipv6a[1]  != 0x80) ||
40193            (ipv6a[8]  != 0x02) ||
40194            (ipv6a[9]  != 0x14) ||
40195            (ipv6a[10] != 0x4f) ||
40196            (ipv6a[11] != 0xff) ||
40197            (ipv6a[12] != 0xfe) ||
40198            (ipv6a[13] != 0x0b) ||
40199            (ipv6a[14] != 0x76) ||
40200            (ipv6a[15] != 0xc8) ||
40201            (ipv6a[16] != 0x01) )
40202          exit(1); /* fail */
40203        /* - */
40204        if( (ipv6a[2]  != 0x0) ||
40205            (ipv6a[3]  != 0x0) ||
40206            (ipv6a[4]  != 0x0) ||
40207            (ipv6a[5]  != 0x0) ||
40208            (ipv6a[6]  != 0x0) ||
40209            (ipv6a[7]  != 0x0) )
40210          exit(1); /* fail */
40211        /* - */
40212        exit(0);
40213
40214 ;
40215 return 0;
40216}
40217
40218_ACEOF
40219if ac_fn_c_try_run "$LINENO"
40220then :
40221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40222printf "%s\n" "yes" >&6; }
40223      tst_works_inet_pton="yes"
40224
40225else $as_nop
40226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40227printf "%s\n" "no" >&6; }
40228      tst_works_inet_pton="no"
40229
40230fi
40231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40232  conftest.$ac_objext conftest.beam conftest.$ac_ext
40233fi
40234
40235     ;;
40236     *)
40237      oldcc=$CC
40238      old=$LD_LIBRARY_PATH
40239      CC="sh ./run-compiler"
40240      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
40241      export LD_LIBRARY_PATH
40242      if test "$cross_compiling" = yes
40243then :
40244  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40245printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40246as_fn_error $? "cannot run test program while cross compiling
40247See \`config.log' for more details" "$LINENO" 5; }
40248else $as_nop
40249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40250/* end confdefs.h.  */
40251
40252
40253        $curl_includes_stdlib
40254        $curl_includes_arpa_inet
40255        $curl_includes_string
40256
40257int main (void)
40258{
40259
40260        unsigned char ipv6a[16+1];
40261        unsigned char ipv4a[4+1];
40262        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
40263        const char *ipv4src = "192.168.100.1";
40264        /* - */
40265        memset(ipv4a, 1, sizeof(ipv4a));
40266        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
40267          exit(1); /* fail */
40268        /* - */
40269        if( (ipv4a[0] != 0xc0) ||
40270            (ipv4a[1] != 0xa8) ||
40271            (ipv4a[2] != 0x64) ||
40272            (ipv4a[3] != 0x01) ||
40273            (ipv4a[4] != 0x01) )
40274          exit(1); /* fail */
40275        /* - */
40276        memset(ipv6a, 1, sizeof(ipv6a));
40277        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
40278          exit(1); /* fail */
40279        /* - */
40280        if( (ipv6a[0]  != 0xfe) ||
40281            (ipv6a[1]  != 0x80) ||
40282            (ipv6a[8]  != 0x02) ||
40283            (ipv6a[9]  != 0x14) ||
40284            (ipv6a[10] != 0x4f) ||
40285            (ipv6a[11] != 0xff) ||
40286            (ipv6a[12] != 0xfe) ||
40287            (ipv6a[13] != 0x0b) ||
40288            (ipv6a[14] != 0x76) ||
40289            (ipv6a[15] != 0xc8) ||
40290            (ipv6a[16] != 0x01) )
40291          exit(1); /* fail */
40292        /* - */
40293        if( (ipv6a[2]  != 0x0) ||
40294            (ipv6a[3]  != 0x0) ||
40295            (ipv6a[4]  != 0x0) ||
40296            (ipv6a[5]  != 0x0) ||
40297            (ipv6a[6]  != 0x0) ||
40298            (ipv6a[7]  != 0x0) )
40299          exit(1); /* fail */
40300        /* - */
40301        exit(0);
40302
40303 ;
40304 return 0;
40305}
40306
40307_ACEOF
40308if ac_fn_c_try_run "$LINENO"
40309then :
40310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40311printf "%s\n" "yes" >&6; }
40312      tst_works_inet_pton="yes"
40313
40314else $as_nop
40315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40316printf "%s\n" "no" >&6; }
40317      tst_works_inet_pton="no"
40318
40319fi
40320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40321  conftest.$ac_objext conftest.beam conftest.$ac_ext
40322fi
40323
40324      LD_LIBRARY_PATH=$old # restore
40325      CC=$oldcc
40326     ;;
40327   esac
40328
40329  fi
40330  #
40331  if test "$tst_compi_inet_pton" = "yes" &&
40332    test "$tst_works_inet_pton" != "no"; then
40333    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
40334printf %s "checking if inet_pton usage allowed... " >&6; }
40335    if test "x$curl_disallow_inet_pton" != "xyes"; then
40336      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40337printf "%s\n" "yes" >&6; }
40338      tst_allow_inet_pton="yes"
40339    else
40340      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40341printf "%s\n" "no" >&6; }
40342      tst_allow_inet_pton="no"
40343    fi
40344  fi
40345  #
40346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
40347printf %s "checking if inet_pton might be used... " >&6; }
40348  if test "$tst_links_inet_pton" = "yes" &&
40349     test "$tst_proto_inet_pton" = "yes" &&
40350     test "$tst_compi_inet_pton" = "yes" &&
40351     test "$tst_allow_inet_pton" = "yes" &&
40352     test "$tst_works_inet_pton" != "no"; then
40353    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40354printf "%s\n" "yes" >&6; }
40355
40356printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
40357
40358    curl_cv_func_inet_pton="yes"
40359  else
40360    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40361printf "%s\n" "no" >&6; }
40362    curl_cv_func_inet_pton="no"
40363  fi
40364
40365
40366curl_includes_stropts="\
40367/* includes start */
40368#ifdef HAVE_SYS_TYPES_H
40369#  include <sys/types.h>
40370#endif
40371#ifdef HAVE_UNISTD_H
40372#  include <unistd.h>
40373#endif
40374#ifdef HAVE_SYS_SOCKET_H
40375#  include <sys/socket.h>
40376#endif
40377#ifdef HAVE_SYS_IOCTL_H
40378#  include <sys/ioctl.h>
40379#endif
40380#ifdef HAVE_STROPTS_H
40381#  include <stropts.h>
40382#endif
40383/* includes end */"
40384  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts
40385"
40386if test "x$ac_cv_header_sys_types_h" = xyes
40387then :
40388  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
40389
40390fi
40391ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts
40392"
40393if test "x$ac_cv_header_unistd_h" = xyes
40394then :
40395  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
40396
40397fi
40398ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_stropts
40399"
40400if test "x$ac_cv_header_sys_socket_h" = xyes
40401then :
40402  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
40403
40404fi
40405ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts
40406"
40407if test "x$ac_cv_header_sys_ioctl_h" = xyes
40408then :
40409  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
40410
40411fi
40412ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts
40413"
40414if test "x$ac_cv_header_stropts_h" = xyes
40415then :
40416  printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
40417
40418fi
40419
40420
40421
40422    #
40423  tst_links_ioctl="unknown"
40424  tst_proto_ioctl="unknown"
40425  tst_compi_ioctl="unknown"
40426  tst_allow_ioctl="unknown"
40427  #
40428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
40429printf %s "checking if ioctl can be linked... " >&6; }
40430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40431/* end confdefs.h.  */
40432
40433
40434#define ioctl innocuous_ioctl
40435#ifdef __STDC__
40436# include <limits.h>
40437#else
40438# include <assert.h>
40439#endif
40440#undef ioctl
40441#ifdef __cplusplus
40442extern "C"
40443#endif
40444char ioctl ();
40445#if defined __stub_ioctl || defined __stub___ioctl
40446choke me
40447#endif
40448
40449int main (void)
40450{
40451return ioctl ();
40452 ;
40453 return 0;
40454}
40455
40456_ACEOF
40457if ac_fn_c_try_link "$LINENO"
40458then :
40459
40460    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40461printf "%s\n" "yes" >&6; }
40462    tst_links_ioctl="yes"
40463
40464else $as_nop
40465
40466    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40467printf "%s\n" "no" >&6; }
40468    tst_links_ioctl="no"
40469
40470fi
40471rm -f core conftest.err conftest.$ac_objext conftest.beam \
40472    conftest$ac_exeext conftest.$ac_ext
40473  #
40474  if test "$tst_links_ioctl" = "yes"; then
40475    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
40476printf %s "checking if ioctl is prototyped... " >&6; }
40477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40478/* end confdefs.h.  */
40479
40480      $curl_includes_stropts
40481
40482_ACEOF
40483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40484  $EGREP "ioctl" >/dev/null 2>&1
40485then :
40486
40487      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40488printf "%s\n" "yes" >&6; }
40489      tst_proto_ioctl="yes"
40490
40491else $as_nop
40492
40493      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40494printf "%s\n" "no" >&6; }
40495      tst_proto_ioctl="no"
40496
40497fi
40498rm -rf conftest*
40499
40500  fi
40501  #
40502  if test "$tst_proto_ioctl" = "yes"; then
40503    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
40504printf %s "checking if ioctl is compilable... " >&6; }
40505    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40506/* end confdefs.h.  */
40507
40508
40509        $curl_includes_stropts
40510
40511int main (void)
40512{
40513
40514        if(0 != ioctl(0, 0, 0))
40515          return 1;
40516
40517 ;
40518 return 0;
40519}
40520
40521_ACEOF
40522if ac_fn_c_try_compile "$LINENO"
40523then :
40524
40525      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40526printf "%s\n" "yes" >&6; }
40527      tst_compi_ioctl="yes"
40528
40529else $as_nop
40530
40531      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40532printf "%s\n" "no" >&6; }
40533      tst_compi_ioctl="no"
40534
40535fi
40536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40537  fi
40538  #
40539  if test "$tst_compi_ioctl" = "yes"; then
40540    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
40541printf %s "checking if ioctl usage allowed... " >&6; }
40542    if test "x$curl_disallow_ioctl" != "xyes"; then
40543      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40544printf "%s\n" "yes" >&6; }
40545      tst_allow_ioctl="yes"
40546    else
40547      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40548printf "%s\n" "no" >&6; }
40549      tst_allow_ioctl="no"
40550    fi
40551  fi
40552  #
40553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
40554printf %s "checking if ioctl might be used... " >&6; }
40555  if test "$tst_links_ioctl" = "yes" &&
40556     test "$tst_proto_ioctl" = "yes" &&
40557     test "$tst_compi_ioctl" = "yes" &&
40558     test "$tst_allow_ioctl" = "yes"; then
40559    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40560printf "%s\n" "yes" >&6; }
40561
40562printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
40563
40564    curl_cv_func_ioctl="yes"
40565
40566  #
40567  tst_compi_ioctl_fionbio="unknown"
40568  tst_allow_ioctl_fionbio="unknown"
40569  #
40570  if test "$curl_cv_func_ioctl" = "yes"; then
40571    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
40572printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
40573    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40574/* end confdefs.h.  */
40575
40576
40577        $curl_includes_stropts
40578
40579int main (void)
40580{
40581
40582        int flags = 0;
40583        if(0 != ioctl(0, FIONBIO, &flags))
40584          return 1;
40585
40586 ;
40587 return 0;
40588}
40589
40590_ACEOF
40591if ac_fn_c_try_compile "$LINENO"
40592then :
40593
40594      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40595printf "%s\n" "yes" >&6; }
40596      tst_compi_ioctl_fionbio="yes"
40597
40598else $as_nop
40599
40600      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40601printf "%s\n" "no" >&6; }
40602      tst_compi_ioctl_fionbio="no"
40603
40604fi
40605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40606  fi
40607  #
40608  if test "$tst_compi_ioctl_fionbio" = "yes"; then
40609    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
40610printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
40611    if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
40612      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40613printf "%s\n" "yes" >&6; }
40614      tst_allow_ioctl_fionbio="yes"
40615    else
40616      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40617printf "%s\n" "no" >&6; }
40618      tst_allow_ioctl_fionbio="no"
40619    fi
40620  fi
40621  #
40622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
40623printf %s "checking if ioctl FIONBIO might be used... " >&6; }
40624  if test "$tst_compi_ioctl_fionbio" = "yes" &&
40625     test "$tst_allow_ioctl_fionbio" = "yes"; then
40626    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40627printf "%s\n" "yes" >&6; }
40628
40629printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
40630
40631    curl_cv_func_ioctl_fionbio="yes"
40632  else
40633    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40634printf "%s\n" "no" >&6; }
40635    curl_cv_func_ioctl_fionbio="no"
40636  fi
40637
40638
40639  #
40640  tst_compi_ioctl_siocgifaddr="unknown"
40641  tst_allow_ioctl_siocgifaddr="unknown"
40642  #
40643  if test "$curl_cv_func_ioctl" = "yes"; then
40644    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
40645printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
40646    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40647/* end confdefs.h.  */
40648
40649
40650        $curl_includes_stropts
40651        #include <net/if.h>
40652
40653int main (void)
40654{
40655
40656        struct ifreq ifr;
40657        if(0 != ioctl(0, SIOCGIFADDR, &ifr))
40658          return 1;
40659
40660 ;
40661 return 0;
40662}
40663
40664_ACEOF
40665if ac_fn_c_try_compile "$LINENO"
40666then :
40667
40668      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40669printf "%s\n" "yes" >&6; }
40670      tst_compi_ioctl_siocgifaddr="yes"
40671
40672else $as_nop
40673
40674      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40675printf "%s\n" "no" >&6; }
40676      tst_compi_ioctl_siocgifaddr="no"
40677
40678fi
40679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40680  fi
40681  #
40682  if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
40683    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
40684printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
40685    if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
40686      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40687printf "%s\n" "yes" >&6; }
40688      tst_allow_ioctl_siocgifaddr="yes"
40689    else
40690      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40691printf "%s\n" "no" >&6; }
40692      tst_allow_ioctl_siocgifaddr="no"
40693    fi
40694  fi
40695  #
40696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
40697printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
40698  if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
40699     test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
40700    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40701printf "%s\n" "yes" >&6; }
40702
40703printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
40704
40705    curl_cv_func_ioctl_siocgifaddr="yes"
40706  else
40707    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40708printf "%s\n" "no" >&6; }
40709    curl_cv_func_ioctl_siocgifaddr="no"
40710  fi
40711
40712  else
40713    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40714printf "%s\n" "no" >&6; }
40715    curl_cv_func_ioctl="no"
40716  fi
40717
40718
40719    #
40720  tst_links_ioctlsocket="unknown"
40721  tst_proto_ioctlsocket="unknown"
40722  tst_compi_ioctlsocket="unknown"
40723  tst_allow_ioctlsocket="unknown"
40724  #
40725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
40726printf %s "checking if ioctlsocket can be linked... " >&6; }
40727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40728/* end confdefs.h.  */
40729
40730
40731      $curl_includes_winsock2
40732
40733int main (void)
40734{
40735
40736      if(0 != ioctlsocket(0, 0, 0))
40737        return 1;
40738
40739 ;
40740 return 0;
40741}
40742
40743_ACEOF
40744if ac_fn_c_try_link "$LINENO"
40745then :
40746
40747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40748printf "%s\n" "yes" >&6; }
40749    tst_links_ioctlsocket="yes"
40750
40751else $as_nop
40752
40753    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40754printf "%s\n" "no" >&6; }
40755    tst_links_ioctlsocket="no"
40756
40757fi
40758rm -f core conftest.err conftest.$ac_objext conftest.beam \
40759    conftest$ac_exeext conftest.$ac_ext
40760  #
40761  if test "$tst_links_ioctlsocket" = "yes"; then
40762    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
40763printf %s "checking if ioctlsocket is prototyped... " >&6; }
40764    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40765/* end confdefs.h.  */
40766
40767      $curl_includes_winsock2
40768
40769_ACEOF
40770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40771  $EGREP "ioctlsocket" >/dev/null 2>&1
40772then :
40773
40774      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40775printf "%s\n" "yes" >&6; }
40776      tst_proto_ioctlsocket="yes"
40777
40778else $as_nop
40779
40780      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40781printf "%s\n" "no" >&6; }
40782      tst_proto_ioctlsocket="no"
40783
40784fi
40785rm -rf conftest*
40786
40787  fi
40788  #
40789  if test "$tst_proto_ioctlsocket" = "yes"; then
40790    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
40791printf %s "checking if ioctlsocket is compilable... " >&6; }
40792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40793/* end confdefs.h.  */
40794
40795
40796        $curl_includes_winsock2
40797
40798int main (void)
40799{
40800
40801        if(0 != ioctlsocket(0, 0, 0))
40802          return 1;
40803
40804 ;
40805 return 0;
40806}
40807
40808_ACEOF
40809if ac_fn_c_try_compile "$LINENO"
40810then :
40811
40812      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40813printf "%s\n" "yes" >&6; }
40814      tst_compi_ioctlsocket="yes"
40815
40816else $as_nop
40817
40818      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40819printf "%s\n" "no" >&6; }
40820      tst_compi_ioctlsocket="no"
40821
40822fi
40823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40824  fi
40825  #
40826  if test "$tst_compi_ioctlsocket" = "yes"; then
40827    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40828printf %s "checking if ioctlsocket usage allowed... " >&6; }
40829    if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40830      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40831printf "%s\n" "yes" >&6; }
40832      tst_allow_ioctlsocket="yes"
40833    else
40834      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40835printf "%s\n" "no" >&6; }
40836      tst_allow_ioctlsocket="no"
40837    fi
40838  fi
40839  #
40840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40841printf %s "checking if ioctlsocket might be used... " >&6; }
40842  if test "$tst_links_ioctlsocket" = "yes" &&
40843     test "$tst_proto_ioctlsocket" = "yes" &&
40844     test "$tst_compi_ioctlsocket" = "yes" &&
40845     test "$tst_allow_ioctlsocket" = "yes"; then
40846    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40847printf "%s\n" "yes" >&6; }
40848
40849printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40850
40851    curl_cv_func_ioctlsocket="yes"
40852
40853  #
40854  tst_compi_ioctlsocket_fionbio="unknown"
40855  tst_allow_ioctlsocket_fionbio="unknown"
40856  #
40857  if test "$curl_cv_func_ioctlsocket" = "yes"; then
40858    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40859printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40860    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40861/* end confdefs.h.  */
40862
40863
40864        $curl_includes_winsock2
40865
40866int main (void)
40867{
40868
40869        unsigned long flags = 0;
40870        if(0 != ioctlsocket(0, FIONBIO, &flags))
40871          return 1;
40872
40873 ;
40874 return 0;
40875}
40876
40877_ACEOF
40878if ac_fn_c_try_compile "$LINENO"
40879then :
40880
40881      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40882printf "%s\n" "yes" >&6; }
40883      tst_compi_ioctlsocket_fionbio="yes"
40884
40885else $as_nop
40886
40887      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40888printf "%s\n" "no" >&6; }
40889      tst_compi_ioctlsocket_fionbio="no"
40890
40891fi
40892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40893  fi
40894  #
40895  if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40896    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40897printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40898    if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40899      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40900printf "%s\n" "yes" >&6; }
40901      tst_allow_ioctlsocket_fionbio="yes"
40902    else
40903      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40904printf "%s\n" "no" >&6; }
40905      tst_allow_ioctlsocket_fionbio="no"
40906    fi
40907  fi
40908  #
40909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40910printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40911  if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40912     test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40913    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40914printf "%s\n" "yes" >&6; }
40915
40916printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40917
40918    curl_cv_func_ioctlsocket_fionbio="yes"
40919  else
40920    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40921printf "%s\n" "no" >&6; }
40922    curl_cv_func_ioctlsocket_fionbio="no"
40923  fi
40924
40925  else
40926    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40927printf "%s\n" "no" >&6; }
40928    curl_cv_func_ioctlsocket="no"
40929  fi
40930
40931
40932    #
40933  tst_links_ioctlsocket_camel="unknown"
40934  tst_proto_ioctlsocket_camel="unknown"
40935  tst_compi_ioctlsocket_camel="unknown"
40936  tst_allow_ioctlsocket_camel="unknown"
40937  #
40938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40939printf %s "checking if IoctlSocket can be linked... " >&6; }
40940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40941/* end confdefs.h.  */
40942
40943
40944      $curl_includes_bsdsocket
40945
40946int main (void)
40947{
40948
40949      IoctlSocket(0, 0, 0);
40950
40951 ;
40952 return 0;
40953}
40954
40955_ACEOF
40956if ac_fn_c_try_link "$LINENO"
40957then :
40958
40959    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40960printf "%s\n" "yes" >&6; }
40961    tst_links_ioctlsocket_camel="yes"
40962
40963else $as_nop
40964
40965    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40966printf "%s\n" "no" >&6; }
40967    tst_links_ioctlsocket_camel="no"
40968
40969fi
40970rm -f core conftest.err conftest.$ac_objext conftest.beam \
40971    conftest$ac_exeext conftest.$ac_ext
40972  #
40973  if test "$tst_links_ioctlsocket_camel" = "yes"; then
40974    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40975printf %s "checking if IoctlSocket is prototyped... " >&6; }
40976    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40977/* end confdefs.h.  */
40978
40979      $curl_includes_bsdsocket
40980
40981_ACEOF
40982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40983  $EGREP "IoctlSocket" >/dev/null 2>&1
40984then :
40985
40986      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40987printf "%s\n" "yes" >&6; }
40988      tst_proto_ioctlsocket_camel="yes"
40989
40990else $as_nop
40991
40992      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40993printf "%s\n" "no" >&6; }
40994      tst_proto_ioctlsocket_camel="no"
40995
40996fi
40997rm -rf conftest*
40998
40999  fi
41000  #
41001  if test "$tst_proto_ioctlsocket_camel" = "yes"; then
41002    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
41003printf %s "checking if IoctlSocket is compilable... " >&6; }
41004    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41005/* end confdefs.h.  */
41006
41007
41008        $curl_includes_bsdsocket
41009
41010int main (void)
41011{
41012
41013        if(0 != IoctlSocket(0, 0, 0))
41014          return 1;
41015
41016 ;
41017 return 0;
41018}
41019
41020_ACEOF
41021if ac_fn_c_try_compile "$LINENO"
41022then :
41023
41024      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41025printf "%s\n" "yes" >&6; }
41026      tst_compi_ioctlsocket_camel="yes"
41027
41028else $as_nop
41029
41030      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41031printf "%s\n" "no" >&6; }
41032      tst_compi_ioctlsocket_camel="no"
41033
41034fi
41035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41036  fi
41037  #
41038  if test "$tst_compi_ioctlsocket_camel" = "yes"; then
41039    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
41040printf %s "checking if IoctlSocket usage allowed... " >&6; }
41041    if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
41042      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41043printf "%s\n" "yes" >&6; }
41044      tst_allow_ioctlsocket_camel="yes"
41045    else
41046      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41047printf "%s\n" "no" >&6; }
41048      tst_allow_ioctlsocket_camel="no"
41049    fi
41050  fi
41051  #
41052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
41053printf %s "checking if IoctlSocket might be used... " >&6; }
41054  if test "$tst_links_ioctlsocket_camel" = "yes" &&
41055     test "$tst_proto_ioctlsocket_camel" = "yes" &&
41056     test "$tst_compi_ioctlsocket_camel" = "yes" &&
41057     test "$tst_allow_ioctlsocket_camel" = "yes"; then
41058    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41059printf "%s\n" "yes" >&6; }
41060
41061printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
41062
41063    curl_cv_func_ioctlsocket_camel="yes"
41064
41065    #
41066  tst_compi_ioctlsocket_camel_fionbio="unknown"
41067  tst_allow_ioctlsocket_camel_fionbio="unknown"
41068  #
41069  if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
41070    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
41071printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
41072    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41073/* end confdefs.h.  */
41074
41075
41076        $curl_includes_bsdsocket
41077
41078int main (void)
41079{
41080
41081        long flags = 0;
41082        if(0 != IoctlSocket(0, FIONBIO, &flags))
41083          return 1;
41084
41085 ;
41086 return 0;
41087}
41088
41089_ACEOF
41090if ac_fn_c_try_compile "$LINENO"
41091then :
41092
41093      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41094printf "%s\n" "yes" >&6; }
41095      tst_compi_ioctlsocket_camel_fionbio="yes"
41096
41097else $as_nop
41098
41099      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41100printf "%s\n" "no" >&6; }
41101      tst_compi_ioctlsocket_camel_fionbio="no"
41102
41103fi
41104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41105  fi
41106  #
41107  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
41108    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
41109printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
41110    if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
41111      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41112printf "%s\n" "yes" >&6; }
41113      tst_allow_ioctlsocket_camel_fionbio="yes"
41114    else
41115      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41116printf "%s\n" "no" >&6; }
41117      tst_allow_ioctlsocket_camel_fionbio="no"
41118    fi
41119  fi
41120  #
41121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
41122printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
41123  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
41124     test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
41125    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41126printf "%s\n" "yes" >&6; }
41127
41128printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
41129
41130    curl_cv_func_ioctlsocket_camel_fionbio="yes"
41131  else
41132    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41133printf "%s\n" "no" >&6; }
41134    curl_cv_func_ioctlsocket_camel_fionbio="no"
41135  fi
41136
41137  else
41138    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41139printf "%s\n" "no" >&6; }
41140    curl_cv_func_ioctlsocket_camel="no"
41141  fi
41142
41143
41144    #
41145  tst_links_memrchr="unknown"
41146  tst_macro_memrchr="unknown"
41147  tst_proto_memrchr="unknown"
41148  tst_compi_memrchr="unknown"
41149  tst_allow_memrchr="unknown"
41150  #
41151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
41152printf %s "checking if memrchr can be linked... " >&6; }
41153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41154/* end confdefs.h.  */
41155
41156
41157#define memrchr innocuous_memrchr
41158#ifdef __STDC__
41159# include <limits.h>
41160#else
41161# include <assert.h>
41162#endif
41163#undef memrchr
41164#ifdef __cplusplus
41165extern "C"
41166#endif
41167char memrchr ();
41168#if defined __stub_memrchr || defined __stub___memrchr
41169choke me
41170#endif
41171
41172int main (void)
41173{
41174return memrchr ();
41175 ;
41176 return 0;
41177}
41178
41179_ACEOF
41180if ac_fn_c_try_link "$LINENO"
41181then :
41182
41183    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41184printf "%s\n" "yes" >&6; }
41185    tst_links_memrchr="yes"
41186
41187else $as_nop
41188
41189    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41190printf "%s\n" "no" >&6; }
41191    tst_links_memrchr="no"
41192
41193fi
41194rm -f core conftest.err conftest.$ac_objext conftest.beam \
41195    conftest$ac_exeext conftest.$ac_ext
41196  #
41197  if test "$tst_links_memrchr" = "no"; then
41198    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
41199printf %s "checking if memrchr seems a macro... " >&6; }
41200    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41201/* end confdefs.h.  */
41202
41203
41204        $curl_includes_string
41205
41206int main (void)
41207{
41208
41209        if(0 != memrchr(0, 0, 0))
41210          return 1;
41211
41212 ;
41213 return 0;
41214}
41215
41216_ACEOF
41217if ac_fn_c_try_link "$LINENO"
41218then :
41219
41220      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41221printf "%s\n" "yes" >&6; }
41222      tst_macro_memrchr="yes"
41223
41224else $as_nop
41225
41226      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41227printf "%s\n" "no" >&6; }
41228      tst_macro_memrchr="no"
41229
41230fi
41231rm -f core conftest.err conftest.$ac_objext conftest.beam \
41232    conftest$ac_exeext conftest.$ac_ext
41233  fi
41234  #
41235  if test "$tst_links_memrchr" = "yes"; then
41236    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
41237printf %s "checking if memrchr is prototyped... " >&6; }
41238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41239/* end confdefs.h.  */
41240
41241      $curl_includes_string
41242
41243_ACEOF
41244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41245  $EGREP "memrchr" >/dev/null 2>&1
41246then :
41247
41248      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41249printf "%s\n" "yes" >&6; }
41250      tst_proto_memrchr="yes"
41251
41252else $as_nop
41253
41254      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41255printf "%s\n" "no" >&6; }
41256      tst_proto_memrchr="no"
41257
41258fi
41259rm -rf conftest*
41260
41261  fi
41262  #
41263  if test "$tst_proto_memrchr" = "yes" ||
41264     test "$tst_macro_memrchr" = "yes"; then
41265    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
41266printf %s "checking if memrchr is compilable... " >&6; }
41267    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41268/* end confdefs.h.  */
41269
41270
41271        $curl_includes_string
41272
41273int main (void)
41274{
41275
41276        if(0 != memrchr(0, 0, 0))
41277          return 1;
41278
41279 ;
41280 return 0;
41281}
41282
41283_ACEOF
41284if ac_fn_c_try_compile "$LINENO"
41285then :
41286
41287      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41288printf "%s\n" "yes" >&6; }
41289      tst_compi_memrchr="yes"
41290
41291else $as_nop
41292
41293      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41294printf "%s\n" "no" >&6; }
41295      tst_compi_memrchr="no"
41296
41297fi
41298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41299  fi
41300  #
41301  if test "$tst_compi_memrchr" = "yes"; then
41302    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
41303printf %s "checking if memrchr usage allowed... " >&6; }
41304    if test "x$curl_disallow_memrchr" != "xyes"; then
41305      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41306printf "%s\n" "yes" >&6; }
41307      tst_allow_memrchr="yes"
41308    else
41309      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41310printf "%s\n" "no" >&6; }
41311      tst_allow_memrchr="no"
41312    fi
41313  fi
41314  #
41315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
41316printf %s "checking if memrchr might be used... " >&6; }
41317  if (test "$tst_proto_memrchr" = "yes" ||
41318      test "$tst_macro_memrchr" = "yes") &&
41319     test "$tst_compi_memrchr" = "yes" &&
41320     test "$tst_allow_memrchr" = "yes"; then
41321    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41322printf "%s\n" "yes" >&6; }
41323
41324printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
41325
41326    curl_cv_func_memrchr="yes"
41327  else
41328    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41329printf "%s\n" "no" >&6; }
41330    curl_cv_func_memrchr="no"
41331  fi
41332
41333
41334curl_includes_poll="\
41335/* includes start */
41336#ifdef HAVE_SYS_TYPES_H
41337#  include <sys/types.h>
41338#endif
41339#ifdef HAVE_POLL_H
41340#  include <poll.h>
41341#endif
41342#ifdef HAVE_SYS_POLL_H
41343#  include <sys/poll.h>
41344#endif
41345/* includes end */"
41346  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
41347"
41348if test "x$ac_cv_header_sys_types_h" = xyes
41349then :
41350  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41351
41352fi
41353ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
41354"
41355if test "x$ac_cv_header_poll_h" = xyes
41356then :
41357  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
41358
41359fi
41360ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
41361"
41362if test "x$ac_cv_header_sys_poll_h" = xyes
41363then :
41364  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
41365
41366fi
41367
41368
41369
41370      #
41371  tst_links_poll="unknown"
41372  tst_proto_poll="unknown"
41373  tst_compi_poll="unknown"
41374  tst_works_poll="unknown"
41375  tst_allow_poll="unknown"
41376  #
41377  case $host_os in
41378    darwin*|interix*)
41379                                          curl_disallow_poll="yes"
41380      tst_compi_poll="no"
41381      ;;
41382  esac
41383  #
41384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
41385printf %s "checking if poll can be linked... " >&6; }
41386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41387/* end confdefs.h.  */
41388
41389
41390      $curl_includes_poll
41391
41392int main (void)
41393{
41394
41395      if(0 != poll(0, 0, 0))
41396        return 1;
41397
41398 ;
41399 return 0;
41400}
41401
41402_ACEOF
41403if ac_fn_c_try_link "$LINENO"
41404then :
41405
41406    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41407printf "%s\n" "yes" >&6; }
41408    tst_links_poll="yes"
41409
41410else $as_nop
41411
41412    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41413printf "%s\n" "no" >&6; }
41414    tst_links_poll="no"
41415
41416fi
41417rm -f core conftest.err conftest.$ac_objext conftest.beam \
41418    conftest$ac_exeext conftest.$ac_ext
41419  #
41420  if test "$tst_links_poll" = "yes"; then
41421    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
41422printf %s "checking if poll is prototyped... " >&6; }
41423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41424/* end confdefs.h.  */
41425
41426      $curl_includes_poll
41427
41428_ACEOF
41429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41430  $EGREP "poll" >/dev/null 2>&1
41431then :
41432
41433      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41434printf "%s\n" "yes" >&6; }
41435      tst_proto_poll="yes"
41436
41437else $as_nop
41438
41439      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41440printf "%s\n" "no" >&6; }
41441      tst_proto_poll="no"
41442
41443fi
41444rm -rf conftest*
41445
41446  fi
41447  #
41448  if test "$tst_proto_poll" = "yes"; then
41449    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
41450printf %s "checking if poll is compilable... " >&6; }
41451    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41452/* end confdefs.h.  */
41453
41454
41455        $curl_includes_poll
41456
41457int main (void)
41458{
41459
41460        if(0 != poll(0, 0, 0))
41461          return 1;
41462
41463 ;
41464 return 0;
41465}
41466
41467_ACEOF
41468if ac_fn_c_try_compile "$LINENO"
41469then :
41470
41471      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41472printf "%s\n" "yes" >&6; }
41473      tst_compi_poll="yes"
41474
41475else $as_nop
41476
41477      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41478printf "%s\n" "no" >&6; }
41479      tst_compi_poll="no"
41480
41481fi
41482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41483  fi
41484  #
41485    if test "x$cross_compiling" != "xyes" &&
41486    test "$tst_compi_poll" = "yes"; then
41487    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
41488printf %s "checking if poll seems to work... " >&6; }
41489
41490   case $host_os in
41491     darwin*)
41492      if test "$cross_compiling" = yes
41493then :
41494  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41495printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41496as_fn_error $? "cannot run test program while cross compiling
41497See \`config.log' for more details" "$LINENO" 5; }
41498else $as_nop
41499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41500/* end confdefs.h.  */
41501
41502
41503        $curl_includes_stdlib
41504        $curl_includes_poll
41505        $curl_includes_time
41506
41507int main (void)
41508{
41509
41510        /* detect the original poll() breakage */
41511        if(0 != poll(0, 0, 10))
41512          exit(1); /* fail */
41513        else {
41514          /* detect the 10.12 poll() breakage */
41515          struct timeval before, after;
41516          int rc;
41517          size_t us;
41518
41519          gettimeofday(&before, NULL);
41520          rc = poll(NULL, 0, 500);
41521          gettimeofday(&after, NULL);
41522
41523          us = (after.tv_sec - before.tv_sec) * 1000000 +
41524            (after.tv_usec - before.tv_usec);
41525
41526          if(us < 400000)
41527            exit(1);
41528        }
41529
41530 ;
41531 return 0;
41532}
41533
41534_ACEOF
41535if ac_fn_c_try_run "$LINENO"
41536then :
41537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41538printf "%s\n" "yes" >&6; }
41539      tst_works_poll="yes"
41540
41541else $as_nop
41542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41543printf "%s\n" "no" >&6; }
41544      tst_works_poll="no"
41545
41546fi
41547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41548  conftest.$ac_objext conftest.beam conftest.$ac_ext
41549fi
41550
41551     ;;
41552     *)
41553      oldcc=$CC
41554      old=$LD_LIBRARY_PATH
41555      CC="sh ./run-compiler"
41556      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
41557      export LD_LIBRARY_PATH
41558      if test "$cross_compiling" = yes
41559then :
41560  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41561printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41562as_fn_error $? "cannot run test program while cross compiling
41563See \`config.log' for more details" "$LINENO" 5; }
41564else $as_nop
41565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41566/* end confdefs.h.  */
41567
41568
41569        $curl_includes_stdlib
41570        $curl_includes_poll
41571        $curl_includes_time
41572
41573int main (void)
41574{
41575
41576        /* detect the original poll() breakage */
41577        if(0 != poll(0, 0, 10))
41578          exit(1); /* fail */
41579        else {
41580          /* detect the 10.12 poll() breakage */
41581          struct timeval before, after;
41582          int rc;
41583          size_t us;
41584
41585          gettimeofday(&before, NULL);
41586          rc = poll(NULL, 0, 500);
41587          gettimeofday(&after, NULL);
41588
41589          us = (after.tv_sec - before.tv_sec) * 1000000 +
41590            (after.tv_usec - before.tv_usec);
41591
41592          if(us < 400000)
41593            exit(1);
41594        }
41595
41596 ;
41597 return 0;
41598}
41599
41600_ACEOF
41601if ac_fn_c_try_run "$LINENO"
41602then :
41603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41604printf "%s\n" "yes" >&6; }
41605      tst_works_poll="yes"
41606
41607else $as_nop
41608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41609printf "%s\n" "no" >&6; }
41610      tst_works_poll="no"
41611
41612fi
41613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41614  conftest.$ac_objext conftest.beam conftest.$ac_ext
41615fi
41616
41617      LD_LIBRARY_PATH=$old # restore
41618      CC=$oldcc
41619     ;;
41620   esac
41621
41622  fi
41623  #
41624  if test "$tst_compi_poll" = "yes" &&
41625    test "$tst_works_poll" != "no"; then
41626    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
41627printf %s "checking if poll usage allowed... " >&6; }
41628    if test "x$curl_disallow_poll" != "xyes"; then
41629      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41630printf "%s\n" "yes" >&6; }
41631      tst_allow_poll="yes"
41632    else
41633      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41634printf "%s\n" "no" >&6; }
41635      tst_allow_poll="no"
41636    fi
41637  fi
41638  #
41639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
41640printf %s "checking if poll might be used... " >&6; }
41641  if test "$tst_links_poll" = "yes" &&
41642     test "$tst_proto_poll" = "yes" &&
41643     test "$tst_compi_poll" = "yes" &&
41644     test "$tst_allow_poll" = "yes" &&
41645     test "$tst_works_poll" != "no"; then
41646    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41647printf "%s\n" "yes" >&6; }
41648
41649printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
41650
41651    curl_cv_func_poll="yes"
41652  else
41653    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41654printf "%s\n" "no" >&6; }
41655    curl_cv_func_poll="no"
41656  fi
41657
41658
41659curl_includes_signal="\
41660/* includes start */
41661#ifdef HAVE_SYS_TYPES_H
41662#  include <sys/types.h>
41663#endif
41664#include <signal.h>
41665/* includes end */"
41666  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
41667"
41668if test "x$ac_cv_header_sys_types_h" = xyes
41669then :
41670  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41671
41672fi
41673
41674
41675
41676    #
41677  tst_links_sigaction="unknown"
41678  tst_proto_sigaction="unknown"
41679  tst_compi_sigaction="unknown"
41680  tst_allow_sigaction="unknown"
41681  #
41682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
41683printf %s "checking if sigaction can be linked... " >&6; }
41684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41685/* end confdefs.h.  */
41686
41687
41688#define sigaction innocuous_sigaction
41689#ifdef __STDC__
41690# include <limits.h>
41691#else
41692# include <assert.h>
41693#endif
41694#undef sigaction
41695#ifdef __cplusplus
41696extern "C"
41697#endif
41698char sigaction ();
41699#if defined __stub_sigaction || defined __stub___sigaction
41700choke me
41701#endif
41702
41703int main (void)
41704{
41705return sigaction ();
41706 ;
41707 return 0;
41708}
41709
41710_ACEOF
41711if ac_fn_c_try_link "$LINENO"
41712then :
41713
41714    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41715printf "%s\n" "yes" >&6; }
41716    tst_links_sigaction="yes"
41717
41718else $as_nop
41719
41720    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41721printf "%s\n" "no" >&6; }
41722    tst_links_sigaction="no"
41723
41724fi
41725rm -f core conftest.err conftest.$ac_objext conftest.beam \
41726    conftest$ac_exeext conftest.$ac_ext
41727  #
41728  if test "$tst_links_sigaction" = "yes"; then
41729    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
41730printf %s "checking if sigaction is prototyped... " >&6; }
41731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41732/* end confdefs.h.  */
41733
41734      $curl_includes_signal
41735
41736_ACEOF
41737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41738  $EGREP "sigaction" >/dev/null 2>&1
41739then :
41740
41741      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41742printf "%s\n" "yes" >&6; }
41743      tst_proto_sigaction="yes"
41744
41745else $as_nop
41746
41747      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41748printf "%s\n" "no" >&6; }
41749      tst_proto_sigaction="no"
41750
41751fi
41752rm -rf conftest*
41753
41754  fi
41755  #
41756  if test "$tst_proto_sigaction" = "yes"; then
41757    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
41758printf %s "checking if sigaction is compilable... " >&6; }
41759    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41760/* end confdefs.h.  */
41761
41762
41763        $curl_includes_signal
41764
41765int main (void)
41766{
41767
41768        if(0 != sigaction(0, 0, 0))
41769          return 1;
41770
41771 ;
41772 return 0;
41773}
41774
41775_ACEOF
41776if ac_fn_c_try_compile "$LINENO"
41777then :
41778
41779      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41780printf "%s\n" "yes" >&6; }
41781      tst_compi_sigaction="yes"
41782
41783else $as_nop
41784
41785      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41786printf "%s\n" "no" >&6; }
41787      tst_compi_sigaction="no"
41788
41789fi
41790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41791  fi
41792  #
41793  if test "$tst_compi_sigaction" = "yes"; then
41794    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
41795printf %s "checking if sigaction usage allowed... " >&6; }
41796    if test "x$curl_disallow_sigaction" != "xyes"; then
41797      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41798printf "%s\n" "yes" >&6; }
41799      tst_allow_sigaction="yes"
41800    else
41801      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41802printf "%s\n" "no" >&6; }
41803      tst_allow_sigaction="no"
41804    fi
41805  fi
41806  #
41807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
41808printf %s "checking if sigaction might be used... " >&6; }
41809  if test "$tst_links_sigaction" = "yes" &&
41810     test "$tst_proto_sigaction" = "yes" &&
41811     test "$tst_compi_sigaction" = "yes" &&
41812     test "$tst_allow_sigaction" = "yes"; then
41813    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41814printf "%s\n" "yes" >&6; }
41815
41816printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
41817
41818    curl_cv_func_sigaction="yes"
41819  else
41820    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41821printf "%s\n" "no" >&6; }
41822    curl_cv_func_sigaction="no"
41823  fi
41824
41825
41826    #
41827  tst_links_siginterrupt="unknown"
41828  tst_proto_siginterrupt="unknown"
41829  tst_compi_siginterrupt="unknown"
41830  tst_allow_siginterrupt="unknown"
41831  #
41832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41833printf %s "checking if siginterrupt can be linked... " >&6; }
41834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41835/* end confdefs.h.  */
41836
41837
41838#define siginterrupt innocuous_siginterrupt
41839#ifdef __STDC__
41840# include <limits.h>
41841#else
41842# include <assert.h>
41843#endif
41844#undef siginterrupt
41845#ifdef __cplusplus
41846extern "C"
41847#endif
41848char siginterrupt ();
41849#if defined __stub_siginterrupt || defined __stub___siginterrupt
41850choke me
41851#endif
41852
41853int main (void)
41854{
41855return siginterrupt ();
41856 ;
41857 return 0;
41858}
41859
41860_ACEOF
41861if ac_fn_c_try_link "$LINENO"
41862then :
41863
41864    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41865printf "%s\n" "yes" >&6; }
41866    tst_links_siginterrupt="yes"
41867
41868else $as_nop
41869
41870    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41871printf "%s\n" "no" >&6; }
41872    tst_links_siginterrupt="no"
41873
41874fi
41875rm -f core conftest.err conftest.$ac_objext conftest.beam \
41876    conftest$ac_exeext conftest.$ac_ext
41877  #
41878  if test "$tst_links_siginterrupt" = "yes"; then
41879    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41880printf %s "checking if siginterrupt is prototyped... " >&6; }
41881    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41882/* end confdefs.h.  */
41883
41884      $curl_includes_signal
41885
41886_ACEOF
41887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41888  $EGREP "siginterrupt" >/dev/null 2>&1
41889then :
41890
41891      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41892printf "%s\n" "yes" >&6; }
41893      tst_proto_siginterrupt="yes"
41894
41895else $as_nop
41896
41897      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41898printf "%s\n" "no" >&6; }
41899      tst_proto_siginterrupt="no"
41900
41901fi
41902rm -rf conftest*
41903
41904  fi
41905  #
41906  if test "$tst_proto_siginterrupt" = "yes"; then
41907    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41908printf %s "checking if siginterrupt is compilable... " >&6; }
41909    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41910/* end confdefs.h.  */
41911
41912
41913        $curl_includes_signal
41914
41915int main (void)
41916{
41917
41918        if(0 != siginterrupt(0, 0))
41919          return 1;
41920
41921 ;
41922 return 0;
41923}
41924
41925_ACEOF
41926if ac_fn_c_try_compile "$LINENO"
41927then :
41928
41929      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41930printf "%s\n" "yes" >&6; }
41931      tst_compi_siginterrupt="yes"
41932
41933else $as_nop
41934
41935      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41936printf "%s\n" "no" >&6; }
41937      tst_compi_siginterrupt="no"
41938
41939fi
41940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41941  fi
41942  #
41943  if test "$tst_compi_siginterrupt" = "yes"; then
41944    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41945printf %s "checking if siginterrupt usage allowed... " >&6; }
41946    if test "x$curl_disallow_siginterrupt" != "xyes"; then
41947      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41948printf "%s\n" "yes" >&6; }
41949      tst_allow_siginterrupt="yes"
41950    else
41951      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41952printf "%s\n" "no" >&6; }
41953      tst_allow_siginterrupt="no"
41954    fi
41955  fi
41956  #
41957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41958printf %s "checking if siginterrupt might be used... " >&6; }
41959  if test "$tst_links_siginterrupt" = "yes" &&
41960     test "$tst_proto_siginterrupt" = "yes" &&
41961     test "$tst_compi_siginterrupt" = "yes" &&
41962     test "$tst_allow_siginterrupt" = "yes"; then
41963    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41964printf "%s\n" "yes" >&6; }
41965
41966printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41967
41968    curl_cv_func_siginterrupt="yes"
41969  else
41970    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41971printf "%s\n" "no" >&6; }
41972    curl_cv_func_siginterrupt="no"
41973  fi
41974
41975
41976    #
41977  tst_links_signal="unknown"
41978  tst_proto_signal="unknown"
41979  tst_compi_signal="unknown"
41980  tst_allow_signal="unknown"
41981  #
41982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41983printf %s "checking if signal can be linked... " >&6; }
41984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41985/* end confdefs.h.  */
41986
41987
41988#define signal innocuous_signal
41989#ifdef __STDC__
41990# include <limits.h>
41991#else
41992# include <assert.h>
41993#endif
41994#undef signal
41995#ifdef __cplusplus
41996extern "C"
41997#endif
41998char signal ();
41999#if defined __stub_signal || defined __stub___signal
42000choke me
42001#endif
42002
42003int main (void)
42004{
42005return signal ();
42006 ;
42007 return 0;
42008}
42009
42010_ACEOF
42011if ac_fn_c_try_link "$LINENO"
42012then :
42013
42014    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42015printf "%s\n" "yes" >&6; }
42016    tst_links_signal="yes"
42017
42018else $as_nop
42019
42020    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42021printf "%s\n" "no" >&6; }
42022    tst_links_signal="no"
42023
42024fi
42025rm -f core conftest.err conftest.$ac_objext conftest.beam \
42026    conftest$ac_exeext conftest.$ac_ext
42027  #
42028  if test "$tst_links_signal" = "yes"; then
42029    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
42030printf %s "checking if signal is prototyped... " >&6; }
42031    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42032/* end confdefs.h.  */
42033
42034      $curl_includes_signal
42035
42036_ACEOF
42037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42038  $EGREP "signal" >/dev/null 2>&1
42039then :
42040
42041      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42042printf "%s\n" "yes" >&6; }
42043      tst_proto_signal="yes"
42044
42045else $as_nop
42046
42047      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42048printf "%s\n" "no" >&6; }
42049      tst_proto_signal="no"
42050
42051fi
42052rm -rf conftest*
42053
42054  fi
42055  #
42056  if test "$tst_proto_signal" = "yes"; then
42057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
42058printf %s "checking if signal is compilable... " >&6; }
42059    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42060/* end confdefs.h.  */
42061
42062
42063        $curl_includes_signal
42064
42065int main (void)
42066{
42067
42068        if(0 != signal(0, 0))
42069          return 1;
42070
42071 ;
42072 return 0;
42073}
42074
42075_ACEOF
42076if ac_fn_c_try_compile "$LINENO"
42077then :
42078
42079      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42080printf "%s\n" "yes" >&6; }
42081      tst_compi_signal="yes"
42082
42083else $as_nop
42084
42085      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42086printf "%s\n" "no" >&6; }
42087      tst_compi_signal="no"
42088
42089fi
42090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42091  fi
42092  #
42093  if test "$tst_compi_signal" = "yes"; then
42094    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
42095printf %s "checking if signal usage allowed... " >&6; }
42096    if test "x$curl_disallow_signal" != "xyes"; then
42097      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42098printf "%s\n" "yes" >&6; }
42099      tst_allow_signal="yes"
42100    else
42101      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42102printf "%s\n" "no" >&6; }
42103      tst_allow_signal="no"
42104    fi
42105  fi
42106  #
42107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
42108printf %s "checking if signal might be used... " >&6; }
42109  if test "$tst_links_signal" = "yes" &&
42110     test "$tst_proto_signal" = "yes" &&
42111     test "$tst_compi_signal" = "yes" &&
42112     test "$tst_allow_signal" = "yes"; then
42113    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42114printf "%s\n" "yes" >&6; }
42115
42116printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
42117
42118    curl_cv_func_signal="yes"
42119  else
42120    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42121printf "%s\n" "no" >&6; }
42122    curl_cv_func_signal="no"
42123  fi
42124
42125
42126curl_includes_setjmp="\
42127/* includes start */
42128#ifdef HAVE_SYS_TYPES_H
42129#  include <sys/types.h>
42130#endif
42131#include <setjmp.h>
42132/* includes end */"
42133  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
42134"
42135if test "x$ac_cv_header_sys_types_h" = xyes
42136then :
42137  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
42138
42139fi
42140
42141
42142
42143    #
42144  tst_links_sigsetjmp="unknown"
42145  tst_macro_sigsetjmp="unknown"
42146  tst_proto_sigsetjmp="unknown"
42147  tst_compi_sigsetjmp="unknown"
42148  tst_allow_sigsetjmp="unknown"
42149  #
42150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
42151printf %s "checking if sigsetjmp can be linked... " >&6; }
42152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42153/* end confdefs.h.  */
42154
42155
42156#define sigsetjmp innocuous_sigsetjmp
42157#ifdef __STDC__
42158# include <limits.h>
42159#else
42160# include <assert.h>
42161#endif
42162#undef sigsetjmp
42163#ifdef __cplusplus
42164extern "C"
42165#endif
42166char sigsetjmp ();
42167#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
42168choke me
42169#endif
42170
42171int main (void)
42172{
42173return sigsetjmp ();
42174 ;
42175 return 0;
42176}
42177
42178_ACEOF
42179if ac_fn_c_try_link "$LINENO"
42180then :
42181
42182    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42183printf "%s\n" "yes" >&6; }
42184    tst_links_sigsetjmp="yes"
42185
42186else $as_nop
42187
42188    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42189printf "%s\n" "no" >&6; }
42190    tst_links_sigsetjmp="no"
42191
42192fi
42193rm -f core conftest.err conftest.$ac_objext conftest.beam \
42194    conftest$ac_exeext conftest.$ac_ext
42195  #
42196  if test "$tst_links_sigsetjmp" = "no"; then
42197    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
42198printf %s "checking if sigsetjmp seems a macro... " >&6; }
42199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42200/* end confdefs.h.  */
42201
42202
42203        $curl_includes_setjmp
42204
42205int main (void)
42206{
42207
42208        sigjmp_buf env;
42209        if(0 != sigsetjmp(env, 0))
42210          return 1;
42211
42212 ;
42213 return 0;
42214}
42215
42216_ACEOF
42217if ac_fn_c_try_link "$LINENO"
42218then :
42219
42220      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42221printf "%s\n" "yes" >&6; }
42222      tst_macro_sigsetjmp="yes"
42223
42224else $as_nop
42225
42226      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42227printf "%s\n" "no" >&6; }
42228      tst_macro_sigsetjmp="no"
42229
42230fi
42231rm -f core conftest.err conftest.$ac_objext conftest.beam \
42232    conftest$ac_exeext conftest.$ac_ext
42233  fi
42234  #
42235  if test "$tst_links_sigsetjmp" = "yes"; then
42236    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
42237printf %s "checking if sigsetjmp is prototyped... " >&6; }
42238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42239/* end confdefs.h.  */
42240
42241      $curl_includes_setjmp
42242
42243_ACEOF
42244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42245  $EGREP "sigsetjmp" >/dev/null 2>&1
42246then :
42247
42248      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42249printf "%s\n" "yes" >&6; }
42250      tst_proto_sigsetjmp="yes"
42251
42252else $as_nop
42253
42254      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42255printf "%s\n" "no" >&6; }
42256      tst_proto_sigsetjmp="no"
42257
42258fi
42259rm -rf conftest*
42260
42261  fi
42262  #
42263  if test "$tst_proto_sigsetjmp" = "yes" ||
42264     test "$tst_macro_sigsetjmp" = "yes"; then
42265    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
42266printf %s "checking if sigsetjmp is compilable... " >&6; }
42267    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42268/* end confdefs.h.  */
42269
42270
42271        $curl_includes_setjmp
42272
42273int main (void)
42274{
42275
42276        sigjmp_buf env;
42277        if(0 != sigsetjmp(env, 0))
42278          return 1;
42279
42280 ;
42281 return 0;
42282}
42283
42284_ACEOF
42285if ac_fn_c_try_compile "$LINENO"
42286then :
42287
42288      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42289printf "%s\n" "yes" >&6; }
42290      tst_compi_sigsetjmp="yes"
42291
42292else $as_nop
42293
42294      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42295printf "%s\n" "no" >&6; }
42296      tst_compi_sigsetjmp="no"
42297
42298fi
42299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42300  fi
42301  #
42302  if test "$tst_compi_sigsetjmp" = "yes"; then
42303    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
42304printf %s "checking if sigsetjmp usage allowed... " >&6; }
42305    if test "x$curl_disallow_sigsetjmp" != "xyes"; then
42306      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42307printf "%s\n" "yes" >&6; }
42308      tst_allow_sigsetjmp="yes"
42309    else
42310      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42311printf "%s\n" "no" >&6; }
42312      tst_allow_sigsetjmp="no"
42313    fi
42314  fi
42315  #
42316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
42317printf %s "checking if sigsetjmp might be used... " >&6; }
42318  if (test "$tst_proto_sigsetjmp" = "yes" ||
42319      test "$tst_macro_sigsetjmp" = "yes") &&
42320     test "$tst_compi_sigsetjmp" = "yes" &&
42321     test "$tst_allow_sigsetjmp" = "yes"; then
42322    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42323printf "%s\n" "yes" >&6; }
42324
42325printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
42326
42327    curl_cv_func_sigsetjmp="yes"
42328  else
42329    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42330printf "%s\n" "no" >&6; }
42331    curl_cv_func_sigsetjmp="no"
42332  fi
42333
42334
42335        #
42336  tst_links_socket="unknown"
42337  tst_proto_socket="unknown"
42338  tst_compi_socket="unknown"
42339  tst_allow_socket="unknown"
42340  #
42341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
42342printf %s "checking if socket can be linked... " >&6; }
42343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42344/* end confdefs.h.  */
42345
42346
42347      $curl_includes_winsock2
42348      $curl_includes_bsdsocket
42349      $curl_includes_sys_socket
42350      $curl_includes_socket
42351
42352int main (void)
42353{
42354
42355      if(0 != socket(0, 0, 0))
42356        return 1;
42357
42358 ;
42359 return 0;
42360}
42361
42362_ACEOF
42363if ac_fn_c_try_link "$LINENO"
42364then :
42365
42366    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42367printf "%s\n" "yes" >&6; }
42368    tst_links_socket="yes"
42369
42370else $as_nop
42371
42372    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42373printf "%s\n" "no" >&6; }
42374    tst_links_socket="no"
42375
42376fi
42377rm -f core conftest.err conftest.$ac_objext conftest.beam \
42378    conftest$ac_exeext conftest.$ac_ext
42379  #
42380  if test "$tst_links_socket" = "yes"; then
42381    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
42382printf %s "checking if socket is prototyped... " >&6; }
42383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42384/* end confdefs.h.  */
42385
42386      $curl_includes_winsock2
42387      $curl_includes_bsdsocket
42388      $curl_includes_sys_socket
42389      $curl_includes_socket
42390
42391_ACEOF
42392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42393  $EGREP "socket" >/dev/null 2>&1
42394then :
42395
42396      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42397printf "%s\n" "yes" >&6; }
42398      tst_proto_socket="yes"
42399
42400else $as_nop
42401
42402      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42403printf "%s\n" "no" >&6; }
42404      tst_proto_socket="no"
42405
42406fi
42407rm -rf conftest*
42408
42409  fi
42410  #
42411  if test "$tst_proto_socket" = "yes"; then
42412    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
42413printf %s "checking if socket is compilable... " >&6; }
42414    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42415/* end confdefs.h.  */
42416
42417
42418        $curl_includes_winsock2
42419        $curl_includes_bsdsocket
42420        $curl_includes_sys_socket
42421        $curl_includes_socket
42422
42423int main (void)
42424{
42425
42426        if(0 != socket(0, 0, 0))
42427          return 1;
42428
42429 ;
42430 return 0;
42431}
42432
42433_ACEOF
42434if ac_fn_c_try_compile "$LINENO"
42435then :
42436
42437      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42438printf "%s\n" "yes" >&6; }
42439      tst_compi_socket="yes"
42440
42441else $as_nop
42442
42443      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42444printf "%s\n" "no" >&6; }
42445      tst_compi_socket="no"
42446
42447fi
42448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42449  fi
42450  #
42451  if test "$tst_compi_socket" = "yes"; then
42452    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
42453printf %s "checking if socket usage allowed... " >&6; }
42454    if test "x$curl_disallow_socket" != "xyes"; then
42455      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42456printf "%s\n" "yes" >&6; }
42457      tst_allow_socket="yes"
42458    else
42459      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42460printf "%s\n" "no" >&6; }
42461      tst_allow_socket="no"
42462    fi
42463  fi
42464  #
42465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
42466printf %s "checking if socket might be used... " >&6; }
42467  if test "$tst_links_socket" = "yes" &&
42468     test "$tst_proto_socket" = "yes" &&
42469     test "$tst_compi_socket" = "yes" &&
42470     test "$tst_allow_socket" = "yes"; then
42471    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42472printf "%s\n" "yes" >&6; }
42473
42474printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
42475
42476    curl_cv_func_socket="yes"
42477  else
42478    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42479printf "%s\n" "no" >&6; }
42480    curl_cv_func_socket="no"
42481  fi
42482
42483
42484      #
42485  tst_links_socketpair="unknown"
42486  tst_proto_socketpair="unknown"
42487  tst_compi_socketpair="unknown"
42488  tst_allow_socketpair="unknown"
42489  #
42490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
42491printf %s "checking if socketpair can be linked... " >&6; }
42492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42493/* end confdefs.h.  */
42494
42495
42496#define socketpair innocuous_socketpair
42497#ifdef __STDC__
42498# include <limits.h>
42499#else
42500# include <assert.h>
42501#endif
42502#undef socketpair
42503#ifdef __cplusplus
42504extern "C"
42505#endif
42506char socketpair ();
42507#if defined __stub_socketpair || defined __stub___socketpair
42508choke me
42509#endif
42510
42511int main (void)
42512{
42513return socketpair ();
42514 ;
42515 return 0;
42516}
42517
42518_ACEOF
42519if ac_fn_c_try_link "$LINENO"
42520then :
42521
42522    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42523printf "%s\n" "yes" >&6; }
42524    tst_links_socketpair="yes"
42525
42526else $as_nop
42527
42528    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42529printf "%s\n" "no" >&6; }
42530    tst_links_socketpair="no"
42531
42532fi
42533rm -f core conftest.err conftest.$ac_objext conftest.beam \
42534    conftest$ac_exeext conftest.$ac_ext
42535  #
42536  if test "$tst_links_socketpair" = "yes"; then
42537    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
42538printf %s "checking if socketpair is prototyped... " >&6; }
42539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42540/* end confdefs.h.  */
42541
42542      $curl_includes_sys_socket
42543      $curl_includes_socket
42544
42545_ACEOF
42546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42547  $EGREP "socketpair" >/dev/null 2>&1
42548then :
42549
42550      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42551printf "%s\n" "yes" >&6; }
42552      tst_proto_socketpair="yes"
42553
42554else $as_nop
42555
42556      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42557printf "%s\n" "no" >&6; }
42558      tst_proto_socketpair="no"
42559
42560fi
42561rm -rf conftest*
42562
42563  fi
42564  #
42565  if test "$tst_proto_socketpair" = "yes"; then
42566    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
42567printf %s "checking if socketpair is compilable... " >&6; }
42568    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42569/* end confdefs.h.  */
42570
42571
42572        $curl_includes_sys_socket
42573        $curl_includes_socket
42574
42575int main (void)
42576{
42577
42578        int sv[2];
42579        if(0 != socketpair(0, 0, 0, sv))
42580          return 1;
42581
42582 ;
42583 return 0;
42584}
42585
42586_ACEOF
42587if ac_fn_c_try_compile "$LINENO"
42588then :
42589
42590      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42591printf "%s\n" "yes" >&6; }
42592      tst_compi_socketpair="yes"
42593
42594else $as_nop
42595
42596      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42597printf "%s\n" "no" >&6; }
42598      tst_compi_socketpair="no"
42599
42600fi
42601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42602  fi
42603  #
42604  if test "$tst_compi_socketpair" = "yes"; then
42605    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
42606printf %s "checking if socketpair usage allowed... " >&6; }
42607    if test "x$curl_disallow_socketpair" != "xyes"; then
42608      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42609printf "%s\n" "yes" >&6; }
42610      tst_allow_socketpair="yes"
42611    else
42612      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42613printf "%s\n" "no" >&6; }
42614      tst_allow_socketpair="no"
42615    fi
42616  fi
42617  #
42618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
42619printf %s "checking if socketpair might be used... " >&6; }
42620  if test "$tst_links_socketpair" = "yes" &&
42621     test "$tst_proto_socketpair" = "yes" &&
42622     test "$tst_compi_socketpair" = "yes" &&
42623     test "$tst_allow_socketpair" = "yes"; then
42624    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42625printf "%s\n" "yes" >&6; }
42626
42627printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
42628
42629    curl_cv_func_socketpair="yes"
42630  else
42631    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42632printf "%s\n" "no" >&6; }
42633    curl_cv_func_socketpair="no"
42634  fi
42635
42636
42637    #
42638  tst_links_strcasecmp="unknown"
42639  tst_proto_strcasecmp="unknown"
42640  tst_compi_strcasecmp="unknown"
42641  tst_allow_strcasecmp="unknown"
42642  #
42643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
42644printf %s "checking if strcasecmp can be linked... " >&6; }
42645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42646/* end confdefs.h.  */
42647
42648
42649#define strcasecmp innocuous_strcasecmp
42650#ifdef __STDC__
42651# include <limits.h>
42652#else
42653# include <assert.h>
42654#endif
42655#undef strcasecmp
42656#ifdef __cplusplus
42657extern "C"
42658#endif
42659char strcasecmp ();
42660#if defined __stub_strcasecmp || defined __stub___strcasecmp
42661choke me
42662#endif
42663
42664int main (void)
42665{
42666return strcasecmp ();
42667 ;
42668 return 0;
42669}
42670
42671_ACEOF
42672if ac_fn_c_try_link "$LINENO"
42673then :
42674
42675    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42676printf "%s\n" "yes" >&6; }
42677    tst_links_strcasecmp="yes"
42678
42679else $as_nop
42680
42681    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42682printf "%s\n" "no" >&6; }
42683    tst_links_strcasecmp="no"
42684
42685fi
42686rm -f core conftest.err conftest.$ac_objext conftest.beam \
42687    conftest$ac_exeext conftest.$ac_ext
42688  #
42689  if test "$tst_links_strcasecmp" = "yes"; then
42690    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
42691printf %s "checking if strcasecmp is prototyped... " >&6; }
42692    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42693/* end confdefs.h.  */
42694
42695      $curl_includes_string
42696
42697_ACEOF
42698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42699  $EGREP "strcasecmp" >/dev/null 2>&1
42700then :
42701
42702      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42703printf "%s\n" "yes" >&6; }
42704      tst_proto_strcasecmp="yes"
42705
42706else $as_nop
42707
42708      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42709printf "%s\n" "no" >&6; }
42710      tst_proto_strcasecmp="no"
42711
42712fi
42713rm -rf conftest*
42714
42715  fi
42716  #
42717  if test "$tst_proto_strcasecmp" = "yes"; then
42718    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
42719printf %s "checking if strcasecmp is compilable... " >&6; }
42720    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42721/* end confdefs.h.  */
42722
42723
42724        $curl_includes_string
42725
42726int main (void)
42727{
42728
42729        if(0 != strcasecmp(0, 0))
42730          return 1;
42731
42732 ;
42733 return 0;
42734}
42735
42736_ACEOF
42737if ac_fn_c_try_compile "$LINENO"
42738then :
42739
42740      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42741printf "%s\n" "yes" >&6; }
42742      tst_compi_strcasecmp="yes"
42743
42744else $as_nop
42745
42746      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42747printf "%s\n" "no" >&6; }
42748      tst_compi_strcasecmp="no"
42749
42750fi
42751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42752  fi
42753  #
42754  if test "$tst_compi_strcasecmp" = "yes"; then
42755    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
42756printf %s "checking if strcasecmp usage allowed... " >&6; }
42757    if test "x$curl_disallow_strcasecmp" != "xyes"; then
42758      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42759printf "%s\n" "yes" >&6; }
42760      tst_allow_strcasecmp="yes"
42761    else
42762      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42763printf "%s\n" "no" >&6; }
42764      tst_allow_strcasecmp="no"
42765    fi
42766  fi
42767  #
42768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
42769printf %s "checking if strcasecmp might be used... " >&6; }
42770  if test "$tst_links_strcasecmp" = "yes" &&
42771     test "$tst_proto_strcasecmp" = "yes" &&
42772     test "$tst_compi_strcasecmp" = "yes" &&
42773     test "$tst_allow_strcasecmp" = "yes"; then
42774    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42775printf "%s\n" "yes" >&6; }
42776
42777printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
42778
42779    curl_cv_func_strcasecmp="yes"
42780  else
42781    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42782printf "%s\n" "no" >&6; }
42783    curl_cv_func_strcasecmp="no"
42784  fi
42785
42786
42787    #
42788  tst_links_strcmpi="unknown"
42789  tst_proto_strcmpi="unknown"
42790  tst_compi_strcmpi="unknown"
42791  tst_allow_strcmpi="unknown"
42792  #
42793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
42794printf %s "checking if strcmpi can be linked... " >&6; }
42795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42796/* end confdefs.h.  */
42797
42798
42799#define strcmpi innocuous_strcmpi
42800#ifdef __STDC__
42801# include <limits.h>
42802#else
42803# include <assert.h>
42804#endif
42805#undef strcmpi
42806#ifdef __cplusplus
42807extern "C"
42808#endif
42809char strcmpi ();
42810#if defined __stub_strcmpi || defined __stub___strcmpi
42811choke me
42812#endif
42813
42814int main (void)
42815{
42816return strcmpi ();
42817 ;
42818 return 0;
42819}
42820
42821_ACEOF
42822if ac_fn_c_try_link "$LINENO"
42823then :
42824
42825    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42826printf "%s\n" "yes" >&6; }
42827    tst_links_strcmpi="yes"
42828
42829else $as_nop
42830
42831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42832printf "%s\n" "no" >&6; }
42833    tst_links_strcmpi="no"
42834
42835fi
42836rm -f core conftest.err conftest.$ac_objext conftest.beam \
42837    conftest$ac_exeext conftest.$ac_ext
42838  #
42839  if test "$tst_links_strcmpi" = "yes"; then
42840    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42841printf %s "checking if strcmpi is prototyped... " >&6; }
42842    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42843/* end confdefs.h.  */
42844
42845      $curl_includes_string
42846
42847_ACEOF
42848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42849  $EGREP "strcmpi" >/dev/null 2>&1
42850then :
42851
42852      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42853printf "%s\n" "yes" >&6; }
42854      tst_proto_strcmpi="yes"
42855
42856else $as_nop
42857
42858      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42859printf "%s\n" "no" >&6; }
42860      tst_proto_strcmpi="no"
42861
42862fi
42863rm -rf conftest*
42864
42865  fi
42866  #
42867  if test "$tst_proto_strcmpi" = "yes"; then
42868    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42869printf %s "checking if strcmpi is compilable... " >&6; }
42870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42871/* end confdefs.h.  */
42872
42873
42874        $curl_includes_string
42875
42876int main (void)
42877{
42878
42879        if(0 != strcmpi(0, 0))
42880          return 1;
42881
42882 ;
42883 return 0;
42884}
42885
42886_ACEOF
42887if ac_fn_c_try_compile "$LINENO"
42888then :
42889
42890      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42891printf "%s\n" "yes" >&6; }
42892      tst_compi_strcmpi="yes"
42893
42894else $as_nop
42895
42896      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42897printf "%s\n" "no" >&6; }
42898      tst_compi_strcmpi="no"
42899
42900fi
42901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42902  fi
42903  #
42904  if test "$tst_compi_strcmpi" = "yes"; then
42905    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42906printf %s "checking if strcmpi usage allowed... " >&6; }
42907    if test "x$curl_disallow_strcmpi" != "xyes"; then
42908      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42909printf "%s\n" "yes" >&6; }
42910      tst_allow_strcmpi="yes"
42911    else
42912      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42913printf "%s\n" "no" >&6; }
42914      tst_allow_strcmpi="no"
42915    fi
42916  fi
42917  #
42918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42919printf %s "checking if strcmpi might be used... " >&6; }
42920  if test "$tst_links_strcmpi" = "yes" &&
42921     test "$tst_proto_strcmpi" = "yes" &&
42922     test "$tst_compi_strcmpi" = "yes" &&
42923     test "$tst_allow_strcmpi" = "yes"; then
42924    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42925printf "%s\n" "yes" >&6; }
42926
42927printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42928
42929    curl_cv_func_strcmpi="yes"
42930  else
42931    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42932printf "%s\n" "no" >&6; }
42933    curl_cv_func_strcmpi="no"
42934  fi
42935
42936
42937    #
42938  tst_links_strdup="unknown"
42939  tst_proto_strdup="unknown"
42940  tst_compi_strdup="unknown"
42941  tst_allow_strdup="unknown"
42942  #
42943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42944printf %s "checking if strdup can be linked... " >&6; }
42945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42946/* end confdefs.h.  */
42947
42948
42949#define strdup innocuous_strdup
42950#ifdef __STDC__
42951# include <limits.h>
42952#else
42953# include <assert.h>
42954#endif
42955#undef strdup
42956#ifdef __cplusplus
42957extern "C"
42958#endif
42959char strdup ();
42960#if defined __stub_strdup || defined __stub___strdup
42961choke me
42962#endif
42963
42964int main (void)
42965{
42966return strdup ();
42967 ;
42968 return 0;
42969}
42970
42971_ACEOF
42972if ac_fn_c_try_link "$LINENO"
42973then :
42974
42975    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42976printf "%s\n" "yes" >&6; }
42977    tst_links_strdup="yes"
42978
42979else $as_nop
42980
42981    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42982printf "%s\n" "no" >&6; }
42983    tst_links_strdup="no"
42984
42985fi
42986rm -f core conftest.err conftest.$ac_objext conftest.beam \
42987    conftest$ac_exeext conftest.$ac_ext
42988  #
42989  if test "$tst_links_strdup" = "yes"; then
42990    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42991printf %s "checking if strdup is prototyped... " >&6; }
42992    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42993/* end confdefs.h.  */
42994
42995      $curl_includes_string
42996
42997_ACEOF
42998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42999  $EGREP "strdup" >/dev/null 2>&1
43000then :
43001
43002      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43003printf "%s\n" "yes" >&6; }
43004      tst_proto_strdup="yes"
43005
43006else $as_nop
43007
43008      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43009printf "%s\n" "no" >&6; }
43010      tst_proto_strdup="no"
43011
43012fi
43013rm -rf conftest*
43014
43015  fi
43016  #
43017  if test "$tst_proto_strdup" = "yes"; then
43018    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
43019printf %s "checking if strdup is compilable... " >&6; }
43020    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43021/* end confdefs.h.  */
43022
43023
43024        $curl_includes_string
43025
43026int main (void)
43027{
43028
43029        if(0 != strdup(0))
43030          return 1;
43031
43032 ;
43033 return 0;
43034}
43035
43036_ACEOF
43037if ac_fn_c_try_compile "$LINENO"
43038then :
43039
43040      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43041printf "%s\n" "yes" >&6; }
43042      tst_compi_strdup="yes"
43043
43044else $as_nop
43045
43046      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43047printf "%s\n" "no" >&6; }
43048      tst_compi_strdup="no"
43049
43050fi
43051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43052  fi
43053  #
43054  if test "$tst_compi_strdup" = "yes"; then
43055    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
43056printf %s "checking if strdup usage allowed... " >&6; }
43057    if test "x$curl_disallow_strdup" != "xyes"; then
43058      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43059printf "%s\n" "yes" >&6; }
43060      tst_allow_strdup="yes"
43061    else
43062      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43063printf "%s\n" "no" >&6; }
43064      tst_allow_strdup="no"
43065    fi
43066  fi
43067  #
43068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
43069printf %s "checking if strdup might be used... " >&6; }
43070  if test "$tst_links_strdup" = "yes" &&
43071     test "$tst_proto_strdup" = "yes" &&
43072     test "$tst_compi_strdup" = "yes" &&
43073     test "$tst_allow_strdup" = "yes"; then
43074    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43075printf "%s\n" "yes" >&6; }
43076
43077printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
43078
43079    curl_cv_func_strdup="yes"
43080  else
43081    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43082printf "%s\n" "no" >&6; }
43083    curl_cv_func_strdup="no"
43084  fi
43085
43086
43087      #
43088  tst_links_strerror_r="unknown"
43089  tst_proto_strerror_r="unknown"
43090  tst_compi_strerror_r="unknown"
43091  tst_glibc_strerror_r="unknown"
43092  tst_posix_strerror_r="unknown"
43093  tst_allow_strerror_r="unknown"
43094  tst_works_glibc_strerror_r="unknown"
43095  tst_works_posix_strerror_r="unknown"
43096  tst_glibc_strerror_r_type_arg3="unknown"
43097  tst_posix_strerror_r_type_arg3="unknown"
43098  #
43099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
43100printf %s "checking if strerror_r can be linked... " >&6; }
43101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43102/* end confdefs.h.  */
43103
43104
43105#define strerror_r innocuous_strerror_r
43106#ifdef __STDC__
43107# include <limits.h>
43108#else
43109# include <assert.h>
43110#endif
43111#undef strerror_r
43112#ifdef __cplusplus
43113extern "C"
43114#endif
43115char strerror_r ();
43116#if defined __stub_strerror_r || defined __stub___strerror_r
43117choke me
43118#endif
43119
43120int main (void)
43121{
43122return strerror_r ();
43123 ;
43124 return 0;
43125}
43126
43127_ACEOF
43128if ac_fn_c_try_link "$LINENO"
43129then :
43130
43131    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43132printf "%s\n" "yes" >&6; }
43133    tst_links_strerror_r="yes"
43134
43135else $as_nop
43136
43137    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43138printf "%s\n" "no" >&6; }
43139    tst_links_strerror_r="no"
43140
43141fi
43142rm -f core conftest.err conftest.$ac_objext conftest.beam \
43143    conftest$ac_exeext conftest.$ac_ext
43144  #
43145  if test "$tst_links_strerror_r" = "yes"; then
43146    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
43147printf %s "checking if strerror_r is prototyped... " >&6; }
43148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43149/* end confdefs.h.  */
43150
43151      $curl_includes_string
43152
43153_ACEOF
43154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43155  $EGREP "strerror_r" >/dev/null 2>&1
43156then :
43157
43158      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43159printf "%s\n" "yes" >&6; }
43160      tst_proto_strerror_r="yes"
43161
43162else $as_nop
43163
43164      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43165printf "%s\n" "no" >&6; }
43166      tst_proto_strerror_r="no"
43167
43168fi
43169rm -rf conftest*
43170
43171  fi
43172  #
43173  if test "$tst_proto_strerror_r" = "yes"; then
43174    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
43175printf %s "checking if strerror_r is compilable... " >&6; }
43176    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43177/* end confdefs.h.  */
43178
43179
43180        $curl_includes_string
43181
43182int main (void)
43183{
43184
43185        if(0 != strerror_r(0, 0, 0))
43186          return 1;
43187
43188 ;
43189 return 0;
43190}
43191
43192_ACEOF
43193if ac_fn_c_try_compile "$LINENO"
43194then :
43195
43196      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43197printf "%s\n" "yes" >&6; }
43198      tst_compi_strerror_r="yes"
43199
43200else $as_nop
43201
43202      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43203printf "%s\n" "no" >&6; }
43204      tst_compi_strerror_r="no"
43205
43206fi
43207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43208  fi
43209  #
43210  if test "$tst_compi_strerror_r" = "yes"; then
43211    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
43212printf %s "checking if strerror_r is glibc like... " >&6; }
43213    tst_glibc_strerror_r_type_arg3="unknown"
43214    for arg3 in 'size_t' 'int' 'unsigned int'; do
43215      if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
43216        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43217/* end confdefs.h.  */
43218
43219
43220            $curl_includes_string
43221            char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
43222
43223int main (void)
43224{
43225
43226            if(0 != strerror_r(0, 0, 0))
43227              return 1;
43228
43229 ;
43230 return 0;
43231}
43232
43233_ACEOF
43234if ac_fn_c_try_compile "$LINENO"
43235then :
43236
43237          tst_glibc_strerror_r_type_arg3="$arg3"
43238
43239fi
43240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43241      fi
43242    done
43243    case "$tst_glibc_strerror_r_type_arg3" in
43244      unknown)
43245        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43246printf "%s\n" "no" >&6; }
43247        tst_glibc_strerror_r="no"
43248        ;;
43249      *)
43250        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43251printf "%s\n" "yes" >&6; }
43252        tst_glibc_strerror_r="yes"
43253        ;;
43254    esac
43255  fi
43256  #
43257    if test "x$cross_compiling" != "xyes" &&
43258    test "$tst_glibc_strerror_r" = "yes"; then
43259    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
43260printf %s "checking if strerror_r seems to work... " >&6; }
43261
43262   case $host_os in
43263     darwin*)
43264      if test "$cross_compiling" = yes
43265then :
43266  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43267printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43268as_fn_error $? "cannot run test program while cross compiling
43269See \`config.log' for more details" "$LINENO" 5; }
43270else $as_nop
43271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43272/* end confdefs.h.  */
43273
43274
43275        $curl_includes_stdlib
43276        $curl_includes_string
43277#       include <errno.h>
43278
43279int main (void)
43280{
43281
43282        char buffer[1024];
43283        char *string = 0;
43284        buffer[0] = '\0';
43285        string = strerror_r(EACCES, buffer, sizeof(buffer));
43286        if(!string)
43287          exit(1); /* fail */
43288        if(!string[0])
43289          exit(1); /* fail */
43290        else
43291          exit(0);
43292
43293 ;
43294 return 0;
43295}
43296
43297_ACEOF
43298if ac_fn_c_try_run "$LINENO"
43299then :
43300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43301printf "%s\n" "yes" >&6; }
43302      tst_works_glibc_strerror_r="yes"
43303
43304else $as_nop
43305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43306printf "%s\n" "no" >&6; }
43307      tst_works_glibc_strerror_r="no"
43308
43309fi
43310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43311  conftest.$ac_objext conftest.beam conftest.$ac_ext
43312fi
43313
43314     ;;
43315     *)
43316      oldcc=$CC
43317      old=$LD_LIBRARY_PATH
43318      CC="sh ./run-compiler"
43319      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
43320      export LD_LIBRARY_PATH
43321      if test "$cross_compiling" = yes
43322then :
43323  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43324printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43325as_fn_error $? "cannot run test program while cross compiling
43326See \`config.log' for more details" "$LINENO" 5; }
43327else $as_nop
43328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43329/* end confdefs.h.  */
43330
43331
43332        $curl_includes_stdlib
43333        $curl_includes_string
43334#       include <errno.h>
43335
43336int main (void)
43337{
43338
43339        char buffer[1024];
43340        char *string = 0;
43341        buffer[0] = '\0';
43342        string = strerror_r(EACCES, buffer, sizeof(buffer));
43343        if(!string)
43344          exit(1); /* fail */
43345        if(!string[0])
43346          exit(1); /* fail */
43347        else
43348          exit(0);
43349
43350 ;
43351 return 0;
43352}
43353
43354_ACEOF
43355if ac_fn_c_try_run "$LINENO"
43356then :
43357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43358printf "%s\n" "yes" >&6; }
43359      tst_works_glibc_strerror_r="yes"
43360
43361else $as_nop
43362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43363printf "%s\n" "no" >&6; }
43364      tst_works_glibc_strerror_r="no"
43365
43366fi
43367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43368  conftest.$ac_objext conftest.beam conftest.$ac_ext
43369fi
43370
43371      LD_LIBRARY_PATH=$old # restore
43372      CC=$oldcc
43373     ;;
43374   esac
43375
43376  fi
43377  #
43378  if test "$tst_compi_strerror_r" = "yes" &&
43379    test "$tst_works_glibc_strerror_r" != "yes"; then
43380    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
43381printf %s "checking if strerror_r is POSIX like... " >&6; }
43382    tst_posix_strerror_r_type_arg3="unknown"
43383    for arg3 in 'size_t' 'int' 'unsigned int'; do
43384      if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
43385        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43386/* end confdefs.h.  */
43387
43388
43389            $curl_includes_string
43390            int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
43391
43392int main (void)
43393{
43394
43395            if(0 != strerror_r(0, 0, 0))
43396              return 1;
43397
43398 ;
43399 return 0;
43400}
43401
43402_ACEOF
43403if ac_fn_c_try_compile "$LINENO"
43404then :
43405
43406          tst_posix_strerror_r_type_arg3="$arg3"
43407
43408fi
43409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43410      fi
43411    done
43412    case "$tst_posix_strerror_r_type_arg3" in
43413      unknown)
43414        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43415printf "%s\n" "no" >&6; }
43416        tst_posix_strerror_r="no"
43417        ;;
43418      *)
43419        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43420printf "%s\n" "yes" >&6; }
43421        tst_posix_strerror_r="yes"
43422        ;;
43423    esac
43424  fi
43425  #
43426    if test "x$cross_compiling" != "xyes" &&
43427    test "$tst_posix_strerror_r" = "yes"; then
43428    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
43429printf %s "checking if strerror_r seems to work... " >&6; }
43430
43431   case $host_os in
43432     darwin*)
43433      if test "$cross_compiling" = yes
43434then :
43435  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43436printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43437as_fn_error $? "cannot run test program while cross compiling
43438See \`config.log' for more details" "$LINENO" 5; }
43439else $as_nop
43440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43441/* end confdefs.h.  */
43442
43443
43444        $curl_includes_stdlib
43445        $curl_includes_string
43446#       include <errno.h>
43447
43448int main (void)
43449{
43450
43451        char buffer[1024];
43452        int error = 1;
43453        buffer[0] = '\0';
43454        error = strerror_r(EACCES, buffer, sizeof(buffer));
43455        if(error)
43456          exit(1); /* fail */
43457        if(buffer[0] == '\0')
43458          exit(1); /* fail */
43459        else
43460          exit(0);
43461
43462 ;
43463 return 0;
43464}
43465
43466_ACEOF
43467if ac_fn_c_try_run "$LINENO"
43468then :
43469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43470printf "%s\n" "yes" >&6; }
43471      tst_works_posix_strerror_r="yes"
43472
43473else $as_nop
43474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43475printf "%s\n" "no" >&6; }
43476      tst_works_posix_strerror_r="no"
43477
43478fi
43479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43480  conftest.$ac_objext conftest.beam conftest.$ac_ext
43481fi
43482
43483     ;;
43484     *)
43485      oldcc=$CC
43486      old=$LD_LIBRARY_PATH
43487      CC="sh ./run-compiler"
43488      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
43489      export LD_LIBRARY_PATH
43490      if test "$cross_compiling" = yes
43491then :
43492  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43493printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43494as_fn_error $? "cannot run test program while cross compiling
43495See \`config.log' for more details" "$LINENO" 5; }
43496else $as_nop
43497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43498/* end confdefs.h.  */
43499
43500
43501        $curl_includes_stdlib
43502        $curl_includes_string
43503#       include <errno.h>
43504
43505int main (void)
43506{
43507
43508        char buffer[1024];
43509        int error = 1;
43510        buffer[0] = '\0';
43511        error = strerror_r(EACCES, buffer, sizeof(buffer));
43512        if(error)
43513          exit(1); /* fail */
43514        if(buffer[0] == '\0')
43515          exit(1); /* fail */
43516        else
43517          exit(0);
43518
43519 ;
43520 return 0;
43521}
43522
43523_ACEOF
43524if ac_fn_c_try_run "$LINENO"
43525then :
43526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43527printf "%s\n" "yes" >&6; }
43528      tst_works_posix_strerror_r="yes"
43529
43530else $as_nop
43531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43532printf "%s\n" "no" >&6; }
43533      tst_works_posix_strerror_r="no"
43534
43535fi
43536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43537  conftest.$ac_objext conftest.beam conftest.$ac_ext
43538fi
43539
43540      LD_LIBRARY_PATH=$old # restore
43541      CC=$oldcc
43542     ;;
43543   esac
43544
43545  fi
43546  #
43547  if test "$tst_works_glibc_strerror_r" = "yes"; then
43548    tst_posix_strerror_r="no"
43549  fi
43550  if test "$tst_works_posix_strerror_r" = "yes"; then
43551    tst_glibc_strerror_r="no"
43552  fi
43553  if test "$tst_glibc_strerror_r" = "yes" &&
43554    test "$tst_works_glibc_strerror_r" != "no" &&
43555    test "$tst_posix_strerror_r" != "yes"; then
43556    tst_allow_strerror_r="check"
43557  fi
43558  if test "$tst_posix_strerror_r" = "yes" &&
43559    test "$tst_works_posix_strerror_r" != "no" &&
43560    test "$tst_glibc_strerror_r" != "yes"; then
43561    tst_allow_strerror_r="check"
43562  fi
43563  if test "$tst_allow_strerror_r" = "check"; then
43564    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
43565printf %s "checking if strerror_r usage allowed... " >&6; }
43566    if test "x$curl_disallow_strerror_r" != "xyes"; then
43567      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43568printf "%s\n" "yes" >&6; }
43569      tst_allow_strerror_r="yes"
43570    else
43571      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43572printf "%s\n" "no" >&6; }
43573      tst_allow_strerror_r="no"
43574    fi
43575  fi
43576  #
43577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
43578printf %s "checking if strerror_r might be used... " >&6; }
43579  if test "$tst_links_strerror_r" = "yes" &&
43580     test "$tst_proto_strerror_r" = "yes" &&
43581     test "$tst_compi_strerror_r" = "yes" &&
43582     test "$tst_allow_strerror_r" = "yes"; then
43583    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43584printf "%s\n" "yes" >&6; }
43585    if test "$tst_glibc_strerror_r" = "yes"; then
43586
43587printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43588
43589
43590printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
43591
43592    fi
43593    if test "$tst_posix_strerror_r" = "yes"; then
43594
43595printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43596
43597
43598printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
43599
43600    fi
43601    curl_cv_func_strerror_r="yes"
43602  else
43603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43604printf "%s\n" "no" >&6; }
43605    curl_cv_func_strerror_r="no"
43606  fi
43607  #
43608  if test "$tst_compi_strerror_r" = "yes" &&
43609     test "$tst_allow_strerror_r" = "unknown"; then
43610    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
43611printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
43612  fi
43613  #
43614
43615
43616    #
43617  tst_links_stricmp="unknown"
43618  tst_proto_stricmp="unknown"
43619  tst_compi_stricmp="unknown"
43620  tst_allow_stricmp="unknown"
43621  #
43622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
43623printf %s "checking if stricmp can be linked... " >&6; }
43624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43625/* end confdefs.h.  */
43626
43627
43628#define stricmp innocuous_stricmp
43629#ifdef __STDC__
43630# include <limits.h>
43631#else
43632# include <assert.h>
43633#endif
43634#undef stricmp
43635#ifdef __cplusplus
43636extern "C"
43637#endif
43638char stricmp ();
43639#if defined __stub_stricmp || defined __stub___stricmp
43640choke me
43641#endif
43642
43643int main (void)
43644{
43645return stricmp ();
43646 ;
43647 return 0;
43648}
43649
43650_ACEOF
43651if ac_fn_c_try_link "$LINENO"
43652then :
43653
43654    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43655printf "%s\n" "yes" >&6; }
43656    tst_links_stricmp="yes"
43657
43658else $as_nop
43659
43660    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43661printf "%s\n" "no" >&6; }
43662    tst_links_stricmp="no"
43663
43664fi
43665rm -f core conftest.err conftest.$ac_objext conftest.beam \
43666    conftest$ac_exeext conftest.$ac_ext
43667  #
43668  if test "$tst_links_stricmp" = "yes"; then
43669    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
43670printf %s "checking if stricmp is prototyped... " >&6; }
43671    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43672/* end confdefs.h.  */
43673
43674      $curl_includes_string
43675
43676_ACEOF
43677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43678  $EGREP "stricmp" >/dev/null 2>&1
43679then :
43680
43681      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43682printf "%s\n" "yes" >&6; }
43683      tst_proto_stricmp="yes"
43684
43685else $as_nop
43686
43687      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43688printf "%s\n" "no" >&6; }
43689      tst_proto_stricmp="no"
43690
43691fi
43692rm -rf conftest*
43693
43694  fi
43695  #
43696  if test "$tst_proto_stricmp" = "yes"; then
43697    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
43698printf %s "checking if stricmp is compilable... " >&6; }
43699    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43700/* end confdefs.h.  */
43701
43702
43703        $curl_includes_string
43704
43705int main (void)
43706{
43707
43708        if(0 != stricmp(0, 0))
43709          return 1;
43710
43711 ;
43712 return 0;
43713}
43714
43715_ACEOF
43716if ac_fn_c_try_compile "$LINENO"
43717then :
43718
43719      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43720printf "%s\n" "yes" >&6; }
43721      tst_compi_stricmp="yes"
43722
43723else $as_nop
43724
43725      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43726printf "%s\n" "no" >&6; }
43727      tst_compi_stricmp="no"
43728
43729fi
43730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43731  fi
43732  #
43733  if test "$tst_compi_stricmp" = "yes"; then
43734    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
43735printf %s "checking if stricmp usage allowed... " >&6; }
43736    if test "x$curl_disallow_stricmp" != "xyes"; then
43737      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43738printf "%s\n" "yes" >&6; }
43739      tst_allow_stricmp="yes"
43740    else
43741      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43742printf "%s\n" "no" >&6; }
43743      tst_allow_stricmp="no"
43744    fi
43745  fi
43746  #
43747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
43748printf %s "checking if stricmp might be used... " >&6; }
43749  if test "$tst_links_stricmp" = "yes" &&
43750     test "$tst_proto_stricmp" = "yes" &&
43751     test "$tst_compi_stricmp" = "yes" &&
43752     test "$tst_allow_stricmp" = "yes"; then
43753    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43754printf "%s\n" "yes" >&6; }
43755
43756printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
43757
43758    curl_cv_func_stricmp="yes"
43759  else
43760    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43761printf "%s\n" "no" >&6; }
43762    curl_cv_func_stricmp="no"
43763  fi
43764
43765
43766    #
43767  tst_links_strtok_r="unknown"
43768  tst_proto_strtok_r="unknown"
43769  tst_compi_strtok_r="unknown"
43770  tst_allow_strtok_r="unknown"
43771  #
43772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
43773printf %s "checking if strtok_r can be linked... " >&6; }
43774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43775/* end confdefs.h.  */
43776
43777
43778#define strtok_r innocuous_strtok_r
43779#ifdef __STDC__
43780# include <limits.h>
43781#else
43782# include <assert.h>
43783#endif
43784#undef strtok_r
43785#ifdef __cplusplus
43786extern "C"
43787#endif
43788char strtok_r ();
43789#if defined __stub_strtok_r || defined __stub___strtok_r
43790choke me
43791#endif
43792
43793int main (void)
43794{
43795return strtok_r ();
43796 ;
43797 return 0;
43798}
43799
43800_ACEOF
43801if ac_fn_c_try_link "$LINENO"
43802then :
43803
43804    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43805printf "%s\n" "yes" >&6; }
43806    tst_links_strtok_r="yes"
43807
43808else $as_nop
43809
43810    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43811printf "%s\n" "no" >&6; }
43812    tst_links_strtok_r="no"
43813
43814fi
43815rm -f core conftest.err conftest.$ac_objext conftest.beam \
43816    conftest$ac_exeext conftest.$ac_ext
43817  #
43818  if test "$tst_links_strtok_r" = "yes"; then
43819    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
43820printf %s "checking if strtok_r is prototyped... " >&6; }
43821    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43822/* end confdefs.h.  */
43823
43824      $curl_includes_string
43825
43826_ACEOF
43827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43828  $EGREP "strtok_r" >/dev/null 2>&1
43829then :
43830
43831      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43832printf "%s\n" "yes" >&6; }
43833      tst_proto_strtok_r="yes"
43834
43835else $as_nop
43836
43837      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43838printf "%s\n" "no" >&6; }
43839      tst_proto_strtok_r="no"
43840
43841fi
43842rm -rf conftest*
43843
43844  fi
43845  #
43846  if test "$tst_proto_strtok_r" = "yes"; then
43847    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
43848printf %s "checking if strtok_r is compilable... " >&6; }
43849    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43850/* end confdefs.h.  */
43851
43852
43853        $curl_includes_string
43854
43855int main (void)
43856{
43857
43858        if(0 != strtok_r(0, 0, 0))
43859          return 1;
43860
43861 ;
43862 return 0;
43863}
43864
43865_ACEOF
43866if ac_fn_c_try_compile "$LINENO"
43867then :
43868
43869      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43870printf "%s\n" "yes" >&6; }
43871      tst_compi_strtok_r="yes"
43872
43873else $as_nop
43874
43875      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43876printf "%s\n" "no" >&6; }
43877      tst_compi_strtok_r="no"
43878
43879fi
43880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43881  fi
43882  #
43883  if test "$tst_compi_strtok_r" = "yes"; then
43884    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
43885printf %s "checking if strtok_r usage allowed... " >&6; }
43886    if test "x$curl_disallow_strtok_r" != "xyes"; then
43887      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43888printf "%s\n" "yes" >&6; }
43889      tst_allow_strtok_r="yes"
43890    else
43891      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43892printf "%s\n" "no" >&6; }
43893      tst_allow_strtok_r="no"
43894    fi
43895  fi
43896  #
43897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
43898printf %s "checking if strtok_r might be used... " >&6; }
43899  if test "$tst_links_strtok_r" = "yes" &&
43900     test "$tst_proto_strtok_r" = "yes" &&
43901     test "$tst_compi_strtok_r" = "yes" &&
43902     test "$tst_allow_strtok_r" = "yes"; then
43903    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43904printf "%s\n" "yes" >&6; }
43905
43906printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
43907
43908    curl_cv_func_strtok_r="yes"
43909  else
43910    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43911printf "%s\n" "no" >&6; }
43912    curl_cv_func_strtok_r="no"
43913  fi
43914
43915
43916    #
43917  tst_links_strtoll="unknown"
43918  tst_proto_strtoll="unknown"
43919  tst_compi_strtoll="unknown"
43920  tst_allow_strtoll="unknown"
43921  #
43922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
43923printf %s "checking if strtoll can be linked... " >&6; }
43924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43925/* end confdefs.h.  */
43926
43927
43928#define strtoll innocuous_strtoll
43929#ifdef __STDC__
43930# include <limits.h>
43931#else
43932# include <assert.h>
43933#endif
43934#undef strtoll
43935#ifdef __cplusplus
43936extern "C"
43937#endif
43938char strtoll ();
43939#if defined __stub_strtoll || defined __stub___strtoll
43940choke me
43941#endif
43942
43943int main (void)
43944{
43945return strtoll ();
43946 ;
43947 return 0;
43948}
43949
43950_ACEOF
43951if ac_fn_c_try_link "$LINENO"
43952then :
43953
43954    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43955printf "%s\n" "yes" >&6; }
43956    tst_links_strtoll="yes"
43957
43958else $as_nop
43959
43960    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43961printf "%s\n" "no" >&6; }
43962    tst_links_strtoll="no"
43963
43964fi
43965rm -f core conftest.err conftest.$ac_objext conftest.beam \
43966    conftest$ac_exeext conftest.$ac_ext
43967  #
43968  if test "$tst_links_strtoll" = "yes"; then
43969    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
43970printf %s "checking if strtoll is prototyped... " >&6; }
43971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43972/* end confdefs.h.  */
43973
43974      $curl_includes_stdlib
43975
43976_ACEOF
43977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43978  $EGREP "strtoll" >/dev/null 2>&1
43979then :
43980
43981      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43982printf "%s\n" "yes" >&6; }
43983      tst_proto_strtoll="yes"
43984
43985else $as_nop
43986
43987      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43988printf "%s\n" "no" >&6; }
43989      tst_proto_strtoll="no"
43990
43991fi
43992rm -rf conftest*
43993
43994  fi
43995  #
43996  if test "$tst_proto_strtoll" = "yes"; then
43997    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43998printf %s "checking if strtoll is compilable... " >&6; }
43999    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44000/* end confdefs.h.  */
44001
44002
44003        $curl_includes_stdlib
44004
44005int main (void)
44006{
44007
44008        if(0 != strtoll(0, 0, 0))
44009          return 1;
44010
44011 ;
44012 return 0;
44013}
44014
44015_ACEOF
44016if ac_fn_c_try_compile "$LINENO"
44017then :
44018
44019      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44020printf "%s\n" "yes" >&6; }
44021      tst_compi_strtoll="yes"
44022
44023else $as_nop
44024
44025      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44026printf "%s\n" "no" >&6; }
44027      tst_compi_strtoll="no"
44028
44029fi
44030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44031  fi
44032  #
44033  if test "$tst_compi_strtoll" = "yes"; then
44034    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
44035printf %s "checking if strtoll usage allowed... " >&6; }
44036    if test "x$curl_disallow_strtoll" != "xyes"; then
44037      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44038printf "%s\n" "yes" >&6; }
44039      tst_allow_strtoll="yes"
44040    else
44041      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44042printf "%s\n" "no" >&6; }
44043      tst_allow_strtoll="no"
44044    fi
44045  fi
44046  #
44047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
44048printf %s "checking if strtoll might be used... " >&6; }
44049  if test "$tst_links_strtoll" = "yes" &&
44050     test "$tst_proto_strtoll" = "yes" &&
44051     test "$tst_compi_strtoll" = "yes" &&
44052     test "$tst_allow_strtoll" = "yes"; then
44053    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44054printf "%s\n" "yes" >&6; }
44055
44056printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
44057
44058    curl_cv_func_strtoll="yes"
44059  else
44060    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44061printf "%s\n" "no" >&6; }
44062    curl_cv_func_strtoll="no"
44063  fi
44064
44065
44066case $host in
44067  *msdosdjgpp)
44068     ac_cv_func_pipe=no
44069     skipcheck_pipe=yes
44070     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
44071printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
44072    ;;
44073esac
44074
44075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
44076printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
44077if test ${ac_cv_c_undeclared_builtin_options+y}
44078then :
44079  printf %s "(cached) " >&6
44080else $as_nop
44081  ac_save_CFLAGS=$CFLAGS
44082   ac_cv_c_undeclared_builtin_options='cannot detect'
44083   for ac_arg in '' -fno-builtin; do
44084     CFLAGS="$ac_save_CFLAGS $ac_arg"
44085     # This test program should *not* compile successfully.
44086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44087/* end confdefs.h.  */
44088
44089int main (void)
44090{
44091(void) strchr;
44092 ;
44093 return 0;
44094}
44095_ACEOF
44096if ac_fn_c_try_compile "$LINENO"
44097then :
44098
44099else $as_nop
44100  # This test program should compile successfully.
44101        # No library function is consistently available on
44102        # freestanding implementations, so test against a dummy
44103        # declaration.  Include always-available headers on the
44104        # off chance that they somehow elicit warnings.
44105        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44106/* end confdefs.h.  */
44107#include <float.h>
44108#include <limits.h>
44109#include <stdarg.h>
44110#include <stddef.h>
44111extern void ac_decl (int, char *);
44112
44113int main (void)
44114{
44115(void) ac_decl (0, (char *) 0);
44116  (void) ac_decl;
44117
44118 ;
44119 return 0;
44120}
44121_ACEOF
44122if ac_fn_c_try_compile "$LINENO"
44123then :
44124  if test x"$ac_arg" = x
44125then :
44126  ac_cv_c_undeclared_builtin_options='none needed'
44127else $as_nop
44128  ac_cv_c_undeclared_builtin_options=$ac_arg
44129fi
44130          break
44131fi
44132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44133fi
44134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44135    done
44136    CFLAGS=$ac_save_CFLAGS
44137
44138fi
44139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
44140printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
44141  case $ac_cv_c_undeclared_builtin_options in #(
44142  'cannot detect') :
44143    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
44144printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
44145as_fn_error $? "cannot make $CC report undeclared builtins
44146See \`config.log' for more details" "$LINENO" 5; } ;; #(
44147  'none needed') :
44148    ac_c_undeclared_builtin_options='' ;; #(
44149  *) :
44150    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
44151esac
44152
44153ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
44154          #include <sys/types.h>
44155" "$ac_c_undeclared_builtin_options" "CFLAGS"
44156if test "x$ac_cv_have_decl_getpwuid_r" = xyes
44157then :
44158  ac_have_decl=1
44159else $as_nop
44160  ac_have_decl=0
44161fi
44162printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
44163if test $ac_have_decl = 1
44164then :
44165
44166else $as_nop
44167
44168printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
44169
44170fi
44171
44172
44173
44174  for ac_func in _fseeki64 arc4random fnmatch fseeko geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe sched_yield sendmsg setlocale setmode setrlimit snprintf utime utimes
44175do :
44176  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
44177ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44178if eval test \"x\$"$as_ac_var"\" = x"yes"
44179then :
44180  cat >>confdefs.h <<_ACEOF
44181#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
44182_ACEOF
44183
44184
44185else $as_nop
44186
44187  func="$ac_func"
44188  eval skipcheck=\$skipcheck_$func
44189  if test "x$skipcheck" != "xyes"; then
44190    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
44191printf %s "checking deeper for $func... " >&6; }
44192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44193/* end confdefs.h.  */
44194
44195
44196
44197int main (void)
44198{
44199
44200        $func ();
44201
44202 ;
44203 return 0;
44204}
44205
44206_ACEOF
44207if ac_fn_c_try_link "$LINENO"
44208then :
44209
44210      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44211printf "%s\n" "yes" >&6; }
44212      eval "ac_cv_func_$func=yes"
44213
44214cat >>confdefs.h <<_ACEOF
44215#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
44216_ACEOF
44217
44218
44219else $as_nop
44220
44221      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
44222printf "%s\n" "but still no" >&6; }
44223
44224fi
44225rm -f core conftest.err conftest.$ac_objext conftest.beam \
44226    conftest$ac_exeext conftest.$ac_ext
44227  fi
44228
44229fi
44230
44231done
44232
44233ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "#include <stdio.h>
44234" "$ac_c_undeclared_builtin_options" "CFLAGS"
44235if test "x$ac_cv_have_decl_fseeko" = xyes
44236then :
44237
44238printf "%s\n" "#define HAVE_DECL_FSEEKO 1" >>confdefs.h
44239
44240fi
44241
44242
44243        #
44244  tst_method="unknown"
44245
44246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
44247printf %s "checking how to set a socket into non-blocking mode... " >&6; }
44248  if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
44249    tst_method="fcntl O_NONBLOCK"
44250  elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
44251    tst_method="ioctl FIONBIO"
44252  elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
44253    tst_method="ioctlsocket FIONBIO"
44254  elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
44255    tst_method="IoctlSocket FIONBIO"
44256  elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
44257    tst_method="setsockopt SO_NONBLOCK"
44258  fi
44259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
44260printf "%s\n" "$tst_method" >&6; }
44261  if test "$tst_method" = "unknown"; then
44262    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
44263printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
44264  fi
44265
44266
44267if test "x$BUILD_DOCS" != "x0" -o "x$USE_MANUAL" != "x0"; then
44268  # Extract the first word of "perl", so it can be a program name with args.
44269set dummy perl; ac_word=$2
44270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44271printf %s "checking for $ac_word... " >&6; }
44272if test ${ac_cv_path_PERL+y}
44273then :
44274  printf %s "(cached) " >&6
44275else $as_nop
44276  case $PERL in
44277  [\\/]* | ?:[\\/]*)
44278  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
44279  ;;
44280  *)
44281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44282as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
44283for as_dir in $as_dummy
44284do
44285  IFS=$as_save_IFS
44286  case $as_dir in #(((
44287    '') as_dir=./ ;;
44288    */) ;;
44289    *) as_dir=$as_dir/ ;;
44290  esac
44291    for ac_exec_ext in '' $ac_executable_extensions; do
44292  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44293    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
44294    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44295    break 2
44296  fi
44297done
44298  done
44299IFS=$as_save_IFS
44300
44301  ;;
44302esac
44303fi
44304PERL=$ac_cv_path_PERL
44305if test -n "$PERL"; then
44306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
44307printf "%s\n" "$PERL" >&6; }
44308else
44309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44310printf "%s\n" "no" >&6; }
44311fi
44312
44313
44314
44315
44316  if test -z "$PERL"; then
44317    as_fn_error $? "perl was not found, needed for docs and manual" "$LINENO" 5
44318  fi
44319fi
44320
44321 if test x"$BUILD_DOCS" = x1; then
44322  BUILD_DOCS_TRUE=
44323  BUILD_DOCS_FALSE='#'
44324else
44325  BUILD_DOCS_TRUE='#'
44326  BUILD_DOCS_FALSE=
44327fi
44328
44329
44330
44331if test "$USE_MANUAL" = "1"; then
44332
44333printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
44334
44335  curl_manual_msg="enabled"
44336fi
44337
44338 if test x"$USE_MANUAL" = x1; then
44339  USE_MANUAL_TRUE=
44340  USE_MANUAL_FALSE='#'
44341else
44342  USE_MANUAL_TRUE='#'
44343  USE_MANUAL_FALSE=
44344fi
44345
44346
44347
44348  #
44349  if test "$want_ares" = "yes"; then
44350        clean_CPPFLAGS="$CPPFLAGS"
44351    clean_LDFLAGS="$LDFLAGS"
44352    clean_LIBS="$LIBS"
44353    configure_runpath=`pwd`
44354    if test -n "$want_ares_path"; then
44355            ARES_PCDIR="$want_ares_path/lib/pkgconfig"
44356
44357    if test -n "$PKG_CONFIG"; then
44358      PKGCONFIG="$PKG_CONFIG"
44359    else
44360      if test -n "$ac_tool_prefix"; then
44361  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44362set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44364printf %s "checking for $ac_word... " >&6; }
44365if test ${ac_cv_path_PKGCONFIG+y}
44366then :
44367  printf %s "(cached) " >&6
44368else $as_nop
44369  case $PKGCONFIG in
44370  [\\/]* | ?:[\\/]*)
44371  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44372  ;;
44373  *)
44374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44375as_dummy="$PATH:/usr/bin:/usr/local/bin"
44376for as_dir in $as_dummy
44377do
44378  IFS=$as_save_IFS
44379  case $as_dir in #(((
44380    '') as_dir=./ ;;
44381    */) ;;
44382    *) as_dir=$as_dir/ ;;
44383  esac
44384    for ac_exec_ext in '' $ac_executable_extensions; do
44385  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44386    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44387    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44388    break 2
44389  fi
44390done
44391  done
44392IFS=$as_save_IFS
44393
44394  ;;
44395esac
44396fi
44397PKGCONFIG=$ac_cv_path_PKGCONFIG
44398if test -n "$PKGCONFIG"; then
44399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44400printf "%s\n" "$PKGCONFIG" >&6; }
44401else
44402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44403printf "%s\n" "no" >&6; }
44404fi
44405
44406
44407fi
44408if test -z "$ac_cv_path_PKGCONFIG"; then
44409  ac_pt_PKGCONFIG=$PKGCONFIG
44410  # Extract the first word of "pkg-config", so it can be a program name with args.
44411set dummy pkg-config; ac_word=$2
44412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44413printf %s "checking for $ac_word... " >&6; }
44414if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44415then :
44416  printf %s "(cached) " >&6
44417else $as_nop
44418  case $ac_pt_PKGCONFIG in
44419  [\\/]* | ?:[\\/]*)
44420  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44421  ;;
44422  *)
44423  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44424as_dummy="$PATH:/usr/bin:/usr/local/bin"
44425for as_dir in $as_dummy
44426do
44427  IFS=$as_save_IFS
44428  case $as_dir in #(((
44429    '') as_dir=./ ;;
44430    */) ;;
44431    *) as_dir=$as_dir/ ;;
44432  esac
44433    for ac_exec_ext in '' $ac_executable_extensions; do
44434  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44435    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44437    break 2
44438  fi
44439done
44440  done
44441IFS=$as_save_IFS
44442
44443  ;;
44444esac
44445fi
44446ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44447if test -n "$ac_pt_PKGCONFIG"; then
44448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44449printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44450else
44451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44452printf "%s\n" "no" >&6; }
44453fi
44454
44455  if test "x$ac_pt_PKGCONFIG" = x; then
44456    PKGCONFIG="no"
44457  else
44458    case $cross_compiling:$ac_tool_warned in
44459yes:)
44460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44461printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44462ac_tool_warned=yes ;;
44463esac
44464    PKGCONFIG=$ac_pt_PKGCONFIG
44465  fi
44466else
44467  PKGCONFIG="$ac_cv_path_PKGCONFIG"
44468fi
44469
44470    fi
44471
44472    if test "x$PKGCONFIG" != "xno"; then
44473      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44474printf %s "checking for libcares options with pkg-config... " >&6; }
44475            itexists=`
44476    if test -n "$ARES_PCDIR"; then
44477      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44478      export PKG_CONFIG_LIBDIR
44479    fi
44480         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44481
44482      if test -z "$itexists"; then
44483                        PKGCONFIG="no"
44484        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44485printf "%s\n" "no" >&6; }
44486      else
44487        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44488printf "%s\n" "found" >&6; }
44489      fi
44490    fi
44491
44492      if test "$PKGCONFIG" != "no" ; then
44493        ares_LIBS=`
44494    if test -n "$ARES_PCDIR"; then
44495      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44496      export PKG_CONFIG_LIBDIR
44497    fi
44498
44499          $PKGCONFIG --libs-only-l libcares`
44500        ares_LDFLAGS=`
44501    if test -n "$ARES_PCDIR"; then
44502      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44503      export PKG_CONFIG_LIBDIR
44504    fi
44505
44506          $PKGCONFIG --libs-only-L libcares`
44507        ares_CPPFLAGS=`
44508    if test -n "$ARES_PCDIR"; then
44509      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44510      export PKG_CONFIG_LIBDIR
44511    fi
44512
44513          $PKGCONFIG --cflags-only-I libcares`
44514        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
44515printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
44516        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
44517printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44518        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44519printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44520      else
44521                ares_CPPFLAGS="-I$want_ares_path/include"
44522        ares_LDFLAGS="-L$want_ares_path/lib"
44523        ares_LIBS="-lcares"
44524      fi
44525    else
44526
44527    if test -n "$PKG_CONFIG"; then
44528      PKGCONFIG="$PKG_CONFIG"
44529    else
44530      if test -n "$ac_tool_prefix"; then
44531  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44532set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44534printf %s "checking for $ac_word... " >&6; }
44535if test ${ac_cv_path_PKGCONFIG+y}
44536then :
44537  printf %s "(cached) " >&6
44538else $as_nop
44539  case $PKGCONFIG in
44540  [\\/]* | ?:[\\/]*)
44541  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44542  ;;
44543  *)
44544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44545as_dummy="$PATH:/usr/bin:/usr/local/bin"
44546for as_dir in $as_dummy
44547do
44548  IFS=$as_save_IFS
44549  case $as_dir in #(((
44550    '') as_dir=./ ;;
44551    */) ;;
44552    *) as_dir=$as_dir/ ;;
44553  esac
44554    for ac_exec_ext in '' $ac_executable_extensions; do
44555  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44556    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44557    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44558    break 2
44559  fi
44560done
44561  done
44562IFS=$as_save_IFS
44563
44564  ;;
44565esac
44566fi
44567PKGCONFIG=$ac_cv_path_PKGCONFIG
44568if test -n "$PKGCONFIG"; then
44569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44570printf "%s\n" "$PKGCONFIG" >&6; }
44571else
44572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44573printf "%s\n" "no" >&6; }
44574fi
44575
44576
44577fi
44578if test -z "$ac_cv_path_PKGCONFIG"; then
44579  ac_pt_PKGCONFIG=$PKGCONFIG
44580  # Extract the first word of "pkg-config", so it can be a program name with args.
44581set dummy pkg-config; ac_word=$2
44582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44583printf %s "checking for $ac_word... " >&6; }
44584if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44585then :
44586  printf %s "(cached) " >&6
44587else $as_nop
44588  case $ac_pt_PKGCONFIG in
44589  [\\/]* | ?:[\\/]*)
44590  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44591  ;;
44592  *)
44593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44594as_dummy="$PATH:/usr/bin:/usr/local/bin"
44595for as_dir in $as_dummy
44596do
44597  IFS=$as_save_IFS
44598  case $as_dir in #(((
44599    '') as_dir=./ ;;
44600    */) ;;
44601    *) as_dir=$as_dir/ ;;
44602  esac
44603    for ac_exec_ext in '' $ac_executable_extensions; do
44604  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44605    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44606    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44607    break 2
44608  fi
44609done
44610  done
44611IFS=$as_save_IFS
44612
44613  ;;
44614esac
44615fi
44616ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44617if test -n "$ac_pt_PKGCONFIG"; then
44618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44619printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44620else
44621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44622printf "%s\n" "no" >&6; }
44623fi
44624
44625  if test "x$ac_pt_PKGCONFIG" = x; then
44626    PKGCONFIG="no"
44627  else
44628    case $cross_compiling:$ac_tool_warned in
44629yes:)
44630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44631printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44632ac_tool_warned=yes ;;
44633esac
44634    PKGCONFIG=$ac_pt_PKGCONFIG
44635  fi
44636else
44637  PKGCONFIG="$ac_cv_path_PKGCONFIG"
44638fi
44639
44640    fi
44641
44642    if test "x$PKGCONFIG" != "xno"; then
44643      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44644printf %s "checking for libcares options with pkg-config... " >&6; }
44645            itexists=`
44646    if test -n ""; then
44647      PKG_CONFIG_LIBDIR=""
44648      export PKG_CONFIG_LIBDIR
44649    fi
44650         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44651
44652      if test -z "$itexists"; then
44653                        PKGCONFIG="no"
44654        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44655printf "%s\n" "no" >&6; }
44656      else
44657        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44658printf "%s\n" "found" >&6; }
44659      fi
44660    fi
44661
44662      if test "$PKGCONFIG" != "no" ; then
44663        ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
44664        ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
44665        ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
44666        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
44667printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
44668        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
44669printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44670        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44671printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44672      else
44673        ares_CPPFLAGS=""
44674        ares_LDFLAGS=""
44675        ares_LIBS="-lcares"
44676      fi
44677    fi
44678    #
44679    CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
44680    LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
44681    LIBS="$ares_LIBS $clean_LIBS"
44682    #
44683
44684        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
44685printf %s "checking that c-ares is good and recent enough... " >&6; }
44686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44687/* end confdefs.h.  */
44688
44689
44690#include <ares.h>
44691        /* set of dummy functions in case c-ares was built with debug */
44692        void curl_dofree() { }
44693        void curl_sclose() { }
44694        void curl_domalloc() { }
44695        void curl_docalloc() { }
44696        void curl_socket() { }
44697
44698int main (void)
44699{
44700
44701        ares_channel channel;
44702        ares_cancel(channel); /* added in 1.2.0 */
44703        ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
44704        ares_dup(&channel, channel); /* added in 1.6.0 */
44705
44706 ;
44707 return 0;
44708}
44709
44710_ACEOF
44711if ac_fn_c_try_link "$LINENO"
44712then :
44713
44714      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44715printf "%s\n" "yes" >&6; }
44716
44717else $as_nop
44718
44719      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44720printf "%s\n" "no" >&6; }
44721      as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
44722            CPPFLAGS="$clean_CPPFLAGS"
44723      LDFLAGS="$clean_LDFLAGS"
44724      LIBS="$clean_LIBS"
44725      # prevent usage
44726      want_ares="no"
44727
44728fi
44729rm -f core conftest.err conftest.$ac_objext conftest.beam \
44730    conftest$ac_exeext conftest.$ac_ext
44731
44732    if test "$want_ares" = "yes"; then
44733
44734printf "%s\n" "#define USE_ARES 1" >>confdefs.h
44735
44736
44737printf "%s\n" "#define CARES_NO_DEPRECATED 1" >>confdefs.h
44738
44739      USE_ARES=1
44740
44741      curl_res_msg="c-ares"
44742    fi
44743  fi
44744
44745
44746if test "x$curl_cv_native_windows" != "xyes" &&
44747   test "x$enable_shared" = "xyes"; then
44748  build_libhostname=yes
44749else
44750  build_libhostname=no
44751fi
44752 if test x$build_libhostname = xyes; then
44753  BUILD_LIBHOSTNAME_TRUE=
44754  BUILD_LIBHOSTNAME_FALSE='#'
44755else
44756  BUILD_LIBHOSTNAME_TRUE='#'
44757  BUILD_LIBHOSTNAME_FALSE=
44758fi
44759
44760
44761if test "x$want_ares" != xyes; then
44762
44763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
44764printf %s "checking whether to enable the threaded resolver... " >&6; }
44765  OPT_THRES="default"
44766  # Check whether --enable-threaded_resolver was given.
44767if test ${enable_threaded_resolver+y}
44768then :
44769  enableval=$enable_threaded_resolver; OPT_THRES=$enableval
44770fi
44771
44772  case "$OPT_THRES" in
44773    no)
44774            want_thres="no"
44775      ;;
44776    *)
44777            want_thres="yes"
44778      ;;
44779  esac
44780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
44781printf "%s\n" "$want_thres" >&6; }
44782
44783fi
44784
44785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
44786printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
44787# Check whether --enable-pthreads was given.
44788if test ${enable_pthreads+y}
44789then :
44790  enableval=$enable_pthreads;  case "$enableval" in
44791  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44792printf "%s\n" "no" >&6; }
44793       want_pthreads=no
44794       ;;
44795  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44796printf "%s\n" "yes" >&6; }
44797       want_pthreads=yes
44798       ;;
44799  esac
44800else $as_nop
44801
44802       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44803printf "%s\n" "auto" >&6; }
44804       want_pthreads=auto
44805
44806
44807fi
44808
44809
44810if test "$want_pthreads" != "no"; then
44811  if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
44812    as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
44813  fi
44814  if test "$dontwant_rt" != "no"; then
44815        if test "$want_pthreads" = "yes"; then
44816      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
44817printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
44818    fi
44819    want_pthreads=no
44820  fi
44821fi
44822
44823if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
44824  want_pthreads=no
44825fi
44826
44827if test "$want_pthreads" != "no"; then
44828  ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44829if test "x$ac_cv_header_pthread_h" = xyes
44830then :
44831
44832printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
44833
44834      save_CFLAGS="$CFLAGS"
44835                                    save_LIBS="$LIBS"
44836
44837      LIBS=
44838            ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44839if test "x$ac_cv_func_pthread_create" = xyes
44840then :
44841  USE_THREADS_POSIX=1
44842fi
44843
44844      LIBS="$save_LIBS"
44845
44846            case $host in
44847      *-hp-hpux*)
44848                  USE_THREADS_POSIX=""
44849         ;;
44850      *)
44851         ;;
44852      esac
44853
44854            if test "$USE_THREADS_POSIX" != "1"
44855      then
44856        # assign PTHREAD for pkg-config use
44857        PTHREAD=" -pthread"
44858
44859        case $host in
44860        *-ibm-aix*)
44861                      COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
44862           if test x"$COMPILER_VERSION" = "x"; then
44863             CFLAGS="$CFLAGS -pthread"
44864           else
44865             CFLAGS="$CFLAGS -qthreaded"
44866           fi
44867           ;;
44868        powerpc-*amigaos*)
44869                      PTHREAD=" -lpthread"
44870           ;;
44871        *)
44872           CFLAGS="$CFLAGS -pthread"
44873           ;;
44874        esac
44875        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44876printf %s "checking for pthread_create in -lpthread... " >&6; }
44877if test ${ac_cv_lib_pthread_pthread_create+y}
44878then :
44879  printf %s "(cached) " >&6
44880else $as_nop
44881  ac_check_lib_save_LIBS=$LIBS
44882LIBS="-lpthread  $LIBS"
44883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44884/* end confdefs.h.  */
44885
44886
44887#ifdef __cplusplus
44888extern "C"
44889#endif
44890char pthread_create ();
44891int main (void)
44892{
44893return pthread_create ();
44894 ;
44895 return 0;
44896}
44897_ACEOF
44898if ac_fn_c_try_link "$LINENO"
44899then :
44900  ac_cv_lib_pthread_pthread_create=yes
44901else $as_nop
44902  ac_cv_lib_pthread_pthread_create=no
44903fi
44904rm -f core conftest.err conftest.$ac_objext conftest.beam \
44905    conftest$ac_exeext conftest.$ac_ext
44906LIBS=$ac_check_lib_save_LIBS
44907fi
44908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44909printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
44910if test "x$ac_cv_lib_pthread_pthread_create" = xyes
44911then :
44912  USE_THREADS_POSIX=1
44913else $as_nop
44914   CFLAGS="$save_CFLAGS"
44915fi
44916
44917      fi
44918
44919      if test "x$USE_THREADS_POSIX" = "x1"
44920      then
44921
44922printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
44923
44924        curl_res_msg="POSIX threaded"
44925      fi
44926
44927fi
44928
44929fi
44930
44931if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44932  if test "$want_pthreads" = "yes"; then
44933    as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44934  fi
44935    if test "$curl_cv_native_windows" = "yes"; then
44936    USE_THREADS_WIN32=1
44937
44938printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
44939
44940    curl_res_msg="Win32 threaded"
44941  else
44942    as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44943  fi
44944fi
44945
44946ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
44947if test "x$ac_cv_header_dirent_h" = xyes
44948then :
44949
44950printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
44951
44952    ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
44953if test "x$ac_cv_func_opendir" = xyes
44954then :
44955
44956printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
44957
44958fi
44959
44960
44961
44962fi
44963
44964
44965
44966      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44967printf %s "checking convert -I options to -isystem... " >&6; }
44968  if test "$compiler_id" = "GNU_C" ||
44969    test "$compiler_id" = "CLANG"; then
44970    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44971printf "%s\n" "yes" >&6; }
44972    tmp_has_include="no"
44973    tmp_chg_FLAGS="$CFLAGS"
44974    for word1 in $tmp_chg_FLAGS; do
44975      case "$word1" in
44976        -I*)
44977          tmp_has_include="yes"
44978          ;;
44979      esac
44980    done
44981    if test "$tmp_has_include" = "yes"; then
44982      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44983      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44984      CFLAGS="$tmp_chg_FLAGS"
44985      squeeze CFLAGS
44986    fi
44987    tmp_has_include="no"
44988    tmp_chg_FLAGS="$CPPFLAGS"
44989    for word1 in $tmp_chg_FLAGS; do
44990      case "$word1" in
44991        -I*)
44992          tmp_has_include="yes"
44993          ;;
44994      esac
44995    done
44996    if test "$tmp_has_include" = "yes"; then
44997      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44998      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44999      CPPFLAGS="$tmp_chg_FLAGS"
45000      squeeze CPPFLAGS
45001    fi
45002  else
45003    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45004printf "%s\n" "no" >&6; }
45005  fi
45006
45007
45008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
45009printf %s "checking whether to enable verbose strings... " >&6; }
45010# Check whether --enable-verbose was given.
45011if test ${enable_verbose+y}
45012then :
45013  enableval=$enable_verbose;  case "$enableval" in
45014  no)
45015       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45016printf "%s\n" "no" >&6; }
45017
45018printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
45019
45020       curl_verbose_msg="no"
45021       ;;
45022  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45023printf "%s\n" "yes" >&6; }
45024       ;;
45025  esac
45026else $as_nop
45027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45028printf "%s\n" "yes" >&6; }
45029
45030fi
45031
45032
45033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
45034printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
45035# Check whether --enable-sspi was given.
45036if test ${enable_sspi+y}
45037then :
45038  enableval=$enable_sspi;  case "$enableval" in
45039  yes)
45040       if test "$curl_cv_native_windows" = "yes"; then
45041         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45042printf "%s\n" "yes" >&6; }
45043
45044printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
45045
45046         USE_WINDOWS_SSPI=1
45047
45048         curl_sspi_msg="enabled"
45049       else
45050         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45051printf "%s\n" "no" >&6; }
45052         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
45053printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
45054       fi
45055       ;;
45056  *)
45057       if test "x$SCHANNEL_ENABLED" = "x1"; then
45058         # --with-schannel implies --enable-sspi
45059         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45060printf "%s\n" "yes" >&6; }
45061       else
45062         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45063printf "%s\n" "no" >&6; }
45064       fi
45065       ;;
45066  esac
45067else $as_nop
45068  if test "x$SCHANNEL_ENABLED" = "x1"; then
45069         # --with-schannel implies --enable-sspi
45070         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45071printf "%s\n" "yes" >&6; }
45072       else
45073         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45074printf "%s\n" "no" >&6; }
45075       fi
45076
45077fi
45078
45079
45080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable basic authentication method" >&5
45081printf %s "checking whether to enable basic authentication method... " >&6; }
45082# Check whether --enable-basic-auth was given.
45083if test ${enable_basic_auth+y}
45084then :
45085  enableval=$enable_basic_auth;  case "$enableval" in
45086  no)
45087       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45088printf "%s\n" "no" >&6; }
45089
45090printf "%s\n" "#define CURL_DISABLE_BASIC_AUTH 1" >>confdefs.h
45091
45092       CURL_DISABLE_BASIC_AUTH=1
45093       ;;
45094  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45095printf "%s\n" "yes" >&6; }
45096       ;;
45097  esac
45098else $as_nop
45099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45100printf "%s\n" "yes" >&6; }
45101
45102fi
45103
45104
45105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable bearer authentication method" >&5
45106printf %s "checking whether to enable bearer authentication method... " >&6; }
45107# Check whether --enable-bearer-auth was given.
45108if test ${enable_bearer_auth+y}
45109then :
45110  enableval=$enable_bearer_auth;  case "$enableval" in
45111  no)
45112       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45113printf "%s\n" "no" >&6; }
45114
45115printf "%s\n" "#define CURL_DISABLE_BEARER_AUTH 1" >>confdefs.h
45116
45117       CURL_DISABLE_BEARER_AUTH=1
45118       ;;
45119  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45120printf "%s\n" "yes" >&6; }
45121       ;;
45122  esac
45123else $as_nop
45124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45125printf "%s\n" "yes" >&6; }
45126
45127fi
45128
45129
45130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable digest authentication method" >&5
45131printf %s "checking whether to enable digest authentication method... " >&6; }
45132# Check whether --enable-digest-auth was given.
45133if test ${enable_digest_auth+y}
45134then :
45135  enableval=$enable_digest_auth;  case "$enableval" in
45136  no)
45137       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45138printf "%s\n" "no" >&6; }
45139
45140printf "%s\n" "#define CURL_DISABLE_DIGEST_AUTH 1" >>confdefs.h
45141
45142       CURL_DISABLE_DIGEST_AUTH=1
45143       ;;
45144  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45145printf "%s\n" "yes" >&6; }
45146       ;;
45147  esac
45148else $as_nop
45149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45150printf "%s\n" "yes" >&6; }
45151
45152fi
45153
45154
45155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable kerberos authentication method" >&5
45156printf %s "checking whether to enable kerberos authentication method... " >&6; }
45157# Check whether --enable-kerberos-auth was given.
45158if test ${enable_kerberos_auth+y}
45159then :
45160  enableval=$enable_kerberos_auth;  case "$enableval" in
45161  no)
45162       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45163printf "%s\n" "no" >&6; }
45164
45165printf "%s\n" "#define CURL_DISABLE_KERBEROS_AUTH 1" >>confdefs.h
45166
45167       CURL_DISABLE_KERBEROS_AUTH=1
45168       ;;
45169  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45170printf "%s\n" "yes" >&6; }
45171       ;;
45172  esac
45173else $as_nop
45174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45175printf "%s\n" "yes" >&6; }
45176
45177fi
45178
45179
45180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable negotiate authentication method" >&5
45181printf %s "checking whether to enable negotiate authentication method... " >&6; }
45182# Check whether --enable-negotiate-auth was given.
45183if test ${enable_negotiate_auth+y}
45184then :
45185  enableval=$enable_negotiate_auth;  case "$enableval" in
45186  no)
45187       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45188printf "%s\n" "no" >&6; }
45189
45190printf "%s\n" "#define CURL_DISABLE_NEGOTIATE_AUTH 1" >>confdefs.h
45191
45192       CURL_DISABLE_NEGOTIATE_AUTH=1
45193       ;;
45194  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45195printf "%s\n" "yes" >&6; }
45196       ;;
45197  esac
45198else $as_nop
45199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45200printf "%s\n" "yes" >&6; }
45201
45202fi
45203
45204
45205
45206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable aws sig methods" >&5
45207printf %s "checking whether to enable aws sig methods... " >&6; }
45208# Check whether --enable-aws was given.
45209if test ${enable_aws+y}
45210then :
45211  enableval=$enable_aws;  case "$enableval" in
45212  no)
45213       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45214printf "%s\n" "no" >&6; }
45215
45216printf "%s\n" "#define CURL_DISABLE_AWS 1" >>confdefs.h
45217
45218       CURL_DISABLE_AWS=1
45219       ;;
45220  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45221printf "%s\n" "yes" >&6; }
45222       ;;
45223  esac
45224else $as_nop
45225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45226printf "%s\n" "yes" >&6; }
45227
45228fi
45229
45230
45231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
45232printf %s "checking whether to support NTLM... " >&6; }
45233# Check whether --enable-ntlm was given.
45234if test ${enable_ntlm+y}
45235then :
45236  enableval=$enable_ntlm;  case "$enableval" in
45237  no)
45238       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45239printf "%s\n" "no" >&6; }
45240
45241printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
45242
45243       CURL_DISABLE_NTLM=1
45244       ;;
45245  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45246printf "%s\n" "yes" >&6; }
45247       ;;
45248  esac
45249else $as_nop
45250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45251printf "%s\n" "yes" >&6; }
45252
45253fi
45254
45255
45256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
45257printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
45258# Check whether --enable-tls-srp was given.
45259if test ${enable_tls_srp+y}
45260then :
45261  enableval=$enable_tls_srp;  case "$enableval" in
45262  no)
45263       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45264printf "%s\n" "no" >&6; }
45265       want_tls_srp=no
45266       ;;
45267  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45268printf "%s\n" "yes" >&6; }
45269       want_tls_srp=yes
45270       ;;
45271  esac
45272else $as_nop
45273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45274printf "%s\n" "yes" >&6; }
45275       want_tls_srp=yes
45276
45277fi
45278
45279
45280if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
45281
45282printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
45283
45284   USE_TLS_SRP=1
45285   curl_tls_srp_msg="enabled"
45286fi
45287
45288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
45289printf %s "checking whether to enable Unix domain sockets... " >&6; }
45290# Check whether --enable-unix-sockets was given.
45291if test ${enable_unix_sockets+y}
45292then :
45293  enableval=$enable_unix_sockets;  case "$enableval" in
45294  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45295printf "%s\n" "no" >&6; }
45296       want_unix_sockets=no
45297       ;;
45298  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45299printf "%s\n" "yes" >&6; }
45300       want_unix_sockets=yes
45301       ;;
45302  esac
45303else $as_nop
45304
45305       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
45306printf "%s\n" "auto" >&6; }
45307       want_unix_sockets=auto
45308
45309
45310fi
45311
45312if test "x$want_unix_sockets" != "xno"; then
45313  if test "x$curl_cv_native_windows" = "xyes"; then
45314    USE_UNIX_SOCKETS=1
45315
45316printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45317
45318    curl_unix_sockets_msg="enabled"
45319  else
45320    ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
45321      #include <sys/un.h>
45322
45323"
45324if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
45325then :
45326
45327
45328printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45329
45330      USE_UNIX_SOCKETS=1
45331
45332      curl_unix_sockets_msg="enabled"
45333
45334else $as_nop
45335
45336      if test "x$want_unix_sockets" = "xyes"; then
45337        as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
45338      fi
45339
45340fi
45341
45342  fi
45343fi
45344
45345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
45346printf %s "checking whether to support cookies... " >&6; }
45347# Check whether --enable-cookies was given.
45348if test ${enable_cookies+y}
45349then :
45350  enableval=$enable_cookies;  case "$enableval" in
45351  no)
45352       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45353printf "%s\n" "no" >&6; }
45354
45355printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
45356
45357       ;;
45358  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45359printf "%s\n" "yes" >&6; }
45360       ;;
45361  esac
45362else $as_nop
45363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45364printf "%s\n" "yes" >&6; }
45365
45366fi
45367
45368
45369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
45370printf %s "checking whether to support socketpair... " >&6; }
45371# Check whether --enable-socketpair was given.
45372if test ${enable_socketpair+y}
45373then :
45374  enableval=$enable_socketpair;  case "$enableval" in
45375  no)
45376       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45377printf "%s\n" "no" >&6; }
45378
45379printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
45380
45381       ;;
45382  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45383printf "%s\n" "yes" >&6; }
45384       ;;
45385  esac
45386else $as_nop
45387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45388printf "%s\n" "yes" >&6; }
45389
45390fi
45391
45392
45393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
45394printf %s "checking whether to support HTTP authentication... " >&6; }
45395# Check whether --enable-http-auth was given.
45396if test ${enable_http_auth+y}
45397then :
45398  enableval=$enable_http_auth;  case "$enableval" in
45399  no)
45400       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45401printf "%s\n" "no" >&6; }
45402
45403printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
45404
45405       ;;
45406  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45407printf "%s\n" "yes" >&6; }
45408       ;;
45409  esac
45410else $as_nop
45411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45412printf "%s\n" "yes" >&6; }
45413
45414fi
45415
45416
45417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
45418printf %s "checking whether to support DoH... " >&6; }
45419# Check whether --enable-doh was given.
45420if test ${enable_doh+y}
45421then :
45422  enableval=$enable_doh;  case "$enableval" in
45423  no)
45424       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45425printf "%s\n" "no" >&6; }
45426
45427printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
45428
45429       ;;
45430  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45431printf "%s\n" "yes" >&6; }
45432       ;;
45433  esac
45434else $as_nop
45435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45436printf "%s\n" "yes" >&6; }
45437
45438fi
45439
45440
45441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
45442printf %s "checking whether to support the MIME API... " >&6; }
45443# Check whether --enable-mime was given.
45444if test ${enable_mime+y}
45445then :
45446  enableval=$enable_mime;  case "$enableval" in
45447  no)
45448       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45449printf "%s\n" "no" >&6; }
45450
45451printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
45452
45453       ;;
45454  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45455printf "%s\n" "yes" >&6; }
45456       ;;
45457  esac
45458else $as_nop
45459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45460printf "%s\n" "yes" >&6; }
45461
45462fi
45463
45464
45465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support binding connections locally" >&5
45466printf %s "checking whether to support binding connections locally... " >&6; }
45467# Check whether --enable-bindlocal was given.
45468if test ${enable_bindlocal+y}
45469then :
45470  enableval=$enable_bindlocal;  case "$enableval" in
45471  no)
45472       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45473printf "%s\n" "no" >&6; }
45474
45475printf "%s\n" "#define CURL_DISABLE_BINDLOCAL 1" >>confdefs.h
45476
45477       ;;
45478  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45479printf "%s\n" "yes" >&6; }
45480       ;;
45481  esac
45482else $as_nop
45483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45484printf "%s\n" "yes" >&6; }
45485
45486fi
45487
45488
45489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the form API" >&5
45490printf %s "checking whether to support the form API... " >&6; }
45491# Check whether --enable-form-api was given.
45492if test ${enable_form_api+y}
45493then :
45494  enableval=$enable_form_api;  case "$enableval" in
45495  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45496printf "%s\n" "no" >&6; }
45497
45498printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
45499
45500       ;;
45501  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45502printf "%s\n" "yes" >&6; }
45503       test "$enable_mime" = no &&
45504         as_fn_error $? "MIME support needs to be enabled in order to enable form API support" "$LINENO" 5
45505       ;;
45506  esac
45507else $as_nop
45508
45509  if test "$enable_mime" = no; then
45510    enable_form_api=no
45511    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45512printf "%s\n" "no" >&6; }
45513
45514printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
45515
45516  else
45517    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45518printf "%s\n" "yes" >&6; }
45519  fi
45520
45521fi
45522
45523
45524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
45525printf %s "checking whether to support date parsing... " >&6; }
45526# Check whether --enable-dateparse was given.
45527if test ${enable_dateparse+y}
45528then :
45529  enableval=$enable_dateparse;  case "$enableval" in
45530  no)
45531       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45532printf "%s\n" "no" >&6; }
45533
45534printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
45535
45536       ;;
45537  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45538printf "%s\n" "yes" >&6; }
45539       ;;
45540  esac
45541else $as_nop
45542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45543printf "%s\n" "yes" >&6; }
45544
45545fi
45546
45547
45548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
45549printf %s "checking whether to support netrc parsing... " >&6; }
45550# Check whether --enable-netrc was given.
45551if test ${enable_netrc+y}
45552then :
45553  enableval=$enable_netrc;  case "$enableval" in
45554  no)
45555       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45556printf "%s\n" "no" >&6; }
45557
45558printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
45559
45560       ;;
45561  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45562printf "%s\n" "yes" >&6; }
45563       ;;
45564  esac
45565else $as_nop
45566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45567printf "%s\n" "yes" >&6; }
45568
45569fi
45570
45571
45572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
45573printf %s "checking whether to support progress-meter... " >&6; }
45574# Check whether --enable-progress-meter was given.
45575if test ${enable_progress_meter+y}
45576then :
45577  enableval=$enable_progress_meter;  case "$enableval" in
45578  no)
45579       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45580printf "%s\n" "no" >&6; }
45581
45582printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
45583
45584       ;;
45585  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45586printf "%s\n" "yes" >&6; }
45587       ;;
45588  esac
45589else $as_nop
45590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45591printf "%s\n" "yes" >&6; }
45592
45593fi
45594
45595
45596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
45597printf %s "checking whether to support DNS shuffling... " >&6; }
45598# Check whether --enable-dnsshuffle was given.
45599if test ${enable_dnsshuffle+y}
45600then :
45601  enableval=$enable_dnsshuffle;  case "$enableval" in
45602  no)
45603       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45604printf "%s\n" "no" >&6; }
45605
45606printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
45607
45608       ;;
45609  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45610printf "%s\n" "yes" >&6; }
45611       ;;
45612  esac
45613else $as_nop
45614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45615printf "%s\n" "yes" >&6; }
45616
45617fi
45618
45619
45620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
45621printf %s "checking whether to support curl_easy_option*... " >&6; }
45622# Check whether --enable-get-easy-options was given.
45623if test ${enable_get_easy_options+y}
45624then :
45625  enableval=$enable_get_easy_options;  case "$enableval" in
45626  no)
45627       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45628printf "%s\n" "no" >&6; }
45629
45630printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
45631
45632       ;;
45633  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45634printf "%s\n" "yes" >&6; }
45635       ;;
45636  esac
45637else $as_nop
45638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45639printf "%s\n" "yes" >&6; }
45640
45641fi
45642
45643
45644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
45645printf %s "checking whether to support alt-svc... " >&6; }
45646# Check whether --enable-alt-svc was given.
45647if test ${enable_alt_svc+y}
45648then :
45649  enableval=$enable_alt_svc;  case "$enableval" in
45650  no)
45651       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45652printf "%s\n" "no" >&6; }
45653
45654printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
45655
45656       curl_altsvc_msg="no";
45657       enable_altsvc="no"
45658       ;;
45659  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45660printf "%s\n" "yes" >&6; }
45661       ;;
45662  esac
45663else $as_nop
45664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45665printf "%s\n" "yes" >&6; }
45666
45667fi
45668
45669
45670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
45671printf %s "checking whether to support headers-api... " >&6; }
45672# Check whether --enable-headers-api was given.
45673if test ${enable_headers_api+y}
45674then :
45675  enableval=$enable_headers_api;  case "$enableval" in
45676  no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45677printf "%s\n" "no" >&6; }
45678       curl_headers_msg="no      (--enable-headers-api)"
45679
45680printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
45681
45682       ;;
45683  *)
45684       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45685printf "%s\n" "yes" >&6; }
45686       ;;
45687  esac
45688else $as_nop
45689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45690printf "%s\n" "yes" >&6; }
45691
45692fi
45693
45694
45695if test -n "$SSL_ENABLED"; then
45696        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
45697printf %s "checking whether to support HSTS... " >&6; }
45698  # Check whether --enable-hsts was given.
45699if test ${enable_hsts+y}
45700then :
45701  enableval=$enable_hsts;  case "$enableval" in
45702    no)
45703       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45704printf "%s\n" "no" >&6; }
45705       hsts="no"
45706       ;;
45707    *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45708printf "%s\n" "yes" >&6; }
45709       ;;
45710    esac
45711else $as_nop
45712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
45713printf "%s\n" "$hsts" >&6; }
45714
45715fi
45716
45717else
45718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
45719printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
45720  hsts="no"
45721fi
45722
45723if test "x$hsts" != "xyes"; then
45724  curl_hsts_msg="no      (--enable-hsts)";
45725
45726printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
45727
45728fi
45729
45730
45731if test "x$want_httpsrr" != "xno"; then
45732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: HTTPSRR support is available" >&5
45733printf "%s\n" "HTTPSRR support is available" >&6; }
45734
45735printf "%s\n" "#define USE_HTTPSRR 1" >>confdefs.h
45736
45737  experimental="$experimental HTTPSRR"
45738fi
45739
45740if test "x$want_ech" != "xno"; then
45741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
45742printf %s "checking whether ECH support is available... " >&6; }
45743
45744    ECH_ENABLED=0
45745  ECH_SUPPORT=''
45746
45747    if test "x$OPENSSL_ENABLED" = "x1"; then
45748
45749  for ac_func in SSL_ech_set1_echconfig
45750do :
45751  ac_fn_c_check_func "$LINENO" "SSL_ech_set1_echconfig" "ac_cv_func_SSL_ech_set1_echconfig"
45752if test "x$ac_cv_func_SSL_ech_set1_echconfig" = xyes
45753then :
45754  printf "%s\n" "#define HAVE_SSL_ECH_SET1_ECHCONFIG 1" >>confdefs.h
45755 ECH_SUPPORT="ECH support available via OpenSSL with SSL_ech_set1_echconfig"
45756      ECH_ENABLED=1
45757fi
45758
45759done
45760  fi
45761    if test "x$OPENSSL_ENABLED" = "x1"; then
45762
45763  for ac_func in SSL_set1_ech_config_list
45764do :
45765  ac_fn_c_check_func "$LINENO" "SSL_set1_ech_config_list" "ac_cv_func_SSL_set1_ech_config_list"
45766if test "x$ac_cv_func_SSL_set1_ech_config_list" = xyes
45767then :
45768  printf "%s\n" "#define HAVE_SSL_SET1_ECH_CONFIG_LIST 1" >>confdefs.h
45769 ECH_SUPPORT="ECH support available via boringssl with SSL_set1_ech_config_list"
45770      ECH_ENABLED=1
45771fi
45772
45773done
45774  fi
45775  if test "x$WOLFSSL_ENABLED" = "x1"; then
45776
45777  for ac_func in wolfSSL_CTX_GenerateEchConfig
45778do :
45779  ac_fn_c_check_func "$LINENO" "wolfSSL_CTX_GenerateEchConfig" "ac_cv_func_wolfSSL_CTX_GenerateEchConfig"
45780if test "x$ac_cv_func_wolfSSL_CTX_GenerateEchConfig" = xyes
45781then :
45782  printf "%s\n" "#define HAVE_WOLFSSL_CTX_GENERATEECHCONFIG 1" >>confdefs.h
45783 ECH_SUPPORT="ECH support available via WolfSSL with wolfSSL_CTX_GenerateEchConfig"
45784      ECH_ENABLED=1
45785fi
45786
45787done
45788  fi
45789
45790    if test "x$ECH_ENABLED" = "x1"; then
45791
45792printf "%s\n" "#define USE_HTTPSRR 1" >>confdefs.h
45793
45794
45795printf "%s\n" "#define USE_ECH 1" >>confdefs.h
45796
45797    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
45798printf "%s\n" "$ECH_SUPPORT" >&6; }
45799    experimental="$experimental ECH"
45800  else
45801    as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
45802  fi
45803fi
45804
45805if test "x$OPENSSL_ENABLED" = "x1"; then
45806  ac_fn_c_check_func "$LINENO" "SSL_set0_wbio" "ac_cv_func_SSL_set0_wbio"
45807if test "x$ac_cv_func_SSL_set0_wbio" = xyes
45808then :
45809  printf "%s\n" "#define HAVE_SSL_SET0_WBIO 1" >>confdefs.h
45810
45811fi
45812
45813fi
45814
45815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5
45816printf %s "checking whether to support WebSockets... " >&6; }
45817# Check whether --enable-websockets was given.
45818if test ${enable_websockets+y}
45819then :
45820  enableval=$enable_websockets;  case "$enableval" in
45821  no)
45822     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45823printf "%s\n" "no" >&6; }
45824     ;;
45825  *)
45826     if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45827         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45828printf "%s\n" "yes" >&6; }
45829         curl_ws_msg="enabled"
45830
45831printf "%s\n" "#define USE_WEBSOCKETS 1" >>confdefs.h
45832
45833         SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
45834         if test "x$SSL_ENABLED" = "x1"; then
45835           SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
45836         fi
45837         experimental="$experimental Websockets"
45838     else
45839                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45840printf "%s\n" "no" >&6; }
45841         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&5
45842printf "%s\n" "$as_me: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&2;}
45843     fi
45844     ;;
45845  esac
45846else $as_nop
45847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45848printf "%s\n" "no" >&6; }
45849
45850fi
45851
45852
45853
45854
45855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
45856printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
45857  CFLAG_CURL_SYMBOL_HIDING=""
45858  doing_symbol_hiding="no"
45859  if test "$want_symbol_hiding" = "yes" &&
45860    test "$supports_symbol_hiding" = "yes"; then
45861    doing_symbol_hiding="yes"
45862    CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
45863
45864printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
45865
45866    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45867printf "%s\n" "yes" >&6; }
45868  else
45869    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45870printf "%s\n" "no" >&6; }
45871  fi
45872   if test x$doing_symbol_hiding = xyes; then
45873  DOING_CURL_SYMBOL_HIDING_TRUE=
45874  DOING_CURL_SYMBOL_HIDING_FALSE='#'
45875else
45876  DOING_CURL_SYMBOL_HIDING_TRUE='#'
45877  DOING_CURL_SYMBOL_HIDING_FALSE=
45878fi
45879
45880
45881
45882
45883LIBCURL_LIBS="$LIBS$PTHREAD"
45884
45885
45886
45887
45888
45889BLANK_AT_MAKETIME=
45890
45891
45892 if test x$cross_compiling = xyes; then
45893  CROSSCOMPILING_TRUE=
45894  CROSSCOMPILING_FALSE='#'
45895else
45896  CROSSCOMPILING_TRUE='#'
45897  CROSSCOMPILING_FALSE=
45898fi
45899
45900
45901ENABLE_SHARED="$enable_shared"
45902
45903
45904ENABLE_STATIC="$enable_static"
45905
45906
45907if test "x$enable_shared" = "xno"; then
45908  LIBCURL_NO_SHARED=$LIBCURL_LIBS
45909else
45910  LIBCURL_NO_SHARED=
45911fi
45912
45913
45914rm $compilersh
45915
45916
45917if test "x$OPENSSL_ENABLED" = "x1"; then
45918  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45919elif test -n "$SSL_ENABLED"; then
45920  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45921fi
45922if test "x$IPV6_ENABLED" = "x1"; then
45923  SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
45924fi
45925if test "x$USE_UNIX_SOCKETS" = "x1"; then
45926  SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
45927fi
45928if test "x$HAVE_LIBZ" = "x1"; then
45929  SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
45930fi
45931if test "x$HAVE_BROTLI" = "x1"; then
45932  SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
45933fi
45934if test "x$HAVE_ZSTD" = "x1"; then
45935  SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
45936fi
45937if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
45938                            -o "x$USE_THREADS_WIN32" = "x1"; then
45939  SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
45940fi
45941if test "x$IDN_ENABLED" = "x1"; then
45942  SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
45943fi
45944if test "x$USE_WINDOWS_SSPI" = "x1"; then
45945  SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
45946fi
45947
45948if test "x$HAVE_GSSAPI" = "x1"; then
45949  SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
45950fi
45951
45952if test "x$curl_psl_msg" = "xenabled"; then
45953  SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
45954fi
45955
45956if test "x$curl_gsasl_msg" = "xenabled"; then
45957  SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
45958fi
45959
45960if test "x$enable_altsvc" = "xyes"; then
45961  SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
45962fi
45963if test "x$hsts" = "xyes"; then
45964  SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
45965fi
45966
45967if test "x$CURL_DISABLE_NEGOTIATE_AUTH" != "x1" -a \
45968    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45969  SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
45970fi
45971
45972if test "x$CURL_DISABLE_KERBEROS_AUTH" != "x1" -a \
45973    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45974  SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
45975fi
45976
45977use_curl_ntlm_core=no
45978
45979if test "x$CURL_DISABLE_NTLM" != "x1"; then
45980  if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
45981      -o "x$GNUTLS_ENABLED" = "x1" \
45982      -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45983      -o "x$USE_WIN32_CRYPTO" = "x1" \
45984      -o "x$WOLFSSL_NTLM" = "x1"; then
45985    use_curl_ntlm_core=yes
45986  fi
45987
45988  if test "x$use_curl_ntlm_core" = "xyes" \
45989      -o "x$USE_WINDOWS_SSPI" = "x1"; then
45990    SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
45991  fi
45992fi
45993
45994if test "x$USE_TLS_SRP" = "x1"; then
45995  SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
45996fi
45997
45998if test "x$USE_NGHTTP2" = "x1"; then
45999  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
46000fi
46001
46002if test "x$USE_NGTCP2_H3" = "x1" -o "x$USE_QUICHE" = "x1" \
46003    -o "x$USE_OPENSSL_H3" = "x1" -o "x$USE_MSH3" = "x1"; then
46004  if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
46005    as_fn_error $? "MultiSSL cannot be enabled with HTTP/3 and vice versa" "$LINENO" 5
46006  fi
46007  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
46008fi
46009
46010if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
46011  SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
46012fi
46013
46014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this build supports HTTPS-proxy" >&5
46015printf %s "checking if this build supports HTTPS-proxy... " >&6; }
46016if test "x$CURL_DISABLE_HTTP" != "x1"; then
46017  if test "x$https_proxy" != "xno"; then
46018    if test "x$OPENSSL_ENABLED" = "x1" \
46019        -o "x$GNUTLS_ENABLED" = "x1" \
46020        -o "x$SECURETRANSPORT_ENABLED" = "x1" \
46021        -o "x$RUSTLS_ENABLED" = "x1" \
46022        -o "x$BEARSSL_ENABLED" = "x1" \
46023        -o "x$SCHANNEL_ENABLED" = "x1" \
46024        -o "x$GNUTLS_ENABLED" = "x1" \
46025        -o "x$MBEDTLS_ENABLED" = "x1"; then
46026      SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
46027      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46028printf "%s\n" "yes" >&6; }
46029    elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$WOLFSSL_FULL_BIO" = "x1"; then
46030      SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
46031      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46032printf "%s\n" "yes" >&6; }
46033    else
46034      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46035printf "%s\n" "no" >&6; }
46036    fi
46037  else
46038    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46039printf "%s\n" "no" >&6; }
46040  fi
46041else
46042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46043printf "%s\n" "no" >&6; }
46044fi
46045
46046if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
46047  if test ${ac_cv_sizeof_off_t} -gt 4 -o \
46048     "$curl_win32_file_api" = "win32_large_files"; then
46049    SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
46050  fi
46051fi
46052
46053if test "$tst_atomic" = "yes"; then
46054  SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
46055elif test "x$USE_THREADS_POSIX" = "x1" -a \
46056     "x$ac_cv_header_pthread_h" = "xyes"; then
46057  SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
46058else
46059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46060/* end confdefs.h.  */
46061
46062
46063      #include <windows.h>
46064
46065int main (void)
46066{
46067
46068      #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
46069      #error
46070      #endif
46071
46072 ;
46073 return 0;
46074}
46075
46076_ACEOF
46077if ac_fn_c_try_compile "$LINENO"
46078then :
46079
46080     SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
46081
46082fi
46083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
46084fi
46085
46086SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
46087
46088
46089if test "x$CURL_DISABLE_HTTP" != "x1"; then
46090  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP IPFS IPNS"
46091  if test "x$SSL_ENABLED" = "x1"; then
46092    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
46093  fi
46094fi
46095if test "x$CURL_DISABLE_FTP" != "x1"; then
46096  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
46097  if test "x$SSL_ENABLED" = "x1"; then
46098    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
46099  fi
46100fi
46101if test "x$CURL_DISABLE_FILE" != "x1"; then
46102  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
46103fi
46104if test "x$CURL_DISABLE_TELNET" != "x1"; then
46105  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
46106fi
46107if test "x$CURL_DISABLE_LDAP" != "x1"; then
46108  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
46109  if test "x$CURL_DISABLE_LDAPS" != "x1"; then
46110    if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
46111      (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
46112      SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
46113    fi
46114  fi
46115fi
46116if test "x$CURL_DISABLE_DICT" != "x1"; then
46117  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
46118fi
46119if test "x$CURL_DISABLE_TFTP" != "x1"; then
46120  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
46121fi
46122if test "x$CURL_DISABLE_GOPHER" != "x1"; then
46123  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
46124  if test "x$SSL_ENABLED" = "x1"; then
46125    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
46126  fi
46127fi
46128if test "x$CURL_DISABLE_MQTT" != "x1"; then
46129  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
46130fi
46131if test "x$CURL_DISABLE_POP3" != "x1"; then
46132  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
46133  if test "x$SSL_ENABLED" = "x1"; then
46134    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
46135  fi
46136fi
46137if test "x$CURL_DISABLE_IMAP" != "x1"; then
46138  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
46139  if test "x$SSL_ENABLED" = "x1"; then
46140    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
46141  fi
46142fi
46143if test "x$CURL_DISABLE_SMB" != "x1" \
46144    -a "x$use_curl_ntlm_core" = "xyes"; then
46145  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
46146  if test "x$SSL_ENABLED" = "x1"; then
46147    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
46148  fi
46149fi
46150if test "x$CURL_DISABLE_SMTP" != "x1"; then
46151  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
46152  if test "x$SSL_ENABLED" = "x1"; then
46153    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
46154  fi
46155fi
46156if test "x$USE_LIBSSH2" = "x1"; then
46157  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
46158  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
46159fi
46160if test "x$USE_LIBSSH" = "x1"; then
46161  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
46162  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
46163fi
46164if test "x$USE_WOLFSSH" = "x1"; then
46165  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
46166fi
46167if test "x$CURL_DISABLE_RTSP" != "x1"; then
46168  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
46169fi
46170if test "x$USE_LIBRTMP" = "x1"; then
46171  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
46172fi
46173
46174SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
46175
46176
46177
46178
46179squeeze CFLAGS
46180squeeze CPPFLAGS
46181squeeze DEFS
46182squeeze LDFLAGS
46183squeeze LIBS
46184
46185squeeze LIBCURL_LIBS
46186squeeze CURL_NETWORK_LIBS
46187squeeze CURL_NETWORK_AND_TIME_LIBS
46188
46189squeeze SUPPORT_FEATURES
46190squeeze SUPPORT_PROTOCOLS
46191
46192
46193
46194  xc_bad_var_libs=no
46195  for xc_word in $LIBS; do
46196    case "$xc_word" in
46197      -l* | --library=*)
46198        :
46199        ;;
46200      *)
46201        xc_bad_var_libs=yes
46202        ;;
46203    esac
46204  done
46205  if test $xc_bad_var_libs = yes; then
46206    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
46207printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
46208    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
46209printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
46210  fi
46211
46212
46213  xc_bad_var_ldflags=no
46214  for xc_word in $LDFLAGS; do
46215    case "$xc_word" in
46216      -D*)
46217        xc_bad_var_ldflags=yes
46218        ;;
46219      -U*)
46220        xc_bad_var_ldflags=yes
46221        ;;
46222      -I*)
46223        xc_bad_var_ldflags=yes
46224        ;;
46225      -l* | --library=*)
46226        xc_bad_var_ldflags=yes
46227        ;;
46228    esac
46229  done
46230  if test $xc_bad_var_ldflags = yes; then
46231    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
46232printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
46233    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
46234    for xc_word in $LDFLAGS; do
46235      case "$xc_word" in
46236        -D*)
46237          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
46238printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
46239          ;;
46240        -U*)
46241          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
46242printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
46243          ;;
46244        -I*)
46245          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
46246printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
46247          ;;
46248        -l* | --library=*)
46249          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46250printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46251          ;;
46252      esac
46253    done
46254  fi
46255
46256
46257  xc_bad_var_cppflags=no
46258  for xc_word in $CPPFLAGS; do
46259    case "$xc_word" in
46260      -rpath*)
46261        xc_bad_var_cppflags=yes
46262        ;;
46263      -L* | --library-path=*)
46264        xc_bad_var_cppflags=yes
46265        ;;
46266      -l* | --library=*)
46267        xc_bad_var_cppflags=yes
46268        ;;
46269    esac
46270  done
46271  if test $xc_bad_var_cppflags = yes; then
46272    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
46273printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
46274    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
46275    for xc_word in $CPPFLAGS; do
46276      case "$xc_word" in
46277        -rpath*)
46278          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
46279printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
46280          ;;
46281        -L* | --library-path=*)
46282          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
46283printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
46284          ;;
46285        -l* | --library=*)
46286          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46287printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46288          ;;
46289      esac
46290    done
46291  fi
46292
46293
46294  xc_bad_var_cflags=no
46295  for xc_word in $CFLAGS; do
46296    case "$xc_word" in
46297      -D*)
46298        xc_bad_var_cflags=yes
46299        ;;
46300      -U*)
46301        xc_bad_var_cflags=yes
46302        ;;
46303      -I*)
46304        xc_bad_var_cflags=yes
46305        ;;
46306      -rpath*)
46307        xc_bad_var_cflags=yes
46308        ;;
46309      -L* | --library-path=*)
46310        xc_bad_var_cflags=yes
46311        ;;
46312      -l* | --library=*)
46313        xc_bad_var_cflags=yes
46314        ;;
46315    esac
46316  done
46317  if test $xc_bad_var_cflags = yes; then
46318    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
46319printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
46320    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
46321    for xc_word in $CFLAGS; do
46322      case "$xc_word" in
46323        -D*)
46324          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
46325printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
46326          ;;
46327        -U*)
46328          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
46329printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
46330          ;;
46331        -I*)
46332          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
46333printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
46334          ;;
46335        -rpath*)
46336          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
46337printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
46338          ;;
46339        -L* | --library-path=*)
46340          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
46341printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
46342          ;;
46343        -l* | --library=*)
46344          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46345printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46346          ;;
46347      esac
46348    done
46349  fi
46350
46351  if test $xc_bad_var_libs = yes ||
46352     test $xc_bad_var_cflags = yes ||
46353     test $xc_bad_var_ldflags = yes ||
46354     test $xc_bad_var_cppflags = yes; then
46355     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
46356printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
46357  fi
46358
46359
46360SSL_BACKENDS=${ssl_backends}
46361
46362
46363if test "x$want_curldebug_assumed" = "xyes" &&
46364  test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
46365  ac_configure_args="$ac_configure_args --enable-curldebug"
46366fi
46367
46368ac_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/config tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile tests/http/config.ini tests/http/Makefile tests/http/clients/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
46369
46370cat >confcache <<\_ACEOF
46371# This file is a shell script that caches the results of configure
46372# tests run on this system so they can be shared between configure
46373# scripts and configure runs, see configure's option --config-cache.
46374# It is not useful on other systems.  If it contains results you don't
46375# want to keep, you may remove or edit it.
46376#
46377# config.status only pays attention to the cache file if you give it
46378# the --recheck option to rerun configure.
46379#
46380# `ac_cv_env_foo' variables (set or unset) will be overridden when
46381# loading this file, other *unset* `ac_cv_foo' will be assigned the
46382# following values.
46383
46384_ACEOF
46385
46386# The following way of writing the cache mishandles newlines in values,
46387# but we know of no workaround that is simple, portable, and efficient.
46388# So, we kill variables containing newlines.
46389# Ultrix sh set writes to stderr and can't be redirected directly,
46390# and sets the high bit in the cache file unless we assign to the vars.
46391(
46392  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46393    eval ac_val=\$$ac_var
46394    case $ac_val in #(
46395    *${as_nl}*)
46396      case $ac_var in #(
46397      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
46398printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46399      esac
46400      case $ac_var in #(
46401      _ | IFS | as_nl) ;; #(
46402      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46403      *) { eval $ac_var=; unset $ac_var;} ;;
46404      esac ;;
46405    esac
46406  done
46407
46408  (set) 2>&1 |
46409    case $as_nl`(ac_space=' '; set) 2>&1` in #(
46410    *${as_nl}ac_space=\ *)
46411      # `set' does not quote correctly, so add quotes: double-quote
46412      # substitution turns \\\\ into \\, and sed turns \\ into \.
46413      sed -n \
46414	"s/'/'\\\\''/g;
46415	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46416      ;; #(
46417    *)
46418      # `set' quotes correctly as required by POSIX, so do not add quotes.
46419      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46420      ;;
46421    esac |
46422    sort
46423) |
46424  sed '
46425     /^ac_cv_env_/b end
46426     t clear
46427     :clear
46428     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
46429     t end
46430     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46431     :end' >>confcache
46432if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46433  if test -w "$cache_file"; then
46434    if test "x$cache_file" != "x/dev/null"; then
46435      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
46436printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
46437      if test ! -f "$cache_file" || test -h "$cache_file"; then
46438	cat confcache >"$cache_file"
46439      else
46440        case $cache_file in #(
46441        */* | ?:*)
46442	  mv -f confcache "$cache_file"$$ &&
46443	  mv -f "$cache_file"$$ "$cache_file" ;; #(
46444        *)
46445	  mv -f confcache "$cache_file" ;;
46446	esac
46447      fi
46448    fi
46449  else
46450    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
46451printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
46452  fi
46453fi
46454rm -f confcache
46455
46456test "x$prefix" = xNONE && prefix=$ac_default_prefix
46457# Let make expand exec_prefix.
46458test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46459
46460DEFS=-DHAVE_CONFIG_H
46461
46462ac_libobjs=
46463ac_ltlibobjs=
46464U=
46465for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46466  # 1. Remove the extension, and $U if already installed.
46467  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46468  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
46469  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
46470  #    will be set to the directory where LIBOBJS objects are built.
46471  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46472  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
46473done
46474LIBOBJS=$ac_libobjs
46475
46476LTLIBOBJS=$ac_ltlibobjs
46477
46478
46479if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46480  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
46481Usually this means the macro was only invoked conditionally." "$LINENO" 5
46482fi
46483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
46484printf %s "checking that generated files are newer than configure... " >&6; }
46485   if test -n "$am_sleep_pid"; then
46486     # Hide warnings about reused PIDs.
46487     wait $am_sleep_pid 2>/dev/null
46488   fi
46489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
46490printf "%s\n" "done" >&6; }
46491if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46492  as_fn_error $? "conditional \"AMDEP\" was never defined.
46493Usually this means the macro was only invoked conditionally." "$LINENO" 5
46494fi
46495if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46496  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
46497Usually this means the macro was only invoked conditionally." "$LINENO" 5
46498fi
46499 if test -n "$EXEEXT"; then
46500  am__EXEEXT_TRUE=
46501  am__EXEEXT_FALSE='#'
46502else
46503  am__EXEEXT_TRUE='#'
46504  am__EXEEXT_FALSE=
46505fi
46506
46507if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
46508  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
46509Usually this means the macro was only invoked conditionally." "$LINENO" 5
46510fi
46511if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
46512  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
46513Usually this means the macro was only invoked conditionally." "$LINENO" 5
46514fi
46515if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
46516  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
46517Usually this means the macro was only invoked conditionally." "$LINENO" 5
46518fi
46519if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
46520  as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
46521Usually this means the macro was only invoked conditionally." "$LINENO" 5
46522fi
46523if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
46524  as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
46525Usually this means the macro was only invoked conditionally." "$LINENO" 5
46526fi
46527if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46528  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46529Usually this means the macro was only invoked conditionally." "$LINENO" 5
46530fi
46531if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
46532  as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
46533Usually this means the macro was only invoked conditionally." "$LINENO" 5
46534fi
46535if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
46536  as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
46537Usually this means the macro was only invoked conditionally." "$LINENO" 5
46538fi
46539if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
46540  as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
46541Usually this means the macro was only invoked conditionally." "$LINENO" 5
46542fi
46543if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46544  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46545Usually this means the macro was only invoked conditionally." "$LINENO" 5
46546fi
46547if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
46548  as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
46549Usually this means the macro was only invoked conditionally." "$LINENO" 5
46550fi
46551if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
46552  as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
46553Usually this means the macro was only invoked conditionally." "$LINENO" 5
46554fi
46555if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
46556  as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
46557Usually this means the macro was only invoked conditionally." "$LINENO" 5
46558fi
46559if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
46560  as_fn_error $? "conditional \"USE_GSASL\" was never defined.
46561Usually this means the macro was only invoked conditionally." "$LINENO" 5
46562fi
46563if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
46564  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
46565Usually this means the macro was only invoked conditionally." "$LINENO" 5
46566fi
46567if test -z "${USE_ZSH_COMPLETION_TRUE}" && test -z "${USE_ZSH_COMPLETION_FALSE}"; then
46568  as_fn_error $? "conditional \"USE_ZSH_COMPLETION\" was never defined.
46569Usually this means the macro was only invoked conditionally." "$LINENO" 5
46570fi
46571if test -z "${USE_FISH_COMPLETION_TRUE}" && test -z "${USE_FISH_COMPLETION_FALSE}"; then
46572  as_fn_error $? "conditional \"USE_FISH_COMPLETION\" was never defined.
46573Usually this means the macro was only invoked conditionally." "$LINENO" 5
46574fi
46575if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46576  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46577Usually this means the macro was only invoked conditionally." "$LINENO" 5
46578fi
46579if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
46580  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
46581Usually this means the macro was only invoked conditionally." "$LINENO" 5
46582fi
46583if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
46584  as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
46585Usually this means the macro was only invoked conditionally." "$LINENO" 5
46586fi
46587if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
46588  as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
46589Usually this means the macro was only invoked conditionally." "$LINENO" 5
46590fi
46591if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
46592  as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
46593Usually this means the macro was only invoked conditionally." "$LINENO" 5
46594fi
46595if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
46596  as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
46597Usually this means the macro was only invoked conditionally." "$LINENO" 5
46598fi
46599
46600: "${CONFIG_STATUS=./config.status}"
46601ac_write_fail=0
46602ac_clean_files_save=$ac_clean_files
46603ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
46605printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
46606as_write_fail=0
46607cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
46608#! $SHELL
46609# Generated by $as_me.
46610# Run this file to recreate the current configuration.
46611# Compiler output produced by configure, useful for debugging
46612# configure, is in config.log if it exists.
46613
46614debug=false
46615ac_cs_recheck=false
46616ac_cs_silent=false
46617
46618SHELL=\${CONFIG_SHELL-$SHELL}
46619export SHELL
46620_ASEOF
46621cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
46622## -------------------- ##
46623## M4sh Initialization. ##
46624## -------------------- ##
46625
46626# Be more Bourne compatible
46627DUALCASE=1; export DUALCASE # for MKS sh
46628as_nop=:
46629if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
46630then :
46631  emulate sh
46632  NULLCMD=:
46633  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46634  # is contrary to our usage.  Disable this feature.
46635  alias -g '${1+"$@"}'='"$@"'
46636  setopt NO_GLOB_SUBST
46637else $as_nop
46638  case `(set -o) 2>/dev/null` in #(
46639  *posix*) :
46640    set -o posix ;; #(
46641  *) :
46642     ;;
46643esac
46644fi
46645
46646
46647
46648# Reset variables that may have inherited troublesome values from
46649# the environment.
46650
46651# IFS needs to be set, to space, tab, and newline, in precisely that order.
46652# (If _AS_PATH_WALK were called with IFS unset, it would have the
46653# side effect of setting IFS to empty, thus disabling word splitting.)
46654# Quoting is to prevent editors from complaining about space-tab.
46655as_nl='
46656'
46657export as_nl
46658IFS=" ""	$as_nl"
46659
46660PS1='$ '
46661PS2='> '
46662PS4='+ '
46663
46664# Ensure predictable behavior from utilities with locale-dependent output.
46665LC_ALL=C
46666export LC_ALL
46667LANGUAGE=C
46668export LANGUAGE
46669
46670# We cannot yet rely on "unset" to work, but we need these variables
46671# to be unset--not just set to an empty or harmless value--now, to
46672# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
46673# also avoids known problems related to "unset" and subshell syntax
46674# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
46675for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
46676do eval test \${$as_var+y} \
46677  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
46678done
46679
46680# Ensure that fds 0, 1, and 2 are open.
46681if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
46682if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
46683if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
46684
46685
46686
46687# Find who we are.  Look in the path if we contain no directory separator.
46688as_myself=
46689case $0 in #((
46690  *[\\/]* ) as_myself=$0 ;;
46691  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46692for as_dir in $PATH
46693do
46694  IFS=$as_save_IFS
46695  case $as_dir in #(((
46696    '') as_dir=./ ;;
46697    */) ;;
46698    *) as_dir=$as_dir/ ;;
46699  esac
46700    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
46701  done
46702IFS=$as_save_IFS
46703
46704     ;;
46705esac
46706# We did not find ourselves, most probably we were run as `sh COMMAND'
46707# in which case we are not to be found in the path.
46708if test "x$as_myself" = x; then
46709  as_myself=$0
46710fi
46711if test ! -f "$as_myself"; then
46712  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46713  exit 1
46714fi
46715
46716
46717
46718# as_fn_error STATUS ERROR [LINENO LOG_FD]
46719# ----------------------------------------
46720# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
46721# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
46722# script with STATUS, using 1 if that was 0.
46723as_fn_error ()
46724{
46725  as_status=$1; test $as_status -eq 0 && as_status=1
46726  if test "$4"; then
46727    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
46728    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
46729  fi
46730  printf "%s\n" "$as_me: error: $2" >&2
46731  as_fn_exit $as_status
46732} # as_fn_error
46733
46734
46735
46736# as_fn_set_status STATUS
46737# -----------------------
46738# Set $? to STATUS, without forking.
46739as_fn_set_status ()
46740{
46741  return $1
46742} # as_fn_set_status
46743
46744# as_fn_exit STATUS
46745# -----------------
46746# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
46747as_fn_exit ()
46748{
46749  set +e
46750  as_fn_set_status $1
46751  exit $1
46752} # as_fn_exit
46753
46754# as_fn_unset VAR
46755# ---------------
46756# Portably unset VAR.
46757as_fn_unset ()
46758{
46759  { eval $1=; unset $1;}
46760}
46761as_unset=as_fn_unset
46762
46763# as_fn_append VAR VALUE
46764# ----------------------
46765# Append the text in VALUE to the end of the definition contained in VAR. Take
46766# advantage of any shell optimizations that allow amortized linear growth over
46767# repeated appends, instead of the typical quadratic growth present in naive
46768# implementations.
46769if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
46770then :
46771  eval 'as_fn_append ()
46772  {
46773    eval $1+=\$2
46774  }'
46775else $as_nop
46776  as_fn_append ()
46777  {
46778    eval $1=\$$1\$2
46779  }
46780fi # as_fn_append
46781
46782# as_fn_arith ARG...
46783# ------------------
46784# Perform arithmetic evaluation on the ARGs, and store the result in the
46785# global $as_val. Take advantage of shells that can avoid forks. The arguments
46786# must be portable across $(()) and expr.
46787if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
46788then :
46789  eval 'as_fn_arith ()
46790  {
46791    as_val=$(( $* ))
46792  }'
46793else $as_nop
46794  as_fn_arith ()
46795  {
46796    as_val=`expr "$@" || test $? -eq 1`
46797  }
46798fi # as_fn_arith
46799
46800
46801if expr a : '\(a\)' >/dev/null 2>&1 &&
46802   test "X`expr 00001 : '.*\(...\)'`" = X001; then
46803  as_expr=expr
46804else
46805  as_expr=false
46806fi
46807
46808if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46809  as_basename=basename
46810else
46811  as_basename=false
46812fi
46813
46814if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46815  as_dirname=dirname
46816else
46817  as_dirname=false
46818fi
46819
46820as_me=`$as_basename -- "$0" ||
46821$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46822	 X"$0" : 'X\(//\)$' \| \
46823	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46824printf "%s\n" X/"$0" |
46825    sed '/^.*\/\([^/][^/]*\)\/*$/{
46826	    s//\1/
46827	    q
46828	  }
46829	  /^X\/\(\/\/\)$/{
46830	    s//\1/
46831	    q
46832	  }
46833	  /^X\/\(\/\).*/{
46834	    s//\1/
46835	    q
46836	  }
46837	  s/.*/./; q'`
46838
46839# Avoid depending upon Character Ranges.
46840as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46841as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46842as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46843as_cr_digits='0123456789'
46844as_cr_alnum=$as_cr_Letters$as_cr_digits
46845
46846
46847# Determine whether it's possible to make 'echo' print without a newline.
46848# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
46849# for compatibility with existing Makefiles.
46850ECHO_C= ECHO_N= ECHO_T=
46851case `echo -n x` in #(((((
46852-n*)
46853  case `echo 'xy\c'` in
46854  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
46855  xy)  ECHO_C='\c';;
46856  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
46857       ECHO_T='	';;
46858  esac;;
46859*)
46860  ECHO_N='-n';;
46861esac
46862
46863# For backward compatibility with old third-party macros, we provide
46864# the shell variables $as_echo and $as_echo_n.  New code should use
46865# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
46866as_echo='printf %s\n'
46867as_echo_n='printf %s'
46868
46869rm -f conf$$ conf$$.exe conf$$.file
46870if test -d conf$$.dir; then
46871  rm -f conf$$.dir/conf$$.file
46872else
46873  rm -f conf$$.dir
46874  mkdir conf$$.dir 2>/dev/null
46875fi
46876if (echo >conf$$.file) 2>/dev/null; then
46877  if ln -s conf$$.file conf$$ 2>/dev/null; then
46878    as_ln_s='ln -s'
46879    # ... but there are two gotchas:
46880    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46881    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46882    # In both cases, we have to default to `cp -pR'.
46883    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46884      as_ln_s='cp -pR'
46885  elif ln conf$$.file conf$$ 2>/dev/null; then
46886    as_ln_s=ln
46887  else
46888    as_ln_s='cp -pR'
46889  fi
46890else
46891  as_ln_s='cp -pR'
46892fi
46893rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46894rmdir conf$$.dir 2>/dev/null
46895
46896
46897# as_fn_mkdir_p
46898# -------------
46899# Create "$as_dir" as a directory, including parents if necessary.
46900as_fn_mkdir_p ()
46901{
46902
46903  case $as_dir in #(
46904  -*) as_dir=./$as_dir;;
46905  esac
46906  test -d "$as_dir" || eval $as_mkdir_p || {
46907    as_dirs=
46908    while :; do
46909      case $as_dir in #(
46910      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
46911      *) as_qdir=$as_dir;;
46912      esac
46913      as_dirs="'$as_qdir' $as_dirs"
46914      as_dir=`$as_dirname -- "$as_dir" ||
46915$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46916	 X"$as_dir" : 'X\(//\)[^/]' \| \
46917	 X"$as_dir" : 'X\(//\)$' \| \
46918	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46919printf "%s\n" X"$as_dir" |
46920    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46921	    s//\1/
46922	    q
46923	  }
46924	  /^X\(\/\/\)[^/].*/{
46925	    s//\1/
46926	    q
46927	  }
46928	  /^X\(\/\/\)$/{
46929	    s//\1/
46930	    q
46931	  }
46932	  /^X\(\/\).*/{
46933	    s//\1/
46934	    q
46935	  }
46936	  s/.*/./; q'`
46937      test -d "$as_dir" && break
46938    done
46939    test -z "$as_dirs" || eval "mkdir $as_dirs"
46940  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
46941
46942
46943} # as_fn_mkdir_p
46944if mkdir -p . 2>/dev/null; then
46945  as_mkdir_p='mkdir -p "$as_dir"'
46946else
46947  test -d ./-p && rmdir ./-p
46948  as_mkdir_p=false
46949fi
46950
46951
46952# as_fn_executable_p FILE
46953# -----------------------
46954# Test if FILE is an executable regular file.
46955as_fn_executable_p ()
46956{
46957  test -f "$1" && test -x "$1"
46958} # as_fn_executable_p
46959as_test_x='test -x'
46960as_executable_p=as_fn_executable_p
46961
46962# Sed expression to map a string onto a valid CPP name.
46963as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46964
46965# Sed expression to map a string onto a valid variable name.
46966as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46967
46968
46969exec 6>&1
46970## ----------------------------------- ##
46971## Main body of $CONFIG_STATUS script. ##
46972## ----------------------------------- ##
46973_ASEOF
46974test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
46975
46976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46977# Save the log message, to keep $0 and so on meaningful, and to
46978# report actual input values of CONFIG_FILES etc. instead of their
46979# values after options handling.
46980ac_log="
46981This file was extended by curl $as_me -, which was
46982generated by GNU Autoconf 2.71.  Invocation command line was
46983
46984  CONFIG_FILES    = $CONFIG_FILES
46985  CONFIG_HEADERS  = $CONFIG_HEADERS
46986  CONFIG_LINKS    = $CONFIG_LINKS
46987  CONFIG_COMMANDS = $CONFIG_COMMANDS
46988  $ $0 $@
46989
46990on `(hostname || uname -n) 2>/dev/null | sed 1q`
46991"
46992
46993_ACEOF
46994
46995case $ac_config_files in *"
46996"*) set x $ac_config_files; shift; ac_config_files=$*;;
46997esac
46998
46999case $ac_config_headers in *"
47000"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47001esac
47002
47003
47004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47005# Files that config.status was made for.
47006config_files="$ac_config_files"
47007config_headers="$ac_config_headers"
47008config_commands="$ac_config_commands"
47009
47010_ACEOF
47011
47012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47013ac_cs_usage="\
47014\`$as_me' instantiates files and other configuration actions
47015from templates according to the current configuration.  Unless the files
47016and actions are specified as TAGs, all are instantiated by default.
47017
47018Usage: $0 [OPTION]... [TAG]...
47019
47020  -h, --help       print this help, then exit
47021  -V, --version    print version number and configuration settings, then exit
47022      --config     print configuration, then exit
47023  -q, --quiet, --silent
47024                   do not print progress messages
47025  -d, --debug      don't remove temporary files
47026      --recheck    update $as_me by reconfiguring in the same conditions
47027      --file=FILE[:TEMPLATE]
47028                   instantiate the configuration file FILE
47029      --header=FILE[:TEMPLATE]
47030                   instantiate the configuration header FILE
47031
47032Configuration files:
47033$config_files
47034
47035Configuration headers:
47036$config_headers
47037
47038Configuration commands:
47039$config_commands
47040
47041Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
47042
47043_ACEOF
47044ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
47045ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
47046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47047ac_cs_config='$ac_cs_config_escaped'
47048ac_cs_version="\\
47049curl config.status -
47050configured by $0, generated by GNU Autoconf 2.71,
47051  with options \\"\$ac_cs_config\\"
47052
47053Copyright (C) 2021 Free Software Foundation, Inc.
47054This config.status script is free software; the Free Software Foundation
47055gives unlimited permission to copy, distribute and modify it."
47056
47057ac_pwd='$ac_pwd'
47058srcdir='$srcdir'
47059INSTALL='$INSTALL'
47060MKDIR_P='$MKDIR_P'
47061AWK='$AWK'
47062test -n "\$AWK" || AWK=awk
47063_ACEOF
47064
47065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47066# The default lists apply if the user does not specify any file.
47067ac_need_defaults=:
47068while test $# != 0
47069do
47070  case $1 in
47071  --*=?*)
47072    ac_option=`expr "X$1" : 'X\([^=]*\)='`
47073    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47074    ac_shift=:
47075    ;;
47076  --*=)
47077    ac_option=`expr "X$1" : 'X\([^=]*\)='`
47078    ac_optarg=
47079    ac_shift=:
47080    ;;
47081  *)
47082    ac_option=$1
47083    ac_optarg=$2
47084    ac_shift=shift
47085    ;;
47086  esac
47087
47088  case $ac_option in
47089  # Handling of the options.
47090  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47091    ac_cs_recheck=: ;;
47092  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47093    printf "%s\n" "$ac_cs_version"; exit ;;
47094  --config | --confi | --conf | --con | --co | --c )
47095    printf "%s\n" "$ac_cs_config"; exit ;;
47096  --debug | --debu | --deb | --de | --d | -d )
47097    debug=: ;;
47098  --file | --fil | --fi | --f )
47099    $ac_shift
47100    case $ac_optarg in
47101    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47102    '') as_fn_error $? "missing file argument" ;;
47103    esac
47104    as_fn_append CONFIG_FILES " '$ac_optarg'"
47105    ac_need_defaults=false;;
47106  --header | --heade | --head | --hea )
47107    $ac_shift
47108    case $ac_optarg in
47109    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47110    esac
47111    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
47112    ac_need_defaults=false;;
47113  --he | --h)
47114    # Conflict between --help and --header
47115    as_fn_error $? "ambiguous option: \`$1'
47116Try \`$0 --help' for more information.";;
47117  --help | --hel | -h )
47118    printf "%s\n" "$ac_cs_usage"; exit ;;
47119  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47120  | -silent | --silent | --silen | --sile | --sil | --si | --s)
47121    ac_cs_silent=: ;;
47122
47123  # This is an error.
47124  -*) as_fn_error $? "unrecognized option: \`$1'
47125Try \`$0 --help' for more information." ;;
47126
47127  *) as_fn_append ac_config_targets " $1"
47128     ac_need_defaults=false ;;
47129
47130  esac
47131  shift
47132done
47133
47134ac_configure_extra_args=
47135
47136if $ac_cs_silent; then
47137  exec 6>/dev/null
47138  ac_configure_extra_args="$ac_configure_extra_args --silent"
47139fi
47140
47141_ACEOF
47142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47143if \$ac_cs_recheck; then
47144  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47145  shift
47146  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
47147  CONFIG_SHELL='$SHELL'
47148  export CONFIG_SHELL
47149  exec "\$@"
47150fi
47151
47152_ACEOF
47153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47154exec 5>>config.log
47155{
47156  echo
47157  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47158## Running $as_me. ##
47159_ASBOX
47160  printf "%s\n" "$ac_log"
47161} >&5
47162
47163_ACEOF
47164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47165#
47166# INIT-COMMANDS
47167#
47168AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
47169
47170
47171# The HP-UX ksh and POSIX shell print the target directory to stdout
47172# if CDPATH is set.
47173(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47174
47175sed_quote_subst='$sed_quote_subst'
47176double_quote_subst='$double_quote_subst'
47177delay_variable_subst='$delay_variable_subst'
47178macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
47179macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
47180AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
47181DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
47182OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
47183enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
47184enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
47185pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
47186enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
47187shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
47188SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
47189ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
47190PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
47191host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
47192host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
47193host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
47194build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
47195build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
47196build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
47197SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
47198Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
47199GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
47200EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
47201FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
47202LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
47203NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
47204LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
47205max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
47206ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
47207exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
47208lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
47209lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
47210lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
47211lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
47212lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
47213reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
47214reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
47215FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
47216deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
47217file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
47218file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
47219want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
47220sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
47221AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
47222lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
47223AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
47224archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
47225STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
47226RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
47227old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
47228old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
47229old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
47230lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
47231CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
47232CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
47233compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
47234GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
47235lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
47236lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
47237lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
47238lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
47239lt_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"`'
47240lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
47241nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
47242lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
47243lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
47244objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
47245MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
47246lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
47247lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
47248lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
47249lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
47250lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
47251need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
47252MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
47253DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
47254NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
47255LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
47256OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
47257OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
47258libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
47259shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
47260extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
47261archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
47262enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
47263export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
47264whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
47265compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
47266old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
47267old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
47268archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
47269archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
47270module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
47271module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
47272with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
47273allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
47274no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
47275hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
47276hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
47277hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
47278hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
47279hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
47280hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
47281hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
47282inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
47283link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
47284always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
47285export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
47286exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
47287include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
47288prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
47289postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
47290file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
47291variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
47292need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
47293need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
47294version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
47295runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
47296shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
47297shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
47298libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
47299library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
47300soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
47301install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
47302postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
47303postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
47304finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
47305finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
47306hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
47307sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
47308configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
47309configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
47310hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
47311enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
47312enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
47313enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
47314old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
47315striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
47316LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
47317reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
47318reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
47319old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
47320compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
47321GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
47322lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
47323lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
47324lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
47325lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
47326lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
47327archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
47328enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
47329export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
47330whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
47331compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
47332old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
47333old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
47334archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
47335archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
47336module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
47337module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
47338with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
47339allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
47340no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
47341hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
47342hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
47343hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
47344hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
47345hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
47346hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
47347hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
47348inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
47349link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
47350always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
47351export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
47352exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
47353include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
47354prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
47355postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
47356file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
47357hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
47358
47359LTCC='$LTCC'
47360LTCFLAGS='$LTCFLAGS'
47361compiler='$compiler_DEFAULT'
47362
47363# A function that is used when there is no print builtin or printf.
47364func_fallback_echo ()
47365{
47366  eval 'cat <<_LTECHO_EOF
47367\$1
47368_LTECHO_EOF'
47369}
47370
47371# Quote evaled strings.
47372for var in AS \
47373DLLTOOL \
47374OBJDUMP \
47375SHELL \
47376ECHO \
47377PATH_SEPARATOR \
47378SED \
47379GREP \
47380EGREP \
47381FGREP \
47382LD \
47383NM \
47384LN_S \
47385lt_SP2NL \
47386lt_NL2SP \
47387reload_flag \
47388FILECMD \
47389deplibs_check_method \
47390file_magic_cmd \
47391file_magic_glob \
47392want_nocaseglob \
47393sharedlib_from_linklib_cmd \
47394AR \
47395archiver_list_spec \
47396STRIP \
47397RANLIB \
47398CC \
47399CFLAGS \
47400compiler \
47401lt_cv_sys_global_symbol_pipe \
47402lt_cv_sys_global_symbol_to_cdecl \
47403lt_cv_sys_global_symbol_to_import \
47404lt_cv_sys_global_symbol_to_c_name_address \
47405lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47406lt_cv_nm_interface \
47407nm_file_list_spec \
47408lt_cv_truncate_bin \
47409lt_prog_compiler_no_builtin_flag \
47410lt_prog_compiler_pic \
47411lt_prog_compiler_wl \
47412lt_prog_compiler_static \
47413lt_cv_prog_compiler_c_o \
47414need_locks \
47415MANIFEST_TOOL \
47416DSYMUTIL \
47417NMEDIT \
47418LIPO \
47419OTOOL \
47420OTOOL64 \
47421shrext_cmds \
47422export_dynamic_flag_spec \
47423whole_archive_flag_spec \
47424compiler_needs_object \
47425with_gnu_ld \
47426allow_undefined_flag \
47427no_undefined_flag \
47428hardcode_libdir_flag_spec \
47429hardcode_libdir_separator \
47430exclude_expsyms \
47431include_expsyms \
47432file_list_spec \
47433variables_saved_for_relink \
47434libname_spec \
47435library_names_spec \
47436soname_spec \
47437install_override_mode \
47438finish_eval \
47439old_striplib \
47440striplib \
47441LD_RC \
47442reload_flag_RC \
47443compiler_RC \
47444lt_prog_compiler_no_builtin_flag_RC \
47445lt_prog_compiler_pic_RC \
47446lt_prog_compiler_wl_RC \
47447lt_prog_compiler_static_RC \
47448lt_cv_prog_compiler_c_o_RC \
47449export_dynamic_flag_spec_RC \
47450whole_archive_flag_spec_RC \
47451compiler_needs_object_RC \
47452with_gnu_ld_RC \
47453allow_undefined_flag_RC \
47454no_undefined_flag_RC \
47455hardcode_libdir_flag_spec_RC \
47456hardcode_libdir_separator_RC \
47457exclude_expsyms_RC \
47458include_expsyms_RC \
47459file_list_spec_RC; do
47460    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47461    *[\\\\\\\`\\"\\\$]*)
47462      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47463      ;;
47464    *)
47465      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47466      ;;
47467    esac
47468done
47469
47470# Double-quote double-evaled strings.
47471for var in reload_cmds \
47472old_postinstall_cmds \
47473old_postuninstall_cmds \
47474old_archive_cmds \
47475extract_expsyms_cmds \
47476old_archive_from_new_cmds \
47477old_archive_from_expsyms_cmds \
47478archive_cmds \
47479archive_expsym_cmds \
47480module_cmds \
47481module_expsym_cmds \
47482export_symbols_cmds \
47483prelink_cmds \
47484postlink_cmds \
47485postinstall_cmds \
47486postuninstall_cmds \
47487finish_cmds \
47488sys_lib_search_path_spec \
47489configure_time_dlsearch_path \
47490configure_time_lt_sys_library_path \
47491reload_cmds_RC \
47492old_archive_cmds_RC \
47493old_archive_from_new_cmds_RC \
47494old_archive_from_expsyms_cmds_RC \
47495archive_cmds_RC \
47496archive_expsym_cmds_RC \
47497module_cmds_RC \
47498module_expsym_cmds_RC \
47499export_symbols_cmds_RC \
47500prelink_cmds_RC \
47501postlink_cmds_RC; do
47502    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47503    *[\\\\\\\`\\"\\\$]*)
47504      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47505      ;;
47506    *)
47507      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47508      ;;
47509    esac
47510done
47511
47512ac_aux_dir='$ac_aux_dir'
47513
47514# See if we are running on zsh, and set the options that allow our
47515# commands through without removal of \ escapes INIT.
47516if test -n "\${ZSH_VERSION+set}"; then
47517   setopt NO_GLOB_SUBST
47518fi
47519
47520
47521    PACKAGE='$PACKAGE'
47522    VERSION='$VERSION'
47523    RM='$RM'
47524    ofile='$ofile'
47525
47526
47527
47528
47529
47530
47531_ACEOF
47532
47533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47534
47535# Handling of arguments.
47536for ac_config_target in $ac_config_targets
47537do
47538  case $ac_config_target in
47539    "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
47540    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47541    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47542    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47543    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
47544    "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
47545    "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
47546    "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
47547    "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
47548    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
47549    "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
47550    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
47551    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
47552    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
47553    "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
47554    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
47555    "tests/config") CONFIG_FILES="$CONFIG_FILES tests/config" ;;
47556    "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
47557    "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
47558    "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
47559    "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
47560    "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
47561    "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
47562    "tests/http/config.ini") CONFIG_FILES="$CONFIG_FILES tests/http/config.ini" ;;
47563    "tests/http/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/Makefile" ;;
47564    "tests/http/clients/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/clients/Makefile" ;;
47565    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
47566    "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
47567    "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
47568    "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
47569
47570  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
47571  esac
47572done
47573
47574
47575# If the user did not use the arguments to specify the items to instantiate,
47576# then the envvar interface is used.  Set only those that are not.
47577# We use the long form for the default assignment because of an extremely
47578# bizarre bug on SunOS 4.1.3.
47579if $ac_need_defaults; then
47580  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
47581  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
47582  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
47583fi
47584
47585# Have a temporary directory for convenience.  Make it in the build tree
47586# simply because there is no reason against having it here, and in addition,
47587# creating and moving files from /tmp can sometimes cause problems.
47588# Hook for its removal unless debugging.
47589# Note that there is a small window in which the directory will not be cleaned:
47590# after its creation but before its name has been assigned to `$tmp'.
47591$debug ||
47592{
47593  tmp= ac_tmp=
47594  trap 'exit_status=$?
47595  : "${ac_tmp:=$tmp}"
47596  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
47597' 0
47598  trap 'as_fn_exit 1' 1 2 13 15
47599}
47600# Create a (secure) tmp directory for tmp files.
47601
47602{
47603  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47604  test -d "$tmp"
47605}  ||
47606{
47607  tmp=./conf$$-$RANDOM
47608  (umask 077 && mkdir "$tmp")
47609} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
47610ac_tmp=$tmp
47611
47612# Set up the scripts for CONFIG_FILES section.
47613# No need to generate them if there are no CONFIG_FILES.
47614# This happens for instance with `./config.status config.h'.
47615if test -n "$CONFIG_FILES"; then
47616
47617
47618ac_cr=`echo X | tr X '\015'`
47619# On cygwin, bash can eat \r inside `` if the user requested igncr.
47620# But we know of no other shell where ac_cr would be empty at this
47621# point, so we can use a bashism as a fallback.
47622if test "x$ac_cr" = x; then
47623  eval ac_cr=\$\'\\r\'
47624fi
47625ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47626if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47627  ac_cs_awk_cr='\\r'
47628else
47629  ac_cs_awk_cr=$ac_cr
47630fi
47631
47632echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
47633_ACEOF
47634
47635
47636{
47637  echo "cat >conf$$subs.awk <<_ACEOF" &&
47638  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47639  echo "_ACEOF"
47640} >conf$$subs.sh ||
47641  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47642ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
47643ac_delim='%!_!# '
47644for ac_last_try in false false false false false :; do
47645  . ./conf$$subs.sh ||
47646    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47647
47648  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47649  if test $ac_delim_n = $ac_delim_num; then
47650    break
47651  elif $ac_last_try; then
47652    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47653  else
47654    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47655  fi
47656done
47657rm -f conf$$subs.sh
47658
47659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47660cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47661_ACEOF
47662sed -n '
47663h
47664s/^/S["/; s/!.*/"]=/
47665p
47666g
47667s/^[^!]*!//
47668:repl
47669t repl
47670s/'"$ac_delim"'$//
47671t delim
47672:nl
47673h
47674s/\(.\{148\}\)..*/\1/
47675t more1
47676s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47677p
47678n
47679b repl
47680:more1
47681s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47682p
47683g
47684s/.\{148\}//
47685t nl
47686:delim
47687h
47688s/\(.\{148\}\)..*/\1/
47689t more2
47690s/["\\]/\\&/g; s/^/"/; s/$/"/
47691p
47692b
47693:more2
47694s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47695p
47696g
47697s/.\{148\}//
47698t delim
47699' <conf$$subs.awk | sed '
47700/^[^""]/{
47701  N
47702  s/\n//
47703}
47704' >>$CONFIG_STATUS || ac_write_fail=1
47705rm -f conf$$subs.awk
47706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47707_ACAWK
47708cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47709  for (key in S) S_is_set[key] = 1
47710  FS = ""
47711
47712}
47713{
47714  line = $ 0
47715  nfields = split(line, field, "@")
47716  substed = 0
47717  len = length(field[1])
47718  for (i = 2; i < nfields; i++) {
47719    key = field[i]
47720    keylen = length(key)
47721    if (S_is_set[key]) {
47722      value = S[key]
47723      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47724      len += length(value) + length(field[++i])
47725      substed = 1
47726    } else
47727      len += 1 + keylen
47728  }
47729
47730  print line
47731}
47732
47733_ACAWK
47734_ACEOF
47735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47736if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47737  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47738else
47739  cat
47740fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
47741  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
47742_ACEOF
47743
47744# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
47745# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
47746# trailing colons and then remove the whole line if VPATH becomes empty
47747# (actually we leave an empty line to preserve line numbers).
47748if test "x$srcdir" = x.; then
47749  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
47750h
47751s///
47752s/^/:/
47753s/[	 ]*$/:/
47754s/:\$(srcdir):/:/g
47755s/:\${srcdir}:/:/g
47756s/:@srcdir@:/:/g
47757s/^:*//
47758s/:*$//
47759x
47760s/\(=[	 ]*\).*/\1/
47761G
47762s/\n//
47763s/^[^=]*=[	 ]*$//
47764}'
47765fi
47766
47767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47768fi # test -n "$CONFIG_FILES"
47769
47770# Set up the scripts for CONFIG_HEADERS section.
47771# No need to generate them if there are no CONFIG_HEADERS.
47772# This happens for instance with `./config.status Makefile'.
47773if test -n "$CONFIG_HEADERS"; then
47774cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47775BEGIN {
47776_ACEOF
47777
47778# Transform confdefs.h into an awk script `defines.awk', embedded as
47779# here-document in config.status, that substitutes the proper values into
47780# config.h.in to produce config.h.
47781
47782# Create a delimiter string that does not exist in confdefs.h, to ease
47783# handling of long lines.
47784ac_delim='%!_!# '
47785for ac_last_try in false false :; do
47786  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
47787  if test -z "$ac_tt"; then
47788    break
47789  elif $ac_last_try; then
47790    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47791  else
47792    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47793  fi
47794done
47795
47796# For the awk script, D is an array of macro values keyed by name,
47797# likewise P contains macro parameters if any.  Preserve backslash
47798# newline sequences.
47799
47800ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47801sed -n '
47802s/.\{148\}/&'"$ac_delim"'/g
47803t rset
47804:rset
47805s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
47806t def
47807d
47808:def
47809s/\\$//
47810t bsnl
47811s/["\\]/\\&/g
47812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
47813D["\1"]=" \3"/p
47814s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
47815d
47816:bsnl
47817s/["\\]/\\&/g
47818s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
47819D["\1"]=" \3\\\\\\n"\\/p
47820t cont
47821s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47822t cont
47823d
47824:cont
47825n
47826s/.\{148\}/&'"$ac_delim"'/g
47827t clear
47828:clear
47829s/\\$//
47830t bsnlc
47831s/["\\]/\\&/g; s/^/"/; s/$/"/p
47832d
47833:bsnlc
47834s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47835b cont
47836' <confdefs.h | sed '
47837s/'"$ac_delim"'/"\\\
47838"/g' >>$CONFIG_STATUS || ac_write_fail=1
47839
47840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47841  for (key in D) D_is_set[key] = 1
47842  FS = ""
47843}
47844/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47845  line = \$ 0
47846  split(line, arg, " ")
47847  if (arg[1] == "#") {
47848    defundef = arg[2]
47849    mac1 = arg[3]
47850  } else {
47851    defundef = substr(arg[1], 2)
47852    mac1 = arg[2]
47853  }
47854  split(mac1, mac2, "(") #)
47855  macro = mac2[1]
47856  prefix = substr(line, 1, index(line, defundef) - 1)
47857  if (D_is_set[macro]) {
47858    # Preserve the white space surrounding the "#".
47859    print prefix "define", macro P[macro] D[macro]
47860    next
47861  } else {
47862    # Replace #undef with comments.  This is necessary, for example,
47863    # in the case of _POSIX_SOURCE, which is predefined and required
47864    # on some systems where configure will not decide to define it.
47865    if (defundef == "undef") {
47866      print "/*", prefix defundef, macro, "*/"
47867      next
47868    }
47869  }
47870}
47871{ print }
47872_ACAWK
47873_ACEOF
47874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47875  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47876fi # test -n "$CONFIG_HEADERS"
47877
47878
47879eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
47880shift
47881for ac_tag
47882do
47883  case $ac_tag in
47884  :[FHLC]) ac_mode=$ac_tag; continue;;
47885  esac
47886  case $ac_mode$ac_tag in
47887  :[FHL]*:*);;
47888  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
47889  :[FH]-) ac_tag=-:-;;
47890  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47891  esac
47892  ac_save_IFS=$IFS
47893  IFS=:
47894  set x $ac_tag
47895  IFS=$ac_save_IFS
47896  shift
47897  ac_file=$1
47898  shift
47899
47900  case $ac_mode in
47901  :L) ac_source=$1;;
47902  :[FH])
47903    ac_file_inputs=
47904    for ac_f
47905    do
47906      case $ac_f in
47907      -) ac_f="$ac_tmp/stdin";;
47908      *) # Look for the file first in the build tree, then in the source tree
47909	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
47910	 # because $ac_f cannot contain `:'.
47911	 test -f "$ac_f" ||
47912	   case $ac_f in
47913	   [\\/$]*) false;;
47914	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47915	   esac ||
47916	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
47917      esac
47918      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47919      as_fn_append ac_file_inputs " '$ac_f'"
47920    done
47921
47922    # Let's still pretend it is `configure' which instantiates (i.e., don't
47923    # use $as_me), people would be surprised to read:
47924    #    /* config.h.  Generated by config.status.  */
47925    configure_input='Generated from '`
47926	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47927	`' by configure.'
47928    if test x"$ac_file" != x-; then
47929      configure_input="$ac_file.  $configure_input"
47930      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
47931printf "%s\n" "$as_me: creating $ac_file" >&6;}
47932    fi
47933    # Neutralize special characters interpreted by sed in replacement strings.
47934    case $configure_input in #(
47935    *\&* | *\|* | *\\* )
47936       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
47937       sed 's/[\\\\&|]/\\\\&/g'`;; #(
47938    *) ac_sed_conf_input=$configure_input;;
47939    esac
47940
47941    case $ac_tag in
47942    *:-:* | *:-) cat >"$ac_tmp/stdin" \
47943      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
47944    esac
47945    ;;
47946  esac
47947
47948  ac_dir=`$as_dirname -- "$ac_file" ||
47949$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47950	 X"$ac_file" : 'X\(//\)[^/]' \| \
47951	 X"$ac_file" : 'X\(//\)$' \| \
47952	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47953printf "%s\n" X"$ac_file" |
47954    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47955	    s//\1/
47956	    q
47957	  }
47958	  /^X\(\/\/\)[^/].*/{
47959	    s//\1/
47960	    q
47961	  }
47962	  /^X\(\/\/\)$/{
47963	    s//\1/
47964	    q
47965	  }
47966	  /^X\(\/\).*/{
47967	    s//\1/
47968	    q
47969	  }
47970	  s/.*/./; q'`
47971  as_dir="$ac_dir"; as_fn_mkdir_p
47972  ac_builddir=.
47973
47974case "$ac_dir" in
47975.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47976*)
47977  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
47978  # A ".." for each directory in $ac_dir_suffix.
47979  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47980  case $ac_top_builddir_sub in
47981  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47982  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47983  esac ;;
47984esac
47985ac_abs_top_builddir=$ac_pwd
47986ac_abs_builddir=$ac_pwd$ac_dir_suffix
47987# for backward compatibility:
47988ac_top_builddir=$ac_top_build_prefix
47989
47990case $srcdir in
47991  .)  # We are building in place.
47992    ac_srcdir=.
47993    ac_top_srcdir=$ac_top_builddir_sub
47994    ac_abs_top_srcdir=$ac_pwd ;;
47995  [\\/]* | ?:[\\/]* )  # Absolute name.
47996    ac_srcdir=$srcdir$ac_dir_suffix;
47997    ac_top_srcdir=$srcdir
47998    ac_abs_top_srcdir=$srcdir ;;
47999  *) # Relative name.
48000    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48001    ac_top_srcdir=$ac_top_build_prefix$srcdir
48002    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48003esac
48004ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48005
48006
48007  case $ac_mode in
48008  :F)
48009  #
48010  # CONFIG_FILE
48011  #
48012
48013  case $INSTALL in
48014  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48015  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
48016  esac
48017  ac_MKDIR_P=$MKDIR_P
48018  case $MKDIR_P in
48019  [\\/$]* | ?:[\\/]* ) ;;
48020  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
48021  esac
48022_ACEOF
48023
48024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48025# If the template does not know about datarootdir, expand it.
48026# FIXME: This hack should be removed a few years after 2.60.
48027ac_datarootdir_hack=; ac_datarootdir_seen=
48028ac_sed_dataroot='
48029/datarootdir/ {
48030  p
48031  q
48032}
48033/@datadir@/p
48034/@docdir@/p
48035/@infodir@/p
48036/@localedir@/p
48037/@mandir@/p'
48038case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48039*datarootdir*) ac_datarootdir_seen=yes;;
48040*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48042printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48043_ACEOF
48044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48045  ac_datarootdir_hack='
48046  s&@datadir@&$datadir&g
48047  s&@docdir@&$docdir&g
48048  s&@infodir@&$infodir&g
48049  s&@localedir@&$localedir&g
48050  s&@mandir@&$mandir&g
48051  s&\\\${datarootdir}&$datarootdir&g' ;;
48052esac
48053_ACEOF
48054
48055# Neutralize VPATH when `$srcdir' = `.'.
48056# Shell code in configure.ac might set extrasub.
48057# FIXME: do we really want to maintain this feature?
48058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48059ac_sed_extra="$ac_vpsub
48060$extrasub
48061_ACEOF
48062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48063:t
48064/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48065s|@configure_input@|$ac_sed_conf_input|;t t
48066s&@top_builddir@&$ac_top_builddir_sub&;t t
48067s&@top_build_prefix@&$ac_top_build_prefix&;t t
48068s&@srcdir@&$ac_srcdir&;t t
48069s&@abs_srcdir@&$ac_abs_srcdir&;t t
48070s&@top_srcdir@&$ac_top_srcdir&;t t
48071s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48072s&@builddir@&$ac_builddir&;t t
48073s&@abs_builddir@&$ac_abs_builddir&;t t
48074s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48075s&@INSTALL@&$ac_INSTALL&;t t
48076s&@MKDIR_P@&$ac_MKDIR_P&;t t
48077$ac_datarootdir_hack
48078"
48079eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
48080  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48081
48082test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48083  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
48084  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
48085      "$ac_tmp/out"`; test -z "$ac_out"; } &&
48086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48087which seems to be undefined.  Please make sure it is defined" >&5
48088printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48089which seems to be undefined.  Please make sure it is defined" >&2;}
48090
48091  rm -f "$ac_tmp/stdin"
48092  case $ac_file in
48093  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
48094  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
48095  esac \
48096  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48097 ;;
48098  :H)
48099  #
48100  # CONFIG_HEADER
48101  #
48102  if test x"$ac_file" != x-; then
48103    {
48104      printf "%s\n" "/* $configure_input  */" >&1 \
48105      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
48106    } >"$ac_tmp/config.h" \
48107      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48108    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48109      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
48110printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
48111    else
48112      rm -f "$ac_file"
48113      mv "$ac_tmp/config.h" "$ac_file" \
48114	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
48115    fi
48116  else
48117    printf "%s\n" "/* $configure_input  */" >&1 \
48118      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
48119      || as_fn_error $? "could not create -" "$LINENO" 5
48120  fi
48121# Compute "$ac_file"'s index in $config_headers.
48122_am_arg="$ac_file"
48123_am_stamp_count=1
48124for _am_header in $config_headers :; do
48125  case $_am_header in
48126    $_am_arg | $_am_arg:* )
48127      break ;;
48128    * )
48129      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
48130  esac
48131done
48132echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
48133$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48134	 X"$_am_arg" : 'X\(//\)[^/]' \| \
48135	 X"$_am_arg" : 'X\(//\)$' \| \
48136	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
48137printf "%s\n" X"$_am_arg" |
48138    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48139	    s//\1/
48140	    q
48141	  }
48142	  /^X\(\/\/\)[^/].*/{
48143	    s//\1/
48144	    q
48145	  }
48146	  /^X\(\/\/\)$/{
48147	    s//\1/
48148	    q
48149	  }
48150	  /^X\(\/\).*/{
48151	    s//\1/
48152	    q
48153	  }
48154	  s/.*/./; q'`/stamp-h$_am_stamp_count
48155 ;;
48156
48157  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
48158printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
48159 ;;
48160  esac
48161
48162
48163  case $ac_file$ac_mode in
48164    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
48165  # Older Autoconf quotes --file arguments for eval, but not when files
48166  # are listed without --file.  Let's play safe and only enable the eval
48167  # if we detect the quoting.
48168  # TODO: see whether this extra hack can be removed once we start
48169  # requiring Autoconf 2.70 or later.
48170  case $CONFIG_FILES in #(
48171  *\'*) :
48172    eval set x "$CONFIG_FILES" ;; #(
48173  *) :
48174    set x $CONFIG_FILES ;; #(
48175  *) :
48176     ;;
48177esac
48178  shift
48179  # Used to flag and report bootstrapping failures.
48180  am_rc=0
48181  for am_mf
48182  do
48183    # Strip MF so we end up with the name of the file.
48184    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
48185    # Check whether this is an Automake generated Makefile which includes
48186    # dependency-tracking related rules and includes.
48187    # Grep'ing the whole file directly is not great: AIX grep has a line
48188    # limit of 2048, but all sed's we know have understand at least 4000.
48189    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
48190      || continue
48191    am_dirpart=`$as_dirname -- "$am_mf" ||
48192$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48193	 X"$am_mf" : 'X\(//\)[^/]' \| \
48194	 X"$am_mf" : 'X\(//\)$' \| \
48195	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
48196printf "%s\n" X"$am_mf" |
48197    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48198	    s//\1/
48199	    q
48200	  }
48201	  /^X\(\/\/\)[^/].*/{
48202	    s//\1/
48203	    q
48204	  }
48205	  /^X\(\/\/\)$/{
48206	    s//\1/
48207	    q
48208	  }
48209	  /^X\(\/\).*/{
48210	    s//\1/
48211	    q
48212	  }
48213	  s/.*/./; q'`
48214    am_filepart=`$as_basename -- "$am_mf" ||
48215$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
48216	 X"$am_mf" : 'X\(//\)$' \| \
48217	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
48218printf "%s\n" X/"$am_mf" |
48219    sed '/^.*\/\([^/][^/]*\)\/*$/{
48220	    s//\1/
48221	    q
48222	  }
48223	  /^X\/\(\/\/\)$/{
48224	    s//\1/
48225	    q
48226	  }
48227	  /^X\/\(\/\).*/{
48228	    s//\1/
48229	    q
48230	  }
48231	  s/.*/./; q'`
48232    { echo "$as_me:$LINENO: cd "$am_dirpart" \
48233      && sed -e '/# am--include-marker/d' "$am_filepart" \
48234        | $MAKE -f - am--depfiles" >&5
48235   (cd "$am_dirpart" \
48236      && sed -e '/# am--include-marker/d' "$am_filepart" \
48237        | $MAKE -f - am--depfiles) >&5 2>&5
48238   ac_status=$?
48239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48240   (exit $ac_status); } || am_rc=$?
48241  done
48242  if test $am_rc -ne 0; then
48243    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48244printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
48245as_fn_error $? "Something went wrong bootstrapping makefile fragments
48246    for automatic dependency tracking.  If GNU make was not used, consider
48247    re-running the configure script with MAKE=\"gmake\" (or whatever is
48248    necessary).  You can also try re-running configure with the
48249    '--disable-dependency-tracking' option to at least be able to build
48250    the package (albeit without support for automatic dependency tracking).
48251See \`config.log' for more details" "$LINENO" 5; }
48252  fi
48253  { am_dirpart=; unset am_dirpart;}
48254  { am_filepart=; unset am_filepart;}
48255  { am_mf=; unset am_mf;}
48256  { am_rc=; unset am_rc;}
48257  rm -f conftest-deps.mk
48258}
48259 ;;
48260    "libtool":C)
48261
48262    # See if we are running on zsh, and set the options that allow our
48263    # commands through without removal of \ escapes.
48264    if test -n "${ZSH_VERSION+set}"; then
48265      setopt NO_GLOB_SUBST
48266    fi
48267
48268    cfgfile=${ofile}T
48269    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48270    $RM "$cfgfile"
48271
48272    cat <<_LT_EOF >> "$cfgfile"
48273#! $SHELL
48274# Generated automatically by $as_me ($PACKAGE) $VERSION
48275# NOTE: Changes made to this file will be lost: look at ltmain.sh.
48276
48277# Provide generalized library-building support services.
48278# Written by Gordon Matzigkeit, 1996
48279
48280# Copyright (C) 2014 Free Software Foundation, Inc.
48281# This is free software; see the source for copying conditions.  There is NO
48282# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
48283
48284# GNU Libtool is free software; you can redistribute it and/or modify
48285# it under the terms of the GNU General Public License as published by
48286# the Free Software Foundation; either version 2 of of the License, or
48287# (at your option) any later version.
48288#
48289# As a special exception to the GNU General Public License, if you
48290# distribute this file as part of a program or library that is built
48291# using GNU Libtool, you may include this file under the  same
48292# distribution terms that you use for the rest of that program.
48293#
48294# GNU Libtool is distributed in the hope that it will be useful, but
48295# WITHOUT ANY WARRANTY; without even the implied warranty of
48296# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48297# GNU General Public License for more details.
48298#
48299# You should have received a copy of the GNU General Public License
48300# along with this program.  If not, see <http://www.gnu.org/licenses/>.
48301
48302
48303# The names of the tagged configurations supported by this script.
48304available_tags='RC '
48305
48306# Configured defaults for sys_lib_dlsearch_path munging.
48307: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
48308
48309# ### BEGIN LIBTOOL CONFIG
48310
48311# Which release of libtool.m4 was used?
48312macro_version=$macro_version
48313macro_revision=$macro_revision
48314
48315# Assembler program.
48316AS=$lt_AS
48317
48318# DLL creation program.
48319DLLTOOL=$lt_DLLTOOL
48320
48321# Object dumper program.
48322OBJDUMP=$lt_OBJDUMP
48323
48324# Whether or not to build shared libraries.
48325build_libtool_libs=$enable_shared
48326
48327# Whether or not to build static libraries.
48328build_old_libs=$enable_static
48329
48330# What type of objects to build.
48331pic_mode=$pic_mode
48332
48333# Whether or not to optimize for fast installation.
48334fast_install=$enable_fast_install
48335
48336# Shared archive member basename,for filename based shared library versioning on AIX.
48337shared_archive_member_spec=$shared_archive_member_spec
48338
48339# Shell to use when invoking shell scripts.
48340SHELL=$lt_SHELL
48341
48342# An echo program that protects backslashes.
48343ECHO=$lt_ECHO
48344
48345# The PATH separator for the build system.
48346PATH_SEPARATOR=$lt_PATH_SEPARATOR
48347
48348# The host system.
48349host_alias=$host_alias
48350host=$host
48351host_os=$host_os
48352
48353# The build system.
48354build_alias=$build_alias
48355build=$build
48356build_os=$build_os
48357
48358# A sed program that does not truncate output.
48359SED=$lt_SED
48360
48361# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48362Xsed="\$SED -e 1s/^X//"
48363
48364# A grep program that handles long lines.
48365GREP=$lt_GREP
48366
48367# An ERE matcher.
48368EGREP=$lt_EGREP
48369
48370# A literal string matcher.
48371FGREP=$lt_FGREP
48372
48373# A BSD- or MS-compatible name lister.
48374NM=$lt_NM
48375
48376# Whether we need soft or hard links.
48377LN_S=$lt_LN_S
48378
48379# What is the maximum length of a command?
48380max_cmd_len=$max_cmd_len
48381
48382# Object file suffix (normally "o").
48383objext=$ac_objext
48384
48385# Executable file suffix (normally "").
48386exeext=$exeext
48387
48388# whether the shell understands "unset".
48389lt_unset=$lt_unset
48390
48391# turn spaces into newlines.
48392SP2NL=$lt_lt_SP2NL
48393
48394# turn newlines into spaces.
48395NL2SP=$lt_lt_NL2SP
48396
48397# convert \$build file names to \$host format.
48398to_host_file_cmd=$lt_cv_to_host_file_cmd
48399
48400# convert \$build files to toolchain format.
48401to_tool_file_cmd=$lt_cv_to_tool_file_cmd
48402
48403# A file(cmd) program that detects file types.
48404FILECMD=$lt_FILECMD
48405
48406# Method to check whether dependent libraries are shared objects.
48407deplibs_check_method=$lt_deplibs_check_method
48408
48409# Command to use when deplibs_check_method = "file_magic".
48410file_magic_cmd=$lt_file_magic_cmd
48411
48412# How to find potential files when deplibs_check_method = "file_magic".
48413file_magic_glob=$lt_file_magic_glob
48414
48415# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
48416want_nocaseglob=$lt_want_nocaseglob
48417
48418# Command to associate shared and link libraries.
48419sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
48420
48421# The archiver.
48422AR=$lt_AR
48423
48424# Flags to create an archive (by configure).
48425lt_ar_flags=$lt_ar_flags
48426
48427# Flags to create an archive.
48428AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
48429
48430# How to feed a file listing to the archiver.
48431archiver_list_spec=$lt_archiver_list_spec
48432
48433# A symbol stripping program.
48434STRIP=$lt_STRIP
48435
48436# Commands used to install an old-style archive.
48437RANLIB=$lt_RANLIB
48438old_postinstall_cmds=$lt_old_postinstall_cmds
48439old_postuninstall_cmds=$lt_old_postuninstall_cmds
48440
48441# Whether to use a lock for old archive extraction.
48442lock_old_archive_extraction=$lock_old_archive_extraction
48443
48444# A C compiler.
48445LTCC=$lt_CC
48446
48447# LTCC compiler flags.
48448LTCFLAGS=$lt_CFLAGS
48449
48450# Take the output of nm and produce a listing of raw symbols and C names.
48451global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48452
48453# Transform the output of nm in a proper C declaration.
48454global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48455
48456# Transform the output of nm into a list of symbols to manually relocate.
48457global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
48458
48459# Transform the output of nm in a C name address pair.
48460global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48461
48462# Transform the output of nm in a C name address pair when lib prefix is needed.
48463global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
48464
48465# The name lister interface.
48466nm_interface=$lt_lt_cv_nm_interface
48467
48468# Specify filename containing input files for \$NM.
48469nm_file_list_spec=$lt_nm_file_list_spec
48470
48471# The root where to search for dependent libraries,and where our libraries should be installed.
48472lt_sysroot=$lt_sysroot
48473
48474# Command to truncate a binary pipe.
48475lt_truncate_bin=$lt_lt_cv_truncate_bin
48476
48477# The name of the directory that contains temporary libtool files.
48478objdir=$objdir
48479
48480# Used to examine libraries when file_magic_cmd begins with "file".
48481MAGIC_CMD=$MAGIC_CMD
48482
48483# Must we lock files when doing compilation?
48484need_locks=$lt_need_locks
48485
48486# Manifest tool.
48487MANIFEST_TOOL=$lt_MANIFEST_TOOL
48488
48489# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
48490DSYMUTIL=$lt_DSYMUTIL
48491
48492# Tool to change global to local symbols on Mac OS X.
48493NMEDIT=$lt_NMEDIT
48494
48495# Tool to manipulate fat objects and archives on Mac OS X.
48496LIPO=$lt_LIPO
48497
48498# ldd/readelf like tool for Mach-O binaries on Mac OS X.
48499OTOOL=$lt_OTOOL
48500
48501# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
48502OTOOL64=$lt_OTOOL64
48503
48504# Old archive suffix (normally "a").
48505libext=$libext
48506
48507# Shared library suffix (normally ".so").
48508shrext_cmds=$lt_shrext_cmds
48509
48510# The commands to extract the exported symbol list from a shared archive.
48511extract_expsyms_cmds=$lt_extract_expsyms_cmds
48512
48513# Variables whose values should be saved in libtool wrapper scripts and
48514# restored at link time.
48515variables_saved_for_relink=$lt_variables_saved_for_relink
48516
48517# Do we need the "lib" prefix for modules?
48518need_lib_prefix=$need_lib_prefix
48519
48520# Do we need a version for libraries?
48521need_version=$need_version
48522
48523# Library versioning type.
48524version_type=$version_type
48525
48526# Shared library runtime path variable.
48527runpath_var=$runpath_var
48528
48529# Shared library path variable.
48530shlibpath_var=$shlibpath_var
48531
48532# Is shlibpath searched before the hard-coded library search path?
48533shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48534
48535# Format of library name prefix.
48536libname_spec=$lt_libname_spec
48537
48538# List of archive names.  First name is the real one, the rest are links.
48539# The last name is the one that the linker finds with -lNAME
48540library_names_spec=$lt_library_names_spec
48541
48542# The coded name of the library, if different from the real name.
48543soname_spec=$lt_soname_spec
48544
48545# Permission mode override for installation of shared libraries.
48546install_override_mode=$lt_install_override_mode
48547
48548# Command to use after installation of a shared archive.
48549postinstall_cmds=$lt_postinstall_cmds
48550
48551# Command to use after uninstallation of a shared archive.
48552postuninstall_cmds=$lt_postuninstall_cmds
48553
48554# Commands used to finish a libtool library installation in a directory.
48555finish_cmds=$lt_finish_cmds
48556
48557# As "finish_cmds", except a single script fragment to be evaled but
48558# not shown.
48559finish_eval=$lt_finish_eval
48560
48561# Whether we should hardcode library paths into libraries.
48562hardcode_into_libs=$hardcode_into_libs
48563
48564# Compile-time system search path for libraries.
48565sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48566
48567# Detected run-time system search path for libraries.
48568sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
48569
48570# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
48571configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
48572
48573# Whether dlopen is supported.
48574dlopen_support=$enable_dlopen
48575
48576# Whether dlopen of programs is supported.
48577dlopen_self=$enable_dlopen_self
48578
48579# Whether dlopen of statically linked programs is supported.
48580dlopen_self_static=$enable_dlopen_self_static
48581
48582# Commands to strip libraries.
48583old_striplib=$lt_old_striplib
48584striplib=$lt_striplib
48585
48586
48587# The linker used to build libraries.
48588LD=$lt_LD
48589
48590# How to create reloadable object files.
48591reload_flag=$lt_reload_flag
48592reload_cmds=$lt_reload_cmds
48593
48594# Commands used to build an old-style archive.
48595old_archive_cmds=$lt_old_archive_cmds
48596
48597# A language specific compiler.
48598CC=$lt_compiler
48599
48600# Is the compiler the GNU compiler?
48601with_gcc=$GCC
48602
48603# Compiler flag to turn off builtin functions.
48604no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
48605
48606# Additional compiler flags for building library objects.
48607pic_flag=$lt_lt_prog_compiler_pic
48608
48609# How to pass a linker flag through the compiler.
48610wl=$lt_lt_prog_compiler_wl
48611
48612# Compiler flag to prevent dynamic linking.
48613link_static_flag=$lt_lt_prog_compiler_static
48614
48615# Does compiler simultaneously support -c and -o options?
48616compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48617
48618# Whether or not to add -lc for building shared libraries.
48619build_libtool_need_lc=$archive_cmds_need_lc
48620
48621# Whether or not to disallow shared libs when runtime libs are static.
48622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48623
48624# Compiler flag to allow reflexive dlopens.
48625export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48626
48627# Compiler flag to generate shared objects directly from archives.
48628whole_archive_flag_spec=$lt_whole_archive_flag_spec
48629
48630# Whether the compiler copes with passing no objects directly.
48631compiler_needs_object=$lt_compiler_needs_object
48632
48633# Create an old-style archive from a shared archive.
48634old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48635
48636# Create a temporary old-style archive to link instead of a shared archive.
48637old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48638
48639# Commands used to build a shared archive.
48640archive_cmds=$lt_archive_cmds
48641archive_expsym_cmds=$lt_archive_expsym_cmds
48642
48643# Commands used to build a loadable module if different from building
48644# a shared archive.
48645module_cmds=$lt_module_cmds
48646module_expsym_cmds=$lt_module_expsym_cmds
48647
48648# Whether we are building with GNU ld or not.
48649with_gnu_ld=$lt_with_gnu_ld
48650
48651# Flag that allows shared libraries with undefined symbols to be built.
48652allow_undefined_flag=$lt_allow_undefined_flag
48653
48654# Flag that enforces no undefined symbols.
48655no_undefined_flag=$lt_no_undefined_flag
48656
48657# Flag to hardcode \$libdir into a binary during linking.
48658# This must work even if \$libdir does not exist
48659hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48660
48661# Whether we need a single "-rpath" flag with a separated argument.
48662hardcode_libdir_separator=$lt_hardcode_libdir_separator
48663
48664# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48665# DIR into the resulting binary.
48666hardcode_direct=$hardcode_direct
48667
48668# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48669# DIR into the resulting binary and the resulting library dependency is
48670# "absolute",i.e impossible to change by setting \$shlibpath_var if the
48671# library is relocated.
48672hardcode_direct_absolute=$hardcode_direct_absolute
48673
48674# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48675# into the resulting binary.
48676hardcode_minus_L=$hardcode_minus_L
48677
48678# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48679# into the resulting binary.
48680hardcode_shlibpath_var=$hardcode_shlibpath_var
48681
48682# Set to "yes" if building a shared library automatically hardcodes DIR
48683# into the library and all subsequent libraries and executables linked
48684# against it.
48685hardcode_automatic=$hardcode_automatic
48686
48687# Set to yes if linker adds runtime paths of dependent libraries
48688# to runtime path list.
48689inherit_rpath=$inherit_rpath
48690
48691# Whether libtool must link a program against all its dependency libraries.
48692link_all_deplibs=$link_all_deplibs
48693
48694# Set to "yes" if exported symbols are required.
48695always_export_symbols=$always_export_symbols
48696
48697# The commands to list exported symbols.
48698export_symbols_cmds=$lt_export_symbols_cmds
48699
48700# Symbols that should not be listed in the preloaded symbols.
48701exclude_expsyms=$lt_exclude_expsyms
48702
48703# Symbols that must always be exported.
48704include_expsyms=$lt_include_expsyms
48705
48706# Commands necessary for linking programs (against libraries) with templates.
48707prelink_cmds=$lt_prelink_cmds
48708
48709# Commands necessary for finishing linking programs.
48710postlink_cmds=$lt_postlink_cmds
48711
48712# Specify filename containing input files.
48713file_list_spec=$lt_file_list_spec
48714
48715# How to hardcode a shared library path into an executable.
48716hardcode_action=$hardcode_action
48717
48718# ### END LIBTOOL CONFIG
48719
48720_LT_EOF
48721
48722    cat <<'_LT_EOF' >> "$cfgfile"
48723
48724# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
48725
48726# func_munge_path_list VARIABLE PATH
48727# -----------------------------------
48728# VARIABLE is name of variable containing _space_ separated list of
48729# directories to be munged by the contents of PATH, which is string
48730# having a format:
48731# "DIR[:DIR]:"
48732#       string "DIR[ DIR]" will be prepended to VARIABLE
48733# ":DIR[:DIR]"
48734#       string "DIR[ DIR]" will be appended to VARIABLE
48735# "DIRP[:DIRP]::[DIRA:]DIRA"
48736#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
48737#       "DIRA[ DIRA]" will be appended to VARIABLE
48738# "DIR[:DIR]"
48739#       VARIABLE will be replaced by "DIR[ DIR]"
48740func_munge_path_list ()
48741{
48742    case x$2 in
48743    x)
48744        ;;
48745    *:)
48746        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
48747        ;;
48748    x:*)
48749        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
48750        ;;
48751    *::*)
48752        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
48753        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
48754        ;;
48755    *)
48756        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
48757        ;;
48758    esac
48759}
48760
48761
48762# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
48763func_cc_basename ()
48764{
48765    for cc_temp in $*""; do
48766      case $cc_temp in
48767        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48768        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48769        \-*) ;;
48770        *) break;;
48771      esac
48772    done
48773    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
48774}
48775
48776
48777# ### END FUNCTIONS SHARED WITH CONFIGURE
48778
48779_LT_EOF
48780
48781  case $host_os in
48782  aix3*)
48783    cat <<\_LT_EOF >> "$cfgfile"
48784# AIX sometimes has problems with the GCC collect2 program.  For some
48785# reason, if we set the COLLECT_NAMES environment variable, the problems
48786# vanish in a puff of smoke.
48787if test set != "${COLLECT_NAMES+set}"; then
48788  COLLECT_NAMES=
48789  export COLLECT_NAMES
48790fi
48791_LT_EOF
48792    ;;
48793  esac
48794
48795
48796
48797ltmain=$ac_aux_dir/ltmain.sh
48798
48799
48800  # We use sed instead of cat because bash on DJGPP gets confused if
48801  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
48802  # text mode, it properly converts lines to CR/LF.  This bash problem
48803  # is reportedly fixed, but why not run on old versions too?
48804  $SED '$q' "$ltmain" >> "$cfgfile" \
48805     || (rm -f "$cfgfile"; exit 1)
48806
48807   mv -f "$cfgfile" "$ofile" ||
48808    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48809  chmod +x "$ofile"
48810
48811
48812    cat <<_LT_EOF >> "$ofile"
48813
48814# ### BEGIN LIBTOOL TAG CONFIG: RC
48815
48816# The linker used to build libraries.
48817LD=$lt_LD_RC
48818
48819# How to create reloadable object files.
48820reload_flag=$lt_reload_flag_RC
48821reload_cmds=$lt_reload_cmds_RC
48822
48823# Commands used to build an old-style archive.
48824old_archive_cmds=$lt_old_archive_cmds_RC
48825
48826# A language specific compiler.
48827CC=$lt_compiler_RC
48828
48829# Is the compiler the GNU compiler?
48830with_gcc=$GCC_RC
48831
48832# Compiler flag to turn off builtin functions.
48833no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
48834
48835# Additional compiler flags for building library objects.
48836pic_flag=$lt_lt_prog_compiler_pic_RC
48837
48838# How to pass a linker flag through the compiler.
48839wl=$lt_lt_prog_compiler_wl_RC
48840
48841# Compiler flag to prevent dynamic linking.
48842link_static_flag=$lt_lt_prog_compiler_static_RC
48843
48844# Does compiler simultaneously support -c and -o options?
48845compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
48846
48847# Whether or not to add -lc for building shared libraries.
48848build_libtool_need_lc=$archive_cmds_need_lc_RC
48849
48850# Whether or not to disallow shared libs when runtime libs are static.
48851allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
48852
48853# Compiler flag to allow reflexive dlopens.
48854export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
48855
48856# Compiler flag to generate shared objects directly from archives.
48857whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
48858
48859# Whether the compiler copes with passing no objects directly.
48860compiler_needs_object=$lt_compiler_needs_object_RC
48861
48862# Create an old-style archive from a shared archive.
48863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
48864
48865# Create a temporary old-style archive to link instead of a shared archive.
48866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
48867
48868# Commands used to build a shared archive.
48869archive_cmds=$lt_archive_cmds_RC
48870archive_expsym_cmds=$lt_archive_expsym_cmds_RC
48871
48872# Commands used to build a loadable module if different from building
48873# a shared archive.
48874module_cmds=$lt_module_cmds_RC
48875module_expsym_cmds=$lt_module_expsym_cmds_RC
48876
48877# Whether we are building with GNU ld or not.
48878with_gnu_ld=$lt_with_gnu_ld_RC
48879
48880# Flag that allows shared libraries with undefined symbols to be built.
48881allow_undefined_flag=$lt_allow_undefined_flag_RC
48882
48883# Flag that enforces no undefined symbols.
48884no_undefined_flag=$lt_no_undefined_flag_RC
48885
48886# Flag to hardcode \$libdir into a binary during linking.
48887# This must work even if \$libdir does not exist
48888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
48889
48890# Whether we need a single "-rpath" flag with a separated argument.
48891hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
48892
48893# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48894# DIR into the resulting binary.
48895hardcode_direct=$hardcode_direct_RC
48896
48897# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48898# DIR into the resulting binary and the resulting library dependency is
48899# "absolute",i.e impossible to change by setting \$shlibpath_var if the
48900# library is relocated.
48901hardcode_direct_absolute=$hardcode_direct_absolute_RC
48902
48903# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48904# into the resulting binary.
48905hardcode_minus_L=$hardcode_minus_L_RC
48906
48907# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48908# into the resulting binary.
48909hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
48910
48911# Set to "yes" if building a shared library automatically hardcodes DIR
48912# into the library and all subsequent libraries and executables linked
48913# against it.
48914hardcode_automatic=$hardcode_automatic_RC
48915
48916# Set to yes if linker adds runtime paths of dependent libraries
48917# to runtime path list.
48918inherit_rpath=$inherit_rpath_RC
48919
48920# Whether libtool must link a program against all its dependency libraries.
48921link_all_deplibs=$link_all_deplibs_RC
48922
48923# Set to "yes" if exported symbols are required.
48924always_export_symbols=$always_export_symbols_RC
48925
48926# The commands to list exported symbols.
48927export_symbols_cmds=$lt_export_symbols_cmds_RC
48928
48929# Symbols that should not be listed in the preloaded symbols.
48930exclude_expsyms=$lt_exclude_expsyms_RC
48931
48932# Symbols that must always be exported.
48933include_expsyms=$lt_include_expsyms_RC
48934
48935# Commands necessary for linking programs (against libraries) with templates.
48936prelink_cmds=$lt_prelink_cmds_RC
48937
48938# Commands necessary for finishing linking programs.
48939postlink_cmds=$lt_postlink_cmds_RC
48940
48941# Specify filename containing input files.
48942file_list_spec=$lt_file_list_spec_RC
48943
48944# How to hardcode a shared library path into an executable.
48945hardcode_action=$hardcode_action_RC
48946
48947# ### END LIBTOOL TAG CONFIG: RC
48948_LT_EOF
48949
48950 ;;
48951
48952  esac
48953done # for ac_tag
48954
48955
48956as_fn_exit 0
48957_ACEOF
48958ac_clean_files=$ac_clean_files_save
48959
48960test $ac_write_fail = 0 ||
48961  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48962
48963
48964# configure is writing to config.log, and then calls config.status.
48965# config.status does its own redirection, appending to config.log.
48966# Unfortunately, on DOS this fails, as config.log is still kept open
48967# by configure, so config.status won't be able to write to it; its
48968# output is simply discarded.  So we exec the FD to /dev/null,
48969# effectively closing config.log, so it can be properly (re)opened and
48970# appended to by config.status.  When coming back to configure, we
48971# need to make the FD available again.
48972if test "$no_create" != yes; then
48973  ac_cs_success=:
48974  ac_config_status_args=
48975  test "$silent" = yes &&
48976    ac_config_status_args="$ac_config_status_args --quiet"
48977  exec 5>/dev/null
48978  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48979  exec 5>>config.log
48980  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48981  # would make configure fail if this is the last instruction.
48982  $ac_cs_success || as_fn_exit 1
48983fi
48984if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48986printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48987fi
48988
48989
48990
48991    tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
48992  if test -z "$tmp_cpp"; then
48993    tmp_cpp='cpp'
48994  fi
48995  cat >./tests/configurehelp.pm <<_EOF
48996# This is a generated file.  Do not edit.
48997
48998package configurehelp;
48999
49000use strict;
49001use warnings;
49002use Exporter;
49003
49004use vars qw(
49005    @ISA
49006    @EXPORT_OK
49007    \$Cpreprocessor
49008    );
49009
49010@ISA = qw(Exporter);
49011
49012@EXPORT_OK = qw(
49013    \$Cpreprocessor
49014    );
49015
49016\$Cpreprocessor = '$tmp_cpp';
49017
490181;
49019_EOF
49020
49021
49022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
49023
49024  Host setup:       ${host}
49025  Install prefix:   ${prefix}
49026  Compiler:         ${CC}
49027   CFLAGS:          ${CFLAGS}
49028   CPPFLAGS:        ${CPPFLAGS}
49029   LDFLAGS:         ${LDFLAGS}
49030   LIBS:            ${LIBS}
49031
49032  curl version:     ${CURLVERSION}
49033  SSL:              ${curl_ssl_msg}
49034  SSH:              ${curl_ssh_msg}
49035  zlib:             ${curl_zlib_msg}
49036  brotli:           ${curl_brotli_msg}
49037  zstd:             ${curl_zstd_msg}
49038  GSS-API:          ${curl_gss_msg}
49039  GSASL:            ${curl_gsasl_msg}
49040  TLS-SRP:          ${curl_tls_srp_msg}
49041  resolver:         ${curl_res_msg}
49042  IPv6:             ${curl_ipv6_msg}
49043  Unix sockets:     ${curl_unix_sockets_msg}
49044  IDN:              ${curl_idn_msg}
49045  Build docs:       ${curl_docs_msg}
49046  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
49047  Built-in manual:  ${curl_manual_msg}
49048  --libcurl option: ${curl_libcurl_msg}
49049  Verbose errors:   ${curl_verbose_msg}
49050  Code coverage:    ${curl_coverage_msg}
49051  SSPI:             ${curl_sspi_msg}
49052  ca cert bundle:   ${ca}${ca_warning}
49053  ca cert path:     ${capath}${capath_warning}
49054  ca fallback:      ${with_ca_fallback}
49055  LDAP:             ${curl_ldap_msg}
49056  LDAPS:            ${curl_ldaps_msg}
49057  RTSP:             ${curl_rtsp_msg}
49058  RTMP:             ${curl_rtmp_msg}
49059  PSL:              ${curl_psl_msg}
49060  Alt-svc:          ${curl_altsvc_msg}
49061  Headers API:      ${curl_headers_msg}
49062  HSTS:             ${curl_hsts_msg}
49063  HTTP1:            ${curl_h1_msg}
49064  HTTP2:            ${curl_h2_msg}
49065  HTTP3:            ${curl_h3_msg}
49066  ECH:              ${curl_ech_msg}
49067  WebSockets:       ${curl_ws_msg}
49068  Protocols:        ${SUPPORT_PROTOCOLS}
49069  Features:         ${SUPPORT_FEATURES}
49070" >&5
49071printf "%s\n" "$as_me: Configured to build curl/libcurl:
49072
49073  Host setup:       ${host}
49074  Install prefix:   ${prefix}
49075  Compiler:         ${CC}
49076   CFLAGS:          ${CFLAGS}
49077   CPPFLAGS:        ${CPPFLAGS}
49078   LDFLAGS:         ${LDFLAGS}
49079   LIBS:            ${LIBS}
49080
49081  curl version:     ${CURLVERSION}
49082  SSL:              ${curl_ssl_msg}
49083  SSH:              ${curl_ssh_msg}
49084  zlib:             ${curl_zlib_msg}
49085  brotli:           ${curl_brotli_msg}
49086  zstd:             ${curl_zstd_msg}
49087  GSS-API:          ${curl_gss_msg}
49088  GSASL:            ${curl_gsasl_msg}
49089  TLS-SRP:          ${curl_tls_srp_msg}
49090  resolver:         ${curl_res_msg}
49091  IPv6:             ${curl_ipv6_msg}
49092  Unix sockets:     ${curl_unix_sockets_msg}
49093  IDN:              ${curl_idn_msg}
49094  Build docs:       ${curl_docs_msg}
49095  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
49096  Built-in manual:  ${curl_manual_msg}
49097  --libcurl option: ${curl_libcurl_msg}
49098  Verbose errors:   ${curl_verbose_msg}
49099  Code coverage:    ${curl_coverage_msg}
49100  SSPI:             ${curl_sspi_msg}
49101  ca cert bundle:   ${ca}${ca_warning}
49102  ca cert path:     ${capath}${capath_warning}
49103  ca fallback:      ${with_ca_fallback}
49104  LDAP:             ${curl_ldap_msg}
49105  LDAPS:            ${curl_ldaps_msg}
49106  RTSP:             ${curl_rtsp_msg}
49107  RTMP:             ${curl_rtmp_msg}
49108  PSL:              ${curl_psl_msg}
49109  Alt-svc:          ${curl_altsvc_msg}
49110  Headers API:      ${curl_headers_msg}
49111  HSTS:             ${curl_hsts_msg}
49112  HTTP1:            ${curl_h1_msg}
49113  HTTP2:            ${curl_h2_msg}
49114  HTTP3:            ${curl_h3_msg}
49115  ECH:              ${curl_ech_msg}
49116  WebSockets:       ${curl_ws_msg}
49117  Protocols:        ${SUPPORT_PROTOCOLS}
49118  Features:         ${SUPPORT_FEATURES}
49119" >&6;}
49120
49121non13=`echo "$TLSCHOICE" | grep -Ei 'bearssl|secure-transport|mbedtls'`;
49122if test -n "$non13"; then
49123 cat >&2 << _EOF
49124  WARNING: A selected TLS library ($TLSCHOICE) does not support TLS 1.3!
49125_EOF
49126fi
49127
49128if test -n "$experimental"; then
49129 cat >&2 << _EOF
49130  WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
49131_EOF
49132fi
49133
49134