xref: /third_party/curl/configure (revision 13498266)
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
926MANOPT
927NROFF
928PERL
929FISH_FUNCTIONS_DIR
930ZSH_FUNCTIONS_DIR
931USE_MSH3
932USE_QUICHE
933USE_OPENSSL_H3
934USE_NGTCP2_H3
935USE_NGHTTP3
936USE_OPENSSL_QUIC
937USE_NGTCP2_CRYPTO_WOLFSSL
938USE_NGTCP2_CRYPTO_GNUTLS
939USE_NGTCP2_CRYPTO_BORINGSSL
940USE_NGTCP2_CRYPTO_QUICTLS
941USE_NGTCP2
942USE_NGHTTP2
943IDN_ENABLED
944CURL_PLIST_VERSION
945CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
946CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
947CURL_LT_SHLIB_VERSIONED_FLAVOUR
948USE_LIBRTMP
949USE_WOLFSSH
950USE_LIBSSH
951USE_LIBSSH2
952USE_GSASL_FALSE
953USE_GSASL_TRUE
954USE_LIBPSL_FALSE
955USE_LIBPSL_TRUE
956CURL_CA_BUNDLE
957CURL_WITH_MULTI_SSL
958SSL_ENABLED
959USE_RUSTLS
960USE_BEARSSL
961USE_WOLFSSL
962USE_MBEDTLS
963HAVE_GNUTLS_SRP
964USE_GNUTLS
965HAVE_OPENSSL_QUIC
966HAVE_OPENSSL_SRP
967RANDOM_FILE
968SSL_LIBS
969USE_SECTRANSP
970USE_WINDOWS_SSPI
971USE_SCHANNEL
972DEFAULT_SSL_BACKEND
973BUILD_STUB_GSS_FALSE
974BUILD_STUB_GSS_TRUE
975IPV6_ENABLED
976USE_OPENLDAP
977HAVE_ZSTD
978HAVE_BROTLI
979ZLIB_LIBS
980HAVE_LIBZ_FALSE
981HAVE_LIBZ_TRUE
982HAVE_LIBZ
983HAVE_PROTO_BSDSOCKET_H
984CURL_DISABLE_MQTT
985CURL_DISABLE_GOPHER
986CURL_DISABLE_SMTP
987CURL_DISABLE_SMB
988CURL_DISABLE_IMAP
989CURL_DISABLE_POP3
990CURL_DISABLE_TFTP
991CURL_DISABLE_TELNET
992CURL_DISABLE_DICT
993CURL_DISABLE_PROXY
994USE_HYPER
995PKGCONFIG
996HAVE_LDAP_SSL
997CURL_DISABLE_LDAPS
998CURL_DISABLE_LDAP
999CURL_DISABLE_FILE
1000CURL_DISABLE_FTP
1001CURL_DISABLE_RTSP
1002CURL_DISABLE_HTTP
1003HAVE_WINDRES_FALSE
1004HAVE_WINDRES_TRUE
1005USE_WIN32_CRYPTO
1006USE_WIN32_SMALL_FILES
1007USE_WIN32_LARGE_FILES
1008BUILD_UNITTESTS_FALSE
1009BUILD_UNITTESTS_TRUE
1010CURLDEBUG_FALSE
1011CURLDEBUG_TRUE
1012CURL_CFLAG_EXTRAS
1013DOING_NATIVE_WINDOWS_FALSE
1014DOING_NATIVE_WINDOWS_TRUE
1015USE_EXPLICIT_LIB_DEPS_FALSE
1016USE_EXPLICIT_LIB_DEPS_TRUE
1017REQUIRE_LIB_DEPS
1018CPPFLAG_CURL_STATICLIB
1019USE_CPPFLAG_CURL_STATICLIB_FALSE
1020USE_CPPFLAG_CURL_STATICLIB_TRUE
1021CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1022CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1023CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1024CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1025CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1026CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1027RC
1028LT_SYS_LIBRARY_PATH
1029OTOOL64
1030OTOOL
1031LIPO
1032NMEDIT
1033DSYMUTIL
1034MANIFEST_TOOL
1035RANLIB
1036ac_ct_AR
1037FILECMD
1038LN_S
1039NM
1040ac_ct_DUMPBIN
1041DUMPBIN
1042LD
1043FGREP
1044LIBTOOL
1045OBJDUMP
1046DLLTOOL
1047AS
1048AR_FLAGS
1049host_os
1050host_vendor
1051host_cpu
1052host
1053build_os
1054build_vendor
1055build_cpu
1056build
1057HTTPD_NGHTTPX
1058APACHECTL
1059HTTPD
1060APXS
1061CADDY
1062TEST_NGHTTPX
1063PKGADD_VENDOR
1064PKGADD_NAME
1065PKGADD_PKG
1066VERSIONNUM
1067CURLVERSION
1068CSCOPE
1069ETAGS
1070CTAGS
1071am__fastdepCC_FALSE
1072am__fastdepCC_TRUE
1073CCDEPMODE
1074am__nodep
1075AMDEPBACKSLASH
1076AMDEP_FALSE
1077AMDEP_TRUE
1078am__include
1079DEPDIR
1080am__untar
1081am__tar
1082AMTAR
1083am__leading_dot
1084SET_MAKE
1085AWK
1086mkdir_p
1087MKDIR_P
1088INSTALL_STRIP_PROGRAM
1089STRIP
1090install_sh
1091MAKEINFO
1092AUTOHEADER
1093AUTOMAKE
1094AUTOCONF
1095ACLOCAL
1096VERSION
1097PACKAGE
1098CYGPATH_W
1099am__isrc
1100LCOV
1101GCOV
1102CPP
1103OBJEXT
1104EXEEXT
1105ac_ct_CC
1106CPPFLAGS
1107LDFLAGS
1108CFLAGS
1109CC
1110INSTALL_DATA
1111INSTALL_SCRIPT
1112INSTALL_PROGRAM
1113libext
1114AR
1115EGREP
1116GREP
1117SED
1118CONFIGURE_OPTIONS
1119AM_BACKSLASH
1120AM_DEFAULT_VERBOSITY
1121AM_DEFAULT_V
1122AM_V
1123MAINT
1124MAINTAINER_MODE_FALSE
1125MAINTAINER_MODE_TRUE
1126target_alias
1127host_alias
1128build_alias
1129LIBS
1130ECHO_T
1131ECHO_N
1132ECHO_C
1133DEFS
1134mandir
1135localedir
1136libdir
1137psdir
1138pdfdir
1139dvidir
1140htmldir
1141infodir
1142docdir
1143oldincludedir
1144includedir
1145runstatedir
1146localstatedir
1147sharedstatedir
1148sysconfdir
1149datadir
1150datarootdir
1151libexecdir
1152sbindir
1153bindir
1154program_transform_name
1155prefix
1156exec_prefix
1157PACKAGE_URL
1158PACKAGE_BUGREPORT
1159PACKAGE_STRING
1160PACKAGE_VERSION
1161PACKAGE_TARNAME
1162PACKAGE_NAME
1163SHELL
1164PATH_SEPARATOR
1165am__quote'
1166ac_subst_files=''
1167ac_user_opts='
1168enable_option_checking
1169enable_maintainer_mode
1170enable_silent_rules
1171enable_debug
1172enable_optimize
1173enable_warnings
1174enable_werror
1175enable_curldebug
1176enable_symbol_hiding
1177enable_ares
1178enable_rt
1179enable_ech
1180enable_code_coverage
1181enable_dependency_tracking
1182with_schannel
1183with_secure_transport
1184with_amissl
1185with_ssl
1186with_openssl
1187with_gnutls
1188with_mbedtls
1189with_wolfssl
1190with_bearssl
1191with_rustls
1192with_test_nghttpx
1193with_test_caddy
1194with_test_httpd
1195with_darwinssl
1196enable_largefile
1197enable_shared
1198enable_static
1199with_pic
1200enable_fast_install
1201with_aix_soname
1202with_gnu_ld
1203with_sysroot
1204enable_libtool_lock
1205enable_http
1206enable_ftp
1207enable_file
1208enable_ldap
1209enable_ldaps
1210with_hyper
1211enable_rtsp
1212enable_proxy
1213enable_dict
1214enable_telnet
1215enable_tftp
1216enable_pop3
1217enable_imap
1218enable_smb
1219enable_smtp
1220enable_gopher
1221enable_mqtt
1222enable_manual
1223enable_libcurl_option
1224enable_libgcc
1225with_zlib
1226with_brotli
1227with_zstd
1228with_ldap_lib
1229with_lber_lib
1230enable_ipv6
1231with_gssapi_includes
1232with_gssapi_libs
1233with_gssapi
1234with_default_ssl_backend
1235with_random
1236enable_openssl_auto_load_config
1237with_ca_bundle
1238with_ca_path
1239with_ca_fallback
1240with_libpsl
1241with_libgsasl
1242with_libmetalink
1243with_libssh2
1244with_libssh
1245with_wolfssh
1246with_librtmp
1247enable_versioned_symbols
1248with_winidn
1249with_libidn2
1250with_nghttp2
1251with_ngtcp2
1252with_openssl_quic
1253with_nghttp3
1254with_quiche
1255with_msh3
1256with_zsh_functions_dir
1257with_fish_functions_dir
1258enable_threaded_resolver
1259enable_pthreads
1260enable_verbose
1261enable_sspi
1262enable_basic_auth
1263enable_bearer_auth
1264enable_digest_auth
1265enable_kerberos_auth
1266enable_negotiate_auth
1267enable_aws
1268enable_ntlm
1269enable_ntlm_wb
1270enable_tls_srp
1271enable_unix_sockets
1272enable_cookies
1273enable_socketpair
1274enable_http_auth
1275enable_doh
1276enable_mime
1277enable_bindlocal
1278enable_form_api
1279enable_dateparse
1280enable_netrc
1281enable_progress_meter
1282enable_dnsshuffle
1283enable_get_easy_options
1284enable_alt_svc
1285enable_headers_api
1286enable_hsts
1287enable_websockets
1288'
1289      ac_precious_vars='build_alias
1290host_alias
1291target_alias
1292CC
1293CFLAGS
1294LDFLAGS
1295LIBS
1296CPPFLAGS
1297CPP
1298LT_SYS_LIBRARY_PATH'
1299
1300
1301# Initialize some variables set by options.
1302ac_init_help=
1303ac_init_version=false
1304ac_unrecognized_opts=
1305ac_unrecognized_sep=
1306# The variables have the same names as the options, with
1307# dashes changed to underlines.
1308cache_file=/dev/null
1309exec_prefix=NONE
1310no_create=
1311no_recursion=
1312prefix=NONE
1313program_prefix=NONE
1314program_suffix=NONE
1315program_transform_name=s,x,x,
1316silent=
1317site=
1318srcdir=
1319verbose=
1320x_includes=NONE
1321x_libraries=NONE
1322
1323# Installation directory options.
1324# These are left unexpanded so users can "make install exec_prefix=/foo"
1325# and all the variables that are supposed to be based on exec_prefix
1326# by default will actually change.
1327# Use braces instead of parens because sh, perl, etc. also accept them.
1328# (The list follows the same order as the GNU Coding Standards.)
1329bindir='${exec_prefix}/bin'
1330sbindir='${exec_prefix}/sbin'
1331libexecdir='${exec_prefix}/libexec'
1332datarootdir='${prefix}/share'
1333datadir='${datarootdir}'
1334sysconfdir='${prefix}/etc'
1335sharedstatedir='${prefix}/com'
1336localstatedir='${prefix}/var'
1337runstatedir='${localstatedir}/run'
1338includedir='${prefix}/include'
1339oldincludedir='/usr/include'
1340docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1341infodir='${datarootdir}/info'
1342htmldir='${docdir}'
1343dvidir='${docdir}'
1344pdfdir='${docdir}'
1345psdir='${docdir}'
1346libdir='${exec_prefix}/lib'
1347localedir='${datarootdir}/locale'
1348mandir='${datarootdir}/man'
1349
1350ac_prev=
1351ac_dashdash=
1352for ac_option
1353do
1354  # If the previous option needs an argument, assign it.
1355  if test -n "$ac_prev"; then
1356    eval $ac_prev=\$ac_option
1357    ac_prev=
1358    continue
1359  fi
1360
1361  case $ac_option in
1362  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1363  *=)   ac_optarg= ;;
1364  *)    ac_optarg=yes ;;
1365  esac
1366
1367  case $ac_dashdash$ac_option in
1368  --)
1369    ac_dashdash=yes ;;
1370
1371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1372    ac_prev=bindir ;;
1373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1374    bindir=$ac_optarg ;;
1375
1376  -build | --build | --buil | --bui | --bu)
1377    ac_prev=build_alias ;;
1378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1379    build_alias=$ac_optarg ;;
1380
1381  -cache-file | --cache-file | --cache-fil | --cache-fi \
1382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1383    ac_prev=cache_file ;;
1384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1386    cache_file=$ac_optarg ;;
1387
1388  --config-cache | -C)
1389    cache_file=config.cache ;;
1390
1391  -datadir | --datadir | --datadi | --datad)
1392    ac_prev=datadir ;;
1393  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1394    datadir=$ac_optarg ;;
1395
1396  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1397  | --dataroo | --dataro | --datar)
1398    ac_prev=datarootdir ;;
1399  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1400  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1401    datarootdir=$ac_optarg ;;
1402
1403  -disable-* | --disable-*)
1404    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1405    # Reject names that are not valid shell variable names.
1406    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1407      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1408    ac_useropt_orig=$ac_useropt
1409    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1410    case $ac_user_opts in
1411      *"
1412"enable_$ac_useropt"
1413"*) ;;
1414      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1415	 ac_unrecognized_sep=', ';;
1416    esac
1417    eval enable_$ac_useropt=no ;;
1418
1419  -docdir | --docdir | --docdi | --doc | --do)
1420    ac_prev=docdir ;;
1421  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1422    docdir=$ac_optarg ;;
1423
1424  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1425    ac_prev=dvidir ;;
1426  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1427    dvidir=$ac_optarg ;;
1428
1429  -enable-* | --enable-*)
1430    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1431    # Reject names that are not valid shell variable names.
1432    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1433      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1434    ac_useropt_orig=$ac_useropt
1435    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1436    case $ac_user_opts in
1437      *"
1438"enable_$ac_useropt"
1439"*) ;;
1440      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1441	 ac_unrecognized_sep=', ';;
1442    esac
1443    eval enable_$ac_useropt=\$ac_optarg ;;
1444
1445  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1446  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1447  | --exec | --exe | --ex)
1448    ac_prev=exec_prefix ;;
1449  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1450  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1451  | --exec=* | --exe=* | --ex=*)
1452    exec_prefix=$ac_optarg ;;
1453
1454  -gas | --gas | --ga | --g)
1455    # Obsolete; use --with-gas.
1456    with_gas=yes ;;
1457
1458  -help | --help | --hel | --he | -h)
1459    ac_init_help=long ;;
1460  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1461    ac_init_help=recursive ;;
1462  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1463    ac_init_help=short ;;
1464
1465  -host | --host | --hos | --ho)
1466    ac_prev=host_alias ;;
1467  -host=* | --host=* | --hos=* | --ho=*)
1468    host_alias=$ac_optarg ;;
1469
1470  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1471    ac_prev=htmldir ;;
1472  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1473  | --ht=*)
1474    htmldir=$ac_optarg ;;
1475
1476  -includedir | --includedir | --includedi | --included | --include \
1477  | --includ | --inclu | --incl | --inc)
1478    ac_prev=includedir ;;
1479  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1480  | --includ=* | --inclu=* | --incl=* | --inc=*)
1481    includedir=$ac_optarg ;;
1482
1483  -infodir | --infodir | --infodi | --infod | --info | --inf)
1484    ac_prev=infodir ;;
1485  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1486    infodir=$ac_optarg ;;
1487
1488  -libdir | --libdir | --libdi | --libd)
1489    ac_prev=libdir ;;
1490  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1491    libdir=$ac_optarg ;;
1492
1493  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1494  | --libexe | --libex | --libe)
1495    ac_prev=libexecdir ;;
1496  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1497  | --libexe=* | --libex=* | --libe=*)
1498    libexecdir=$ac_optarg ;;
1499
1500  -localedir | --localedir | --localedi | --localed | --locale)
1501    ac_prev=localedir ;;
1502  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1503    localedir=$ac_optarg ;;
1504
1505  -localstatedir | --localstatedir | --localstatedi | --localstated \
1506  | --localstate | --localstat | --localsta | --localst | --locals)
1507    ac_prev=localstatedir ;;
1508  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1509  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1510    localstatedir=$ac_optarg ;;
1511
1512  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1513    ac_prev=mandir ;;
1514  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1515    mandir=$ac_optarg ;;
1516
1517  -nfp | --nfp | --nf)
1518    # Obsolete; use --without-fp.
1519    with_fp=no ;;
1520
1521  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1522  | --no-cr | --no-c | -n)
1523    no_create=yes ;;
1524
1525  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1526  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1527    no_recursion=yes ;;
1528
1529  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1530  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1531  | --oldin | --oldi | --old | --ol | --o)
1532    ac_prev=oldincludedir ;;
1533  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1534  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1535  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1536    oldincludedir=$ac_optarg ;;
1537
1538  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1539    ac_prev=prefix ;;
1540  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1541    prefix=$ac_optarg ;;
1542
1543  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1544  | --program-pre | --program-pr | --program-p)
1545    ac_prev=program_prefix ;;
1546  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1547  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1548    program_prefix=$ac_optarg ;;
1549
1550  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1551  | --program-suf | --program-su | --program-s)
1552    ac_prev=program_suffix ;;
1553  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1554  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1555    program_suffix=$ac_optarg ;;
1556
1557  -program-transform-name | --program-transform-name \
1558  | --program-transform-nam | --program-transform-na \
1559  | --program-transform-n | --program-transform- \
1560  | --program-transform | --program-transfor \
1561  | --program-transfo | --program-transf \
1562  | --program-trans | --program-tran \
1563  | --progr-tra | --program-tr | --program-t)
1564    ac_prev=program_transform_name ;;
1565  -program-transform-name=* | --program-transform-name=* \
1566  | --program-transform-nam=* | --program-transform-na=* \
1567  | --program-transform-n=* | --program-transform-=* \
1568  | --program-transform=* | --program-transfor=* \
1569  | --program-transfo=* | --program-transf=* \
1570  | --program-trans=* | --program-tran=* \
1571  | --progr-tra=* | --program-tr=* | --program-t=*)
1572    program_transform_name=$ac_optarg ;;
1573
1574  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1575    ac_prev=pdfdir ;;
1576  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1577    pdfdir=$ac_optarg ;;
1578
1579  -psdir | --psdir | --psdi | --psd | --ps)
1580    ac_prev=psdir ;;
1581  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1582    psdir=$ac_optarg ;;
1583
1584  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1585  | -silent | --silent | --silen | --sile | --sil)
1586    silent=yes ;;
1587
1588  -runstatedir | --runstatedir | --runstatedi | --runstated \
1589  | --runstate | --runstat | --runsta | --runst | --runs \
1590  | --run | --ru | --r)
1591    ac_prev=runstatedir ;;
1592  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1593  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1594  | --run=* | --ru=* | --r=*)
1595    runstatedir=$ac_optarg ;;
1596
1597  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1598    ac_prev=sbindir ;;
1599  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1600  | --sbi=* | --sb=*)
1601    sbindir=$ac_optarg ;;
1602
1603  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1604  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1605  | --sharedst | --shareds | --shared | --share | --shar \
1606  | --sha | --sh)
1607    ac_prev=sharedstatedir ;;
1608  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1609  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1610  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1611  | --sha=* | --sh=*)
1612    sharedstatedir=$ac_optarg ;;
1613
1614  -site | --site | --sit)
1615    ac_prev=site ;;
1616  -site=* | --site=* | --sit=*)
1617    site=$ac_optarg ;;
1618
1619  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1620    ac_prev=srcdir ;;
1621  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1622    srcdir=$ac_optarg ;;
1623
1624  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1625  | --syscon | --sysco | --sysc | --sys | --sy)
1626    ac_prev=sysconfdir ;;
1627  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1628  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1629    sysconfdir=$ac_optarg ;;
1630
1631  -target | --target | --targe | --targ | --tar | --ta | --t)
1632    ac_prev=target_alias ;;
1633  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1634    target_alias=$ac_optarg ;;
1635
1636  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1637    verbose=yes ;;
1638
1639  -version | --version | --versio | --versi | --vers | -V)
1640    ac_init_version=: ;;
1641
1642  -with-* | --with-*)
1643    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1644    # Reject names that are not valid shell variable names.
1645    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1646      as_fn_error $? "invalid package name: \`$ac_useropt'"
1647    ac_useropt_orig=$ac_useropt
1648    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1649    case $ac_user_opts in
1650      *"
1651"with_$ac_useropt"
1652"*) ;;
1653      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1654	 ac_unrecognized_sep=', ';;
1655    esac
1656    eval with_$ac_useropt=\$ac_optarg ;;
1657
1658  -without-* | --without-*)
1659    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1660    # Reject names that are not valid shell variable names.
1661    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1662      as_fn_error $? "invalid package name: \`$ac_useropt'"
1663    ac_useropt_orig=$ac_useropt
1664    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1665    case $ac_user_opts in
1666      *"
1667"with_$ac_useropt"
1668"*) ;;
1669      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1670	 ac_unrecognized_sep=', ';;
1671    esac
1672    eval with_$ac_useropt=no ;;
1673
1674  --x)
1675    # Obsolete; use --with-x.
1676    with_x=yes ;;
1677
1678  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1679  | --x-incl | --x-inc | --x-in | --x-i)
1680    ac_prev=x_includes ;;
1681  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1682  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1683    x_includes=$ac_optarg ;;
1684
1685  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1686  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1687    ac_prev=x_libraries ;;
1688  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1689  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1690    x_libraries=$ac_optarg ;;
1691
1692  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1693Try \`$0 --help' for more information"
1694    ;;
1695
1696  *=*)
1697    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1698    # Reject names that are not valid shell variable names.
1699    case $ac_envvar in #(
1700      '' | [0-9]* | *[!_$as_cr_alnum]* )
1701      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1702    esac
1703    eval $ac_envvar=\$ac_optarg
1704    export $ac_envvar ;;
1705
1706  *)
1707    # FIXME: should be removed in autoconf 3.0.
1708    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1709    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1710      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1711    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1712    ;;
1713
1714  esac
1715done
1716
1717if test -n "$ac_prev"; then
1718  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1719  as_fn_error $? "missing argument to $ac_option"
1720fi
1721
1722if test -n "$ac_unrecognized_opts"; then
1723  case $enable_option_checking in
1724    no) ;;
1725    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1726    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1727  esac
1728fi
1729
1730# Check all directory arguments for consistency.
1731for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1732		datadir sysconfdir sharedstatedir localstatedir includedir \
1733		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1734		libdir localedir mandir runstatedir
1735do
1736  eval ac_val=\$$ac_var
1737  # Remove trailing slashes.
1738  case $ac_val in
1739    */ )
1740      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1741      eval $ac_var=\$ac_val;;
1742  esac
1743  # Be sure to have absolute directory names.
1744  case $ac_val in
1745    [\\/$]* | ?:[\\/]* )  continue;;
1746    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1747  esac
1748  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1749done
1750
1751# There might be people who depend on the old broken behavior: `$host'
1752# used to hold the argument of --host etc.
1753# FIXME: To remove some day.
1754build=$build_alias
1755host=$host_alias
1756target=$target_alias
1757
1758# FIXME: To remove some day.
1759if test "x$host_alias" != x; then
1760  if test "x$build_alias" = x; then
1761    cross_compiling=maybe
1762  elif test "x$build_alias" != "x$host_alias"; then
1763    cross_compiling=yes
1764  fi
1765fi
1766
1767ac_tool_prefix=
1768test -n "$host_alias" && ac_tool_prefix=$host_alias-
1769
1770test "$silent" = yes && exec 6>/dev/null
1771
1772
1773ac_pwd=`pwd` && test -n "$ac_pwd" &&
1774ac_ls_di=`ls -di .` &&
1775ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1776  as_fn_error $? "working directory cannot be determined"
1777test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1778  as_fn_error $? "pwd does not report name of working directory"
1779
1780
1781# Find the source files, if location was not specified.
1782if test -z "$srcdir"; then
1783  ac_srcdir_defaulted=yes
1784  # Try the directory containing this script, then the parent directory.
1785  ac_confdir=`$as_dirname -- "$as_myself" ||
1786$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1787	 X"$as_myself" : 'X\(//\)[^/]' \| \
1788	 X"$as_myself" : 'X\(//\)$' \| \
1789	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1790printf "%s\n" X"$as_myself" |
1791    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1792	    s//\1/
1793	    q
1794	  }
1795	  /^X\(\/\/\)[^/].*/{
1796	    s//\1/
1797	    q
1798	  }
1799	  /^X\(\/\/\)$/{
1800	    s//\1/
1801	    q
1802	  }
1803	  /^X\(\/\).*/{
1804	    s//\1/
1805	    q
1806	  }
1807	  s/.*/./; q'`
1808  srcdir=$ac_confdir
1809  if test ! -r "$srcdir/$ac_unique_file"; then
1810    srcdir=..
1811  fi
1812else
1813  ac_srcdir_defaulted=no
1814fi
1815if test ! -r "$srcdir/$ac_unique_file"; then
1816  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1817  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1818fi
1819ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1820ac_abs_confdir=`(
1821	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1822	pwd)`
1823# When building in place, set srcdir=.
1824if test "$ac_abs_confdir" = "$ac_pwd"; then
1825  srcdir=.
1826fi
1827# Remove unnecessary trailing slashes from srcdir.
1828# Double slashes in file names in object file debugging info
1829# mess up M-x gdb in Emacs.
1830case $srcdir in
1831*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1832esac
1833for ac_var in $ac_precious_vars; do
1834  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1835  eval ac_env_${ac_var}_value=\$${ac_var}
1836  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1837  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1838done
1839
1840#
1841# Report the --help message.
1842#
1843if test "$ac_init_help" = "long"; then
1844  # Omit some internal or obsolete options to make the list less imposing.
1845  # This message is too long to be a string in the A/UX 3.1 sh.
1846  cat <<_ACEOF
1847\`configure' configures curl - to adapt to many kinds of systems.
1848
1849Usage: $0 [OPTION]... [VAR=VALUE]...
1850
1851To assign environment variables (e.g., CC, CFLAGS...), specify them as
1852VAR=VALUE.  See below for descriptions of some of the useful variables.
1853
1854Defaults for the options are specified in brackets.
1855
1856Configuration:
1857  -h, --help              display this help and exit
1858      --help=short        display options specific to this package
1859      --help=recursive    display the short help of all the included packages
1860  -V, --version           display version information and exit
1861  -q, --quiet, --silent   do not print \`checking ...' messages
1862      --cache-file=FILE   cache test results in FILE [disabled]
1863  -C, --config-cache      alias for \`--cache-file=config.cache'
1864  -n, --no-create         do not create output files
1865      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1866
1867Installation directories:
1868  --prefix=PREFIX         install architecture-independent files in PREFIX
1869                          [$ac_default_prefix]
1870  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1871                          [PREFIX]
1872
1873By default, \`make install' will install all the files in
1874\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1875an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1876for instance \`--prefix=\$HOME'.
1877
1878For better control, use the options below.
1879
1880Fine tuning of the installation directories:
1881  --bindir=DIR            user executables [EPREFIX/bin]
1882  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1883  --libexecdir=DIR        program executables [EPREFIX/libexec]
1884  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1885  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1886  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1887  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1888  --libdir=DIR            object code libraries [EPREFIX/lib]
1889  --includedir=DIR        C header files [PREFIX/include]
1890  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1891  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1892  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1893  --infodir=DIR           info documentation [DATAROOTDIR/info]
1894  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1895  --mandir=DIR            man documentation [DATAROOTDIR/man]
1896  --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1897  --htmldir=DIR           html documentation [DOCDIR]
1898  --dvidir=DIR            dvi documentation [DOCDIR]
1899  --pdfdir=DIR            pdf documentation [DOCDIR]
1900  --psdir=DIR             ps documentation [DOCDIR]
1901_ACEOF
1902
1903  cat <<\_ACEOF
1904
1905Program names:
1906  --program-prefix=PREFIX            prepend PREFIX to installed program names
1907  --program-suffix=SUFFIX            append SUFFIX to installed program names
1908  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1909
1910System types:
1911  --build=BUILD     configure for building on BUILD [guessed]
1912  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1913_ACEOF
1914fi
1915
1916if test -n "$ac_init_help"; then
1917  case $ac_init_help in
1918     short | recursive ) echo "Configuration of curl -:";;
1919   esac
1920  cat <<\_ACEOF
1921
1922Optional Features:
1923  --disable-option-checking  ignore unrecognized --enable/--with options
1924  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1925  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1926  --enable-maintainer-mode
1927                          enable make rules and dependencies not useful (and
1928                          sometimes confusing) to the casual installer
1929  --enable-silent-rules   less verbose build output (undo: "make V=1")
1930  --disable-silent-rules  verbose build output (undo: "make V=0")
1931  --enable-debug          Enable debug build options
1932  --disable-debug         Disable debug build options
1933  --enable-optimize       Enable compiler optimizations
1934  --disable-optimize      Disable compiler optimizations
1935  --enable-warnings       Enable strict compiler warnings
1936  --disable-warnings      Disable strict compiler warnings
1937  --enable-werror         Enable compiler warnings as errors
1938  --disable-werror        Disable compiler warnings as errors
1939  --enable-curldebug      Enable curl debug memory tracking
1940  --disable-curldebug     Disable curl debug memory tracking
1941  --enable-symbol-hiding  Enable hiding of library internal symbols
1942  --disable-symbol-hiding Disable hiding of library internal symbols
1943  --enable-ares[=PATH]    Enable c-ares for DNS lookups
1944  --disable-ares          Disable c-ares for DNS lookups
1945  --disable-rt            disable dependency on -lrt
1946  --enable-ech            Enable ECH support
1947  --disable-ech           Disable ECH support
1948  --enable-code-coverage  Provide code coverage
1949  --enable-dependency-tracking
1950                          do not reject slow dependency extractors
1951  --disable-dependency-tracking
1952                          speeds up one-time build
1953  --disable-largefile     omit support for large files
1954  --enable-shared[=PKGS]  build shared libraries [default=yes]
1955  --enable-static[=PKGS]  build static libraries [default=yes]
1956  --enable-fast-install[=PKGS]
1957                          optimize for fast installation [default=yes]
1958  --disable-libtool-lock  avoid locking (might break parallel builds)
1959  --enable-http           Enable HTTP support
1960  --disable-http          Disable HTTP support
1961  --enable-ftp            Enable FTP support
1962  --disable-ftp           Disable FTP support
1963  --enable-file           Enable FILE support
1964  --disable-file          Disable FILE support
1965  --enable-ldap           Enable LDAP support
1966  --disable-ldap          Disable LDAP support
1967  --enable-ldaps          Enable LDAPS support
1968  --disable-ldaps         Disable LDAPS support
1969  --enable-rtsp           Enable RTSP support
1970  --disable-rtsp          Disable RTSP support
1971  --enable-proxy          Enable proxy support
1972  --disable-proxy         Disable proxy support
1973  --enable-dict           Enable DICT support
1974  --disable-dict          Disable DICT support
1975  --enable-telnet         Enable TELNET support
1976  --disable-telnet        Disable TELNET support
1977  --enable-tftp           Enable TFTP support
1978  --disable-tftp          Disable TFTP support
1979  --enable-pop3           Enable POP3 support
1980  --disable-pop3          Disable POP3 support
1981  --enable-imap           Enable IMAP support
1982  --disable-imap          Disable IMAP support
1983  --enable-smb            Enable SMB/CIFS support
1984  --disable-smb           Disable SMB/CIFS support
1985  --enable-smtp           Enable SMTP support
1986  --disable-smtp          Disable SMTP support
1987  --enable-gopher         Enable Gopher support
1988  --disable-gopher        Disable Gopher support
1989  --enable-mqtt           Enable MQTT support
1990  --disable-mqtt          Disable MQTT support
1991  --enable-manual         Enable built-in manual
1992  --disable-manual        Disable built-in manual
1993  --enable-libcurl-option Enable --libcurl C code generation support
1994  --disable-libcurl-option
1995                          Disable --libcurl C code generation support
1996  --enable-libgcc         use libgcc when linking
1997  --enable-ipv6           Enable IPv6 (with IPv4) support
1998  --disable-ipv6          Disable IPv6 support
1999  --enable-openssl-auto-load-config
2000                          Enable automatic loading of OpenSSL configuration
2001  --disable-openssl-auto-load-config
2002                          Disable automatic loading of OpenSSL configuration
2003  --enable-versioned-symbols
2004                          Enable versioned symbols in shared library
2005  --disable-versioned-symbols
2006                          Disable versioned symbols in shared library
2007  --enable-threaded-resolver
2008                          Enable threaded resolver
2009  --disable-threaded-resolver
2010                          Disable threaded resolver
2011  --enable-pthreads       Enable POSIX threads (default for threaded resolver)
2012  --disable-pthreads      Disable POSIX threads
2013  --enable-verbose        Enable verbose strings
2014  --disable-verbose       Disable verbose strings
2015  --enable-sspi           Enable SSPI
2016  --disable-sspi          Disable SSPI
2017  --enable-basic-auth     Enable basic authentication (default)
2018  --disable-basic-auth    Disable basic authentication
2019  --enable-bearer-auth    Enable bearer authentication (default)
2020  --disable-bearer-auth   Disable bearer authentication
2021  --enable-digest-auth    Enable digest authentication (default)
2022  --disable-digest-auth   Disable digest authentication
2023  --enable-kerberos-auth  Enable kerberos authentication (default)
2024  --disable-kerberos-auth Disable kerberos authentication
2025  --enable-negotiate-auth Enable negotiate authentication (default)
2026  --disable-negotiate-auth
2027                          Disable negotiate authentication
2028  --enable-aws            Enable AWS sig support (default)
2029  --disable-aws           Disable AWS sig support
2030  --enable-ntlm           Enable NTLM support
2031  --disable-ntlm          Disable NTLM support
2032  --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2033                          helper, where FILE is ntlm_auth's absolute filename
2034                          (default: /usr/bin/ntlm_auth)
2035  --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
2036                          helper
2037  --enable-tls-srp        Enable TLS-SRP authentication
2038  --disable-tls-srp       Disable TLS-SRP authentication
2039  --enable-unix-sockets   Enable Unix domain sockets
2040  --disable-unix-sockets  Disable Unix domain sockets
2041  --enable-cookies        Enable cookies support
2042  --disable-cookies       Disable cookies support
2043  --enable-socketpair     Enable socketpair support
2044  --disable-socketpair    Disable socketpair support
2045  --enable-http-auth      Enable HTTP authentication support
2046  --disable-http-auth     Disable HTTP authentication support
2047  --enable-doh            Enable DoH support
2048  --disable-doh           Disable DoH support
2049  --enable-mime           Enable mime API support
2050  --disable-mime          Disable mime API support
2051  --enable-bindlocal      Enable local binding support
2052  --disable-bindlocal     Disable local binding support
2053  --enable-form-api       Enable form API support
2054  --disable-form-api      Disable form API support
2055  --enable-dateparse      Enable date parsing
2056  --disable-dateparse     Disable date parsing
2057  --enable-netrc          Enable netrc parsing
2058  --disable-netrc         Disable netrc parsing
2059  --enable-progress-meter Enable progress-meter
2060  --disable-progress-meter
2061                          Disable progress-meter
2062  --enable-dnsshuffle     Enable DNS shuffling
2063  --disable-dnsshuffle    Disable DNS shuffling
2064  --enable-get-easy-options
2065                          Enable curl_easy_options
2066  --disable-get-easy-options
2067                          Disable curl_easy_options
2068  --enable-alt-svc        Enable alt-svc support
2069  --disable-alt-svc       Disable alt-svc support
2070  --enable-headers-api    Enable headers-api support
2071  --disable-headers-api   Disable headers-api support
2072  --enable-hsts           Enable HSTS support
2073  --disable-hsts          Disable HSTS support
2074  --enable-websockets     Enable WebSockets support
2075  --disable-websockets    Disable WebSockets support
2076
2077Optional Packages:
2078  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2079  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2080  --with-schannel         enable Windows native SSL/TLS
2081  --with-secure-transport enable Apple OS native SSL/TLS
2082  --with-amissl           enable Amiga native SSL/TLS (AmiSSL)
2083  --with-ssl=PATH         old version of --with-openssl
2084  --without-ssl           build without any TLS library
2085  --with-openssl=PATH     Where to look for OpenSSL, PATH points to the SSL
2086                          installation (default: /usr/local/ssl); when
2087                          possible, set the PKG_CONFIG_PATH environment
2088                          variable instead of using this option
2089  --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
2090                          installation root
2091  --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2092                          installation root
2093  --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2094                          installation root (default: system lib default)
2095  --with-bearssl=PATH     where to look for BearSSL, PATH points to the
2096                          installation root
2097  --with-rustls=PATH      where to look for rustls, PATH points to the
2098                          installation root
2099  --with-test-nghttpx=PATH
2100                          where to find nghttpx for testing
2101  --with-test-caddy=PATH  where to find caddy for testing
2102  --with-test-httpd=PATH  where to find httpd/apache2 for testing
2103
2104  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2105                          both]
2106  --with-aix-soname=aix|svr4|both
2107                          shared library versioning (aka "SONAME") variant to
2108                          provide on AIX, [default=aix].
2109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2110  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2111                          compiler's sysroot if not specified).
2112  --with-hyper=PATH       Enable hyper usage
2113  --without-hyper         Disable hyper usage
2114  --with-zlib=PATH        search for zlib in PATH
2115  --without-zlib          disable use of zlib
2116  --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
2117                          installation; when possible, set the PKG_CONFIG_PATH
2118                          environment variable instead of using this option
2119  --without-brotli        disable BROTLI
2120  --with-zstd=PATH        Where to look for libzstd, PATH points to the
2121                          libzstd installation; when possible, set the
2122                          PKG_CONFIG_PATH environment variable instead of
2123                          using this option
2124  --without-zstd          disable libzstd
2125  --with-ldap-lib=libname Specify name of ldap lib file
2126  --with-lber-lib=libname Specify name of lber lib file
2127  --with-gssapi-includes=DIR
2128                          Specify location of GSS-API headers
2129  --with-gssapi-libs=DIR  Specify location of GSS-API libs
2130  --with-gssapi=DIR       Where to look for GSS-API
2131  --with-default-ssl-backend=NAME
2132                          Use NAME as default SSL backend
2133  --without-default-ssl-backend
2134                          Use implicit default SSL backend
2135  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
2136  --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2137                          /etc/ca-bundle.crt)
2138  --without-ca-bundle     Don't use a default CA bundle
2139  --with-ca-path=DIRECTORY
2140                          Path to a directory containing CA certificates
2141                          stored individually, with their filenames in a hash
2142                          format. This option can be used with the OpenSSL,
2143                          GnuTLS, mbedTLS and wolfSSL backends. Refer to
2144                          OpenSSL c_rehash for details. (example:
2145                          /etc/certificates)
2146  --without-ca-path       Don't use a default CA path
2147  --with-ca-fallback      Use the built in CA store of the SSL library
2148  --without-ca-fallback   Don't use the built in CA store of the SSL library
2149  --without-libpsl        disable support for libpsl
2150  --without-libgsasl      disable libgsasl support for SCRAM
2151  --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2152                          libssh2 installation; when possible, set the
2153                          PKG_CONFIG_PATH environment variable instead of
2154                          using this option
2155  --with-libssh2          enable libssh2
2156  --with-libssh=PATH      Where to look for libssh, PATH points to the libssh
2157                          installation; when possible, set the PKG_CONFIG_PATH
2158                          environment variable instead of using this option
2159  --with-libssh           enable libssh
2160  --with-wolfssh=PATH     Where to look for wolfssh, PATH points to the
2161                          wolfSSH installation; when possible, set the
2162                          PKG_CONFIG_PATH environment variable instead of
2163                          using this option
2164  --with-wolfssh          enable wolfssh
2165  --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2166                          LIBRTMP installation; when possible, set the
2167                          PKG_CONFIG_PATH environment variable instead of
2168                          using this option
2169  --without-librtmp       disable LIBRTMP
2170  --with-winidn=PATH      enable Windows native IDN
2171  --without-winidn        disable Windows native IDN
2172  --with-libidn2=PATH     Enable libidn2 usage
2173  --without-libidn2       Disable libidn2 usage
2174  --with-nghttp2=PATH     Enable nghttp2 usage
2175  --without-nghttp2       Disable nghttp2 usage
2176  --with-ngtcp2=PATH      Enable ngtcp2 usage
2177  --without-ngtcp2        Disable ngtcp2 usage
2178  --with-openssl-quic     Enable OpenSSL QUIC usage
2179  --without-openssl-quic  Disable OpenSSL QUIC usage
2180  --with-nghttp3=PATH     Enable nghttp3 usage
2181  --without-nghttp3       Disable nghttp3 usage
2182  --with-quiche=PATH      Enable quiche usage
2183  --without-quiche        Disable quiche usage
2184  --with-msh3=PATH        Enable msh3 usage
2185  --without-msh3          Disable msh3 usage
2186  --with-zsh-functions-dir=PATH
2187                          Install zsh completions to PATH
2188  --without-zsh-functions-dir
2189                          Do not install zsh completions
2190  --with-fish-functions-dir=PATH
2191                          Install fish completions to PATH
2192  --without-fish-functions-dir
2193                          Do not install fish completions
2194
2195Some influential environment variables:
2196  CC          C compiler command
2197  CFLAGS      C compiler flags
2198  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2199              nonstandard directory <lib dir>
2200  LIBS        libraries to pass to the linker, e.g. -l<library>
2201  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2202              you have headers in a nonstandard directory <include dir>
2203  CPP         C preprocessor
2204  LT_SYS_LIBRARY_PATH
2205              User-defined run-time library search path.
2206
2207Use these variables to override the choices made by `configure' or to help
2208it to find libraries and programs with nonstandard names/locations.
2209
2210Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2211_ACEOF
2212ac_status=$?
2213fi
2214
2215if test "$ac_init_help" = "recursive"; then
2216  # If there are subdirs, report their specific --help.
2217  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2218    test -d "$ac_dir" ||
2219      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2220      continue
2221    ac_builddir=.
2222
2223case "$ac_dir" in
2224.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2225*)
2226  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2227  # A ".." for each directory in $ac_dir_suffix.
2228  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2229  case $ac_top_builddir_sub in
2230  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2231  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2232  esac ;;
2233esac
2234ac_abs_top_builddir=$ac_pwd
2235ac_abs_builddir=$ac_pwd$ac_dir_suffix
2236# for backward compatibility:
2237ac_top_builddir=$ac_top_build_prefix
2238
2239case $srcdir in
2240  .)  # We are building in place.
2241    ac_srcdir=.
2242    ac_top_srcdir=$ac_top_builddir_sub
2243    ac_abs_top_srcdir=$ac_pwd ;;
2244  [\\/]* | ?:[\\/]* )  # Absolute name.
2245    ac_srcdir=$srcdir$ac_dir_suffix;
2246    ac_top_srcdir=$srcdir
2247    ac_abs_top_srcdir=$srcdir ;;
2248  *) # Relative name.
2249    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2250    ac_top_srcdir=$ac_top_build_prefix$srcdir
2251    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2252esac
2253ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2254
2255    cd "$ac_dir" || { ac_status=$?; continue; }
2256    # Check for configure.gnu first; this name is used for a wrapper for
2257    # Metaconfig's "Configure" on case-insensitive file systems.
2258    if test -f "$ac_srcdir/configure.gnu"; then
2259      echo &&
2260      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2261    elif test -f "$ac_srcdir/configure"; then
2262      echo &&
2263      $SHELL "$ac_srcdir/configure" --help=recursive
2264    else
2265      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2266    fi || ac_status=$?
2267    cd "$ac_pwd" || { ac_status=$?; break; }
2268  done
2269fi
2270
2271test -n "$ac_init_help" && exit $ac_status
2272if $ac_init_version; then
2273  cat <<\_ACEOF
2274curl configure -
2275generated by GNU Autoconf 2.71
2276
2277Copyright (C) 2021 Free Software Foundation, Inc.
2278This configure script is free software; the Free Software Foundation
2279gives unlimited permission to copy, distribute and modify it.
2280
2281Copyright (C) Daniel Stenberg, <daniel@haxx.se>
2282This configure script may be copied, distributed and modified under the
2283terms of the curl license; see COPYING for more details
2284_ACEOF
2285  exit
2286fi
2287
2288## ------------------------ ##
2289## Autoconf initialization. ##
2290## ------------------------ ##
2291
2292# ac_fn_c_try_compile LINENO
2293# --------------------------
2294# Try to compile conftest.$ac_ext, and return whether this succeeded.
2295ac_fn_c_try_compile ()
2296{
2297  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298  rm -f conftest.$ac_objext conftest.beam
2299  if { { ac_try="$ac_compile"
2300case "(($ac_try" in
2301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302  *) ac_try_echo=$ac_try;;
2303esac
2304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305printf "%s\n" "$ac_try_echo"; } >&5
2306  (eval "$ac_compile") 2>conftest.err
2307  ac_status=$?
2308  if test -s conftest.err; then
2309    grep -v '^ *+' conftest.err >conftest.er1
2310    cat conftest.er1 >&5
2311    mv -f conftest.er1 conftest.err
2312  fi
2313  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2314  test $ac_status = 0; } && {
2315	 test -z "$ac_c_werror_flag" ||
2316	 test ! -s conftest.err
2317       } && test -s conftest.$ac_objext
2318then :
2319  ac_retval=0
2320else $as_nop
2321  printf "%s\n" "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324	ac_retval=1
2325fi
2326  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327  as_fn_set_status $ac_retval
2328
2329} # ac_fn_c_try_compile
2330
2331# ac_fn_c_try_cpp LINENO
2332# ----------------------
2333# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2334ac_fn_c_try_cpp ()
2335{
2336  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337  if { { ac_try="$ac_cpp conftest.$ac_ext"
2338case "(($ac_try" in
2339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340  *) ac_try_echo=$ac_try;;
2341esac
2342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343printf "%s\n" "$ac_try_echo"; } >&5
2344  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2345  ac_status=$?
2346  if test -s conftest.err; then
2347    grep -v '^ *+' conftest.err >conftest.er1
2348    cat conftest.er1 >&5
2349    mv -f conftest.er1 conftest.err
2350  fi
2351  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352  test $ac_status = 0; } > conftest.i && {
2353	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2354	 test ! -s conftest.err
2355       }
2356then :
2357  ac_retval=0
2358else $as_nop
2359  printf "%s\n" "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362    ac_retval=1
2363fi
2364  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365  as_fn_set_status $ac_retval
2366
2367} # ac_fn_c_try_cpp
2368
2369# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2370# -------------------------------------------------------
2371# Tests whether HEADER exists and can be compiled using the include files in
2372# INCLUDES, setting the cache variable VAR accordingly.
2373ac_fn_c_check_header_compile ()
2374{
2375  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377printf %s "checking for $2... " >&6; }
2378if eval test \${$3+y}
2379then :
2380  printf %s "(cached) " >&6
2381else $as_nop
2382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383/* end confdefs.h.  */
2384$4
2385#include <$2>
2386_ACEOF
2387if ac_fn_c_try_compile "$LINENO"
2388then :
2389  eval "$3=yes"
2390else $as_nop
2391  eval "$3=no"
2392fi
2393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2394fi
2395eval ac_res=\$$3
2396	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397printf "%s\n" "$ac_res" >&6; }
2398  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399
2400} # ac_fn_c_check_header_compile
2401
2402# ac_fn_c_try_link LINENO
2403# -----------------------
2404# Try to link conftest.$ac_ext, and return whether this succeeded.
2405ac_fn_c_try_link ()
2406{
2407  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2409  if { { ac_try="$ac_link"
2410case "(($ac_try" in
2411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412  *) ac_try_echo=$ac_try;;
2413esac
2414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2415printf "%s\n" "$ac_try_echo"; } >&5
2416  (eval "$ac_link") 2>conftest.err
2417  ac_status=$?
2418  if test -s conftest.err; then
2419    grep -v '^ *+' conftest.err >conftest.er1
2420    cat conftest.er1 >&5
2421    mv -f conftest.er1 conftest.err
2422  fi
2423  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2424  test $ac_status = 0; } && {
2425	 test -z "$ac_c_werror_flag" ||
2426	 test ! -s conftest.err
2427       } && test -s conftest$ac_exeext && {
2428	 test "$cross_compiling" = yes ||
2429	 test -x conftest$ac_exeext
2430       }
2431then :
2432  ac_retval=0
2433else $as_nop
2434  printf "%s\n" "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437	ac_retval=1
2438fi
2439  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2440  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2441  # interfere with the next link command; also delete a directory that is
2442  # left behind by Apple's compiler.  We do this before executing the actions.
2443  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2444  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2445  as_fn_set_status $ac_retval
2446
2447} # ac_fn_c_try_link
2448
2449# ac_fn_c_check_func LINENO FUNC VAR
2450# ----------------------------------
2451# Tests whether FUNC exists, setting the cache variable VAR accordingly
2452ac_fn_c_check_func ()
2453{
2454  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456printf %s "checking for $2... " >&6; }
2457if eval test \${$3+y}
2458then :
2459  printf %s "(cached) " >&6
2460else $as_nop
2461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462/* end confdefs.h.  */
2463
2464#define $2 innocuous_$2
2465#ifdef __STDC__
2466# include <limits.h>
2467#else
2468# include <assert.h>
2469#endif
2470#undef $2
2471#ifdef __cplusplus
2472extern "C"
2473#endif
2474char $2 ();
2475#if defined __stub_$2 || defined __stub___$2
2476choke me
2477#endif
2478
2479int main (void)
2480{
2481return $2 ();
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486if ac_fn_c_try_link "$LINENO"
2487then :
2488  eval "$3=yes"
2489else $as_nop
2490  eval "$3=no"
2491fi
2492rm -f core conftest.err conftest.$ac_objext conftest.beam \
2493    conftest$ac_exeext conftest.$ac_ext
2494fi
2495eval ac_res=\$$3
2496	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497printf "%s\n" "$ac_res" >&6; }
2498  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499
2500} # ac_fn_c_check_func
2501
2502# ac_fn_c_try_run LINENO
2503# ----------------------
2504# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2505# executables *can* be run.
2506ac_fn_c_try_run ()
2507{
2508  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509  if { { ac_try="$ac_link"
2510case "(($ac_try" in
2511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512  *) ac_try_echo=$ac_try;;
2513esac
2514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515printf "%s\n" "$ac_try_echo"; } >&5
2516  (eval "$ac_link") 2>&5
2517  ac_status=$?
2518  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2520  { { case "(($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_try") 2>&5
2527  ac_status=$?
2528  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529  test $ac_status = 0; }; }
2530then :
2531  ac_retval=0
2532else $as_nop
2533  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2534       printf "%s\n" "$as_me: failed program was:" >&5
2535sed 's/^/| /' conftest.$ac_ext >&5
2536
2537       ac_retval=$ac_status
2538fi
2539  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2540  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541  as_fn_set_status $ac_retval
2542
2543} # ac_fn_c_try_run
2544
2545# ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
2546# -------------------------------------------------------
2547# Tests whether TYPE exists after having included INCLUDES, setting cache
2548# variable VAR accordingly.
2549ac_fn_c_check_type ()
2550{
2551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553printf %s "checking for $2... " >&6; }
2554if eval test \${$3+y}
2555then :
2556  printf %s "(cached) " >&6
2557else $as_nop
2558  eval "$3=no"
2559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560/* end confdefs.h.  */
2561$4
2562int main (void)
2563{
2564if (sizeof ($2))
2565	 return 0;
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570if ac_fn_c_try_compile "$LINENO"
2571then :
2572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573/* end confdefs.h.  */
2574$4
2575int main (void)
2576{
2577if (sizeof (($2)))
2578	    return 0;
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"
2584then :
2585
2586else $as_nop
2587  eval "$3=yes"
2588fi
2589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2590fi
2591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2592fi
2593eval ac_res=\$$3
2594	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595printf "%s\n" "$ac_res" >&6; }
2596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597
2598} # ac_fn_c_check_type
2599
2600# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2601# ------------------------------------------------------------------
2602# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2603# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2604ac_fn_check_decl ()
2605{
2606  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607  as_decl_name=`echo $2|sed 's/ *(.*//'`
2608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2609printf %s "checking whether $as_decl_name is declared... " >&6; }
2610if eval test \${$3+y}
2611then :
2612  printf %s "(cached) " >&6
2613else $as_nop
2614  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2615  eval ac_save_FLAGS=\$$6
2616  as_fn_append $6 " $5"
2617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618/* end confdefs.h.  */
2619$4
2620int main (void)
2621{
2622#ifndef $as_decl_name
2623#ifdef __cplusplus
2624  (void) $as_decl_use;
2625#else
2626  (void) $as_decl_name;
2627#endif
2628#endif
2629
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634if ac_fn_c_try_compile "$LINENO"
2635then :
2636  eval "$3=yes"
2637else $as_nop
2638  eval "$3=no"
2639fi
2640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2641  eval $6=\$ac_save_FLAGS
2642
2643fi
2644eval ac_res=\$$3
2645	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646printf "%s\n" "$ac_res" >&6; }
2647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2648
2649} # ac_fn_check_decl
2650
2651# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2652# ----------------------------------------------------
2653# Tries to find if the field MEMBER exists in type AGGR, after including
2654# INCLUDES, setting cache variable VAR accordingly.
2655ac_fn_c_check_member ()
2656{
2657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2659printf %s "checking for $2.$3... " >&6; }
2660if eval test \${$4+y}
2661then :
2662  printf %s "(cached) " >&6
2663else $as_nop
2664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h.  */
2666$5
2667int main (void)
2668{
2669static $2 ac_aggr;
2670if (ac_aggr.$3)
2671return 0;
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676if ac_fn_c_try_compile "$LINENO"
2677then :
2678  eval "$4=yes"
2679else $as_nop
2680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h.  */
2682$5
2683int main (void)
2684{
2685static $2 ac_aggr;
2686if (sizeof ac_aggr.$3)
2687return 0;
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692if ac_fn_c_try_compile "$LINENO"
2693then :
2694  eval "$4=yes"
2695else $as_nop
2696  eval "$4=no"
2697fi
2698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2699fi
2700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2701fi
2702eval ac_res=\$$4
2703	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2704printf "%s\n" "$ac_res" >&6; }
2705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2706
2707} # ac_fn_c_check_member
2708ac_configure_args_raw=
2709for ac_arg
2710do
2711  case $ac_arg in
2712  *\'*)
2713    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2714  esac
2715  as_fn_append ac_configure_args_raw " '$ac_arg'"
2716done
2717
2718case $ac_configure_args_raw in
2719  *$as_nl*)
2720    ac_safe_unquote= ;;
2721  *)
2722    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2723    ac_unsafe_a="$ac_unsafe_z#~"
2724    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2725    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2726esac
2727
2728cat >config.log <<_ACEOF
2729This file contains any messages produced by compilers while
2730running configure, to aid debugging if configure makes a mistake.
2731
2732It was created by curl $as_me -, which was
2733generated by GNU Autoconf 2.71.  Invocation command line was
2734
2735  $ $0$ac_configure_args_raw
2736
2737_ACEOF
2738exec 5>>config.log
2739{
2740cat <<_ASUNAME
2741## --------- ##
2742## Platform. ##
2743## --------- ##
2744
2745hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2746uname -m = `(uname -m) 2>/dev/null || echo unknown`
2747uname -r = `(uname -r) 2>/dev/null || echo unknown`
2748uname -s = `(uname -s) 2>/dev/null || echo unknown`
2749uname -v = `(uname -v) 2>/dev/null || echo unknown`
2750
2751/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2752/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2753
2754/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2755/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2756/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2757/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2758/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2759/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2760/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2761
2762_ASUNAME
2763
2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767  IFS=$as_save_IFS
2768  case $as_dir in #(((
2769    '') as_dir=./ ;;
2770    */) ;;
2771    *) as_dir=$as_dir/ ;;
2772  esac
2773    printf "%s\n" "PATH: $as_dir"
2774  done
2775IFS=$as_save_IFS
2776
2777} >&5
2778
2779cat >&5 <<_ACEOF
2780
2781
2782## ----------- ##
2783## Core tests. ##
2784## ----------- ##
2785
2786_ACEOF
2787
2788
2789# Keep a trace of the command line.
2790# Strip out --no-create and --no-recursion so they do not pile up.
2791# Strip out --silent because we don't want to record it for future runs.
2792# Also quote any args containing shell meta-characters.
2793# Make two passes to allow for proper duplicate-argument suppression.
2794ac_configure_args=
2795ac_configure_args0=
2796ac_configure_args1=
2797ac_must_keep_next=false
2798for ac_pass in 1 2
2799do
2800  for ac_arg
2801  do
2802    case $ac_arg in
2803    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2804    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2805    | -silent | --silent | --silen | --sile | --sil)
2806      continue ;;
2807    *\'*)
2808      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2809    esac
2810    case $ac_pass in
2811    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2812    2)
2813      as_fn_append ac_configure_args1 " '$ac_arg'"
2814      if test $ac_must_keep_next = true; then
2815	ac_must_keep_next=false # Got value, back to normal.
2816      else
2817	case $ac_arg in
2818	  *=* | --config-cache | -C | -disable-* | --disable-* \
2819	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2820	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2821	  | -with-* | --with-* | -without-* | --without-* | --x)
2822	    case "$ac_configure_args0 " in
2823	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2824	    esac
2825	    ;;
2826	  -* ) ac_must_keep_next=true ;;
2827	esac
2828      fi
2829      as_fn_append ac_configure_args " '$ac_arg'"
2830      ;;
2831    esac
2832  done
2833done
2834{ ac_configure_args0=; unset ac_configure_args0;}
2835{ ac_configure_args1=; unset ac_configure_args1;}
2836
2837# When interrupted or exit'd, cleanup temporary files, and complete
2838# config.log.  We remove comments because anyway the quotes in there
2839# would cause problems or look ugly.
2840# WARNING: Use '\'' to represent an apostrophe within the trap.
2841# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2842trap 'exit_status=$?
2843  # Sanitize IFS.
2844  IFS=" ""	$as_nl"
2845  # Save into config.log some information that might help in debugging.
2846  {
2847    echo
2848
2849    printf "%s\n" "## ---------------- ##
2850## Cache variables. ##
2851## ---------------- ##"
2852    echo
2853    # The following way of writing the cache mishandles newlines in values,
2854(
2855  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2856    eval ac_val=\$$ac_var
2857    case $ac_val in #(
2858    *${as_nl}*)
2859      case $ac_var in #(
2860      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2861printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2862      esac
2863      case $ac_var in #(
2864      _ | IFS | as_nl) ;; #(
2865      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2866      *) { eval $ac_var=; unset $ac_var;} ;;
2867      esac ;;
2868    esac
2869  done
2870  (set) 2>&1 |
2871    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2872    *${as_nl}ac_space=\ *)
2873      sed -n \
2874	"s/'\''/'\''\\\\'\'''\''/g;
2875	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2876      ;; #(
2877    *)
2878      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2879      ;;
2880    esac |
2881    sort
2882)
2883    echo
2884
2885    printf "%s\n" "## ----------------- ##
2886## Output variables. ##
2887## ----------------- ##"
2888    echo
2889    for ac_var in $ac_subst_vars
2890    do
2891      eval ac_val=\$$ac_var
2892      case $ac_val in
2893      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2894      esac
2895      printf "%s\n" "$ac_var='\''$ac_val'\''"
2896    done | sort
2897    echo
2898
2899    if test -n "$ac_subst_files"; then
2900      printf "%s\n" "## ------------------- ##
2901## File substitutions. ##
2902## ------------------- ##"
2903      echo
2904      for ac_var in $ac_subst_files
2905      do
2906	eval ac_val=\$$ac_var
2907	case $ac_val in
2908	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2909	esac
2910	printf "%s\n" "$ac_var='\''$ac_val'\''"
2911      done | sort
2912      echo
2913    fi
2914
2915    if test -s confdefs.h; then
2916      printf "%s\n" "## ----------- ##
2917## confdefs.h. ##
2918## ----------- ##"
2919      echo
2920      cat confdefs.h
2921      echo
2922    fi
2923    test "$ac_signal" != 0 &&
2924      printf "%s\n" "$as_me: caught signal $ac_signal"
2925    printf "%s\n" "$as_me: exit $exit_status"
2926  } >&5
2927  rm -f core *.core core.conftest.* &&
2928    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2929    exit $exit_status
2930' 0
2931for ac_signal in 1 2 13 15; do
2932  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2933done
2934ac_signal=0
2935
2936# confdefs.h avoids OS command line length limits that DEFS can exceed.
2937rm -f -r conftest* confdefs.h
2938
2939printf "%s\n" "/* confdefs.h */" > confdefs.h
2940
2941# Predefined preprocessor variables.
2942
2943printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2944
2945printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2946
2947printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2948
2949printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2950
2951printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2952
2953printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2954
2955
2956# Let the site file select an alternate cache file if it wants to.
2957# Prefer an explicitly selected file to automatically selected ones.
2958if test -n "$CONFIG_SITE"; then
2959  ac_site_files="$CONFIG_SITE"
2960elif test "x$prefix" != xNONE; then
2961  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2962else
2963  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2964fi
2965
2966for ac_site_file in $ac_site_files
2967do
2968  case $ac_site_file in #(
2969  */*) :
2970     ;; #(
2971  *) :
2972    ac_site_file=./$ac_site_file ;;
2973esac
2974  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2975    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2976printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2977    sed 's/^/| /' "$ac_site_file" >&5
2978    . "$ac_site_file" \
2979      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2981as_fn_error $? "failed to load site script $ac_site_file
2982See \`config.log' for more details" "$LINENO" 5; }
2983  fi
2984done
2985
2986if test -r "$cache_file"; then
2987  # Some versions of bash will fail to source /dev/null (special files
2988  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2989  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2990    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2991printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2992    case $cache_file in
2993      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2994      *)                      . "./$cache_file";;
2995    esac
2996  fi
2997else
2998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2999printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3000  >$cache_file
3001fi
3002
3003# Test code for whether the C compiler supports C89 (global declarations)
3004ac_c_conftest_c89_globals='
3005/* Does the compiler advertise C89 conformance?
3006   Do not test the value of __STDC__, because some compilers set it to 0
3007   while being otherwise adequately conformant. */
3008#if !defined __STDC__
3009# error "Compiler does not advertise C89 conformance"
3010#endif
3011
3012#include <stddef.h>
3013#include <stdarg.h>
3014struct stat;
3015/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3016struct buf { int x; };
3017struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3018static char *e (p, i)
3019     char **p;
3020     int i;
3021{
3022  return p[i];
3023}
3024static char *f (char * (*g) (char **, int), char **p, ...)
3025{
3026  char *s;
3027  va_list v;
3028  va_start (v,p);
3029  s = g (p, va_arg (v,int));
3030  va_end (v);
3031  return s;
3032}
3033
3034/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3035   function prototypes and stuff, but not \xHH hex character constants.
3036   These do not provoke an error unfortunately, instead are silently treated
3037   as an "x".  The following induces an error, until -std is added to get
3038   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3039   array size at least.  It is necessary to write \x00 == 0 to get something
3040   that is true only with -std.  */
3041int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3042
3043/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3044   inside strings and character constants.  */
3045#define FOO(x) '\''x'\''
3046int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3047
3048int test (int i, double x);
3049struct s1 {int (*f) (int a);};
3050struct s2 {int (*f) (double a);};
3051int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3052               int, int);'
3053
3054# Test code for whether the C compiler supports C89 (body of main).
3055ac_c_conftest_c89_main='
3056ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3057'
3058
3059# Test code for whether the C compiler supports C99 (global declarations)
3060ac_c_conftest_c99_globals='
3061// Does the compiler advertise C99 conformance?
3062#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3063# error "Compiler does not advertise C99 conformance"
3064#endif
3065
3066#include <stdbool.h>
3067extern int puts (const char *);
3068extern int printf (const char *, ...);
3069extern int dprintf (int, const char *, ...);
3070extern void *malloc (size_t);
3071
3072// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3073// dprintf is used instead of fprintf to avoid needing to declare
3074// FILE and stderr.
3075#define debug(...) dprintf (2, __VA_ARGS__)
3076#define showlist(...) puts (#__VA_ARGS__)
3077#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3078static void
3079test_varargs_macros (void)
3080{
3081  int x = 1234;
3082  int y = 5678;
3083  debug ("Flag");
3084  debug ("X = %d\n", x);
3085  showlist (The first, second, and third items.);
3086  report (x>y, "x is %d but y is %d", x, y);
3087}
3088
3089// Check long long types.
3090#define BIG64 18446744073709551615ull
3091#define BIG32 4294967295ul
3092#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3093#if !BIG_OK
3094  #error "your preprocessor is broken"
3095#endif
3096#if BIG_OK
3097#else
3098  #error "your preprocessor is broken"
3099#endif
3100static long long int bignum = -9223372036854775807LL;
3101static unsigned long long int ubignum = BIG64;
3102
3103struct incomplete_array
3104{
3105  int datasize;
3106  double data[];
3107};
3108
3109struct named_init {
3110  int number;
3111  const wchar_t *name;
3112  double average;
3113};
3114
3115typedef const char *ccp;
3116
3117static inline int
3118test_restrict (ccp restrict text)
3119{
3120  // See if C++-style comments work.
3121  // Iterate through items via the restricted pointer.
3122  // Also check for declarations in for loops.
3123  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3124    continue;
3125  return 0;
3126}
3127
3128// Check varargs and va_copy.
3129static bool
3130test_varargs (const char *format, ...)
3131{
3132  va_list args;
3133  va_start (args, format);
3134  va_list args_copy;
3135  va_copy (args_copy, args);
3136
3137  const char *str = "";
3138  int number = 0;
3139  float fnumber = 0;
3140
3141  while (*format)
3142    {
3143      switch (*format++)
3144	{
3145	case '\''s'\'': // string
3146	  str = va_arg (args_copy, const char *);
3147	  break;
3148	case '\''d'\'': // int
3149	  number = va_arg (args_copy, int);
3150	  break;
3151	case '\''f'\'': // float
3152	  fnumber = va_arg (args_copy, double);
3153	  break;
3154	default:
3155	  break;
3156	}
3157    }
3158  va_end (args_copy);
3159  va_end (args);
3160
3161  return *str && number && fnumber;
3162}
3163'
3164
3165# Test code for whether the C compiler supports C99 (body of main).
3166ac_c_conftest_c99_main='
3167  // Check bool.
3168  _Bool success = false;
3169  success |= (argc != 0);
3170
3171  // Check restrict.
3172  if (test_restrict ("String literal") == 0)
3173    success = true;
3174  char *restrict newvar = "Another string";
3175
3176  // Check varargs.
3177  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3178  test_varargs_macros ();
3179
3180  // Check flexible array members.
3181  struct incomplete_array *ia =
3182    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3183  ia->datasize = 10;
3184  for (int i = 0; i < ia->datasize; ++i)
3185    ia->data[i] = i * 1.234;
3186
3187  // Check named initializers.
3188  struct named_init ni = {
3189    .number = 34,
3190    .name = L"Test wide string",
3191    .average = 543.34343,
3192  };
3193
3194  ni.number = 58;
3195
3196  int dynamic_array[ni.number];
3197  dynamic_array[0] = argv[0][0];
3198  dynamic_array[ni.number - 1] = 543;
3199
3200  // work around unused variable warnings
3201  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3202	 || dynamic_array[ni.number - 1] != 543);
3203'
3204
3205# Test code for whether the C compiler supports C11 (global declarations)
3206ac_c_conftest_c11_globals='
3207// Does the compiler advertise C11 conformance?
3208#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3209# error "Compiler does not advertise C11 conformance"
3210#endif
3211
3212// Check _Alignas.
3213char _Alignas (double) aligned_as_double;
3214char _Alignas (0) no_special_alignment;
3215extern char aligned_as_int;
3216char _Alignas (0) _Alignas (int) aligned_as_int;
3217
3218// Check _Alignof.
3219enum
3220{
3221  int_alignment = _Alignof (int),
3222  int_array_alignment = _Alignof (int[100]),
3223  char_alignment = _Alignof (char)
3224};
3225_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3226
3227// Check _Noreturn.
3228int _Noreturn does_not_return (void) { for (;;) continue; }
3229
3230// Check _Static_assert.
3231struct test_static_assert
3232{
3233  int x;
3234  _Static_assert (sizeof (int) <= sizeof (long int),
3235                  "_Static_assert does not work in struct");
3236  long int y;
3237};
3238
3239// Check UTF-8 literals.
3240#define u8 syntax error!
3241char const utf8_literal[] = u8"happens to be ASCII" "another string";
3242
3243// Check duplicate typedefs.
3244typedef long *long_ptr;
3245typedef long int *long_ptr;
3246typedef long_ptr long_ptr;
3247
3248// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3249struct anonymous
3250{
3251  union {
3252    struct { int i; int j; };
3253    struct { int k; long int l; } w;
3254  };
3255  int m;
3256} v1;
3257'
3258
3259# Test code for whether the C compiler supports C11 (body of main).
3260ac_c_conftest_c11_main='
3261  _Static_assert ((offsetof (struct anonymous, i)
3262		   == offsetof (struct anonymous, w.k)),
3263		  "Anonymous union alignment botch");
3264  v1.i = 2;
3265  v1.w.k = 5;
3266  ok |= v1.i != 5;
3267'
3268
3269# Test code for whether the C compiler supports C11 (complete).
3270ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3271${ac_c_conftest_c99_globals}
3272${ac_c_conftest_c11_globals}
3273
3274int
3275main (int argc, char **argv)
3276{
3277  int ok = 0;
3278  ${ac_c_conftest_c89_main}
3279  ${ac_c_conftest_c99_main}
3280  ${ac_c_conftest_c11_main}
3281  return ok;
3282}
3283"
3284
3285# Test code for whether the C compiler supports C99 (complete).
3286ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3287${ac_c_conftest_c99_globals}
3288
3289int
3290main (int argc, char **argv)
3291{
3292  int ok = 0;
3293  ${ac_c_conftest_c89_main}
3294  ${ac_c_conftest_c99_main}
3295  return ok;
3296}
3297"
3298
3299# Test code for whether the C compiler supports C89 (complete).
3300ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3301
3302int
3303main (int argc, char **argv)
3304{
3305  int ok = 0;
3306  ${ac_c_conftest_c89_main}
3307  return ok;
3308}
3309"
3310
3311as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3312as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3313as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3314as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3315as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3316as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3317as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3318as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3319as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3320
3321# Auxiliary files required by this configure script.
3322ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3323
3324# Locations in which to look for auxiliary files.
3325ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3326
3327# Search for a directory containing all of the required auxiliary files,
3328# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3329# If we don't find one directory that contains all the files we need,
3330# we report the set of missing files from the *first* directory in
3331# $ac_aux_dir_candidates and give up.
3332ac_missing_aux_files=""
3333ac_first_candidate=:
3334printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336as_found=false
3337for as_dir in $ac_aux_dir_candidates
3338do
3339  IFS=$as_save_IFS
3340  case $as_dir in #(((
3341    '') as_dir=./ ;;
3342    */) ;;
3343    *) as_dir=$as_dir/ ;;
3344  esac
3345  as_found=:
3346
3347  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3348  ac_aux_dir_found=yes
3349  ac_install_sh=
3350  for ac_aux in $ac_aux_files
3351  do
3352    # As a special case, if "install-sh" is required, that requirement
3353    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3354    # and $ac_install_sh is set appropriately for whichever one is found.
3355    if test x"$ac_aux" = x"install-sh"
3356    then
3357      if test -f "${as_dir}install-sh"; then
3358        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3359        ac_install_sh="${as_dir}install-sh -c"
3360      elif test -f "${as_dir}install.sh"; then
3361        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3362        ac_install_sh="${as_dir}install.sh -c"
3363      elif test -f "${as_dir}shtool"; then
3364        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3365        ac_install_sh="${as_dir}shtool install -c"
3366      else
3367        ac_aux_dir_found=no
3368        if $ac_first_candidate; then
3369          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3370        else
3371          break
3372        fi
3373      fi
3374    else
3375      if test -f "${as_dir}${ac_aux}"; then
3376        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3377      else
3378        ac_aux_dir_found=no
3379        if $ac_first_candidate; then
3380          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3381        else
3382          break
3383        fi
3384      fi
3385    fi
3386  done
3387  if test "$ac_aux_dir_found" = yes; then
3388    ac_aux_dir="$as_dir"
3389    break
3390  fi
3391  ac_first_candidate=false
3392
3393  as_found=false
3394done
3395IFS=$as_save_IFS
3396if $as_found
3397then :
3398
3399else $as_nop
3400  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3401fi
3402
3403
3404# These three variables are undocumented and unsupported,
3405# and are intended to be withdrawn in a future Autoconf release.
3406# They can cause serious problems if a builder's source tree is in a directory
3407# whose full name contains unusual characters.
3408if test -f "${ac_aux_dir}config.guess"; then
3409  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3410fi
3411if test -f "${ac_aux_dir}config.sub"; then
3412  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3413fi
3414if test -f "$ac_aux_dir/configure"; then
3415  ac_configure="$SHELL ${ac_aux_dir}configure"
3416fi
3417
3418# Check that the precious variables saved in the cache have kept the same
3419# value.
3420ac_cache_corrupted=false
3421for ac_var in $ac_precious_vars; do
3422  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3423  eval ac_new_set=\$ac_env_${ac_var}_set
3424  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3425  eval ac_new_val=\$ac_env_${ac_var}_value
3426  case $ac_old_set,$ac_new_set in
3427    set,)
3428      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3429printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3430      ac_cache_corrupted=: ;;
3431    ,set)
3432      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3433printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3434      ac_cache_corrupted=: ;;
3435    ,);;
3436    *)
3437      if test "x$ac_old_val" != "x$ac_new_val"; then
3438	# differences in whitespace do not lead to failure.
3439	ac_old_val_w=`echo x $ac_old_val`
3440	ac_new_val_w=`echo x $ac_new_val`
3441	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3442	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3443printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3444	  ac_cache_corrupted=:
3445	else
3446	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3447printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3448	  eval $ac_var=\$ac_old_val
3449	fi
3450	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3451printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3453printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3454      fi;;
3455  esac
3456  # Pass precious variables to config.status.
3457  if test "$ac_new_set" = set; then
3458    case $ac_new_val in
3459    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3460    *) ac_arg=$ac_var=$ac_new_val ;;
3461    esac
3462    case " $ac_configure_args " in
3463      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3464      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3465    esac
3466  fi
3467done
3468if $ac_cache_corrupted; then
3469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3472printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3473  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3474	    and start over" "$LINENO" 5
3475fi
3476## -------------------- ##
3477## Main body of script. ##
3478## -------------------- ##
3479
3480ac_ext=c
3481ac_cpp='$CPP $CPPFLAGS'
3482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485
3486
3487
3488
3489
3490
3491
3492# using curl-override.m4
3493
3494
3495
3496
3497
3498ac_config_headers="$ac_config_headers lib/curl_config.h"
3499
3500
3501
3502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3503printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3504    # Check whether --enable-maintainer-mode was given.
3505if test ${enable_maintainer_mode+y}
3506then :
3507  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3508else $as_nop
3509  USE_MAINTAINER_MODE=no
3510fi
3511
3512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3513printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3514   if test $USE_MAINTAINER_MODE = yes; then
3515  MAINTAINER_MODE_TRUE=
3516  MAINTAINER_MODE_FALSE='#'
3517else
3518  MAINTAINER_MODE_TRUE='#'
3519  MAINTAINER_MODE_FALSE=
3520fi
3521
3522  MAINT=$MAINTAINER_MODE_TRUE
3523
3524
3525# Check whether --enable-silent-rules was given.
3526if test ${enable_silent_rules+y}
3527then :
3528  enableval=$enable_silent_rules;
3529fi
3530
3531case $enable_silent_rules in # (((
3532  yes) AM_DEFAULT_VERBOSITY=0;;
3533   no) AM_DEFAULT_VERBOSITY=1;;
3534    *) AM_DEFAULT_VERBOSITY=0;;
3535esac
3536am_make=${MAKE-make}
3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3538printf %s "checking whether $am_make supports nested variables... " >&6; }
3539if test ${am_cv_make_support_nested_variables+y}
3540then :
3541  printf %s "(cached) " >&6
3542else $as_nop
3543  if printf "%s\n" 'TRUE=$(BAR$(V))
3544BAR0=false
3545BAR1=true
3546V=1
3547am__doit:
3548	@$(TRUE)
3549.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3550  am_cv_make_support_nested_variables=yes
3551else
3552  am_cv_make_support_nested_variables=no
3553fi
3554fi
3555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3556printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3557if test $am_cv_make_support_nested_variables = yes; then
3558    AM_V='$(V)'
3559  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3560else
3561  AM_V=$AM_DEFAULT_VERBOSITY
3562  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3563fi
3564AM_BACKSLASH='\'
3565
3566
3567
3568        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3569printf %s "checking whether to enable debug build options... " >&6; }
3570  OPT_DEBUG_BUILD="default"
3571  # Check whether --enable-debug was given.
3572if test ${enable_debug+y}
3573then :
3574  enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3575fi
3576
3577  case "$OPT_DEBUG_BUILD" in
3578    no)
3579            want_debug="no"
3580      ;;
3581    default)
3582            want_debug="no"
3583      ;;
3584    *)
3585            want_debug="yes"
3586
3587printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3588
3589      ;;
3590  esac
3591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3592printf "%s\n" "$want_debug" >&6; }
3593
3594
3595      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3596printf %s "checking whether to enable compiler optimizer... " >&6; }
3597  OPT_COMPILER_OPTIMIZE="default"
3598  # Check whether --enable-optimize was given.
3599if test ${enable_optimize+y}
3600then :
3601  enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3602fi
3603
3604  case "$OPT_COMPILER_OPTIMIZE" in
3605    no)
3606                              want_optimize="no"
3607      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608printf "%s\n" "no" >&6; }
3609      ;;
3610    default)
3611                                                                        if test "$want_debug" = "yes"; then
3612        want_optimize="assume_no"
3613        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3614printf "%s\n" "(assumed) no" >&6; }
3615      else
3616        want_optimize="assume_yes"
3617        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3618printf "%s\n" "(assumed) yes" >&6; }
3619      fi
3620      ;;
3621    *)
3622                              want_optimize="yes"
3623      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3624printf "%s\n" "yes" >&6; }
3625      ;;
3626  esac
3627
3628
3629        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3630printf %s "checking whether to enable strict compiler warnings... " >&6; }
3631  OPT_COMPILER_WARNINGS="default"
3632  # Check whether --enable-warnings was given.
3633if test ${enable_warnings+y}
3634then :
3635  enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3636fi
3637
3638  case "$OPT_COMPILER_WARNINGS" in
3639    no)
3640            want_warnings="no"
3641      ;;
3642    default)
3643                  want_warnings="$want_debug"
3644      ;;
3645    *)
3646            want_warnings="yes"
3647      ;;
3648  esac
3649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3650printf "%s\n" "$want_warnings" >&6; }
3651
3652
3653    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3654printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3655  OPT_COMPILER_WERROR="default"
3656  # Check whether --enable-werror was given.
3657if test ${enable_werror+y}
3658then :
3659  enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3660fi
3661
3662  case "$OPT_COMPILER_WERROR" in
3663    no)
3664            want_werror="no"
3665      ;;
3666    default)
3667            want_werror="no"
3668      ;;
3669    *)
3670            want_werror="yes"
3671      ;;
3672  esac
3673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3674printf "%s\n" "$want_werror" >&6; }
3675
3676
3677    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3678printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3679  OPT_CURLDEBUG_BUILD="default"
3680  # Check whether --enable-curldebug was given.
3681if test ${enable_curldebug+y}
3682then :
3683  enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3684fi
3685
3686  case "$OPT_CURLDEBUG_BUILD" in
3687    no)
3688            want_curldebug="no"
3689      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690printf "%s\n" "no" >&6; }
3691      ;;
3692    default)
3693                                          if test "$want_debug" = "yes"; then
3694        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3695printf "%s\n" "(assumed) yes" >&6; }
3696
3697printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3698
3699      else
3700        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701printf "%s\n" "no" >&6; }
3702      fi
3703      want_curldebug_assumed="yes"
3704      want_curldebug="$want_debug"
3705      ;;
3706    *)
3707                                                      want_curldebug="yes"
3708
3709printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3710
3711      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712printf "%s\n" "yes" >&6; }
3713      ;;
3714  esac
3715
3716
3717    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3718printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3719  OPT_SYMBOL_HIDING="default"
3720  # Check whether --enable-symbol-hiding was given.
3721if test ${enable_symbol_hiding+y}
3722then :
3723  enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3724fi
3725
3726  case "$OPT_SYMBOL_HIDING" in
3727    no)
3728                              want_symbol_hiding="no"
3729      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730printf "%s\n" "no" >&6; }
3731      ;;
3732    default)
3733                  want_symbol_hiding="yes"
3734      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3735printf "%s\n" "yes" >&6; }
3736      ;;
3737    *)
3738                        want_symbol_hiding="yes"
3739      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740printf "%s\n" "yes" >&6; }
3741      ;;
3742  esac
3743
3744
3745    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3746printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3747  OPT_ARES="default"
3748  # Check whether --enable-ares was given.
3749if test ${enable_ares+y}
3750then :
3751  enableval=$enable_ares; OPT_ARES=$enableval
3752fi
3753
3754  case "$OPT_ARES" in
3755    no)
3756            want_ares="no"
3757      ;;
3758    default)
3759            want_ares="no"
3760      ;;
3761    *)
3762            want_ares="yes"
3763      if test -n "$enableval" && test "$enableval" != "yes"; then
3764        want_ares_path="$enableval"
3765      fi
3766      ;;
3767  esac
3768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3769printf "%s\n" "$want_ares" >&6; }
3770
3771
3772    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3773printf %s "checking whether to disable dependency on -lrt... " >&6; }
3774  OPT_RT="default"
3775  # Check whether --enable-rt was given.
3776if test ${enable_rt+y}
3777then :
3778  enableval=$enable_rt; OPT_RT=$enableval
3779fi
3780
3781  case "$OPT_RT" in
3782    no)
3783            dontwant_rt="yes"
3784      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3785printf "%s\n" "yes" >&6; }
3786      ;;
3787    default)
3788            dontwant_rt="no"
3789      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3790printf "%s\n" "(assumed no)" >&6; }
3791      ;;
3792    *)
3793            dontwant_rt="no"
3794      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795printf "%s\n" "no" >&6; }
3796      ;;
3797  esac
3798
3799
3800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3801printf %s "checking whether to enable ECH support... " >&6; }
3802  OPT_ECH="default"
3803  # Check whether --enable-ech was given.
3804if test ${enable_ech+y}
3805then :
3806  enableval=$enable_ech; OPT_ECH=$enableval
3807fi
3808
3809  case "$OPT_ECH" in
3810    no)
3811            want_ech="no"
3812      curl_ech_msg="no      (--enable-ech)"
3813      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814printf "%s\n" "no" >&6; }
3815      ;;
3816    default)
3817            want_ech="no"
3818      curl_ech_msg="no      (--enable-ech)"
3819      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820printf "%s\n" "no" >&6; }
3821      ;;
3822    *)
3823            want_ech="yes"
3824      curl_ech_msg="enabled (--disable-ech)"
3825      experimental="ech"
3826      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827printf "%s\n" "yes" >&6; }
3828      ;;
3829  esac
3830
3831
3832#
3833# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3834#
3835
3836if test -z "$xc_configure_preamble_result"; then
3837  as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3838fi
3839
3840#
3841# Check that 'PATH_SEPARATOR' has already been set.
3842#
3843
3844if test -z "$xc_PATH_SEPARATOR"; then
3845  as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3846fi
3847if test -z "$PATH_SEPARATOR"; then
3848  as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3849fi
3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3851printf %s "checking for path separator... " >&6; }
3852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3853printf "%s\n" "$PATH_SEPARATOR" >&6; }
3854if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3856printf %s "checking for initial path separator... " >&6; }
3857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3858printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3859  as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3860fi
3861
3862
3863#
3864# save the configure arguments
3865#
3866CONFIGURE_OPTIONS="\"$ac_configure_args\""
3867
3868
3869if test -z "$SED"; then
3870    # Extract the first word of "sed", so it can be a program name with args.
3871set dummy sed; ac_word=$2
3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873printf %s "checking for $ac_word... " >&6; }
3874if test ${ac_cv_path_SED+y}
3875then :
3876  printf %s "(cached) " >&6
3877else $as_nop
3878  case $SED in
3879  [\\/]* | ?:[\\/]*)
3880  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3881  ;;
3882  *)
3883  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884as_dummy="$PATH:/usr/bin:/usr/local/bin"
3885for as_dir in $as_dummy
3886do
3887  IFS=$as_save_IFS
3888  case $as_dir in #(((
3889    '') as_dir=./ ;;
3890    */) ;;
3891    *) as_dir=$as_dir/ ;;
3892  esac
3893    for ac_exec_ext in '' $ac_executable_extensions; do
3894  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3895    ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3896    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3897    break 2
3898  fi
3899done
3900  done
3901IFS=$as_save_IFS
3902
3903  test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3904  ;;
3905esac
3906fi
3907SED=$ac_cv_path_SED
3908if test -n "$SED"; then
3909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3910printf "%s\n" "$SED" >&6; }
3911else
3912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913printf "%s\n" "no" >&6; }
3914fi
3915
3916
3917  if test -z "$SED" || test "$SED" = "not_found"; then
3918    as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3919  fi
3920fi
3921
3922
3923if test -z "$GREP"; then
3924    # Extract the first word of "grep", so it can be a program name with args.
3925set dummy grep; ac_word=$2
3926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927printf %s "checking for $ac_word... " >&6; }
3928if test ${ac_cv_path_GREP+y}
3929then :
3930  printf %s "(cached) " >&6
3931else $as_nop
3932  case $GREP in
3933  [\\/]* | ?:[\\/]*)
3934  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3935  ;;
3936  *)
3937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938as_dummy="$PATH:/usr/bin:/usr/local/bin"
3939for as_dir in $as_dummy
3940do
3941  IFS=$as_save_IFS
3942  case $as_dir in #(((
3943    '') as_dir=./ ;;
3944    */) ;;
3945    *) as_dir=$as_dir/ ;;
3946  esac
3947    for ac_exec_ext in '' $ac_executable_extensions; do
3948  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3949    ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3950    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3951    break 2
3952  fi
3953done
3954  done
3955IFS=$as_save_IFS
3956
3957  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3958  ;;
3959esac
3960fi
3961GREP=$ac_cv_path_GREP
3962if test -n "$GREP"; then
3963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3964printf "%s\n" "$GREP" >&6; }
3965else
3966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967printf "%s\n" "no" >&6; }
3968fi
3969
3970
3971  if test -z "$GREP" || test "$GREP" = "not_found"; then
3972    as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3973  fi
3974fi
3975
3976
3977if test -z "$EGREP"; then
3978    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5
3979printf %s "checking that grep -E works... " >&6; }
3980  if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3981    EGREP="$GREP -E"
3982    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3983printf "%s\n" "yes" >&6; }
3984  else
3985    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986printf "%s\n" "no" >&6; }
3987    # Extract the first word of "egrep", so it can be a program name with args.
3988set dummy egrep; ac_word=$2
3989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990printf %s "checking for $ac_word... " >&6; }
3991if test ${ac_cv_path_EGREP+y}
3992then :
3993  printf %s "(cached) " >&6
3994else $as_nop
3995  case $EGREP in
3996  [\\/]* | ?:[\\/]*)
3997  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3998  ;;
3999  *)
4000  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001as_dummy="$PATH:/usr/bin:/usr/local/bin"
4002for as_dir in $as_dummy
4003do
4004  IFS=$as_save_IFS
4005  case $as_dir in #(((
4006    '') as_dir=./ ;;
4007    */) ;;
4008    *) as_dir=$as_dir/ ;;
4009  esac
4010    for ac_exec_ext in '' $ac_executable_extensions; do
4011  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4012    ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
4013    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4014    break 2
4015  fi
4016done
4017  done
4018IFS=$as_save_IFS
4019
4020  test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4021  ;;
4022esac
4023fi
4024EGREP=$ac_cv_path_EGREP
4025if test -n "$EGREP"; then
4026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4027printf "%s\n" "$EGREP" >&6; }
4028else
4029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030printf "%s\n" "no" >&6; }
4031fi
4032
4033
4034  fi
4035fi
4036if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4037  as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5
4038fi
4039
4040
4041if test -z "$AR"; then
4042    if test -n "$ac_tool_prefix"; then
4043  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4044set dummy ${ac_tool_prefix}ar; ac_word=$2
4045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046printf %s "checking for $ac_word... " >&6; }
4047if test ${ac_cv_path_AR+y}
4048then :
4049  printf %s "(cached) " >&6
4050else $as_nop
4051  case $AR in
4052  [\\/]* | ?:[\\/]*)
4053  ac_cv_path_AR="$AR" # Let the user override the test with a path.
4054  ;;
4055  *)
4056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057as_dummy="$PATH:/usr/bin:/usr/local/bin"
4058for as_dir in $as_dummy
4059do
4060  IFS=$as_save_IFS
4061  case $as_dir in #(((
4062    '') as_dir=./ ;;
4063    */) ;;
4064    *) as_dir=$as_dir/ ;;
4065  esac
4066    for ac_exec_ext in '' $ac_executable_extensions; do
4067  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4068    ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4069    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4070    break 2
4071  fi
4072done
4073  done
4074IFS=$as_save_IFS
4075
4076  ;;
4077esac
4078fi
4079AR=$ac_cv_path_AR
4080if test -n "$AR"; then
4081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4082printf "%s\n" "$AR" >&6; }
4083else
4084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085printf "%s\n" "no" >&6; }
4086fi
4087
4088
4089fi
4090if test -z "$ac_cv_path_AR"; then
4091  ac_pt_AR=$AR
4092  # Extract the first word of "ar", so it can be a program name with args.
4093set dummy ar; ac_word=$2
4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095printf %s "checking for $ac_word... " >&6; }
4096if test ${ac_cv_path_ac_pt_AR+y}
4097then :
4098  printf %s "(cached) " >&6
4099else $as_nop
4100  case $ac_pt_AR in
4101  [\\/]* | ?:[\\/]*)
4102  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4103  ;;
4104  *)
4105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106as_dummy="$PATH:/usr/bin:/usr/local/bin"
4107for as_dir in $as_dummy
4108do
4109  IFS=$as_save_IFS
4110  case $as_dir in #(((
4111    '') as_dir=./ ;;
4112    */) ;;
4113    *) as_dir=$as_dir/ ;;
4114  esac
4115    for ac_exec_ext in '' $ac_executable_extensions; do
4116  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4117    ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4118    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4119    break 2
4120  fi
4121done
4122  done
4123IFS=$as_save_IFS
4124
4125  ;;
4126esac
4127fi
4128ac_pt_AR=$ac_cv_path_ac_pt_AR
4129if test -n "$ac_pt_AR"; then
4130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4131printf "%s\n" "$ac_pt_AR" >&6; }
4132else
4133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134printf "%s\n" "no" >&6; }
4135fi
4136
4137  if test "x$ac_pt_AR" = x; then
4138    AR="not_found"
4139  else
4140    case $cross_compiling:$ac_tool_warned in
4141yes:)
4142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4143printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4144ac_tool_warned=yes ;;
4145esac
4146    AR=$ac_pt_AR
4147  fi
4148else
4149  AR="$ac_cv_path_AR"
4150fi
4151
4152  if test -z "$AR" || test "$AR" = "not_found"; then
4153    as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4154  fi
4155fi
4156
4157
4158
4159
4160CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4161
4162  xc_prog_cc_prev_IFS=$IFS
4163  xc_prog_cc_prev_LIBS=$LIBS
4164  xc_prog_cc_prev_CFLAGS=$CFLAGS
4165  xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4166  xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4167
4168
4169
4170  xc_bad_var_libs=no
4171  for xc_word in $LIBS; do
4172    case "$xc_word" in
4173      -l* | --library=*)
4174        :
4175        ;;
4176      *)
4177        xc_bad_var_libs=yes
4178        ;;
4179    esac
4180  done
4181  if test $xc_bad_var_libs = yes; then
4182    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4183printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4184    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4185printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4186  fi
4187
4188
4189  xc_bad_var_ldflags=no
4190  for xc_word in $LDFLAGS; do
4191    case "$xc_word" in
4192      -D*)
4193        xc_bad_var_ldflags=yes
4194        ;;
4195      -U*)
4196        xc_bad_var_ldflags=yes
4197        ;;
4198      -I*)
4199        xc_bad_var_ldflags=yes
4200        ;;
4201      -l* | --library=*)
4202        xc_bad_var_ldflags=yes
4203        ;;
4204    esac
4205  done
4206  if test $xc_bad_var_ldflags = yes; then
4207    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4208printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4209    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4210    for xc_word in $LDFLAGS; do
4211      case "$xc_word" in
4212        -D*)
4213          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4214printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4215          ;;
4216        -U*)
4217          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4218printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4219          ;;
4220        -I*)
4221          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4222printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4223          ;;
4224        -l* | --library=*)
4225          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4226printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4227          ;;
4228      esac
4229    done
4230  fi
4231
4232
4233  xc_bad_var_cppflags=no
4234  for xc_word in $CPPFLAGS; do
4235    case "$xc_word" in
4236      -rpath*)
4237        xc_bad_var_cppflags=yes
4238        ;;
4239      -L* | --library-path=*)
4240        xc_bad_var_cppflags=yes
4241        ;;
4242      -l* | --library=*)
4243        xc_bad_var_cppflags=yes
4244        ;;
4245    esac
4246  done
4247  if test $xc_bad_var_cppflags = yes; then
4248    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4249printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4250    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4251    for xc_word in $CPPFLAGS; do
4252      case "$xc_word" in
4253        -rpath*)
4254          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4255printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4256          ;;
4257        -L* | --library-path=*)
4258          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4259printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4260          ;;
4261        -l* | --library=*)
4262          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4263printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4264          ;;
4265      esac
4266    done
4267  fi
4268
4269
4270  xc_bad_var_cflags=no
4271  for xc_word in $CFLAGS; do
4272    case "$xc_word" in
4273      -D*)
4274        xc_bad_var_cflags=yes
4275        ;;
4276      -U*)
4277        xc_bad_var_cflags=yes
4278        ;;
4279      -I*)
4280        xc_bad_var_cflags=yes
4281        ;;
4282      -rpath*)
4283        xc_bad_var_cflags=yes
4284        ;;
4285      -L* | --library-path=*)
4286        xc_bad_var_cflags=yes
4287        ;;
4288      -l* | --library=*)
4289        xc_bad_var_cflags=yes
4290        ;;
4291    esac
4292  done
4293  if test $xc_bad_var_cflags = yes; then
4294    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4295printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4296    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4297    for xc_word in $CFLAGS; do
4298      case "$xc_word" in
4299        -D*)
4300          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4301printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4302          ;;
4303        -U*)
4304          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4305printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4306          ;;
4307        -I*)
4308          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4309printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4310          ;;
4311        -rpath*)
4312          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4313printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4314          ;;
4315        -L* | --library-path=*)
4316          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4317printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4318          ;;
4319        -l* | --library=*)
4320          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4321printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4322          ;;
4323      esac
4324    done
4325  fi
4326
4327  if test $xc_bad_var_libs = yes ||
4328     test $xc_bad_var_cflags = yes ||
4329     test $xc_bad_var_ldflags = yes ||
4330     test $xc_bad_var_cppflags = yes; then
4331     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4332printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4333  fi
4334
4335
4336
4337  # Find a good install program.  We prefer a C program (faster),
4338# so one script is as good as another.  But avoid the broken or
4339# incompatible versions:
4340# SysV /etc/install, /usr/sbin/install
4341# SunOS /usr/etc/install
4342# IRIX /sbin/install
4343# AIX /bin/install
4344# AmigaOS /C/install, which installs bootblocks on floppy discs
4345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4346# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4348# OS/2's system install, which has a completely different semantic
4349# ./install, which can be erroneously created by make from ./install.sh.
4350# Reject install programs that cannot install multiple files.
4351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4352printf %s "checking for a BSD-compatible install... " >&6; }
4353if test -z "$INSTALL"; then
4354if test ${ac_cv_path_install+y}
4355then :
4356  printf %s "(cached) " >&6
4357else $as_nop
4358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361  IFS=$as_save_IFS
4362  case $as_dir in #(((
4363    '') as_dir=./ ;;
4364    */) ;;
4365    *) as_dir=$as_dir/ ;;
4366  esac
4367    # Account for fact that we put trailing slashes in our PATH walk.
4368case $as_dir in #((
4369  ./ | /[cC]/* | \
4370  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4371  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4372  /usr/ucb/* ) ;;
4373  *)
4374    # OSF1 and SCO ODT 3.0 have their own names for install.
4375    # Don't use installbsd from OSF since it installs stuff as root
4376    # by default.
4377    for ac_prog in ginstall scoinst install; do
4378      for ac_exec_ext in '' $ac_executable_extensions; do
4379	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4380	  if test $ac_prog = install &&
4381	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4382	    # AIX install.  It has an incompatible calling convention.
4383	    :
4384	  elif test $ac_prog = install &&
4385	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4386	    # program-specific install script used by HP pwplus--don't use.
4387	    :
4388	  else
4389	    rm -rf conftest.one conftest.two conftest.dir
4390	    echo one > conftest.one
4391	    echo two > conftest.two
4392	    mkdir conftest.dir
4393	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4394	      test -s conftest.one && test -s conftest.two &&
4395	      test -s conftest.dir/conftest.one &&
4396	      test -s conftest.dir/conftest.two
4397	    then
4398	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4399	      break 3
4400	    fi
4401	  fi
4402	fi
4403      done
4404    done
4405    ;;
4406esac
4407
4408  done
4409IFS=$as_save_IFS
4410
4411rm -rf conftest.one conftest.two conftest.dir
4412
4413fi
4414  if test ${ac_cv_path_install+y}; then
4415    INSTALL=$ac_cv_path_install
4416  else
4417    # As a last resort, use the slow shell script.  Don't cache a
4418    # value for INSTALL within a source directory, because that will
4419    # break other packages using the cache if that directory is
4420    # removed, or if the value is a relative name.
4421    INSTALL=$ac_install_sh
4422  fi
4423fi
4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4425printf "%s\n" "$INSTALL" >&6; }
4426
4427# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4428# It thinks the first close brace ends the variable substitution.
4429test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4430
4431test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4432
4433test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445# Expand $ac_aux_dir to an absolute path.
4446am_aux_dir=`cd "$ac_aux_dir" && pwd`
4447
4448ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453if test -n "$ac_tool_prefix"; then
4454  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4455set dummy ${ac_tool_prefix}gcc; ac_word=$2
4456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457printf %s "checking for $ac_word... " >&6; }
4458if test ${ac_cv_prog_CC+y}
4459then :
4460  printf %s "(cached) " >&6
4461else $as_nop
4462  if test -n "$CC"; then
4463  ac_cv_prog_CC="$CC" # Let the user override the test.
4464else
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468  IFS=$as_save_IFS
4469  case $as_dir in #(((
4470    '') as_dir=./ ;;
4471    */) ;;
4472    *) as_dir=$as_dir/ ;;
4473  esac
4474    for ac_exec_ext in '' $ac_executable_extensions; do
4475  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4476    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4477    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4478    break 2
4479  fi
4480done
4481  done
4482IFS=$as_save_IFS
4483
4484fi
4485fi
4486CC=$ac_cv_prog_CC
4487if test -n "$CC"; then
4488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4489printf "%s\n" "$CC" >&6; }
4490else
4491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492printf "%s\n" "no" >&6; }
4493fi
4494
4495
4496fi
4497if test -z "$ac_cv_prog_CC"; then
4498  ac_ct_CC=$CC
4499  # Extract the first word of "gcc", so it can be a program name with args.
4500set dummy gcc; ac_word=$2
4501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502printf %s "checking for $ac_word... " >&6; }
4503if test ${ac_cv_prog_ac_ct_CC+y}
4504then :
4505  printf %s "(cached) " >&6
4506else $as_nop
4507  if test -n "$ac_ct_CC"; then
4508  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513  IFS=$as_save_IFS
4514  case $as_dir in #(((
4515    '') as_dir=./ ;;
4516    */) ;;
4517    *) as_dir=$as_dir/ ;;
4518  esac
4519    for ac_exec_ext in '' $ac_executable_extensions; do
4520  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4521    ac_cv_prog_ac_ct_CC="gcc"
4522    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4523    break 2
4524  fi
4525done
4526  done
4527IFS=$as_save_IFS
4528
4529fi
4530fi
4531ac_ct_CC=$ac_cv_prog_ac_ct_CC
4532if test -n "$ac_ct_CC"; then
4533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4534printf "%s\n" "$ac_ct_CC" >&6; }
4535else
4536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537printf "%s\n" "no" >&6; }
4538fi
4539
4540  if test "x$ac_ct_CC" = x; then
4541    CC=""
4542  else
4543    case $cross_compiling:$ac_tool_warned in
4544yes:)
4545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547ac_tool_warned=yes ;;
4548esac
4549    CC=$ac_ct_CC
4550  fi
4551else
4552  CC="$ac_cv_prog_CC"
4553fi
4554
4555if test -z "$CC"; then
4556          if test -n "$ac_tool_prefix"; then
4557    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4558set dummy ${ac_tool_prefix}cc; ac_word=$2
4559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560printf %s "checking for $ac_word... " >&6; }
4561if test ${ac_cv_prog_CC+y}
4562then :
4563  printf %s "(cached) " >&6
4564else $as_nop
4565  if test -n "$CC"; then
4566  ac_cv_prog_CC="$CC" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571  IFS=$as_save_IFS
4572  case $as_dir in #(((
4573    '') as_dir=./ ;;
4574    */) ;;
4575    *) as_dir=$as_dir/ ;;
4576  esac
4577    for ac_exec_ext in '' $ac_executable_extensions; do
4578  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4579    ac_cv_prog_CC="${ac_tool_prefix}cc"
4580    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4581    break 2
4582  fi
4583done
4584  done
4585IFS=$as_save_IFS
4586
4587fi
4588fi
4589CC=$ac_cv_prog_CC
4590if test -n "$CC"; then
4591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4592printf "%s\n" "$CC" >&6; }
4593else
4594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595printf "%s\n" "no" >&6; }
4596fi
4597
4598
4599  fi
4600fi
4601if test -z "$CC"; then
4602  # Extract the first word of "cc", so it can be a program name with args.
4603set dummy cc; ac_word=$2
4604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605printf %s "checking for $ac_word... " >&6; }
4606if test ${ac_cv_prog_CC+y}
4607then :
4608  printf %s "(cached) " >&6
4609else $as_nop
4610  if test -n "$CC"; then
4611  ac_cv_prog_CC="$CC" # Let the user override the test.
4612else
4613  ac_prog_rejected=no
4614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617  IFS=$as_save_IFS
4618  case $as_dir in #(((
4619    '') as_dir=./ ;;
4620    */) ;;
4621    *) as_dir=$as_dir/ ;;
4622  esac
4623    for ac_exec_ext in '' $ac_executable_extensions; do
4624  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4625    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4626       ac_prog_rejected=yes
4627       continue
4628     fi
4629    ac_cv_prog_CC="cc"
4630    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4631    break 2
4632  fi
4633done
4634  done
4635IFS=$as_save_IFS
4636
4637if test $ac_prog_rejected = yes; then
4638  # We found a bogon in the path, so make sure we never use it.
4639  set dummy $ac_cv_prog_CC
4640  shift
4641  if test $# != 0; then
4642    # We chose a different compiler from the bogus one.
4643    # However, it has the same basename, so the bogon will be chosen
4644    # first if we set CC to just the basename; use the full file name.
4645    shift
4646    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4647  fi
4648fi
4649fi
4650fi
4651CC=$ac_cv_prog_CC
4652if test -n "$CC"; then
4653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4654printf "%s\n" "$CC" >&6; }
4655else
4656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657printf "%s\n" "no" >&6; }
4658fi
4659
4660
4661fi
4662if test -z "$CC"; then
4663  if test -n "$ac_tool_prefix"; then
4664  for ac_prog in cl.exe
4665  do
4666    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4667set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669printf %s "checking for $ac_word... " >&6; }
4670if test ${ac_cv_prog_CC+y}
4671then :
4672  printf %s "(cached) " >&6
4673else $as_nop
4674  if test -n "$CC"; then
4675  ac_cv_prog_CC="$CC" # Let the user override the test.
4676else
4677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680  IFS=$as_save_IFS
4681  case $as_dir in #(((
4682    '') as_dir=./ ;;
4683    */) ;;
4684    *) as_dir=$as_dir/ ;;
4685  esac
4686    for ac_exec_ext in '' $ac_executable_extensions; do
4687  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4688    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4689    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4690    break 2
4691  fi
4692done
4693  done
4694IFS=$as_save_IFS
4695
4696fi
4697fi
4698CC=$ac_cv_prog_CC
4699if test -n "$CC"; then
4700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701printf "%s\n" "$CC" >&6; }
4702else
4703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704printf "%s\n" "no" >&6; }
4705fi
4706
4707
4708    test -n "$CC" && break
4709  done
4710fi
4711if test -z "$CC"; then
4712  ac_ct_CC=$CC
4713  for ac_prog in cl.exe
4714do
4715  # Extract the first word of "$ac_prog", so it can be a program name with args.
4716set dummy $ac_prog; ac_word=$2
4717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718printf %s "checking for $ac_word... " >&6; }
4719if test ${ac_cv_prog_ac_ct_CC+y}
4720then :
4721  printf %s "(cached) " >&6
4722else $as_nop
4723  if test -n "$ac_ct_CC"; then
4724  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729  IFS=$as_save_IFS
4730  case $as_dir in #(((
4731    '') as_dir=./ ;;
4732    */) ;;
4733    *) as_dir=$as_dir/ ;;
4734  esac
4735    for ac_exec_ext in '' $ac_executable_extensions; do
4736  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4737    ac_cv_prog_ac_ct_CC="$ac_prog"
4738    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4739    break 2
4740  fi
4741done
4742  done
4743IFS=$as_save_IFS
4744
4745fi
4746fi
4747ac_ct_CC=$ac_cv_prog_ac_ct_CC
4748if test -n "$ac_ct_CC"; then
4749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4750printf "%s\n" "$ac_ct_CC" >&6; }
4751else
4752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753printf "%s\n" "no" >&6; }
4754fi
4755
4756
4757  test -n "$ac_ct_CC" && break
4758done
4759
4760  if test "x$ac_ct_CC" = x; then
4761    CC=""
4762  else
4763    case $cross_compiling:$ac_tool_warned in
4764yes:)
4765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767ac_tool_warned=yes ;;
4768esac
4769    CC=$ac_ct_CC
4770  fi
4771fi
4772
4773fi
4774if test -z "$CC"; then
4775  if test -n "$ac_tool_prefix"; then
4776  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4777set dummy ${ac_tool_prefix}clang; ac_word=$2
4778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779printf %s "checking for $ac_word... " >&6; }
4780if test ${ac_cv_prog_CC+y}
4781then :
4782  printf %s "(cached) " >&6
4783else $as_nop
4784  if test -n "$CC"; then
4785  ac_cv_prog_CC="$CC" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  case $as_dir in #(((
4792    '') as_dir=./ ;;
4793    */) ;;
4794    *) as_dir=$as_dir/ ;;
4795  esac
4796    for ac_exec_ext in '' $ac_executable_extensions; do
4797  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4798    ac_cv_prog_CC="${ac_tool_prefix}clang"
4799    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4800    break 2
4801  fi
4802done
4803  done
4804IFS=$as_save_IFS
4805
4806fi
4807fi
4808CC=$ac_cv_prog_CC
4809if test -n "$CC"; then
4810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4811printf "%s\n" "$CC" >&6; }
4812else
4813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814printf "%s\n" "no" >&6; }
4815fi
4816
4817
4818fi
4819if test -z "$ac_cv_prog_CC"; then
4820  ac_ct_CC=$CC
4821  # Extract the first word of "clang", so it can be a program name with args.
4822set dummy clang; ac_word=$2
4823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824printf %s "checking for $ac_word... " >&6; }
4825if test ${ac_cv_prog_ac_ct_CC+y}
4826then :
4827  printf %s "(cached) " >&6
4828else $as_nop
4829  if test -n "$ac_ct_CC"; then
4830  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4831else
4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835  IFS=$as_save_IFS
4836  case $as_dir in #(((
4837    '') as_dir=./ ;;
4838    */) ;;
4839    *) as_dir=$as_dir/ ;;
4840  esac
4841    for ac_exec_ext in '' $ac_executable_extensions; do
4842  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4843    ac_cv_prog_ac_ct_CC="clang"
4844    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4845    break 2
4846  fi
4847done
4848  done
4849IFS=$as_save_IFS
4850
4851fi
4852fi
4853ac_ct_CC=$ac_cv_prog_ac_ct_CC
4854if test -n "$ac_ct_CC"; then
4855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4856printf "%s\n" "$ac_ct_CC" >&6; }
4857else
4858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859printf "%s\n" "no" >&6; }
4860fi
4861
4862  if test "x$ac_ct_CC" = x; then
4863    CC=""
4864  else
4865    case $cross_compiling:$ac_tool_warned in
4866yes:)
4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4868printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4869ac_tool_warned=yes ;;
4870esac
4871    CC=$ac_ct_CC
4872  fi
4873else
4874  CC="$ac_cv_prog_CC"
4875fi
4876
4877fi
4878
4879
4880test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4881printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4882as_fn_error $? "no acceptable C compiler found in \$PATH
4883See \`config.log' for more details" "$LINENO" 5; }
4884
4885# Provide some information about the compiler.
4886printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4887set X $ac_compile
4888ac_compiler=$2
4889for ac_option in --version -v -V -qversion -version; do
4890  { { ac_try="$ac_compiler $ac_option >&5"
4891case "(($ac_try" in
4892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893  *) ac_try_echo=$ac_try;;
4894esac
4895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4896printf "%s\n" "$ac_try_echo"; } >&5
4897  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4898  ac_status=$?
4899  if test -s conftest.err; then
4900    sed '10a\
4901... rest of stderr output deleted ...
4902         10q' conftest.err >conftest.er1
4903    cat conftest.er1 >&5
4904  fi
4905  rm -f conftest.er1 conftest.err
4906  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907  test $ac_status = 0; }
4908done
4909
4910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h.  */
4912
4913int main (void)
4914{
4915
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920ac_clean_files_save=$ac_clean_files
4921ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4922# Try to create an executable without -o first, disregard a.out.
4923# It will help us diagnose broken compilers, and finding out an intuition
4924# of exeext.
4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4926printf %s "checking whether the C compiler works... " >&6; }
4927ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4928
4929# The possible output files:
4930ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4931
4932ac_rmfiles=
4933for ac_file in $ac_files
4934do
4935  case $ac_file in
4936    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4937    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4938  esac
4939done
4940rm -f $ac_rmfiles
4941
4942if { { ac_try="$ac_link_default"
4943case "(($ac_try" in
4944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945  *) ac_try_echo=$ac_try;;
4946esac
4947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4948printf "%s\n" "$ac_try_echo"; } >&5
4949  (eval "$ac_link_default") 2>&5
4950  ac_status=$?
4951  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4952  test $ac_status = 0; }
4953then :
4954  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4955# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4956# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4957# so that the user can short-circuit this test for compilers unknown to
4958# Autoconf.
4959for ac_file in $ac_files ''
4960do
4961  test -f "$ac_file" || continue
4962  case $ac_file in
4963    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4964	;;
4965    [ab].out )
4966	# We found the default executable, but exeext='' is most
4967	# certainly right.
4968	break;;
4969    *.* )
4970	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4971	then :; else
4972	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4973	fi
4974	# We set ac_cv_exeext here because the later test for it is not
4975	# safe: cross compilers may not add the suffix if given an `-o'
4976	# argument, so we may need to know it at that point already.
4977	# Even if this section looks crufty: it has the advantage of
4978	# actually working.
4979	break;;
4980    * )
4981	break;;
4982  esac
4983done
4984test "$ac_cv_exeext" = no && ac_cv_exeext=
4985
4986else $as_nop
4987  ac_file=''
4988fi
4989if test -z "$ac_file"
4990then :
4991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992printf "%s\n" "no" >&6; }
4993printf "%s\n" "$as_me: failed program was:" >&5
4994sed 's/^/| /' conftest.$ac_ext >&5
4995
4996{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4997printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4998as_fn_error 77 "C compiler cannot create executables
4999See \`config.log' for more details" "$LINENO" 5; }
5000else $as_nop
5001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5002printf "%s\n" "yes" >&6; }
5003fi
5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5005printf %s "checking for C compiler default output file name... " >&6; }
5006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5007printf "%s\n" "$ac_file" >&6; }
5008ac_exeext=$ac_cv_exeext
5009
5010rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5011ac_clean_files=$ac_clean_files_save
5012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5013printf %s "checking for suffix of executables... " >&6; }
5014if { { ac_try="$ac_link"
5015case "(($ac_try" in
5016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017  *) ac_try_echo=$ac_try;;
5018esac
5019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5020printf "%s\n" "$ac_try_echo"; } >&5
5021  (eval "$ac_link") 2>&5
5022  ac_status=$?
5023  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5024  test $ac_status = 0; }
5025then :
5026  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5027# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5028# work properly (i.e., refer to `conftest.exe'), while it won't with
5029# `rm'.
5030for ac_file in conftest.exe conftest conftest.*; do
5031  test -f "$ac_file" || continue
5032  case $ac_file in
5033    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5034    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5035	  break;;
5036    * ) break;;
5037  esac
5038done
5039else $as_nop
5040  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5041printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5042as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5043See \`config.log' for more details" "$LINENO" 5; }
5044fi
5045rm -f conftest conftest$ac_cv_exeext
5046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5047printf "%s\n" "$ac_cv_exeext" >&6; }
5048
5049rm -f conftest.$ac_ext
5050EXEEXT=$ac_cv_exeext
5051ac_exeext=$EXEEXT
5052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054#include <stdio.h>
5055int main (void)
5056{
5057FILE *f = fopen ("conftest.out", "w");
5058 return ferror (f) || fclose (f) != 0;
5059
5060 ;
5061 return 0;
5062}
5063_ACEOF
5064ac_clean_files="$ac_clean_files conftest.out"
5065# Check that the compiler produces executables we can run.  If not, either
5066# the compiler is broken, or we cross compile.
5067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5068printf %s "checking whether we are cross compiling... " >&6; }
5069if test "$cross_compiling" != yes; then
5070  { { ac_try="$ac_link"
5071case "(($ac_try" in
5072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073  *) ac_try_echo=$ac_try;;
5074esac
5075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5076printf "%s\n" "$ac_try_echo"; } >&5
5077  (eval "$ac_link") 2>&5
5078  ac_status=$?
5079  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5080  test $ac_status = 0; }
5081  if { ac_try='./conftest$ac_cv_exeext'
5082  { { case "(($ac_try" in
5083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084  *) ac_try_echo=$ac_try;;
5085esac
5086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5087printf "%s\n" "$ac_try_echo"; } >&5
5088  (eval "$ac_try") 2>&5
5089  ac_status=$?
5090  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091  test $ac_status = 0; }; }; then
5092    cross_compiling=no
5093  else
5094    if test "$cross_compiling" = maybe; then
5095	cross_compiling=yes
5096    else
5097	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5098printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5099as_fn_error 77 "cannot run C compiled programs.
5100If you meant to cross compile, use \`--host'.
5101See \`config.log' for more details" "$LINENO" 5; }
5102    fi
5103  fi
5104fi
5105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5106printf "%s\n" "$cross_compiling" >&6; }
5107
5108rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5109ac_clean_files=$ac_clean_files_save
5110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5111printf %s "checking for suffix of object files... " >&6; }
5112if test ${ac_cv_objext+y}
5113then :
5114  printf %s "(cached) " >&6
5115else $as_nop
5116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h.  */
5118
5119int main (void)
5120{
5121
5122 ;
5123 return 0;
5124}
5125_ACEOF
5126rm -f conftest.o conftest.obj
5127if { { ac_try="$ac_compile"
5128case "(($ac_try" in
5129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130  *) ac_try_echo=$ac_try;;
5131esac
5132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5133printf "%s\n" "$ac_try_echo"; } >&5
5134  (eval "$ac_compile") 2>&5
5135  ac_status=$?
5136  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5137  test $ac_status = 0; }
5138then :
5139  for ac_file in conftest.o conftest.obj conftest.*; do
5140  test -f "$ac_file" || continue;
5141  case $ac_file in
5142    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5143    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5144       break;;
5145  esac
5146done
5147else $as_nop
5148  printf "%s\n" "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5152printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5153as_fn_error $? "cannot compute suffix of object files: cannot compile
5154See \`config.log' for more details" "$LINENO" 5; }
5155fi
5156rm -f conftest.$ac_cv_objext conftest.$ac_ext
5157fi
5158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5159printf "%s\n" "$ac_cv_objext" >&6; }
5160OBJEXT=$ac_cv_objext
5161ac_objext=$OBJEXT
5162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5163printf %s "checking whether the compiler supports GNU C... " >&6; }
5164if test ${ac_cv_c_compiler_gnu+y}
5165then :
5166  printf %s "(cached) " >&6
5167else $as_nop
5168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h.  */
5170
5171int main (void)
5172{
5173#ifndef __GNUC__
5174       choke me
5175#endif
5176
5177 ;
5178 return 0;
5179}
5180_ACEOF
5181if ac_fn_c_try_compile "$LINENO"
5182then :
5183  ac_compiler_gnu=yes
5184else $as_nop
5185  ac_compiler_gnu=no
5186fi
5187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5188ac_cv_c_compiler_gnu=$ac_compiler_gnu
5189
5190fi
5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5192printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5193ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194
5195if test $ac_compiler_gnu = yes; then
5196  GCC=yes
5197else
5198  GCC=
5199fi
5200ac_test_CFLAGS=${CFLAGS+y}
5201ac_save_CFLAGS=$CFLAGS
5202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5203printf %s "checking whether $CC accepts -g... " >&6; }
5204if test ${ac_cv_prog_cc_g+y}
5205then :
5206  printf %s "(cached) " >&6
5207else $as_nop
5208  ac_save_c_werror_flag=$ac_c_werror_flag
5209   ac_c_werror_flag=yes
5210   ac_cv_prog_cc_g=no
5211   CFLAGS="-g"
5212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213/* end confdefs.h.  */
5214
5215int main (void)
5216{
5217
5218 ;
5219 return 0;
5220}
5221_ACEOF
5222if ac_fn_c_try_compile "$LINENO"
5223then :
5224  ac_cv_prog_cc_g=yes
5225else $as_nop
5226  CFLAGS=""
5227      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229
5230int main (void)
5231{
5232
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237if ac_fn_c_try_compile "$LINENO"
5238then :
5239
5240else $as_nop
5241  ac_c_werror_flag=$ac_save_c_werror_flag
5242	 CFLAGS="-g"
5243	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h.  */
5245
5246int main (void)
5247{
5248
5249 ;
5250 return 0;
5251}
5252_ACEOF
5253if ac_fn_c_try_compile "$LINENO"
5254then :
5255  ac_cv_prog_cc_g=yes
5256fi
5257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5258fi
5259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5260fi
5261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5262   ac_c_werror_flag=$ac_save_c_werror_flag
5263fi
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5265printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5266if test $ac_test_CFLAGS; then
5267  CFLAGS=$ac_save_CFLAGS
5268elif test $ac_cv_prog_cc_g = yes; then
5269  if test "$GCC" = yes; then
5270    CFLAGS="-g -O2"
5271  else
5272    CFLAGS="-g"
5273  fi
5274else
5275  if test "$GCC" = yes; then
5276    CFLAGS="-O2"
5277  else
5278    CFLAGS=
5279  fi
5280fi
5281ac_prog_cc_stdc=no
5282if test x$ac_prog_cc_stdc = xno
5283then :
5284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5285printf %s "checking for $CC option to enable C11 features... " >&6; }
5286if test ${ac_cv_prog_cc_c11+y}
5287then :
5288  printf %s "(cached) " >&6
5289else $as_nop
5290  ac_cv_prog_cc_c11=no
5291ac_save_CC=$CC
5292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294$ac_c_conftest_c11_program
5295_ACEOF
5296for ac_arg in '' -std=gnu11
5297do
5298  CC="$ac_save_CC $ac_arg"
5299  if ac_fn_c_try_compile "$LINENO"
5300then :
5301  ac_cv_prog_cc_c11=$ac_arg
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.beam
5304  test "x$ac_cv_prog_cc_c11" != "xno" && break
5305done
5306rm -f conftest.$ac_ext
5307CC=$ac_save_CC
5308fi
5309
5310if test "x$ac_cv_prog_cc_c11" = xno
5311then :
5312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5313printf "%s\n" "unsupported" >&6; }
5314else $as_nop
5315  if test "x$ac_cv_prog_cc_c11" = x
5316then :
5317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5318printf "%s\n" "none needed" >&6; }
5319else $as_nop
5320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5321printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5322     CC="$CC $ac_cv_prog_cc_c11"
5323fi
5324  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5325  ac_prog_cc_stdc=c11
5326fi
5327fi
5328if test x$ac_prog_cc_stdc = xno
5329then :
5330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5331printf %s "checking for $CC option to enable C99 features... " >&6; }
5332if test ${ac_cv_prog_cc_c99+y}
5333then :
5334  printf %s "(cached) " >&6
5335else $as_nop
5336  ac_cv_prog_cc_c99=no
5337ac_save_CC=$CC
5338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h.  */
5340$ac_c_conftest_c99_program
5341_ACEOF
5342for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5343do
5344  CC="$ac_save_CC $ac_arg"
5345  if ac_fn_c_try_compile "$LINENO"
5346then :
5347  ac_cv_prog_cc_c99=$ac_arg
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.beam
5350  test "x$ac_cv_prog_cc_c99" != "xno" && break
5351done
5352rm -f conftest.$ac_ext
5353CC=$ac_save_CC
5354fi
5355
5356if test "x$ac_cv_prog_cc_c99" = xno
5357then :
5358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5359printf "%s\n" "unsupported" >&6; }
5360else $as_nop
5361  if test "x$ac_cv_prog_cc_c99" = x
5362then :
5363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5364printf "%s\n" "none needed" >&6; }
5365else $as_nop
5366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5367printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5368     CC="$CC $ac_cv_prog_cc_c99"
5369fi
5370  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5371  ac_prog_cc_stdc=c99
5372fi
5373fi
5374if test x$ac_prog_cc_stdc = xno
5375then :
5376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5377printf %s "checking for $CC option to enable C89 features... " >&6; }
5378if test ${ac_cv_prog_cc_c89+y}
5379then :
5380  printf %s "(cached) " >&6
5381else $as_nop
5382  ac_cv_prog_cc_c89=no
5383ac_save_CC=$CC
5384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h.  */
5386$ac_c_conftest_c89_program
5387_ACEOF
5388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5389do
5390  CC="$ac_save_CC $ac_arg"
5391  if ac_fn_c_try_compile "$LINENO"
5392then :
5393  ac_cv_prog_cc_c89=$ac_arg
5394fi
5395rm -f core conftest.err conftest.$ac_objext conftest.beam
5396  test "x$ac_cv_prog_cc_c89" != "xno" && break
5397done
5398rm -f conftest.$ac_ext
5399CC=$ac_save_CC
5400fi
5401
5402if test "x$ac_cv_prog_cc_c89" = xno
5403then :
5404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5405printf "%s\n" "unsupported" >&6; }
5406else $as_nop
5407  if test "x$ac_cv_prog_cc_c89" = x
5408then :
5409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5410printf "%s\n" "none needed" >&6; }
5411else $as_nop
5412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5413printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5414     CC="$CC $ac_cv_prog_cc_c89"
5415fi
5416  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5417  ac_prog_cc_stdc=c89
5418fi
5419fi
5420
5421ac_ext=c
5422ac_cpp='$CPP $CPPFLAGS'
5423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426
5427
5428  ac_ext=c
5429ac_cpp='$CPP $CPPFLAGS'
5430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5434printf %s "checking whether $CC understands -c and -o together... " >&6; }
5435if test ${am_cv_prog_cc_c_o+y}
5436then :
5437  printf %s "(cached) " >&6
5438else $as_nop
5439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h.  */
5441
5442int main (void)
5443{
5444
5445 ;
5446 return 0;
5447}
5448_ACEOF
5449  # Make sure it works both with $CC and with simple cc.
5450  # Following AC_PROG_CC_C_O, we do the test twice because some
5451  # compilers refuse to overwrite an existing .o file with -o,
5452  # though they will create one.
5453  am_cv_prog_cc_c_o=yes
5454  for am_i in 1 2; do
5455    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5456   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); } \
5460         && test -f conftest2.$ac_objext; then
5461      : OK
5462    else
5463      am_cv_prog_cc_c_o=no
5464      break
5465    fi
5466  done
5467  rm -f core conftest*
5468  unset am_i
5469fi
5470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5471printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5472if test "$am_cv_prog_cc_c_o" != yes; then
5473   # Losing compiler, so override with the script.
5474   # FIXME: It is wrong to rewrite CC.
5475   # But if we don't then we get into trouble of one sort or another.
5476   # A longer-term fix would be to have automake use am__CC in this case,
5477   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5478   CC="$am_aux_dir/compile $CC"
5479fi
5480ac_ext=c
5481ac_cpp='$CPP $CPPFLAGS'
5482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485
5486
5487
5488ac_ext=c
5489ac_cpp='$CPP $CPPFLAGS'
5490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492ac_compiler_gnu=$ac_cv_c_compiler_gnu
5493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5494printf %s "checking how to run the C preprocessor... " >&6; }
5495# On Suns, sometimes $CPP names a directory.
5496if test -n "$CPP" && test -d "$CPP"; then
5497  CPP=
5498fi
5499if test -z "$CPP"; then
5500  if test ${ac_cv_prog_CPP+y}
5501then :
5502  printf %s "(cached) " >&6
5503else $as_nop
5504      # Double quotes because $CC needs to be expanded
5505    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5506    do
5507      ac_preproc_ok=false
5508for ac_c_preproc_warn_flag in '' yes
5509do
5510  # Use a header file that comes with gcc, so configuring glibc
5511  # with a fresh cross-compiler works.
5512  # On the NeXT, cc -E runs the code through the compiler's parser,
5513  # not just through cpp. "Syntax error" is here to catch this case.
5514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516#include <limits.h>
5517		     Syntax error
5518_ACEOF
5519if ac_fn_c_try_cpp "$LINENO"
5520then :
5521
5522else $as_nop
5523  # Broken: fails on valid input.
5524continue
5525fi
5526rm -f conftest.err conftest.i conftest.$ac_ext
5527
5528  # OK, works on sane cases.  Now check whether nonexistent headers
5529  # can be detected and how.
5530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532#include <ac_nonexistent.h>
5533_ACEOF
5534if ac_fn_c_try_cpp "$LINENO"
5535then :
5536  # Broken: success on invalid input.
5537continue
5538else $as_nop
5539  # Passes both tests.
5540ac_preproc_ok=:
5541break
5542fi
5543rm -f conftest.err conftest.i conftest.$ac_ext
5544
5545done
5546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5547rm -f conftest.i conftest.err conftest.$ac_ext
5548if $ac_preproc_ok
5549then :
5550  break
5551fi
5552
5553    done
5554    ac_cv_prog_CPP=$CPP
5555
5556fi
5557  CPP=$ac_cv_prog_CPP
5558else
5559  ac_cv_prog_CPP=$CPP
5560fi
5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5562printf "%s\n" "$CPP" >&6; }
5563ac_preproc_ok=false
5564for ac_c_preproc_warn_flag in '' yes
5565do
5566  # Use a header file that comes with gcc, so configuring glibc
5567  # with a fresh cross-compiler works.
5568  # On the NeXT, cc -E runs the code through the compiler's parser,
5569  # not just through cpp. "Syntax error" is here to catch this case.
5570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571/* end confdefs.h.  */
5572#include <limits.h>
5573		     Syntax error
5574_ACEOF
5575if ac_fn_c_try_cpp "$LINENO"
5576then :
5577
5578else $as_nop
5579  # Broken: fails on valid input.
5580continue
5581fi
5582rm -f conftest.err conftest.i conftest.$ac_ext
5583
5584  # OK, works on sane cases.  Now check whether nonexistent headers
5585  # can be detected and how.
5586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588#include <ac_nonexistent.h>
5589_ACEOF
5590if ac_fn_c_try_cpp "$LINENO"
5591then :
5592  # Broken: success on invalid input.
5593continue
5594else $as_nop
5595  # Passes both tests.
5596ac_preproc_ok=:
5597break
5598fi
5599rm -f conftest.err conftest.i conftest.$ac_ext
5600
5601done
5602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603rm -f conftest.i conftest.err conftest.$ac_ext
5604if $ac_preproc_ok
5605then :
5606
5607else $as_nop
5608  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5609printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5610as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5611See \`config.log' for more details" "$LINENO" 5; }
5612fi
5613
5614ac_ext=c
5615ac_cpp='$CPP $CPPFLAGS'
5616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619
5620
5621  IFS=$xc_prog_cc_prev_IFS
5622  LIBS=$xc_prog_cc_prev_LIBS
5623  CFLAGS=$xc_prog_cc_prev_CFLAGS
5624  LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5625  CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5626
5627
5628
5629
5630
5631
5632ac_header= ac_cache=
5633for ac_item in $ac_header_c_list
5634do
5635  if test $ac_cache; then
5636    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5637    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5638      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5639    fi
5640    ac_header= ac_cache=
5641  elif test $ac_header; then
5642    ac_cache=$ac_item
5643  else
5644    ac_header=$ac_item
5645  fi
5646done
5647
5648
5649
5650
5651
5652
5653
5654
5655if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5656then :
5657
5658printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5659
5660fi
5661
5662         for ac_header in stdatomic.h
5663do :
5664  ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5665if test "x$ac_cv_header_stdatomic_h" = xyes
5666then :
5667  printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5668
5669    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
5670printf %s "checking if _Atomic is available... " >&6; }
5671    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h.  */
5673
5674
5675        $curl_includes_unistd
5676
5677int main (void)
5678{
5679
5680        _Atomic int i = 0;
5681        i = 4;  // Force an atomic-write operation.
5682
5683 ;
5684 return 0;
5685}
5686
5687_ACEOF
5688if ac_fn_c_try_link "$LINENO"
5689then :
5690
5691      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5692printf "%s\n" "yes" >&6; }
5693
5694printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
5695
5696      tst_atomic="yes"
5697
5698else $as_nop
5699
5700      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701printf "%s\n" "no" >&6; }
5702      tst_atomic="no"
5703
5704fi
5705rm -f core conftest.err conftest.$ac_objext conftest.beam \
5706    conftest$ac_exeext conftest.$ac_ext
5707
5708fi
5709
5710done
5711
5712
5713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5714printf %s "checking for a sed that does not truncate output... " >&6; }
5715if test ${ac_cv_path_SED+y}
5716then :
5717  printf %s "(cached) " >&6
5718else $as_nop
5719            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5720     for ac_i in 1 2 3 4 5 6 7; do
5721       ac_script="$ac_script$as_nl$ac_script"
5722     done
5723     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5724     { ac_script=; unset ac_script;}
5725     if test -z "$SED"; then
5726  ac_path_SED_found=false
5727  # Loop through the user's path and test for each of PROGNAME-LIST
5728  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729for as_dir in $PATH
5730do
5731  IFS=$as_save_IFS
5732  case $as_dir in #(((
5733    '') as_dir=./ ;;
5734    */) ;;
5735    *) as_dir=$as_dir/ ;;
5736  esac
5737    for ac_prog in sed gsed
5738   do
5739    for ac_exec_ext in '' $ac_executable_extensions; do
5740      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5741      as_fn_executable_p "$ac_path_SED" || continue
5742# Check for GNU ac_path_SED and select it if it is found.
5743  # Check for GNU $ac_path_SED
5744case `"$ac_path_SED" --version 2>&1` in
5745*GNU*)
5746  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5747*)
5748  ac_count=0
5749  printf %s 0123456789 >"conftest.in"
5750  while :
5751  do
5752    cat "conftest.in" "conftest.in" >"conftest.tmp"
5753    mv "conftest.tmp" "conftest.in"
5754    cp "conftest.in" "conftest.nl"
5755    printf "%s\n" '' >> "conftest.nl"
5756    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5757    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5758    as_fn_arith $ac_count + 1 && ac_count=$as_val
5759    if test $ac_count -gt ${ac_path_SED_max-0}; then
5760      # Best one so far, save it but keep looking for a better one
5761      ac_cv_path_SED="$ac_path_SED"
5762      ac_path_SED_max=$ac_count
5763    fi
5764    # 10*(2^10) chars as input seems more than enough
5765    test $ac_count -gt 10 && break
5766  done
5767  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5768esac
5769
5770      $ac_path_SED_found && break 3
5771    done
5772  done
5773  done
5774IFS=$as_save_IFS
5775  if test -z "$ac_cv_path_SED"; then
5776    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5777  fi
5778else
5779  ac_cv_path_SED=$SED
5780fi
5781
5782fi
5783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5784printf "%s\n" "$ac_cv_path_SED" >&6; }
5785 SED="$ac_cv_path_SED"
5786  rm -f conftest.sed
5787
5788
5789
5790
5791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5792printf %s "checking for code coverage support... " >&6; }
5793  coverage="no"
5794  curl_coverage_msg="disabled"
5795
5796    # Check whether --enable-code-coverage was given.
5797if test ${enable_code_coverage+y}
5798then :
5799  enableval=$enable_code_coverage; coverage="$enableval"
5800fi
5801
5802
5803    if  test "$GCC" != "yes"
5804then :
5805  coverage="no"
5806fi
5807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5808printf "%s\n" "$coverage" >&6; }
5809
5810  if test "x$coverage" = "xyes"; then
5811    curl_coverage_msg="enabled"
5812
5813    if test -n "$ac_tool_prefix"; then
5814  # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5815set dummy ${ac_tool_prefix}gcov; ac_word=$2
5816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817printf %s "checking for $ac_word... " >&6; }
5818if test ${ac_cv_prog_GCOV+y}
5819then :
5820  printf %s "(cached) " >&6
5821else $as_nop
5822  if test -n "$GCOV"; then
5823  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828  IFS=$as_save_IFS
5829  case $as_dir in #(((
5830    '') as_dir=./ ;;
5831    */) ;;
5832    *) as_dir=$as_dir/ ;;
5833  esac
5834    for ac_exec_ext in '' $ac_executable_extensions; do
5835  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5836    ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5837    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841  done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846GCOV=$ac_cv_prog_GCOV
5847if test -n "$GCOV"; then
5848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5849printf "%s\n" "$GCOV" >&6; }
5850else
5851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852printf "%s\n" "no" >&6; }
5853fi
5854
5855
5856fi
5857if test -z "$ac_cv_prog_GCOV"; then
5858  ac_ct_GCOV=$GCOV
5859  # Extract the first word of "gcov", so it can be a program name with args.
5860set dummy gcov; ac_word=$2
5861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862printf %s "checking for $ac_word... " >&6; }
5863if test ${ac_cv_prog_ac_ct_GCOV+y}
5864then :
5865  printf %s "(cached) " >&6
5866else $as_nop
5867  if test -n "$ac_ct_GCOV"; then
5868  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873  IFS=$as_save_IFS
5874  case $as_dir in #(((
5875    '') as_dir=./ ;;
5876    */) ;;
5877    *) as_dir=$as_dir/ ;;
5878  esac
5879    for ac_exec_ext in '' $ac_executable_extensions; do
5880  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5881    ac_cv_prog_ac_ct_GCOV="gcov"
5882    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5883    break 2
5884  fi
5885done
5886  done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5892if test -n "$ac_ct_GCOV"; then
5893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5894printf "%s\n" "$ac_ct_GCOV" >&6; }
5895else
5896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897printf "%s\n" "no" >&6; }
5898fi
5899
5900  if test "x$ac_ct_GCOV" = x; then
5901    GCOV="gcov"
5902  else
5903    case $cross_compiling:$ac_tool_warned in
5904yes:)
5905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907ac_tool_warned=yes ;;
5908esac
5909    GCOV=$ac_ct_GCOV
5910  fi
5911else
5912  GCOV="$ac_cv_prog_GCOV"
5913fi
5914
5915    if test -z "$GCOV"; then
5916      as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5917    fi
5918    # Extract the first word of "lcov", so it can be a program name with args.
5919set dummy lcov; ac_word=$2
5920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921printf %s "checking for $ac_word... " >&6; }
5922if test ${ac_cv_prog_LCOV+y}
5923then :
5924  printf %s "(cached) " >&6
5925else $as_nop
5926  if test -n "$LCOV"; then
5927  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932  IFS=$as_save_IFS
5933  case $as_dir in #(((
5934    '') as_dir=./ ;;
5935    */) ;;
5936    *) as_dir=$as_dir/ ;;
5937  esac
5938    for ac_exec_ext in '' $ac_executable_extensions; do
5939  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5940    ac_cv_prog_LCOV="lcov"
5941    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945  done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950LCOV=$ac_cv_prog_LCOV
5951if test -n "$LCOV"; then
5952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5953printf "%s\n" "$LCOV" >&6; }
5954else
5955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956printf "%s\n" "no" >&6; }
5957fi
5958
5959
5960    if test -z "$LCOV"; then
5961      as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5962    fi
5963
5964    CPPFLAGS="$CPPFLAGS -DNDEBUG"
5965    CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5966    LIBS="$LIBS -lgcov"
5967  fi
5968
5969
5970am__api_version='1.16'
5971
5972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5973printf %s "checking whether build environment is sane... " >&6; }
5974# Reject unsafe characters in $srcdir or the absolute working directory
5975# name.  Accept space and tab only in the latter.
5976am_lf='
5977'
5978case `pwd` in
5979  *[\\\"\#\$\&\'\`$am_lf]*)
5980    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5981esac
5982case $srcdir in
5983  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
5984    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5985esac
5986
5987# Do 'set' in a subshell so we don't clobber the current shell's
5988# arguments.  Must try -L first in case configure is actually a
5989# symlink; some systems play weird games with the mod time of symlinks
5990# (eg FreeBSD returns the mod time of the symlink's containing
5991# directory).
5992if (
5993   am_has_slept=no
5994   for am_try in 1 2; do
5995     echo "timestamp, slept: $am_has_slept" > conftest.file
5996     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5997     if test "$*" = "X"; then
5998	# -L didn't work.
5999	set X `ls -t "$srcdir/configure" conftest.file`
6000     fi
6001     if test "$*" != "X $srcdir/configure conftest.file" \
6002	&& test "$*" != "X conftest.file $srcdir/configure"; then
6003
6004	# If neither matched, then we have a broken ls.  This can happen
6005	# if, for instance, CONFIG_SHELL is bash and it inherits a
6006	# broken ls alias from the environment.  This has actually
6007	# happened.  Such a system could not be considered "sane".
6008	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6009  alias in your environment" "$LINENO" 5
6010     fi
6011     if test "$2" = conftest.file || test $am_try -eq 2; then
6012       break
6013     fi
6014     # Just in case.
6015     sleep 1
6016     am_has_slept=yes
6017   done
6018   test "$2" = conftest.file
6019   )
6020then
6021   # Ok.
6022   :
6023else
6024   as_fn_error $? "newly created file is older than distributed files!
6025Check your system clock" "$LINENO" 5
6026fi
6027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6028printf "%s\n" "yes" >&6; }
6029# If we didn't sleep, we still need to ensure time stamps of config.status and
6030# generated files are strictly newer.
6031am_sleep_pid=
6032if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6033  ( sleep 1 ) &
6034  am_sleep_pid=$!
6035fi
6036
6037rm -f conftest.file
6038
6039test "$program_prefix" != NONE &&
6040  program_transform_name="s&^&$program_prefix&;$program_transform_name"
6041# Use a double $ so make ignores it.
6042test "$program_suffix" != NONE &&
6043  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6044# Double any \ or $.
6045# By default was `s,x,x', remove it if useless.
6046ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6047program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6048
6049
6050  if test x"${MISSING+set}" != xset; then
6051  MISSING="\${SHELL} '$am_aux_dir/missing'"
6052fi
6053# Use eval to expand $SHELL
6054if eval "$MISSING --is-lightweight"; then
6055  am_missing_run="$MISSING "
6056else
6057  am_missing_run=
6058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6059printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6060fi
6061
6062if test x"${install_sh+set}" != xset; then
6063  case $am_aux_dir in
6064  *\ * | *\	*)
6065    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6066  *)
6067    install_sh="\${SHELL} $am_aux_dir/install-sh"
6068  esac
6069fi
6070
6071# Installed binaries are usually stripped using 'strip' when the user
6072# run "make install-strip".  However 'strip' might not be the right
6073# tool to use in cross-compilation environments, therefore Automake
6074# will honor the 'STRIP' environment variable to overrule this program.
6075if test "$cross_compiling" != no; then
6076  if test -n "$ac_tool_prefix"; then
6077  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6078set dummy ${ac_tool_prefix}strip; ac_word=$2
6079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080printf %s "checking for $ac_word... " >&6; }
6081if test ${ac_cv_prog_STRIP+y}
6082then :
6083  printf %s "(cached) " >&6
6084else $as_nop
6085  if test -n "$STRIP"; then
6086  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091  IFS=$as_save_IFS
6092  case $as_dir in #(((
6093    '') as_dir=./ ;;
6094    */) ;;
6095    *) as_dir=$as_dir/ ;;
6096  esac
6097    for ac_exec_ext in '' $ac_executable_extensions; do
6098  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6099    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6100    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6101    break 2
6102  fi
6103done
6104  done
6105IFS=$as_save_IFS
6106
6107fi
6108fi
6109STRIP=$ac_cv_prog_STRIP
6110if test -n "$STRIP"; then
6111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6112printf "%s\n" "$STRIP" >&6; }
6113else
6114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115printf "%s\n" "no" >&6; }
6116fi
6117
6118
6119fi
6120if test -z "$ac_cv_prog_STRIP"; then
6121  ac_ct_STRIP=$STRIP
6122  # Extract the first word of "strip", so it can be a program name with args.
6123set dummy strip; ac_word=$2
6124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125printf %s "checking for $ac_word... " >&6; }
6126if test ${ac_cv_prog_ac_ct_STRIP+y}
6127then :
6128  printf %s "(cached) " >&6
6129else $as_nop
6130  if test -n "$ac_ct_STRIP"; then
6131  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136  IFS=$as_save_IFS
6137  case $as_dir in #(((
6138    '') as_dir=./ ;;
6139    */) ;;
6140    *) as_dir=$as_dir/ ;;
6141  esac
6142    for ac_exec_ext in '' $ac_executable_extensions; do
6143  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6144    ac_cv_prog_ac_ct_STRIP="strip"
6145    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6146    break 2
6147  fi
6148done
6149  done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6155if test -n "$ac_ct_STRIP"; then
6156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6157printf "%s\n" "$ac_ct_STRIP" >&6; }
6158else
6159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160printf "%s\n" "no" >&6; }
6161fi
6162
6163  if test "x$ac_ct_STRIP" = x; then
6164    STRIP=":"
6165  else
6166    case $cross_compiling:$ac_tool_warned in
6167yes:)
6168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170ac_tool_warned=yes ;;
6171esac
6172    STRIP=$ac_ct_STRIP
6173  fi
6174else
6175  STRIP="$ac_cv_prog_STRIP"
6176fi
6177
6178fi
6179INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6180
6181
6182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6183printf %s "checking for a race-free mkdir -p... " >&6; }
6184if test -z "$MKDIR_P"; then
6185  if test ${ac_cv_path_mkdir+y}
6186then :
6187  printf %s "(cached) " >&6
6188else $as_nop
6189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6191do
6192  IFS=$as_save_IFS
6193  case $as_dir in #(((
6194    '') as_dir=./ ;;
6195    */) ;;
6196    *) as_dir=$as_dir/ ;;
6197  esac
6198    for ac_prog in mkdir gmkdir; do
6199	 for ac_exec_ext in '' $ac_executable_extensions; do
6200	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6201	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6202	     'mkdir ('*'coreutils) '* | \
6203	     'BusyBox '* | \
6204	     'mkdir (fileutils) '4.1*)
6205	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6206	       break 3;;
6207	   esac
6208	 done
6209       done
6210  done
6211IFS=$as_save_IFS
6212
6213fi
6214
6215  test -d ./--version && rmdir ./--version
6216  if test ${ac_cv_path_mkdir+y}; then
6217    MKDIR_P="$ac_cv_path_mkdir -p"
6218  else
6219    # As a last resort, use the slow shell script.  Don't cache a
6220    # value for MKDIR_P within a source directory, because that will
6221    # break other packages using the cache if that directory is
6222    # removed, or if the value is a relative name.
6223    MKDIR_P="$ac_install_sh -d"
6224  fi
6225fi
6226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6227printf "%s\n" "$MKDIR_P" >&6; }
6228
6229for ac_prog in gawk mawk nawk awk
6230do
6231  # Extract the first word of "$ac_prog", so it can be a program name with args.
6232set dummy $ac_prog; ac_word=$2
6233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234printf %s "checking for $ac_word... " >&6; }
6235if test ${ac_cv_prog_AWK+y}
6236then :
6237  printf %s "(cached) " >&6
6238else $as_nop
6239  if test -n "$AWK"; then
6240  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245  IFS=$as_save_IFS
6246  case $as_dir in #(((
6247    '') as_dir=./ ;;
6248    */) ;;
6249    *) as_dir=$as_dir/ ;;
6250  esac
6251    for ac_exec_ext in '' $ac_executable_extensions; do
6252  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6253    ac_cv_prog_AWK="$ac_prog"
6254    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6255    break 2
6256  fi
6257done
6258  done
6259IFS=$as_save_IFS
6260
6261fi
6262fi
6263AWK=$ac_cv_prog_AWK
6264if test -n "$AWK"; then
6265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6266printf "%s\n" "$AWK" >&6; }
6267else
6268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269printf "%s\n" "no" >&6; }
6270fi
6271
6272
6273  test -n "$AWK" && break
6274done
6275
6276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6277printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6278set x ${MAKE-make}
6279ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6280if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6281then :
6282  printf %s "(cached) " >&6
6283else $as_nop
6284  cat >conftest.make <<\_ACEOF
6285SHELL = /bin/sh
6286all:
6287	@echo '@@@%%%=$(MAKE)=@@@%%%'
6288_ACEOF
6289# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6290case `${MAKE-make} -f conftest.make 2>/dev/null` in
6291  *@@@%%%=?*=@@@%%%*)
6292    eval ac_cv_prog_make_${ac_make}_set=yes;;
6293  *)
6294    eval ac_cv_prog_make_${ac_make}_set=no;;
6295esac
6296rm -f conftest.make
6297fi
6298if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6300printf "%s\n" "yes" >&6; }
6301  SET_MAKE=
6302else
6303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304printf "%s\n" "no" >&6; }
6305  SET_MAKE="MAKE=${MAKE-make}"
6306fi
6307
6308rm -rf .tst 2>/dev/null
6309mkdir .tst 2>/dev/null
6310if test -d .tst; then
6311  am__leading_dot=.
6312else
6313  am__leading_dot=_
6314fi
6315rmdir .tst 2>/dev/null
6316
6317DEPDIR="${am__leading_dot}deps"
6318
6319ac_config_commands="$ac_config_commands depfiles"
6320
6321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6322printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6323cat > confinc.mk << 'END'
6324am__doit:
6325	@echo this is the am__doit target >confinc.out
6326.PHONY: am__doit
6327END
6328am__include="#"
6329am__quote=
6330# BSD make does it like this.
6331echo '.include "confinc.mk" # ignored' > confmf.BSD
6332# Other make implementations (GNU, Solaris 10, AIX) do it like this.
6333echo 'include confinc.mk # ignored' > confmf.GNU
6334_am_result=no
6335for s in GNU BSD; do
6336  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6337   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6338   ac_status=$?
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); }
6341  case $?:`cat confinc.out 2>/dev/null` in #(
6342  '0:this is the am__doit target') :
6343    case $s in #(
6344  BSD) :
6345    am__include='.include' am__quote='"' ;; #(
6346  *) :
6347    am__include='include' am__quote='' ;;
6348esac ;; #(
6349  *) :
6350     ;;
6351esac
6352  if test "$am__include" != "#"; then
6353    _am_result="yes ($s style)"
6354    break
6355  fi
6356done
6357rm -f confinc.* confmf.*
6358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6359printf "%s\n" "${_am_result}" >&6; }
6360
6361# Check whether --enable-dependency-tracking was given.
6362if test ${enable_dependency_tracking+y}
6363then :
6364  enableval=$enable_dependency_tracking;
6365fi
6366
6367if test "x$enable_dependency_tracking" != xno; then
6368  am_depcomp="$ac_aux_dir/depcomp"
6369  AMDEPBACKSLASH='\'
6370  am__nodep='_no'
6371fi
6372 if test "x$enable_dependency_tracking" != xno; then
6373  AMDEP_TRUE=
6374  AMDEP_FALSE='#'
6375else
6376  AMDEP_TRUE='#'
6377  AMDEP_FALSE=
6378fi
6379
6380
6381## --------------------------------------- ##
6382##  Start of automake initialization code  ##
6383## --------------------------------------- ##
6384
6385if test "`cd $srcdir && pwd`" != "`pwd`"; then
6386  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6387  # is not polluted with repeated "-I."
6388  am__isrc=' -I$(srcdir)'
6389  # test to see if srcdir already configured
6390  if test -f $srcdir/config.status; then
6391    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6392  fi
6393fi
6394
6395# test whether we have cygpath
6396if test -z "$CYGPATH_W"; then
6397  if (cygpath --version) >/dev/null 2>/dev/null; then
6398    CYGPATH_W='cygpath -w'
6399  else
6400    CYGPATH_W=echo
6401  fi
6402fi
6403
6404
6405# Define the identity of the package.
6406 PACKAGE='curl'
6407 VERSION='-'
6408
6409
6410printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6411
6412
6413printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6414
6415# Some tools Automake needs.
6416
6417ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6418
6419
6420AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6421
6422
6423AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6424
6425
6426AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6427
6428
6429MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6430
6431# For better backward compatibility.  To be removed once Automake 1.9.x
6432# dies out for good.  For more background, see:
6433# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6434# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6435mkdir_p='$(MKDIR_P)'
6436
6437# We need awk for the "check" target (and possibly the TAP driver).  The
6438# system "awk" is bad on some platforms.
6439# Always define AMTAR for backward compatibility.  Yes, it's still used
6440# in the wild :-(  We should find a proper way to deprecate it ...
6441AMTAR='$${TAR-tar}'
6442
6443
6444# We'll loop over all known methods to create a tar archive until one works.
6445_am_tools='gnutar  pax cpio none'
6446
6447am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6448
6449
6450
6451
6452
6453depcc="$CC"   am_compiler_list=
6454
6455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6456printf %s "checking dependency style of $depcc... " >&6; }
6457if test ${am_cv_CC_dependencies_compiler_type+y}
6458then :
6459  printf %s "(cached) " >&6
6460else $as_nop
6461  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462  # We make a subdir and do the tests there.  Otherwise we can end up
6463  # making bogus files that we don't know about and never remove.  For
6464  # instance it was reported that on HP-UX the gcc test will end up
6465  # making a dummy file named 'D' -- because '-MD' means "put the output
6466  # in D".
6467  rm -rf conftest.dir
6468  mkdir conftest.dir
6469  # Copy depcomp to subdir because otherwise we won't find it if we're
6470  # using a relative directory.
6471  cp "$am_depcomp" conftest.dir
6472  cd conftest.dir
6473  # We will build objects and dependencies in a subdirectory because
6474  # it helps to detect inapplicable dependency modes.  For instance
6475  # both Tru64's cc and ICC support -MD to output dependencies as a
6476  # side effect of compilation, but ICC will put the dependencies in
6477  # the current directory while Tru64 will put them in the object
6478  # directory.
6479  mkdir sub
6480
6481  am_cv_CC_dependencies_compiler_type=none
6482  if test "$am_compiler_list" = ""; then
6483     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6484  fi
6485  am__universal=false
6486  case " $depcc " in #(
6487     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6488     esac
6489
6490  for depmode in $am_compiler_list; do
6491    # Setup a source with many dependencies, because some compilers
6492    # like to wrap large dependency lists on column 80 (with \), and
6493    # we should not choose a depcomp mode which is confused by this.
6494    #
6495    # We need to recreate these files for each test, as the compiler may
6496    # overwrite some of them when testing with obscure command lines.
6497    # This happens at least with the AIX C compiler.
6498    : > sub/conftest.c
6499    for i in 1 2 3 4 5 6; do
6500      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6501      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6502      # Solaris 10 /bin/sh.
6503      echo '/* dummy */' > sub/conftst$i.h
6504    done
6505    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6506
6507    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6508    # mode.  It turns out that the SunPro C++ compiler does not properly
6509    # handle '-M -o', and we need to detect this.  Also, some Intel
6510    # versions had trouble with output in subdirs.
6511    am__obj=sub/conftest.${OBJEXT-o}
6512    am__minus_obj="-o $am__obj"
6513    case $depmode in
6514    gcc)
6515      # This depmode causes a compiler race in universal mode.
6516      test "$am__universal" = false || continue
6517      ;;
6518    nosideeffect)
6519      # After this tag, mechanisms are not by side-effect, so they'll
6520      # only be used when explicitly requested.
6521      if test "x$enable_dependency_tracking" = xyes; then
6522	continue
6523      else
6524	break
6525      fi
6526      ;;
6527    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6528      # This compiler won't grok '-c -o', but also, the minuso test has
6529      # not run yet.  These depmodes are late enough in the game, and
6530      # so weak that their functioning should not be impacted.
6531      am__obj=conftest.${OBJEXT-o}
6532      am__minus_obj=
6533      ;;
6534    none) break ;;
6535    esac
6536    if depmode=$depmode \
6537       source=sub/conftest.c object=$am__obj \
6538       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6539       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6540         >/dev/null 2>conftest.err &&
6541       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6542       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6543       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6544       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6545      # icc doesn't choke on unknown options, it will just issue warnings
6546      # or remarks (even with -Werror).  So we grep stderr for any message
6547      # that says an option was ignored or not supported.
6548      # When given -MP, icc 7.0 and 7.1 complain thusly:
6549      #   icc: Command line warning: ignoring option '-M'; no argument required
6550      # The diagnosis changed in icc 8.0:
6551      #   icc: Command line remark: option '-MP' not supported
6552      if (grep 'ignoring option' conftest.err ||
6553          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6554        am_cv_CC_dependencies_compiler_type=$depmode
6555        break
6556      fi
6557    fi
6558  done
6559
6560  cd ..
6561  rm -rf conftest.dir
6562else
6563  am_cv_CC_dependencies_compiler_type=none
6564fi
6565
6566fi
6567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6568printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6569CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6570
6571 if
6572  test "x$enable_dependency_tracking" != xno \
6573  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6574  am__fastdepCC_TRUE=
6575  am__fastdepCC_FALSE='#'
6576else
6577  am__fastdepCC_TRUE='#'
6578  am__fastdepCC_FALSE=
6579fi
6580
6581
6582# Variables for tags utilities; see am/tags.am
6583if test -z "$CTAGS"; then
6584  CTAGS=ctags
6585fi
6586
6587if test -z "$ETAGS"; then
6588  ETAGS=etags
6589fi
6590
6591if test -z "$CSCOPE"; then
6592  CSCOPE=cscope
6593fi
6594
6595
6596
6597# POSIX will say in a future version that running "rm -f" with no argument
6598# is OK; and we want to be able to make that assumption in our Makefile
6599# recipes.  So use an aggressive probe to check that the usage we want is
6600# actually supported "in the wild" to an acceptable degree.
6601# See automake bug#10828.
6602# To make any issue more visible, cause the running configure to be aborted
6603# by default if the 'rm' program in use doesn't match our expectations; the
6604# user can still override this though.
6605if rm -f && rm -fr && rm -rf; then : OK; else
6606  cat >&2 <<'END'
6607Oops!
6608
6609Your 'rm' program seems unable to run without file operands specified
6610on the command line, even when the '-f' option is present.  This is contrary
6611to the behaviour of most rm programs out there, and not conforming with
6612the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6613
6614Please tell bug-automake@gnu.org about your system, including the value
6615of your $PATH and any error possibly output before this message.  This
6616can help us improve future automake versions.
6617
6618END
6619  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6620    echo 'Configuration will proceed anyway, since you have set the' >&2
6621    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6622    echo >&2
6623  else
6624    cat >&2 <<'END'
6625Aborting the configuration process, to ensure you take notice of the issue.
6626
6627You can download and install GNU coreutils to get an 'rm' implementation
6628that behaves properly: <https://www.gnu.org/software/coreutils/>.
6629
6630If you want to complete the configuration process using your problematic
6631'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6632to "yes", and re-run configure.
6633
6634END
6635    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6636  fi
6637fi
6638
6639## ------------------------------------- ##
6640##  End of automake initialization code  ##
6641## ------------------------------------- ##
6642
6643
6644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6645printf %s "checking curl version... " >&6; }
6646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6647printf "%s\n" "$CURLVERSION" >&6; }
6648
6649
6650
6651VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6652
6653
6654PKGADD_PKG="HAXXcurl"
6655PKGADD_NAME="curl - a client that groks URLs"
6656PKGADD_VENDOR="curl.se"
6657
6658
6659
6660
6661    curl_ssl_msg="no      (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
6662    curl_ssh_msg="no      (--with-{libssh,libssh2})"
6663   curl_zlib_msg="no      (--with-zlib)"
6664 curl_brotli_msg="no      (--with-brotli)"
6665   curl_zstd_msg="no      (--with-zstd)"
6666    curl_gss_msg="no      (--with-gssapi)"
6667  curl_gsasl_msg="no      (--with-gsasl)"
6668curl_tls_srp_msg="no      (--enable-tls-srp)"
6669    curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6670   curl_ipv6_msg="no      (--enable-ipv6)"
6671curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6672    curl_idn_msg="no      (--with-{libidn2,winidn})"
6673 curl_manual_msg="no      (--enable-manual)"
6674curl_libcurl_msg="enabled (--disable-libcurl-option)"
6675curl_verbose_msg="enabled (--disable-verbose)"
6676   curl_sspi_msg="no      (--enable-sspi)"
6677   curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6678  curl_ldaps_msg="no      (--enable-ldaps)"
6679   curl_rtsp_msg="no      (--enable-rtsp)"
6680   curl_rtmp_msg="no      (--with-librtmp)"
6681    curl_psl_msg="no      (--with-libpsl)"
6682 curl_altsvc_msg="enabled (--disable-alt-svc)"
6683curl_headers_msg="enabled (--disable-headers-api)"
6684   curl_hsts_msg="enabled (--disable-hsts)"
6685     curl_ws_msg="no      (--enable-websockets)"
6686    ssl_backends=
6687     curl_h1_msg="enabled (internal)"
6688     curl_h2_msg="no      (--with-nghttp2)"
6689     curl_h3_msg="no      (--with-ngtcp2 --with-nghttp3, --with-quiche, --with-openssl-quic, --with-msh3)"
6690
6691enable_altsvc="yes"
6692hsts="yes"
6693
6694INITIAL_LDFLAGS=$LDFLAGS
6695INITIAL_LIBS=$LIBS
6696
6697compilersh="run-compiler"
6698CURL_SAVED_CC="$CC"
6699export CURL_SAVED_CC
6700CURL_SAVED_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
6701export CURL_SAVED_LD_LIBRARY_PATH
6702cat <<\EOF > "$compilersh"
6703CC="$CURL_SAVED_CC"
6704export CC
6705LD_LIBRARY_PATH="$CURL_SAVED_LD_LIBRARY_PATH"
6706export LD_LIBRARY_PATH
6707exec $CC "$@"
6708EOF
6709
6710OPT_SCHANNEL=no
6711
6712# Check whether --with-schannel was given.
6713if test ${with_schannel+y}
6714then :
6715  withval=$with_schannel; OPT_SCHANNEL=$withval
6716  TLSCHOICE="schannel"
6717fi
6718
6719
6720OPT_SECURETRANSPORT=no
6721
6722# Check whether --with-secure-transport was given.
6723if test ${with_secure_transport+y}
6724then :
6725  withval=$with_secure_transport;
6726  OPT_SECURETRANSPORT=$withval
6727  TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
6728
6729fi
6730
6731
6732OPT_AMISSL=no
6733
6734# Check whether --with-amissl was given.
6735if test ${with_amissl+y}
6736then :
6737  withval=$with_amissl;
6738  OPT_AMISSL=$withval
6739  TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
6740
6741fi
6742
6743
6744OPT_OPENSSL=no
6745ca="no"
6746
6747# Check whether --with-ssl was given.
6748if test ${with_ssl+y}
6749then :
6750  withval=$with_ssl;
6751  OPT_SSL=$withval
6752  OPT_OPENSSL=$withval
6753  if test X"$withval" != Xno; then
6754    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6755  else
6756    SSL_DISABLED="D"
6757  fi
6758
6759fi
6760
6761
6762
6763# Check whether --with-openssl was given.
6764if test ${with_openssl+y}
6765then :
6766  withval=$with_openssl;
6767  OPT_OPENSSL=$withval
6768  if test X"$withval" != Xno; then
6769    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6770  fi
6771
6772fi
6773
6774
6775OPT_GNUTLS=no
6776
6777# Check whether --with-gnutls was given.
6778if test ${with_gnutls+y}
6779then :
6780  withval=$with_gnutls;
6781  OPT_GNUTLS=$withval
6782  if test X"$withval" != Xno; then
6783    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
6784  fi
6785
6786fi
6787
6788
6789OPT_MBEDTLS=no
6790
6791# Check whether --with-mbedtls was given.
6792if test ${with_mbedtls+y}
6793then :
6794  withval=$with_mbedtls;
6795  OPT_MBEDTLS=$withval
6796  if test X"$withval" != Xno; then
6797    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
6798  fi
6799
6800fi
6801
6802
6803OPT_WOLFSSL=no
6804
6805# Check whether --with-wolfssl was given.
6806if test ${with_wolfssl+y}
6807then :
6808  withval=$with_wolfssl;
6809  OPT_WOLFSSL=$withval
6810  if test X"$withval" != Xno; then
6811    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
6812  fi
6813
6814fi
6815
6816
6817OPT_BEARSSL=no
6818
6819# Check whether --with-bearssl was given.
6820if test ${with_bearssl+y}
6821then :
6822  withval=$with_bearssl;
6823  OPT_BEARSSL=$withval
6824  if test X"$withval" != Xno; then
6825    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
6826  fi
6827
6828fi
6829
6830
6831OPT_RUSTLS=no
6832
6833# Check whether --with-rustls was given.
6834if test ${with_rustls+y}
6835then :
6836  withval=$with_rustls;
6837  OPT_RUSTLS=$withval
6838  if test X"$withval" != Xno; then
6839    TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
6840    experimental="$experimental rustls"
6841  fi
6842
6843fi
6844
6845
6846TEST_NGHTTPX=nghttpx
6847
6848# Check whether --with-test-nghttpx was given.
6849if test ${with_test_nghttpx+y}
6850then :
6851  withval=$with_test_nghttpx; TEST_NGHTTPX=$withval
6852  if test X"$OPT_TEST_NGHTTPX" = "Xno" ; then
6853      TEST_NGHTTPX=""
6854  fi
6855
6856fi
6857
6858
6859
6860CADDY=caddy
6861
6862# Check whether --with-test-caddy was given.
6863if test ${with_test_caddy+y}
6864then :
6865  withval=$with_test_caddy; CADDY=$withval
6866  if test X"$OPT_CADDY" = "Xno" ; then
6867      CADDY=""
6868  fi
6869
6870fi
6871
6872
6873
6874HTTPD_ENABLED="maybe"
6875
6876# Check whether --with-test-httpd was given.
6877if test ${with_test_httpd+y}
6878then :
6879  withval=$with_test_httpd; request_httpd=$withval
6880else $as_nop
6881  request_httpd=check
6882fi
6883
6884if test x"$request_httpd" = "xcheck" -o x"$request_httpd" = "xyes"; then
6885  if test -x "/usr/sbin/apache2" -a -x "/usr/sbin/apache2ctl"; then
6886    # common location on distros (debian/ubuntu)
6887    HTTPD="/usr/sbin/apache2"
6888    APACHECTL="/usr/sbin/apache2ctl"
6889    # Extract the first word of "apxs", so it can be a program name with args.
6890set dummy apxs; ac_word=$2
6891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892printf %s "checking for $ac_word... " >&6; }
6893if test ${ac_cv_path_APXS+y}
6894then :
6895  printf %s "(cached) " >&6
6896else $as_nop
6897  case $APXS in
6898  [\\/]* | ?:[\\/]*)
6899  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
6900  ;;
6901  *)
6902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905  IFS=$as_save_IFS
6906  case $as_dir in #(((
6907    '') as_dir=./ ;;
6908    */) ;;
6909    *) as_dir=$as_dir/ ;;
6910  esac
6911    for ac_exec_ext in '' $ac_executable_extensions; do
6912  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6913    ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
6914    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6915    break 2
6916  fi
6917done
6918  done
6919IFS=$as_save_IFS
6920
6921  ;;
6922esac
6923fi
6924APXS=$ac_cv_path_APXS
6925if test -n "$APXS"; then
6926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
6927printf "%s\n" "$APXS" >&6; }
6928else
6929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930printf "%s\n" "no" >&6; }
6931fi
6932
6933
6934    if test "x$APXS" = "x"; then
6935      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apache2-dev not installed, httpd tests disabled" >&5
6936printf "%s\n" "$as_me: apache2-dev not installed, httpd tests disabled" >&6;}
6937      HTTPD_ENABLED="no"
6938    fi
6939  else
6940    # Extract the first word of "httpd", so it can be a program name with args.
6941set dummy httpd; ac_word=$2
6942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943printf %s "checking for $ac_word... " >&6; }
6944if test ${ac_cv_path_HTTPD+y}
6945then :
6946  printf %s "(cached) " >&6
6947else $as_nop
6948  case $HTTPD in
6949  [\\/]* | ?:[\\/]*)
6950  ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6951  ;;
6952  *)
6953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956  IFS=$as_save_IFS
6957  case $as_dir in #(((
6958    '') as_dir=./ ;;
6959    */) ;;
6960    *) as_dir=$as_dir/ ;;
6961  esac
6962    for ac_exec_ext in '' $ac_executable_extensions; do
6963  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6964    ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
6965    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6966    break 2
6967  fi
6968done
6969  done
6970IFS=$as_save_IFS
6971
6972  ;;
6973esac
6974fi
6975HTTPD=$ac_cv_path_HTTPD
6976if test -n "$HTTPD"; then
6977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
6978printf "%s\n" "$HTTPD" >&6; }
6979else
6980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981printf "%s\n" "no" >&6; }
6982fi
6983
6984
6985    if test "x$HTTPD" = "x"; then
6986      # Extract the first word of "apache2", so it can be a program name with args.
6987set dummy apache2; ac_word=$2
6988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989printf %s "checking for $ac_word... " >&6; }
6990if test ${ac_cv_path_HTTPD+y}
6991then :
6992  printf %s "(cached) " >&6
6993else $as_nop
6994  case $HTTPD in
6995  [\\/]* | ?:[\\/]*)
6996  ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6997  ;;
6998  *)
6999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002  IFS=$as_save_IFS
7003  case $as_dir in #(((
7004    '') as_dir=./ ;;
7005    */) ;;
7006    *) as_dir=$as_dir/ ;;
7007  esac
7008    for ac_exec_ext in '' $ac_executable_extensions; do
7009  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7010    ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
7011    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7012    break 2
7013  fi
7014done
7015  done
7016IFS=$as_save_IFS
7017
7018  ;;
7019esac
7020fi
7021HTTPD=$ac_cv_path_HTTPD
7022if test -n "$HTTPD"; then
7023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
7024printf "%s\n" "$HTTPD" >&6; }
7025else
7026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027printf "%s\n" "no" >&6; }
7028fi
7029
7030
7031    fi
7032    # Extract the first word of "apachectl", so it can be a program name with args.
7033set dummy apachectl; ac_word=$2
7034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035printf %s "checking for $ac_word... " >&6; }
7036if test ${ac_cv_path_APACHECTL+y}
7037then :
7038  printf %s "(cached) " >&6
7039else $as_nop
7040  case $APACHECTL in
7041  [\\/]* | ?:[\\/]*)
7042  ac_cv_path_APACHECTL="$APACHECTL" # Let the user override the test with a path.
7043  ;;
7044  *)
7045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048  IFS=$as_save_IFS
7049  case $as_dir in #(((
7050    '') as_dir=./ ;;
7051    */) ;;
7052    *) as_dir=$as_dir/ ;;
7053  esac
7054    for ac_exec_ext in '' $ac_executable_extensions; do
7055  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7056    ac_cv_path_APACHECTL="$as_dir$ac_word$ac_exec_ext"
7057    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7058    break 2
7059  fi
7060done
7061  done
7062IFS=$as_save_IFS
7063
7064  ;;
7065esac
7066fi
7067APACHECTL=$ac_cv_path_APACHECTL
7068if test -n "$APACHECTL"; then
7069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APACHECTL" >&5
7070printf "%s\n" "$APACHECTL" >&6; }
7071else
7072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073printf "%s\n" "no" >&6; }
7074fi
7075
7076
7077    # Extract the first word of "apxs", so it can be a program name with args.
7078set dummy apxs; ac_word=$2
7079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080printf %s "checking for $ac_word... " >&6; }
7081if test ${ac_cv_path_APXS+y}
7082then :
7083  printf %s "(cached) " >&6
7084else $as_nop
7085  case $APXS in
7086  [\\/]* | ?:[\\/]*)
7087  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
7088  ;;
7089  *)
7090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093  IFS=$as_save_IFS
7094  case $as_dir in #(((
7095    '') as_dir=./ ;;
7096    */) ;;
7097    *) as_dir=$as_dir/ ;;
7098  esac
7099    for ac_exec_ext in '' $ac_executable_extensions; do
7100  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7101    ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
7102    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7103    break 2
7104  fi
7105done
7106  done
7107IFS=$as_save_IFS
7108
7109  ;;
7110esac
7111fi
7112APXS=$ac_cv_path_APXS
7113if test -n "$APXS"; then
7114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
7115printf "%s\n" "$APXS" >&6; }
7116else
7117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118printf "%s\n" "no" >&6; }
7119fi
7120
7121
7122    if test "x$HTTPD" = "x" -o "x$APACHECTL" = "x"; then
7123      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd/apache2 not in PATH, http tests disabled" >&5
7124printf "%s\n" "$as_me: httpd/apache2 not in PATH, http tests disabled" >&6;}
7125      HTTPD_ENABLED="no"
7126    fi
7127    if test "x$APXS" = "x"; then
7128      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not in PATH, http tests disabled" >&5
7129printf "%s\n" "$as_me: apxs not in PATH, http tests disabled" >&6;}
7130      HTTPD_ENABLED="no"
7131    fi
7132  fi
7133elif test x"$request_httpd" != "xno"; then
7134  HTTPD="${request_httpd}/bin/httpd"
7135  APACHECTL="${request_httpd}/bin/apachectl"
7136  APXS="${request_httpd}/bin/apxs"
7137  if test ! -x "${HTTPD}"; then
7138    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd not found as ${HTTPD}, http tests disabled" >&5
7139printf "%s\n" "$as_me: httpd not found as ${HTTPD}, http tests disabled" >&6;}
7140    HTTPD_ENABLED="no"
7141  elif test ! -x "${APACHECTL}"; then
7142    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apachectl not found as ${APACHECTL}, http tests disabled" >&5
7143printf "%s\n" "$as_me: apachectl not found as ${APACHECTL}, http tests disabled" >&6;}
7144    HTTPD_ENABLED="no"
7145  elif test ! -x "${APXS}"; then
7146    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not found as ${APXS}, http tests disabled" >&5
7147printf "%s\n" "$as_me: apxs not found as ${APXS}, http tests disabled" >&6;}
7148    HTTPD_ENABLED="no"
7149  else
7150    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using HTTPD=$HTTPD for tests" >&5
7151printf "%s\n" "$as_me: using HTTPD=$HTTPD for tests" >&6;}
7152  fi
7153fi
7154if test x"$HTTPD_ENABLED" = "xno"; then
7155  HTTPD=""
7156  APACHECTL=""
7157  APXS=""
7158fi
7159
7160
7161
7162
7163if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then
7164  HTTPD_NGHTTPX="$TEST_NGHTTPX"
7165else
7166  # Extract the first word of "nghttpx", so it can be a program name with args.
7167set dummy nghttpx; ac_word=$2
7168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169printf %s "checking for $ac_word... " >&6; }
7170if test ${ac_cv_path_HTTPD_NGHTTPX+y}
7171then :
7172  printf %s "(cached) " >&6
7173else $as_nop
7174  case $HTTPD_NGHTTPX in
7175  [\\/]* | ?:[\\/]*)
7176  ac_cv_path_HTTPD_NGHTTPX="$HTTPD_NGHTTPX" # Let the user override the test with a path.
7177  ;;
7178  *)
7179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180as_dummy="$PATH:/usr/bin:/usr/local/bin"
7181for as_dir in $as_dummy
7182do
7183  IFS=$as_save_IFS
7184  case $as_dir in #(((
7185    '') as_dir=./ ;;
7186    */) ;;
7187    *) as_dir=$as_dir/ ;;
7188  esac
7189    for ac_exec_ext in '' $ac_executable_extensions; do
7190  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7191    ac_cv_path_HTTPD_NGHTTPX="$as_dir$ac_word$ac_exec_ext"
7192    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7193    break 2
7194  fi
7195done
7196  done
7197IFS=$as_save_IFS
7198
7199  ;;
7200esac
7201fi
7202HTTPD_NGHTTPX=$ac_cv_path_HTTPD_NGHTTPX
7203if test -n "$HTTPD_NGHTTPX"; then
7204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD_NGHTTPX" >&5
7205printf "%s\n" "$HTTPD_NGHTTPX" >&6; }
7206else
7207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208printf "%s\n" "no" >&6; }
7209fi
7210
7211
7212fi
7213
7214
7215if test "x$TEST_CADDY" != "x"; then
7216  CADDY="$TEST_CADDY"
7217else
7218  # Extract the first word of "caddy", so it can be a program name with args.
7219set dummy caddy; ac_word=$2
7220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221printf %s "checking for $ac_word... " >&6; }
7222if test ${ac_cv_path_CADDY+y}
7223then :
7224  printf %s "(cached) " >&6
7225else $as_nop
7226  case $CADDY in
7227  [\\/]* | ?:[\\/]*)
7228  ac_cv_path_CADDY="$CADDY" # Let the user override the test with a path.
7229  ;;
7230  *)
7231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234  IFS=$as_save_IFS
7235  case $as_dir in #(((
7236    '') as_dir=./ ;;
7237    */) ;;
7238    *) as_dir=$as_dir/ ;;
7239  esac
7240    for ac_exec_ext in '' $ac_executable_extensions; do
7241  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7242    ac_cv_path_CADDY="$as_dir$ac_word$ac_exec_ext"
7243    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7244    break 2
7245  fi
7246done
7247  done
7248IFS=$as_save_IFS
7249
7250  ;;
7251esac
7252fi
7253CADDY=$ac_cv_path_CADDY
7254if test -n "$CADDY"; then
7255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CADDY" >&5
7256printf "%s\n" "$CADDY" >&6; }
7257else
7258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259printf "%s\n" "no" >&6; }
7260fi
7261
7262
7263fi
7264
7265
7266if test -z "$TLSCHOICE"; then
7267  if test "x$OPT_SSL" != "xno"; then
7268    as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
7269
7270Select from these:
7271
7272  --with-amissl
7273  --with-bearssl
7274  --with-gnutls
7275  --with-mbedtls
7276  --with-openssl (also works for BoringSSL and libressl)
7277  --with-rustls
7278  --with-schannel
7279  --with-secure-transport
7280  --with-wolfssl
7281" "$LINENO" 5
7282  fi
7283fi
7284
7285
7286# Check whether --with-darwinssl was given.
7287if test ${with_darwinssl+y}
7288then :
7289  withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl and --without-darwin-ssl no longer work!" "$LINENO" 5
7290fi
7291
7292
7293
7294
7295
7296  # Make sure we can run config.sub.
7297$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7298  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7299
7300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7301printf %s "checking build system type... " >&6; }
7302if test ${ac_cv_build+y}
7303then :
7304  printf %s "(cached) " >&6
7305else $as_nop
7306  ac_build_alias=$build_alias
7307test "x$ac_build_alias" = x &&
7308  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7309test "x$ac_build_alias" = x &&
7310  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7311ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7312  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7313
7314fi
7315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7316printf "%s\n" "$ac_cv_build" >&6; }
7317case $ac_cv_build in
7318*-*-*) ;;
7319*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7320esac
7321build=$ac_cv_build
7322ac_save_IFS=$IFS; IFS='-'
7323set x $ac_cv_build
7324shift
7325build_cpu=$1
7326build_vendor=$2
7327shift; shift
7328# Remember, the first character of IFS is used to create $*,
7329# except with old shells:
7330build_os=$*
7331IFS=$ac_save_IFS
7332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7333
7334
7335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7336printf %s "checking host system type... " >&6; }
7337if test ${ac_cv_host+y}
7338then :
7339  printf %s "(cached) " >&6
7340else $as_nop
7341  if test "x$host_alias" = x; then
7342  ac_cv_host=$ac_cv_build
7343else
7344  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7345    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7346fi
7347
7348fi
7349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7350printf "%s\n" "$ac_cv_host" >&6; }
7351case $ac_cv_host in
7352*-*-*) ;;
7353*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7354esac
7355host=$ac_cv_host
7356ac_save_IFS=$IFS; IFS='-'
7357set x $ac_cv_host
7358shift
7359host_cpu=$1
7360host_vendor=$2
7361shift; shift
7362# Remember, the first character of IFS is used to create $*,
7363# except with old shells:
7364host_os=$*
7365IFS=$ac_save_IFS
7366case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7367
7368
7369
7370printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
7371
7372
7373# Silence warning: ar: 'u' modifier ignored since 'D' is the default
7374AR_FLAGS=cr
7375
7376
7377
7378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7379printf %s "checking for grep that handles long lines and -e... " >&6; }
7380if test ${ac_cv_path_GREP+y}
7381then :
7382  printf %s "(cached) " >&6
7383else $as_nop
7384  if test -z "$GREP"; then
7385  ac_path_GREP_found=false
7386  # Loop through the user's path and test for each of PROGNAME-LIST
7387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7389do
7390  IFS=$as_save_IFS
7391  case $as_dir in #(((
7392    '') as_dir=./ ;;
7393    */) ;;
7394    *) as_dir=$as_dir/ ;;
7395  esac
7396    for ac_prog in grep ggrep
7397   do
7398    for ac_exec_ext in '' $ac_executable_extensions; do
7399      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7400      as_fn_executable_p "$ac_path_GREP" || continue
7401# Check for GNU ac_path_GREP and select it if it is found.
7402  # Check for GNU $ac_path_GREP
7403case `"$ac_path_GREP" --version 2>&1` in
7404*GNU*)
7405  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7406*)
7407  ac_count=0
7408  printf %s 0123456789 >"conftest.in"
7409  while :
7410  do
7411    cat "conftest.in" "conftest.in" >"conftest.tmp"
7412    mv "conftest.tmp" "conftest.in"
7413    cp "conftest.in" "conftest.nl"
7414    printf "%s\n" 'GREP' >> "conftest.nl"
7415    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7416    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7417    as_fn_arith $ac_count + 1 && ac_count=$as_val
7418    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7419      # Best one so far, save it but keep looking for a better one
7420      ac_cv_path_GREP="$ac_path_GREP"
7421      ac_path_GREP_max=$ac_count
7422    fi
7423    # 10*(2^10) chars as input seems more than enough
7424    test $ac_count -gt 10 && break
7425  done
7426  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7427esac
7428
7429      $ac_path_GREP_found && break 3
7430    done
7431  done
7432  done
7433IFS=$as_save_IFS
7434  if test -z "$ac_cv_path_GREP"; then
7435    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7436  fi
7437else
7438  ac_cv_path_GREP=$GREP
7439fi
7440
7441fi
7442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7443printf "%s\n" "$ac_cv_path_GREP" >&6; }
7444 GREP="$ac_cv_path_GREP"
7445
7446
7447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7448printf %s "checking for egrep... " >&6; }
7449if test ${ac_cv_path_EGREP+y}
7450then :
7451  printf %s "(cached) " >&6
7452else $as_nop
7453  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7454   then ac_cv_path_EGREP="$GREP -E"
7455   else
7456     if test -z "$EGREP"; then
7457  ac_path_EGREP_found=false
7458  # Loop through the user's path and test for each of PROGNAME-LIST
7459  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7461do
7462  IFS=$as_save_IFS
7463  case $as_dir in #(((
7464    '') as_dir=./ ;;
7465    */) ;;
7466    *) as_dir=$as_dir/ ;;
7467  esac
7468    for ac_prog in egrep
7469   do
7470    for ac_exec_ext in '' $ac_executable_extensions; do
7471      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7472      as_fn_executable_p "$ac_path_EGREP" || continue
7473# Check for GNU ac_path_EGREP and select it if it is found.
7474  # Check for GNU $ac_path_EGREP
7475case `"$ac_path_EGREP" --version 2>&1` in
7476*GNU*)
7477  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7478*)
7479  ac_count=0
7480  printf %s 0123456789 >"conftest.in"
7481  while :
7482  do
7483    cat "conftest.in" "conftest.in" >"conftest.tmp"
7484    mv "conftest.tmp" "conftest.in"
7485    cp "conftest.in" "conftest.nl"
7486    printf "%s\n" 'EGREP' >> "conftest.nl"
7487    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7488    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7489    as_fn_arith $ac_count + 1 && ac_count=$as_val
7490    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7491      # Best one so far, save it but keep looking for a better one
7492      ac_cv_path_EGREP="$ac_path_EGREP"
7493      ac_path_EGREP_max=$ac_count
7494    fi
7495    # 10*(2^10) chars as input seems more than enough
7496    test $ac_count -gt 10 && break
7497  done
7498  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7499esac
7500
7501      $ac_path_EGREP_found && break 3
7502    done
7503  done
7504  done
7505IFS=$as_save_IFS
7506  if test -z "$ac_cv_path_EGREP"; then
7507    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7508  fi
7509else
7510  ac_cv_path_EGREP=$EGREP
7511fi
7512
7513   fi
7514fi
7515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7516printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7517 EGREP="$ac_cv_path_EGREP"
7518
7519
7520
7521
7522      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7523printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525/* end confdefs.h.  */
7526
7527#ifdef _AIX
7528   yes_this_is_aix
7529#endif
7530
7531_ACEOF
7532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7533  $EGREP "yes_this_is_aix" >/dev/null 2>&1
7534then :
7535
7536    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7537printf "%s\n" "yes" >&6; }
7538    printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7539
7540
7541else $as_nop
7542
7543    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544printf "%s\n" "no" >&6; }
7545
7546fi
7547rm -rf conftest*
7548
7549
7550
7551
7552    #
7553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7554printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557
7558
7559
7560int main (void)
7561{
7562
7563#ifdef _THREAD_SAFE
7564      int dummy=1;
7565#else
7566      force compilation error
7567#endif
7568
7569 ;
7570 return 0;
7571}
7572
7573_ACEOF
7574if ac_fn_c_try_compile "$LINENO"
7575then :
7576
7577    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7578printf "%s\n" "yes" >&6; }
7579    tmp_thread_safe_initially_defined="yes"
7580
7581else $as_nop
7582
7583    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584printf "%s\n" "no" >&6; }
7585    tmp_thread_safe_initially_defined="no"
7586
7587fi
7588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7589  #
7590  if test "$tmp_thread_safe_initially_defined" = "no"; then
7591    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7592printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7593
7594  case $host_os in
7595    aix[123].* | aix4.[012].*)
7596            tmp_need_thread_safe="no"
7597      ;;
7598    aix*)
7599            tmp_need_thread_safe="yes"
7600      ;;
7601    *)
7602      tmp_need_thread_safe="no"
7603      ;;
7604  esac
7605
7606    if test "$tmp_need_thread_safe" = "yes"; then
7607      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7608printf "%s\n" "yes" >&6; }
7609    else
7610      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611printf "%s\n" "no" >&6; }
7612    fi
7613  fi
7614  #
7615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7616printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7617  if test "$tmp_thread_safe_initially_defined" = "yes" ||
7618    test "$tmp_need_thread_safe" = "yes"; then
7619
7620
7621printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7622
7623cat >>confdefs.h <<_EOF
7624#ifndef _THREAD_SAFE
7625#  define _THREAD_SAFE
7626#endif
7627_EOF
7628
7629    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7630printf "%s\n" "yes" >&6; }
7631  else
7632    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633printf "%s\n" "no" >&6; }
7634  fi
7635  #
7636
7637
7638    #
7639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7640printf %s "checking if _REENTRANT is already defined... " >&6; }
7641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642/* end confdefs.h.  */
7643
7644
7645
7646int main (void)
7647{
7648
7649#ifdef _REENTRANT
7650      int dummy=1;
7651#else
7652      force compilation error
7653#endif
7654
7655 ;
7656 return 0;
7657}
7658
7659_ACEOF
7660if ac_fn_c_try_compile "$LINENO"
7661then :
7662
7663    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7664printf "%s\n" "yes" >&6; }
7665    tmp_reentrant_initially_defined="yes"
7666
7667else $as_nop
7668
7669    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670printf "%s\n" "no" >&6; }
7671    tmp_reentrant_initially_defined="no"
7672
7673fi
7674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7675  #
7676  if test "$tmp_reentrant_initially_defined" = "no"; then
7677    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7678printf %s "checking if _REENTRANT is actually needed... " >&6; }
7679
7680  case $host_os in
7681    solaris*)
7682      tmp_need_reentrant="yes"
7683      ;;
7684    *)
7685      tmp_need_reentrant="no"
7686      ;;
7687  esac
7688
7689    if test "$tmp_need_reentrant" = "no"; then
7690
7691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h.  */
7693
7694
7695#include <errno.h>
7696
7697int main (void)
7698{
7699
7700      if(0 != errno)
7701        return 1;
7702
7703 ;
7704 return 0;
7705}
7706
7707_ACEOF
7708if ac_fn_c_try_compile "$LINENO"
7709then :
7710
7711    tmp_errno="yes"
7712
7713else $as_nop
7714
7715    tmp_errno="no"
7716
7717fi
7718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7719  if test "$tmp_errno" = "yes"; then
7720    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h.  */
7722
7723
7724#include <errno.h>
7725
7726int main (void)
7727{
7728
7729#ifdef errno
7730        int dummy=1;
7731#else
7732        force compilation error
7733#endif
7734
7735 ;
7736 return 0;
7737}
7738
7739_ACEOF
7740if ac_fn_c_try_compile "$LINENO"
7741then :
7742
7743      tmp_errno="errno_macro_defined"
7744
7745else $as_nop
7746
7747      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749
7750
7751#define _REENTRANT
7752#include <errno.h>
7753
7754int main (void)
7755{
7756
7757#ifdef errno
7758          int dummy=1;
7759#else
7760          force compilation error
7761#endif
7762
7763 ;
7764 return 0;
7765}
7766
7767_ACEOF
7768if ac_fn_c_try_compile "$LINENO"
7769then :
7770
7771        tmp_errno="errno_macro_needs_reentrant"
7772        tmp_need_reentrant="yes"
7773
7774fi
7775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7776
7777fi
7778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7779  fi
7780
7781    fi
7782    if test "$tmp_need_reentrant" = "no"; then
7783
7784  if test "$tmp_need_reentrant" = "no"; then
7785
7786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h.  */
7788
7789
7790#define gmtime_r innocuous_gmtime_r
7791#ifdef __STDC__
7792# include <limits.h>
7793#else
7794# include <assert.h>
7795#endif
7796#undef gmtime_r
7797#ifdef __cplusplus
7798extern "C"
7799#endif
7800char gmtime_r ();
7801#if defined __stub_gmtime_r || defined __stub___gmtime_r
7802choke me
7803#endif
7804
7805int main (void)
7806{
7807return gmtime_r ();
7808 ;
7809 return 0;
7810}
7811
7812_ACEOF
7813if ac_fn_c_try_link "$LINENO"
7814then :
7815
7816    tmp_gmtime_r="yes"
7817
7818else $as_nop
7819
7820    tmp_gmtime_r="no"
7821
7822fi
7823rm -f core conftest.err conftest.$ac_objext conftest.beam \
7824    conftest$ac_exeext conftest.$ac_ext
7825  if test "$tmp_gmtime_r" = "yes"; then
7826    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h.  */
7828
7829#include <sys/types.h>
7830#include <time.h>
7831
7832_ACEOF
7833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7834  $EGREP "gmtime_r" >/dev/null 2>&1
7835then :
7836
7837      tmp_gmtime_r="proto_declared"
7838
7839else $as_nop
7840
7841      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h.  */
7843
7844#define _REENTRANT
7845#include <sys/types.h>
7846#include <time.h>
7847
7848_ACEOF
7849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7850  $EGREP "gmtime_r" >/dev/null 2>&1
7851then :
7852
7853        tmp_gmtime_r="proto_needs_reentrant"
7854        tmp_need_reentrant="yes"
7855
7856fi
7857rm -rf conftest*
7858
7859
7860fi
7861rm -rf conftest*
7862
7863  fi
7864
7865  fi
7866  if test "$tmp_need_reentrant" = "no"; then
7867
7868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869/* end confdefs.h.  */
7870
7871
7872#define localtime_r innocuous_localtime_r
7873#ifdef __STDC__
7874# include <limits.h>
7875#else
7876# include <assert.h>
7877#endif
7878#undef localtime_r
7879#ifdef __cplusplus
7880extern "C"
7881#endif
7882char localtime_r ();
7883#if defined __stub_localtime_r || defined __stub___localtime_r
7884choke me
7885#endif
7886
7887int main (void)
7888{
7889return localtime_r ();
7890 ;
7891 return 0;
7892}
7893
7894_ACEOF
7895if ac_fn_c_try_link "$LINENO"
7896then :
7897
7898    tmp_localtime_r="yes"
7899
7900else $as_nop
7901
7902    tmp_localtime_r="no"
7903
7904fi
7905rm -f core conftest.err conftest.$ac_objext conftest.beam \
7906    conftest$ac_exeext conftest.$ac_ext
7907  if test "$tmp_localtime_r" = "yes"; then
7908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910
7911#include <sys/types.h>
7912#include <time.h>
7913
7914_ACEOF
7915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916  $EGREP "localtime_r" >/dev/null 2>&1
7917then :
7918
7919      tmp_localtime_r="proto_declared"
7920
7921else $as_nop
7922
7923      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924/* end confdefs.h.  */
7925
7926#define _REENTRANT
7927#include <sys/types.h>
7928#include <time.h>
7929
7930_ACEOF
7931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7932  $EGREP "localtime_r" >/dev/null 2>&1
7933then :
7934
7935        tmp_localtime_r="proto_needs_reentrant"
7936        tmp_need_reentrant="yes"
7937
7938fi
7939rm -rf conftest*
7940
7941
7942fi
7943rm -rf conftest*
7944
7945  fi
7946
7947  fi
7948  if test "$tmp_need_reentrant" = "no"; then
7949
7950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951/* end confdefs.h.  */
7952
7953
7954#define strerror_r innocuous_strerror_r
7955#ifdef __STDC__
7956# include <limits.h>
7957#else
7958# include <assert.h>
7959#endif
7960#undef strerror_r
7961#ifdef __cplusplus
7962extern "C"
7963#endif
7964char strerror_r ();
7965#if defined __stub_strerror_r || defined __stub___strerror_r
7966choke me
7967#endif
7968
7969int main (void)
7970{
7971return strerror_r ();
7972 ;
7973 return 0;
7974}
7975
7976_ACEOF
7977if ac_fn_c_try_link "$LINENO"
7978then :
7979
7980    tmp_strerror_r="yes"
7981
7982else $as_nop
7983
7984    tmp_strerror_r="no"
7985
7986fi
7987rm -f core conftest.err conftest.$ac_objext conftest.beam \
7988    conftest$ac_exeext conftest.$ac_ext
7989  if test "$tmp_strerror_r" = "yes"; then
7990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991/* end confdefs.h.  */
7992
7993#include <sys/types.h>
7994#include <string.h>
7995
7996_ACEOF
7997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7998  $EGREP "strerror_r" >/dev/null 2>&1
7999then :
8000
8001      tmp_strerror_r="proto_declared"
8002
8003else $as_nop
8004
8005      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006/* end confdefs.h.  */
8007
8008#define _REENTRANT
8009#include <sys/types.h>
8010#include <string.h>
8011
8012_ACEOF
8013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014  $EGREP "strerror_r" >/dev/null 2>&1
8015then :
8016
8017        tmp_strerror_r="proto_needs_reentrant"
8018        tmp_need_reentrant="yes"
8019
8020fi
8021rm -rf conftest*
8022
8023
8024fi
8025rm -rf conftest*
8026
8027  fi
8028
8029  fi
8030  if test "$tmp_need_reentrant" = "no"; then
8031
8032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h.  */
8034
8035
8036#define strtok_r innocuous_strtok_r
8037#ifdef __STDC__
8038# include <limits.h>
8039#else
8040# include <assert.h>
8041#endif
8042#undef strtok_r
8043#ifdef __cplusplus
8044extern "C"
8045#endif
8046char strtok_r ();
8047#if defined __stub_strtok_r || defined __stub___strtok_r
8048choke me
8049#endif
8050
8051int main (void)
8052{
8053return strtok_r ();
8054 ;
8055 return 0;
8056}
8057
8058_ACEOF
8059if ac_fn_c_try_link "$LINENO"
8060then :
8061
8062    tmp_strtok_r="yes"
8063
8064else $as_nop
8065
8066    tmp_strtok_r="no"
8067
8068fi
8069rm -f core conftest.err conftest.$ac_objext conftest.beam \
8070    conftest$ac_exeext conftest.$ac_ext
8071  if test "$tmp_strtok_r" = "yes"; then
8072    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h.  */
8074
8075#include <sys/types.h>
8076#include <string.h>
8077
8078_ACEOF
8079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8080  $EGREP "strtok_r" >/dev/null 2>&1
8081then :
8082
8083      tmp_strtok_r="proto_declared"
8084
8085else $as_nop
8086
8087      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h.  */
8089
8090#define _REENTRANT
8091#include <sys/types.h>
8092#include <string.h>
8093
8094_ACEOF
8095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8096  $EGREP "strtok_r" >/dev/null 2>&1
8097then :
8098
8099        tmp_strtok_r="proto_needs_reentrant"
8100        tmp_need_reentrant="yes"
8101
8102fi
8103rm -rf conftest*
8104
8105
8106fi
8107rm -rf conftest*
8108
8109  fi
8110
8111  fi
8112  if test "$tmp_need_reentrant" = "no"; then
8113
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116
8117
8118#define gethostbyname_r innocuous_gethostbyname_r
8119#ifdef __STDC__
8120# include <limits.h>
8121#else
8122# include <assert.h>
8123#endif
8124#undef gethostbyname_r
8125#ifdef __cplusplus
8126extern "C"
8127#endif
8128char gethostbyname_r ();
8129#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
8130choke me
8131#endif
8132
8133int main (void)
8134{
8135return gethostbyname_r ();
8136 ;
8137 return 0;
8138}
8139
8140_ACEOF
8141if ac_fn_c_try_link "$LINENO"
8142then :
8143
8144    tmp_gethostbyname_r="yes"
8145
8146else $as_nop
8147
8148    tmp_gethostbyname_r="no"
8149
8150fi
8151rm -f core conftest.err conftest.$ac_objext conftest.beam \
8152    conftest$ac_exeext conftest.$ac_ext
8153  if test "$tmp_gethostbyname_r" = "yes"; then
8154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155/* end confdefs.h.  */
8156
8157#include <sys/types.h>
8158#include <netdb.h>
8159
8160_ACEOF
8161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8162  $EGREP "gethostbyname_r" >/dev/null 2>&1
8163then :
8164
8165      tmp_gethostbyname_r="proto_declared"
8166
8167else $as_nop
8168
8169      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170/* end confdefs.h.  */
8171
8172#define _REENTRANT
8173#include <sys/types.h>
8174#include <netdb.h>
8175
8176_ACEOF
8177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178  $EGREP "gethostbyname_r" >/dev/null 2>&1
8179then :
8180
8181        tmp_gethostbyname_r="proto_needs_reentrant"
8182        tmp_need_reentrant="yes"
8183
8184fi
8185rm -rf conftest*
8186
8187
8188fi
8189rm -rf conftest*
8190
8191  fi
8192
8193  fi
8194  if test "$tmp_need_reentrant" = "no"; then
8195
8196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197/* end confdefs.h.  */
8198
8199
8200#define getprotobyname_r innocuous_getprotobyname_r
8201#ifdef __STDC__
8202# include <limits.h>
8203#else
8204# include <assert.h>
8205#endif
8206#undef getprotobyname_r
8207#ifdef __cplusplus
8208extern "C"
8209#endif
8210char getprotobyname_r ();
8211#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
8212choke me
8213#endif
8214
8215int main (void)
8216{
8217return getprotobyname_r ();
8218 ;
8219 return 0;
8220}
8221
8222_ACEOF
8223if ac_fn_c_try_link "$LINENO"
8224then :
8225
8226    tmp_getprotobyname_r="yes"
8227
8228else $as_nop
8229
8230    tmp_getprotobyname_r="no"
8231
8232fi
8233rm -f core conftest.err conftest.$ac_objext conftest.beam \
8234    conftest$ac_exeext conftest.$ac_ext
8235  if test "$tmp_getprotobyname_r" = "yes"; then
8236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237/* end confdefs.h.  */
8238
8239#include <sys/types.h>
8240#include <netdb.h>
8241
8242_ACEOF
8243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244  $EGREP "getprotobyname_r" >/dev/null 2>&1
8245then :
8246
8247      tmp_getprotobyname_r="proto_declared"
8248
8249else $as_nop
8250
8251      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252/* end confdefs.h.  */
8253
8254#define _REENTRANT
8255#include <sys/types.h>
8256#include <netdb.h>
8257
8258_ACEOF
8259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8260  $EGREP "getprotobyname_r" >/dev/null 2>&1
8261then :
8262
8263        tmp_getprotobyname_r="proto_needs_reentrant"
8264        tmp_need_reentrant="yes"
8265
8266fi
8267rm -rf conftest*
8268
8269
8270fi
8271rm -rf conftest*
8272
8273  fi
8274
8275  fi
8276
8277    fi
8278    if test "$tmp_need_reentrant" = "yes"; then
8279      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8280printf "%s\n" "yes" >&6; }
8281    else
8282      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283printf "%s\n" "no" >&6; }
8284    fi
8285  fi
8286  #
8287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
8288printf %s "checking if _REENTRANT is onwards defined... " >&6; }
8289  if test "$tmp_reentrant_initially_defined" = "yes" ||
8290    test "$tmp_need_reentrant" = "yes"; then
8291
8292
8293printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
8294
8295cat >>confdefs.h <<_EOF
8296#ifndef _REENTRANT
8297#  define _REENTRANT
8298#endif
8299_EOF
8300
8301    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8302printf "%s\n" "yes" >&6; }
8303  else
8304    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305printf "%s\n" "no" >&6; }
8306  fi
8307  #
8308
8309
8310# Check whether --enable-largefile was given.
8311if test ${enable_largefile+y}
8312then :
8313  enableval=$enable_largefile;
8314fi
8315
8316if test "$enable_largefile" != no; then
8317
8318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8319printf %s "checking for special C compiler options needed for large files... " >&6; }
8320if test ${ac_cv_sys_largefile_CC+y}
8321then :
8322  printf %s "(cached) " >&6
8323else $as_nop
8324  ac_cv_sys_largefile_CC=no
8325     if test "$GCC" != yes; then
8326       ac_save_CC=$CC
8327       while :; do
8328	 # IRIX 6.2 and later do not support large files by default,
8329	 # so use the C compiler's -n32 option if that helps.
8330	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332#include <sys/types.h>
8333 /* Check that off_t can represent 2**63 - 1 correctly.
8334    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8335    since some C++ compilers masquerading as C compilers
8336    incorrectly reject 9223372036854775807.  */
8337#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8338  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8339		       && LARGE_OFF_T % 2147483647 == 1)
8340		      ? 1 : -1];
8341int main (void)
8342{
8343
8344 ;
8345 return 0;
8346}
8347_ACEOF
8348	 if ac_fn_c_try_compile "$LINENO"
8349then :
8350  break
8351fi
8352rm -f core conftest.err conftest.$ac_objext conftest.beam
8353	 CC="$CC -n32"
8354	 if ac_fn_c_try_compile "$LINENO"
8355then :
8356  ac_cv_sys_largefile_CC=' -n32'; break
8357fi
8358rm -f core conftest.err conftest.$ac_objext conftest.beam
8359	 break
8360       done
8361       CC=$ac_save_CC
8362       rm -f conftest.$ac_ext
8363    fi
8364fi
8365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8366printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8367  if test "$ac_cv_sys_largefile_CC" != no; then
8368    CC=$CC$ac_cv_sys_largefile_CC
8369  fi
8370
8371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8372printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8373if test ${ac_cv_sys_file_offset_bits+y}
8374then :
8375  printf %s "(cached) " >&6
8376else $as_nop
8377  while :; do
8378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379/* end confdefs.h.  */
8380#include <sys/types.h>
8381 /* Check that off_t can represent 2**63 - 1 correctly.
8382    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8383    since some C++ compilers masquerading as C compilers
8384    incorrectly reject 9223372036854775807.  */
8385#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8386  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8387		       && LARGE_OFF_T % 2147483647 == 1)
8388		      ? 1 : -1];
8389int main (void)
8390{
8391
8392 ;
8393 return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_compile "$LINENO"
8397then :
8398  ac_cv_sys_file_offset_bits=no; break
8399fi
8400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402/* end confdefs.h.  */
8403#define _FILE_OFFSET_BITS 64
8404#include <sys/types.h>
8405 /* Check that off_t can represent 2**63 - 1 correctly.
8406    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8407    since some C++ compilers masquerading as C compilers
8408    incorrectly reject 9223372036854775807.  */
8409#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8410  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8411		       && LARGE_OFF_T % 2147483647 == 1)
8412		      ? 1 : -1];
8413int main (void)
8414{
8415
8416 ;
8417 return 0;
8418}
8419_ACEOF
8420if ac_fn_c_try_compile "$LINENO"
8421then :
8422  ac_cv_sys_file_offset_bits=64; break
8423fi
8424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8425  ac_cv_sys_file_offset_bits=unknown
8426  break
8427done
8428fi
8429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8430printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8431case $ac_cv_sys_file_offset_bits in #(
8432  no | unknown) ;;
8433  *)
8434printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8435;;
8436esac
8437rm -rf conftest*
8438  if test $ac_cv_sys_file_offset_bits = unknown; then
8439    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8440printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8441if test ${ac_cv_sys_large_files+y}
8442then :
8443  printf %s "(cached) " >&6
8444else $as_nop
8445  while :; do
8446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448#include <sys/types.h>
8449 /* Check that off_t can represent 2**63 - 1 correctly.
8450    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8451    since some C++ compilers masquerading as C compilers
8452    incorrectly reject 9223372036854775807.  */
8453#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8454  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8455		       && LARGE_OFF_T % 2147483647 == 1)
8456		      ? 1 : -1];
8457int main (void)
8458{
8459
8460 ;
8461 return 0;
8462}
8463_ACEOF
8464if ac_fn_c_try_compile "$LINENO"
8465then :
8466  ac_cv_sys_large_files=no; break
8467fi
8468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h.  */
8471#define _LARGE_FILES 1
8472#include <sys/types.h>
8473 /* Check that off_t can represent 2**63 - 1 correctly.
8474    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8475    since some C++ compilers masquerading as C compilers
8476    incorrectly reject 9223372036854775807.  */
8477#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8478  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8479		       && LARGE_OFF_T % 2147483647 == 1)
8480		      ? 1 : -1];
8481int main (void)
8482{
8483
8484 ;
8485 return 0;
8486}
8487_ACEOF
8488if ac_fn_c_try_compile "$LINENO"
8489then :
8490  ac_cv_sys_large_files=1; break
8491fi
8492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8493  ac_cv_sys_large_files=unknown
8494  break
8495done
8496fi
8497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8498printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8499case $ac_cv_sys_large_files in #(
8500  no | unknown) ;;
8501  *)
8502printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8503;;
8504esac
8505rm -rf conftest*
8506  fi
8507fi
8508
8509
8510case `pwd` in
8511  *\ * | *\	*)
8512    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8513printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8514esac
8515
8516
8517
8518macro_version='2.4.7'
8519macro_revision='2.4.7'
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534ltmain=$ac_aux_dir/ltmain.sh
8535
8536# Backslashify metacharacters that are still active within
8537# double-quoted strings.
8538sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8539
8540# Same as above, but do not quote variable references.
8541double_quote_subst='s/\(["`\\]\)/\\\1/g'
8542
8543# Sed substitution to delay expansion of an escaped shell variable in a
8544# double_quote_subst'ed string.
8545delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8546
8547# Sed substitution to delay expansion of an escaped single quote.
8548delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8549
8550# Sed substitution to avoid accidental globbing in evaled expressions
8551no_glob_subst='s/\*/\\\*/g'
8552
8553ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8554ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8555ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8556
8557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8558printf %s "checking how to print strings... " >&6; }
8559# Test print first, because it will be a builtin if present.
8560if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8561   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8562  ECHO='print -r --'
8563elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8564  ECHO='printf %s\n'
8565else
8566  # Use this function as a fallback that always works.
8567  func_fallback_echo ()
8568  {
8569    eval 'cat <<_LTECHO_EOF
8570$1
8571_LTECHO_EOF'
8572  }
8573  ECHO='func_fallback_echo'
8574fi
8575
8576# func_echo_all arg...
8577# Invoke $ECHO with all args, space-separated.
8578func_echo_all ()
8579{
8580    $ECHO ""
8581}
8582
8583case $ECHO in
8584  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8585printf "%s\n" "printf" >&6; } ;;
8586  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8587printf "%s\n" "print -r" >&6; } ;;
8588  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8589printf "%s\n" "cat" >&6; } ;;
8590esac
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8606printf %s "checking for a sed that does not truncate output... " >&6; }
8607if test ${ac_cv_path_SED+y}
8608then :
8609  printf %s "(cached) " >&6
8610else $as_nop
8611            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8612     for ac_i in 1 2 3 4 5 6 7; do
8613       ac_script="$ac_script$as_nl$ac_script"
8614     done
8615     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8616     { ac_script=; unset ac_script;}
8617     if test -z "$SED"; then
8618  ac_path_SED_found=false
8619  # Loop through the user's path and test for each of PROGNAME-LIST
8620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623  IFS=$as_save_IFS
8624  case $as_dir in #(((
8625    '') as_dir=./ ;;
8626    */) ;;
8627    *) as_dir=$as_dir/ ;;
8628  esac
8629    for ac_prog in sed gsed
8630   do
8631    for ac_exec_ext in '' $ac_executable_extensions; do
8632      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8633      as_fn_executable_p "$ac_path_SED" || continue
8634# Check for GNU ac_path_SED and select it if it is found.
8635  # Check for GNU $ac_path_SED
8636case `"$ac_path_SED" --version 2>&1` in
8637*GNU*)
8638  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8639*)
8640  ac_count=0
8641  printf %s 0123456789 >"conftest.in"
8642  while :
8643  do
8644    cat "conftest.in" "conftest.in" >"conftest.tmp"
8645    mv "conftest.tmp" "conftest.in"
8646    cp "conftest.in" "conftest.nl"
8647    printf "%s\n" '' >> "conftest.nl"
8648    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8649    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8650    as_fn_arith $ac_count + 1 && ac_count=$as_val
8651    if test $ac_count -gt ${ac_path_SED_max-0}; then
8652      # Best one so far, save it but keep looking for a better one
8653      ac_cv_path_SED="$ac_path_SED"
8654      ac_path_SED_max=$ac_count
8655    fi
8656    # 10*(2^10) chars as input seems more than enough
8657    test $ac_count -gt 10 && break
8658  done
8659  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8660esac
8661
8662      $ac_path_SED_found && break 3
8663    done
8664  done
8665  done
8666IFS=$as_save_IFS
8667  if test -z "$ac_cv_path_SED"; then
8668    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8669  fi
8670else
8671  ac_cv_path_SED=$SED
8672fi
8673
8674fi
8675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8676printf "%s\n" "$ac_cv_path_SED" >&6; }
8677 SED="$ac_cv_path_SED"
8678  rm -f conftest.sed
8679
8680test -z "$SED" && SED=sed
8681Xsed="$SED -e 1s/^X//"
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8694printf %s "checking for fgrep... " >&6; }
8695if test ${ac_cv_path_FGREP+y}
8696then :
8697  printf %s "(cached) " >&6
8698else $as_nop
8699  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8700   then ac_cv_path_FGREP="$GREP -F"
8701   else
8702     if test -z "$FGREP"; then
8703  ac_path_FGREP_found=false
8704  # Loop through the user's path and test for each of PROGNAME-LIST
8705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8707do
8708  IFS=$as_save_IFS
8709  case $as_dir in #(((
8710    '') as_dir=./ ;;
8711    */) ;;
8712    *) as_dir=$as_dir/ ;;
8713  esac
8714    for ac_prog in fgrep
8715   do
8716    for ac_exec_ext in '' $ac_executable_extensions; do
8717      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8718      as_fn_executable_p "$ac_path_FGREP" || continue
8719# Check for GNU ac_path_FGREP and select it if it is found.
8720  # Check for GNU $ac_path_FGREP
8721case `"$ac_path_FGREP" --version 2>&1` in
8722*GNU*)
8723  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8724*)
8725  ac_count=0
8726  printf %s 0123456789 >"conftest.in"
8727  while :
8728  do
8729    cat "conftest.in" "conftest.in" >"conftest.tmp"
8730    mv "conftest.tmp" "conftest.in"
8731    cp "conftest.in" "conftest.nl"
8732    printf "%s\n" 'FGREP' >> "conftest.nl"
8733    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8734    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8735    as_fn_arith $ac_count + 1 && ac_count=$as_val
8736    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8737      # Best one so far, save it but keep looking for a better one
8738      ac_cv_path_FGREP="$ac_path_FGREP"
8739      ac_path_FGREP_max=$ac_count
8740    fi
8741    # 10*(2^10) chars as input seems more than enough
8742    test $ac_count -gt 10 && break
8743  done
8744  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8745esac
8746
8747      $ac_path_FGREP_found && break 3
8748    done
8749  done
8750  done
8751IFS=$as_save_IFS
8752  if test -z "$ac_cv_path_FGREP"; then
8753    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8754  fi
8755else
8756  ac_cv_path_FGREP=$FGREP
8757fi
8758
8759   fi
8760fi
8761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8762printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8763 FGREP="$ac_cv_path_FGREP"
8764
8765
8766test -z "$GREP" && GREP=grep
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786# Check whether --with-gnu-ld was given.
8787if test ${with_gnu_ld+y}
8788then :
8789  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8790else $as_nop
8791  with_gnu_ld=no
8792fi
8793
8794ac_prog=ld
8795if test yes = "$GCC"; then
8796  # Check if gcc -print-prog-name=ld gives a path.
8797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8798printf %s "checking for ld used by $CC... " >&6; }
8799  case $host in
8800  *-*-mingw*)
8801    # gcc leaves a trailing carriage return, which upsets mingw
8802    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8803  *)
8804    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8805  esac
8806  case $ac_prog in
8807    # Accept absolute paths.
8808    [\\/]* | ?:[\\/]*)
8809      re_direlt='/[^/][^/]*/\.\./'
8810      # Canonicalize the pathname of ld
8811      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8812      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8813	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8814      done
8815      test -z "$LD" && LD=$ac_prog
8816      ;;
8817  "")
8818    # If it fails, then pretend we aren't using GCC.
8819    ac_prog=ld
8820    ;;
8821  *)
8822    # If it is relative, then search for the first ld in PATH.
8823    with_gnu_ld=unknown
8824    ;;
8825  esac
8826elif test yes = "$with_gnu_ld"; then
8827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8828printf %s "checking for GNU ld... " >&6; }
8829else
8830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8831printf %s "checking for non-GNU ld... " >&6; }
8832fi
8833if test ${lt_cv_path_LD+y}
8834then :
8835  printf %s "(cached) " >&6
8836else $as_nop
8837  if test -z "$LD"; then
8838  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8839  for ac_dir in $PATH; do
8840    IFS=$lt_save_ifs
8841    test -z "$ac_dir" && ac_dir=.
8842    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8843      lt_cv_path_LD=$ac_dir/$ac_prog
8844      # Check to see if the program is GNU ld.  I'd rather use --version,
8845      # but apparently some variants of GNU ld only accept -v.
8846      # Break only if it was the GNU/non-GNU ld that we prefer.
8847      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8848      *GNU* | *'with BFD'*)
8849	test no != "$with_gnu_ld" && break
8850	;;
8851      *)
8852	test yes != "$with_gnu_ld" && break
8853	;;
8854      esac
8855    fi
8856  done
8857  IFS=$lt_save_ifs
8858else
8859  lt_cv_path_LD=$LD # Let the user override the test with a path.
8860fi
8861fi
8862
8863LD=$lt_cv_path_LD
8864if test -n "$LD"; then
8865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8866printf "%s\n" "$LD" >&6; }
8867else
8868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869printf "%s\n" "no" >&6; }
8870fi
8871test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8873printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8874if test ${lt_cv_prog_gnu_ld+y}
8875then :
8876  printf %s "(cached) " >&6
8877else $as_nop
8878  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8879case `$LD -v 2>&1 </dev/null` in
8880*GNU* | *'with BFD'*)
8881  lt_cv_prog_gnu_ld=yes
8882  ;;
8883*)
8884  lt_cv_prog_gnu_ld=no
8885  ;;
8886esac
8887fi
8888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8889printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8890with_gnu_ld=$lt_cv_prog_gnu_ld
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8901printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8902if test ${lt_cv_path_NM+y}
8903then :
8904  printf %s "(cached) " >&6
8905else $as_nop
8906  if test -n "$NM"; then
8907  # Let the user override the test.
8908  lt_cv_path_NM=$NM
8909else
8910  lt_nm_to_check=${ac_tool_prefix}nm
8911  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8912    lt_nm_to_check="$lt_nm_to_check nm"
8913  fi
8914  for lt_tmp_nm in $lt_nm_to_check; do
8915    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8916    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8917      IFS=$lt_save_ifs
8918      test -z "$ac_dir" && ac_dir=.
8919      tmp_nm=$ac_dir/$lt_tmp_nm
8920      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8921	# Check to see if the nm accepts a BSD-compat flag.
8922	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8923	#   nm: unknown option "B" ignored
8924	# Tru64's nm complains that /dev/null is an invalid object file
8925	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8926	case $build_os in
8927	mingw*) lt_bad_file=conftest.nm/nofile ;;
8928	*) lt_bad_file=/dev/null ;;
8929	esac
8930	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8931	*$lt_bad_file* | *'Invalid file or object type'*)
8932	  lt_cv_path_NM="$tmp_nm -B"
8933	  break 2
8934	  ;;
8935	*)
8936	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8937	  */dev/null*)
8938	    lt_cv_path_NM="$tmp_nm -p"
8939	    break 2
8940	    ;;
8941	  *)
8942	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8943	    continue # so that we can try to find one that supports BSD flags
8944	    ;;
8945	  esac
8946	  ;;
8947	esac
8948      fi
8949    done
8950    IFS=$lt_save_ifs
8951  done
8952  : ${lt_cv_path_NM=no}
8953fi
8954fi
8955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8956printf "%s\n" "$lt_cv_path_NM" >&6; }
8957if test no != "$lt_cv_path_NM"; then
8958  NM=$lt_cv_path_NM
8959else
8960  # Didn't find any BSD compatible name lister, look for dumpbin.
8961  if test -n "$DUMPBIN"; then :
8962    # Let the user override the test.
8963  else
8964    if test -n "$ac_tool_prefix"; then
8965  for ac_prog in dumpbin "link -dump"
8966  do
8967    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970printf %s "checking for $ac_word... " >&6; }
8971if test ${ac_cv_prog_DUMPBIN+y}
8972then :
8973  printf %s "(cached) " >&6
8974else $as_nop
8975  if test -n "$DUMPBIN"; then
8976  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8977else
8978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $PATH
8980do
8981  IFS=$as_save_IFS
8982  case $as_dir in #(((
8983    '') as_dir=./ ;;
8984    */) ;;
8985    *) as_dir=$as_dir/ ;;
8986  esac
8987    for ac_exec_ext in '' $ac_executable_extensions; do
8988  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8989    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8990    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8991    break 2
8992  fi
8993done
8994  done
8995IFS=$as_save_IFS
8996
8997fi
8998fi
8999DUMPBIN=$ac_cv_prog_DUMPBIN
9000if test -n "$DUMPBIN"; then
9001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9002printf "%s\n" "$DUMPBIN" >&6; }
9003else
9004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005printf "%s\n" "no" >&6; }
9006fi
9007
9008
9009    test -n "$DUMPBIN" && break
9010  done
9011fi
9012if test -z "$DUMPBIN"; then
9013  ac_ct_DUMPBIN=$DUMPBIN
9014  for ac_prog in dumpbin "link -dump"
9015do
9016  # Extract the first word of "$ac_prog", so it can be a program name with args.
9017set dummy $ac_prog; ac_word=$2
9018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019printf %s "checking for $ac_word... " >&6; }
9020if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9021then :
9022  printf %s "(cached) " >&6
9023else $as_nop
9024  if test -n "$ac_ct_DUMPBIN"; then
9025  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9026else
9027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028for as_dir in $PATH
9029do
9030  IFS=$as_save_IFS
9031  case $as_dir in #(((
9032    '') as_dir=./ ;;
9033    */) ;;
9034    *) as_dir=$as_dir/ ;;
9035  esac
9036    for ac_exec_ext in '' $ac_executable_extensions; do
9037  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9038    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9039    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9040    break 2
9041  fi
9042done
9043  done
9044IFS=$as_save_IFS
9045
9046fi
9047fi
9048ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9049if test -n "$ac_ct_DUMPBIN"; then
9050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9051printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9052else
9053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054printf "%s\n" "no" >&6; }
9055fi
9056
9057
9058  test -n "$ac_ct_DUMPBIN" && break
9059done
9060
9061  if test "x$ac_ct_DUMPBIN" = x; then
9062    DUMPBIN=":"
9063  else
9064    case $cross_compiling:$ac_tool_warned in
9065yes:)
9066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9067printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9068ac_tool_warned=yes ;;
9069esac
9070    DUMPBIN=$ac_ct_DUMPBIN
9071  fi
9072fi
9073
9074    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9075    *COFF*)
9076      DUMPBIN="$DUMPBIN -symbols -headers"
9077      ;;
9078    *)
9079      DUMPBIN=:
9080      ;;
9081    esac
9082  fi
9083
9084  if test : != "$DUMPBIN"; then
9085    NM=$DUMPBIN
9086  fi
9087fi
9088test -z "$NM" && NM=nm
9089
9090
9091
9092
9093
9094
9095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9096printf %s "checking the name lister ($NM) interface... " >&6; }
9097if test ${lt_cv_nm_interface+y}
9098then :
9099  printf %s "(cached) " >&6
9100else $as_nop
9101  lt_cv_nm_interface="BSD nm"
9102  echo "int some_variable = 0;" > conftest.$ac_ext
9103  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9104  (eval "$ac_compile" 2>conftest.err)
9105  cat conftest.err >&5
9106  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9107  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9108  cat conftest.err >&5
9109  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9110  cat conftest.out >&5
9111  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9112    lt_cv_nm_interface="MS dumpbin"
9113  fi
9114  rm -f conftest*
9115fi
9116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9117printf "%s\n" "$lt_cv_nm_interface" >&6; }
9118
9119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9120printf %s "checking whether ln -s works... " >&6; }
9121LN_S=$as_ln_s
9122if test "$LN_S" = "ln -s"; then
9123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9124printf "%s\n" "yes" >&6; }
9125else
9126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9127printf "%s\n" "no, using $LN_S" >&6; }
9128fi
9129
9130# find the maximum length of command line arguments
9131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9132printf %s "checking the maximum length of command line arguments... " >&6; }
9133if test ${lt_cv_sys_max_cmd_len+y}
9134then :
9135  printf %s "(cached) " >&6
9136else $as_nop
9137    i=0
9138  teststring=ABCD
9139
9140  case $build_os in
9141  msdosdjgpp*)
9142    # On DJGPP, this test can blow up pretty badly due to problems in libc
9143    # (any single argument exceeding 2000 bytes causes a buffer overrun
9144    # during glob expansion).  Even if it were fixed, the result of this
9145    # check would be larger than it should be.
9146    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9147    ;;
9148
9149  gnu*)
9150    # Under GNU Hurd, this test is not required because there is
9151    # no limit to the length of command line arguments.
9152    # Libtool will interpret -1 as no limit whatsoever
9153    lt_cv_sys_max_cmd_len=-1;
9154    ;;
9155
9156  cygwin* | mingw* | cegcc*)
9157    # On Win9x/ME, this test blows up -- it succeeds, but takes
9158    # about 5 minutes as the teststring grows exponentially.
9159    # Worse, since 9x/ME are not pre-emptively multitasking,
9160    # you end up with a "frozen" computer, even though with patience
9161    # the test eventually succeeds (with a max line length of 256k).
9162    # Instead, let's just punt: use the minimum linelength reported by
9163    # all of the supported platforms: 8192 (on NT/2K/XP).
9164    lt_cv_sys_max_cmd_len=8192;
9165    ;;
9166
9167  mint*)
9168    # On MiNT this can take a long time and run out of memory.
9169    lt_cv_sys_max_cmd_len=8192;
9170    ;;
9171
9172  amigaos*)
9173    # On AmigaOS with pdksh, this test takes hours, literally.
9174    # So we just punt and use a minimum line length of 8192.
9175    lt_cv_sys_max_cmd_len=8192;
9176    ;;
9177
9178  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9179    # This has been around since 386BSD, at least.  Likely further.
9180    if test -x /sbin/sysctl; then
9181      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9182    elif test -x /usr/sbin/sysctl; then
9183      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9184    else
9185      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9186    fi
9187    # And add a safety zone
9188    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9189    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9190    ;;
9191
9192  interix*)
9193    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9194    lt_cv_sys_max_cmd_len=196608
9195    ;;
9196
9197  os2*)
9198    # The test takes a long time on OS/2.
9199    lt_cv_sys_max_cmd_len=8192
9200    ;;
9201
9202  osf*)
9203    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9204    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9205    # nice to cause kernel panics so lets avoid the loop below.
9206    # First set a reasonable default.
9207    lt_cv_sys_max_cmd_len=16384
9208    #
9209    if test -x /sbin/sysconfig; then
9210      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9211        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9212      esac
9213    fi
9214    ;;
9215  sco3.2v5*)
9216    lt_cv_sys_max_cmd_len=102400
9217    ;;
9218  sysv5* | sco5v6* | sysv4.2uw2*)
9219    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9220    if test -n "$kargmax"; then
9221      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
9222    else
9223      lt_cv_sys_max_cmd_len=32768
9224    fi
9225    ;;
9226  *)
9227    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9228    if test -n "$lt_cv_sys_max_cmd_len" && \
9229       test undefined != "$lt_cv_sys_max_cmd_len"; then
9230      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9231      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9232    else
9233      # Make teststring a little bigger before we do anything with it.
9234      # a 1K string should be a reasonable start.
9235      for i in 1 2 3 4 5 6 7 8; do
9236        teststring=$teststring$teststring
9237      done
9238      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9239      # If test is not a shell built-in, we'll probably end up computing a
9240      # maximum length that is only half of the actual maximum length, but
9241      # we can't tell.
9242      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9243	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9244	      test 17 != "$i" # 1/2 MB should be enough
9245      do
9246        i=`expr $i + 1`
9247        teststring=$teststring$teststring
9248      done
9249      # Only check the string length outside the loop.
9250      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9251      teststring=
9252      # Add a significant safety factor because C++ compilers can tack on
9253      # massive amounts of additional arguments before passing them to the
9254      # linker.  It appears as though 1/2 is a usable value.
9255      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9256    fi
9257    ;;
9258  esac
9259
9260fi
9261
9262if test -n "$lt_cv_sys_max_cmd_len"; then
9263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9264printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9265else
9266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9267printf "%s\n" "none" >&6; }
9268fi
9269max_cmd_len=$lt_cv_sys_max_cmd_len
9270
9271
9272
9273
9274
9275
9276: ${CP="cp -f"}
9277: ${MV="mv -f"}
9278: ${RM="rm -f"}
9279
9280if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9281  lt_unset=unset
9282else
9283  lt_unset=false
9284fi
9285
9286
9287
9288
9289
9290# test EBCDIC or ASCII
9291case `echo X|tr X '\101'` in
9292 A) # ASCII based system
9293    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9294  lt_SP2NL='tr \040 \012'
9295  lt_NL2SP='tr \015\012 \040\040'
9296  ;;
9297 *) # EBCDIC based system
9298  lt_SP2NL='tr \100 \n'
9299  lt_NL2SP='tr \r\n \100\100'
9300  ;;
9301esac
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9312printf %s "checking how to convert $build file names to $host format... " >&6; }
9313if test ${lt_cv_to_host_file_cmd+y}
9314then :
9315  printf %s "(cached) " >&6
9316else $as_nop
9317  case $host in
9318  *-*-mingw* )
9319    case $build in
9320      *-*-mingw* ) # actually msys
9321        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9322        ;;
9323      *-*-cygwin* )
9324        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9325        ;;
9326      * ) # otherwise, assume *nix
9327        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9328        ;;
9329    esac
9330    ;;
9331  *-*-cygwin* )
9332    case $build in
9333      *-*-mingw* ) # actually msys
9334        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9335        ;;
9336      *-*-cygwin* )
9337        lt_cv_to_host_file_cmd=func_convert_file_noop
9338        ;;
9339      * ) # otherwise, assume *nix
9340        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9341        ;;
9342    esac
9343    ;;
9344  * ) # unhandled hosts (and "normal" native builds)
9345    lt_cv_to_host_file_cmd=func_convert_file_noop
9346    ;;
9347esac
9348
9349fi
9350
9351to_host_file_cmd=$lt_cv_to_host_file_cmd
9352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9353printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9354
9355
9356
9357
9358
9359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9360printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9361if test ${lt_cv_to_tool_file_cmd+y}
9362then :
9363  printf %s "(cached) " >&6
9364else $as_nop
9365  #assume ordinary cross tools, or native build.
9366lt_cv_to_tool_file_cmd=func_convert_file_noop
9367case $host in
9368  *-*-mingw* )
9369    case $build in
9370      *-*-mingw* ) # actually msys
9371        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9372        ;;
9373    esac
9374    ;;
9375esac
9376
9377fi
9378
9379to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9381printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9382
9383
9384
9385
9386
9387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9388printf %s "checking for $LD option to reload object files... " >&6; }
9389if test ${lt_cv_ld_reload_flag+y}
9390then :
9391  printf %s "(cached) " >&6
9392else $as_nop
9393  lt_cv_ld_reload_flag='-r'
9394fi
9395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9396printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9397reload_flag=$lt_cv_ld_reload_flag
9398case $reload_flag in
9399"" | " "*) ;;
9400*) reload_flag=" $reload_flag" ;;
9401esac
9402reload_cmds='$LD$reload_flag -o $output$reload_objs'
9403case $host_os in
9404  cygwin* | mingw* | pw32* | cegcc*)
9405    if test yes != "$GCC"; then
9406      reload_cmds=false
9407    fi
9408    ;;
9409  darwin*)
9410    if test yes = "$GCC"; then
9411      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9412    else
9413      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9414    fi
9415    ;;
9416esac
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426if test -n "$ac_tool_prefix"; then
9427  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9428set dummy ${ac_tool_prefix}file; ac_word=$2
9429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430printf %s "checking for $ac_word... " >&6; }
9431if test ${ac_cv_prog_FILECMD+y}
9432then :
9433  printf %s "(cached) " >&6
9434else $as_nop
9435  if test -n "$FILECMD"; then
9436  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9437else
9438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439for as_dir in $PATH
9440do
9441  IFS=$as_save_IFS
9442  case $as_dir in #(((
9443    '') as_dir=./ ;;
9444    */) ;;
9445    *) as_dir=$as_dir/ ;;
9446  esac
9447    for ac_exec_ext in '' $ac_executable_extensions; do
9448  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9449    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9450    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9451    break 2
9452  fi
9453done
9454  done
9455IFS=$as_save_IFS
9456
9457fi
9458fi
9459FILECMD=$ac_cv_prog_FILECMD
9460if test -n "$FILECMD"; then
9461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9462printf "%s\n" "$FILECMD" >&6; }
9463else
9464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465printf "%s\n" "no" >&6; }
9466fi
9467
9468
9469fi
9470if test -z "$ac_cv_prog_FILECMD"; then
9471  ac_ct_FILECMD=$FILECMD
9472  # Extract the first word of "file", so it can be a program name with args.
9473set dummy file; ac_word=$2
9474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475printf %s "checking for $ac_word... " >&6; }
9476if test ${ac_cv_prog_ac_ct_FILECMD+y}
9477then :
9478  printf %s "(cached) " >&6
9479else $as_nop
9480  if test -n "$ac_ct_FILECMD"; then
9481  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9482else
9483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484for as_dir in $PATH
9485do
9486  IFS=$as_save_IFS
9487  case $as_dir in #(((
9488    '') as_dir=./ ;;
9489    */) ;;
9490    *) as_dir=$as_dir/ ;;
9491  esac
9492    for ac_exec_ext in '' $ac_executable_extensions; do
9493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9494    ac_cv_prog_ac_ct_FILECMD="file"
9495    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9496    break 2
9497  fi
9498done
9499  done
9500IFS=$as_save_IFS
9501
9502fi
9503fi
9504ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9505if test -n "$ac_ct_FILECMD"; then
9506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9507printf "%s\n" "$ac_ct_FILECMD" >&6; }
9508else
9509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510printf "%s\n" "no" >&6; }
9511fi
9512
9513  if test "x$ac_ct_FILECMD" = x; then
9514    FILECMD=":"
9515  else
9516    case $cross_compiling:$ac_tool_warned in
9517yes:)
9518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9519printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9520ac_tool_warned=yes ;;
9521esac
9522    FILECMD=$ac_ct_FILECMD
9523  fi
9524else
9525  FILECMD="$ac_cv_prog_FILECMD"
9526fi
9527
9528
9529
9530
9531
9532
9533
9534if test -n "$ac_tool_prefix"; then
9535  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9536set dummy ${ac_tool_prefix}objdump; ac_word=$2
9537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538printf %s "checking for $ac_word... " >&6; }
9539if test ${ac_cv_prog_OBJDUMP+y}
9540then :
9541  printf %s "(cached) " >&6
9542else $as_nop
9543  if test -n "$OBJDUMP"; then
9544  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9545else
9546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9547for as_dir in $PATH
9548do
9549  IFS=$as_save_IFS
9550  case $as_dir in #(((
9551    '') as_dir=./ ;;
9552    */) ;;
9553    *) as_dir=$as_dir/ ;;
9554  esac
9555    for ac_exec_ext in '' $ac_executable_extensions; do
9556  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9557    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9558    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9559    break 2
9560  fi
9561done
9562  done
9563IFS=$as_save_IFS
9564
9565fi
9566fi
9567OBJDUMP=$ac_cv_prog_OBJDUMP
9568if test -n "$OBJDUMP"; then
9569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9570printf "%s\n" "$OBJDUMP" >&6; }
9571else
9572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573printf "%s\n" "no" >&6; }
9574fi
9575
9576
9577fi
9578if test -z "$ac_cv_prog_OBJDUMP"; then
9579  ac_ct_OBJDUMP=$OBJDUMP
9580  # Extract the first word of "objdump", so it can be a program name with args.
9581set dummy objdump; ac_word=$2
9582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583printf %s "checking for $ac_word... " >&6; }
9584if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9585then :
9586  printf %s "(cached) " >&6
9587else $as_nop
9588  if test -n "$ac_ct_OBJDUMP"; then
9589  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9590else
9591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592for as_dir in $PATH
9593do
9594  IFS=$as_save_IFS
9595  case $as_dir in #(((
9596    '') as_dir=./ ;;
9597    */) ;;
9598    *) as_dir=$as_dir/ ;;
9599  esac
9600    for ac_exec_ext in '' $ac_executable_extensions; do
9601  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9602    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9603    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9604    break 2
9605  fi
9606done
9607  done
9608IFS=$as_save_IFS
9609
9610fi
9611fi
9612ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9613if test -n "$ac_ct_OBJDUMP"; then
9614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9615printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9616else
9617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618printf "%s\n" "no" >&6; }
9619fi
9620
9621  if test "x$ac_ct_OBJDUMP" = x; then
9622    OBJDUMP="false"
9623  else
9624    case $cross_compiling:$ac_tool_warned in
9625yes:)
9626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9627printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9628ac_tool_warned=yes ;;
9629esac
9630    OBJDUMP=$ac_ct_OBJDUMP
9631  fi
9632else
9633  OBJDUMP="$ac_cv_prog_OBJDUMP"
9634fi
9635
9636test -z "$OBJDUMP" && OBJDUMP=objdump
9637
9638
9639
9640
9641
9642
9643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9644printf %s "checking how to recognize dependent libraries... " >&6; }
9645if test ${lt_cv_deplibs_check_method+y}
9646then :
9647  printf %s "(cached) " >&6
9648else $as_nop
9649  lt_cv_file_magic_cmd='$MAGIC_CMD'
9650lt_cv_file_magic_test_file=
9651lt_cv_deplibs_check_method='unknown'
9652# Need to set the preceding variable on all platforms that support
9653# interlibrary dependencies.
9654# 'none' -- dependencies not supported.
9655# 'unknown' -- same as none, but documents that we really don't know.
9656# 'pass_all' -- all dependencies passed with no checks.
9657# 'test_compile' -- check by making test program.
9658# 'file_magic [[regex]]' -- check by looking for files in library path
9659# that responds to the $file_magic_cmd with a given extended regex.
9660# If you have 'file' or equivalent on your system and you're not sure
9661# whether 'pass_all' will *always* work, you probably want this one.
9662
9663case $host_os in
9664aix[4-9]*)
9665  lt_cv_deplibs_check_method=pass_all
9666  ;;
9667
9668beos*)
9669  lt_cv_deplibs_check_method=pass_all
9670  ;;
9671
9672bsdi[45]*)
9673  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9674  lt_cv_file_magic_cmd='$FILECMD -L'
9675  lt_cv_file_magic_test_file=/shlib/libc.so
9676  ;;
9677
9678cygwin*)
9679  # func_win32_libid is a shell function defined in ltmain.sh
9680  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9681  lt_cv_file_magic_cmd='func_win32_libid'
9682  ;;
9683
9684mingw* | pw32*)
9685  # Base MSYS/MinGW do not provide the 'file' command needed by
9686  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9687  # unless we find 'file', for example because we are cross-compiling.
9688  if ( file / ) >/dev/null 2>&1; then
9689    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9690    lt_cv_file_magic_cmd='func_win32_libid'
9691  else
9692    # Keep this pattern in sync with the one in func_win32_libid.
9693    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9694    lt_cv_file_magic_cmd='$OBJDUMP -f'
9695  fi
9696  ;;
9697
9698cegcc*)
9699  # use the weaker test based on 'objdump'. See mingw*.
9700  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9701  lt_cv_file_magic_cmd='$OBJDUMP -f'
9702  ;;
9703
9704darwin* | rhapsody*)
9705  lt_cv_deplibs_check_method=pass_all
9706  ;;
9707
9708freebsd* | dragonfly* | midnightbsd*)
9709  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9710    case $host_cpu in
9711    i*86 )
9712      # Not sure whether the presence of OpenBSD here was a mistake.
9713      # Let's accept both of them until this is cleared up.
9714      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9715      lt_cv_file_magic_cmd=$FILECMD
9716      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9717      ;;
9718    esac
9719  else
9720    lt_cv_deplibs_check_method=pass_all
9721  fi
9722  ;;
9723
9724haiku*)
9725  lt_cv_deplibs_check_method=pass_all
9726  ;;
9727
9728hpux10.20* | hpux11*)
9729  lt_cv_file_magic_cmd=$FILECMD
9730  case $host_cpu in
9731  ia64*)
9732    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9733    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9734    ;;
9735  hppa*64*)
9736    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]'
9737    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9738    ;;
9739  *)
9740    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9741    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9742    ;;
9743  esac
9744  ;;
9745
9746interix[3-9]*)
9747  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9748  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9749  ;;
9750
9751irix5* | irix6* | nonstopux*)
9752  case $LD in
9753  *-32|*"-32 ") libmagic=32-bit;;
9754  *-n32|*"-n32 ") libmagic=N32;;
9755  *-64|*"-64 ") libmagic=64-bit;;
9756  *) libmagic=never-match;;
9757  esac
9758  lt_cv_deplibs_check_method=pass_all
9759  ;;
9760
9761# This must be glibc/ELF.
9762linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9763  lt_cv_deplibs_check_method=pass_all
9764  ;;
9765
9766netbsd* | netbsdelf*-gnu)
9767  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9768    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9769  else
9770    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9771  fi
9772  ;;
9773
9774newos6*)
9775  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9776  lt_cv_file_magic_cmd=$FILECMD
9777  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9778  ;;
9779
9780*nto* | *qnx*)
9781  lt_cv_deplibs_check_method=pass_all
9782  ;;
9783
9784openbsd* | bitrig*)
9785  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9786    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9787  else
9788    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9789  fi
9790  ;;
9791
9792osf3* | osf4* | osf5*)
9793  lt_cv_deplibs_check_method=pass_all
9794  ;;
9795
9796rdos*)
9797  lt_cv_deplibs_check_method=pass_all
9798  ;;
9799
9800solaris*)
9801  lt_cv_deplibs_check_method=pass_all
9802  ;;
9803
9804sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9805  lt_cv_deplibs_check_method=pass_all
9806  ;;
9807
9808sysv4 | sysv4.3*)
9809  case $host_vendor in
9810  motorola)
9811    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]'
9812    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9813    ;;
9814  ncr)
9815    lt_cv_deplibs_check_method=pass_all
9816    ;;
9817  sequent)
9818    lt_cv_file_magic_cmd='/bin/file'
9819    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9820    ;;
9821  sni)
9822    lt_cv_file_magic_cmd='/bin/file'
9823    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9824    lt_cv_file_magic_test_file=/lib/libc.so
9825    ;;
9826  siemens)
9827    lt_cv_deplibs_check_method=pass_all
9828    ;;
9829  pc)
9830    lt_cv_deplibs_check_method=pass_all
9831    ;;
9832  esac
9833  ;;
9834
9835tpf*)
9836  lt_cv_deplibs_check_method=pass_all
9837  ;;
9838os2*)
9839  lt_cv_deplibs_check_method=pass_all
9840  ;;
9841esac
9842
9843fi
9844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9845printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9846
9847file_magic_glob=
9848want_nocaseglob=no
9849if test "$build" = "$host"; then
9850  case $host_os in
9851  mingw* | pw32*)
9852    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9853      want_nocaseglob=yes
9854    else
9855      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9856    fi
9857    ;;
9858  esac
9859fi
9860
9861file_magic_cmd=$lt_cv_file_magic_cmd
9862deplibs_check_method=$lt_cv_deplibs_check_method
9863test -z "$deplibs_check_method" && deplibs_check_method=unknown
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886if test -n "$ac_tool_prefix"; then
9887  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9888set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9890printf %s "checking for $ac_word... " >&6; }
9891if test ${ac_cv_prog_DLLTOOL+y}
9892then :
9893  printf %s "(cached) " >&6
9894else $as_nop
9895  if test -n "$DLLTOOL"; then
9896  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9897else
9898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899for as_dir in $PATH
9900do
9901  IFS=$as_save_IFS
9902  case $as_dir in #(((
9903    '') as_dir=./ ;;
9904    */) ;;
9905    *) as_dir=$as_dir/ ;;
9906  esac
9907    for ac_exec_ext in '' $ac_executable_extensions; do
9908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9909    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9911    break 2
9912  fi
9913done
9914  done
9915IFS=$as_save_IFS
9916
9917fi
9918fi
9919DLLTOOL=$ac_cv_prog_DLLTOOL
9920if test -n "$DLLTOOL"; then
9921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9922printf "%s\n" "$DLLTOOL" >&6; }
9923else
9924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925printf "%s\n" "no" >&6; }
9926fi
9927
9928
9929fi
9930if test -z "$ac_cv_prog_DLLTOOL"; then
9931  ac_ct_DLLTOOL=$DLLTOOL
9932  # Extract the first word of "dlltool", so it can be a program name with args.
9933set dummy dlltool; ac_word=$2
9934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935printf %s "checking for $ac_word... " >&6; }
9936if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9937then :
9938  printf %s "(cached) " >&6
9939else $as_nop
9940  if test -n "$ac_ct_DLLTOOL"; then
9941  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9942else
9943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944for as_dir in $PATH
9945do
9946  IFS=$as_save_IFS
9947  case $as_dir in #(((
9948    '') as_dir=./ ;;
9949    */) ;;
9950    *) as_dir=$as_dir/ ;;
9951  esac
9952    for ac_exec_ext in '' $ac_executable_extensions; do
9953  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9954    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9956    break 2
9957  fi
9958done
9959  done
9960IFS=$as_save_IFS
9961
9962fi
9963fi
9964ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9965if test -n "$ac_ct_DLLTOOL"; then
9966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9967printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9968else
9969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970printf "%s\n" "no" >&6; }
9971fi
9972
9973  if test "x$ac_ct_DLLTOOL" = x; then
9974    DLLTOOL="false"
9975  else
9976    case $cross_compiling:$ac_tool_warned in
9977yes:)
9978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9979printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9980ac_tool_warned=yes ;;
9981esac
9982    DLLTOOL=$ac_ct_DLLTOOL
9983  fi
9984else
9985  DLLTOOL="$ac_cv_prog_DLLTOOL"
9986fi
9987
9988test -z "$DLLTOOL" && DLLTOOL=dlltool
9989
9990
9991
9992
9993
9994
9995
9996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9997printf %s "checking how to associate runtime and link libraries... " >&6; }
9998if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9999then :
10000  printf %s "(cached) " >&6
10001else $as_nop
10002  lt_cv_sharedlib_from_linklib_cmd='unknown'
10003
10004case $host_os in
10005cygwin* | mingw* | pw32* | cegcc*)
10006  # two different shell functions defined in ltmain.sh;
10007  # decide which one to use based on capabilities of $DLLTOOL
10008  case `$DLLTOOL --help 2>&1` in
10009  *--identify-strict*)
10010    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10011    ;;
10012  *)
10013    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10014    ;;
10015  esac
10016  ;;
10017*)
10018  # fallback: assume linklib IS sharedlib
10019  lt_cv_sharedlib_from_linklib_cmd=$ECHO
10020  ;;
10021esac
10022
10023fi
10024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10025printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10026sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10027test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10028
10029
10030
10031
10032
10033
10034
10035if test -n "$ac_tool_prefix"; then
10036  for ac_prog in ar
10037  do
10038    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10039set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041printf %s "checking for $ac_word... " >&6; }
10042if test ${ac_cv_prog_AR+y}
10043then :
10044  printf %s "(cached) " >&6
10045else $as_nop
10046  if test -n "$AR"; then
10047  ac_cv_prog_AR="$AR" # Let the user override the test.
10048else
10049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050for as_dir in $PATH
10051do
10052  IFS=$as_save_IFS
10053  case $as_dir in #(((
10054    '') as_dir=./ ;;
10055    */) ;;
10056    *) as_dir=$as_dir/ ;;
10057  esac
10058    for ac_exec_ext in '' $ac_executable_extensions; do
10059  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10060    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10061    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10062    break 2
10063  fi
10064done
10065  done
10066IFS=$as_save_IFS
10067
10068fi
10069fi
10070AR=$ac_cv_prog_AR
10071if test -n "$AR"; then
10072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10073printf "%s\n" "$AR" >&6; }
10074else
10075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076printf "%s\n" "no" >&6; }
10077fi
10078
10079
10080    test -n "$AR" && break
10081  done
10082fi
10083if test -z "$AR"; then
10084  ac_ct_AR=$AR
10085  for ac_prog in ar
10086do
10087  # Extract the first word of "$ac_prog", so it can be a program name with args.
10088set dummy $ac_prog; ac_word=$2
10089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090printf %s "checking for $ac_word... " >&6; }
10091if test ${ac_cv_prog_ac_ct_AR+y}
10092then :
10093  printf %s "(cached) " >&6
10094else $as_nop
10095  if test -n "$ac_ct_AR"; then
10096  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10097else
10098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099for as_dir in $PATH
10100do
10101  IFS=$as_save_IFS
10102  case $as_dir in #(((
10103    '') as_dir=./ ;;
10104    */) ;;
10105    *) as_dir=$as_dir/ ;;
10106  esac
10107    for ac_exec_ext in '' $ac_executable_extensions; do
10108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10109    ac_cv_prog_ac_ct_AR="$ac_prog"
10110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10111    break 2
10112  fi
10113done
10114  done
10115IFS=$as_save_IFS
10116
10117fi
10118fi
10119ac_ct_AR=$ac_cv_prog_ac_ct_AR
10120if test -n "$ac_ct_AR"; then
10121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10122printf "%s\n" "$ac_ct_AR" >&6; }
10123else
10124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125printf "%s\n" "no" >&6; }
10126fi
10127
10128
10129  test -n "$ac_ct_AR" && break
10130done
10131
10132  if test "x$ac_ct_AR" = x; then
10133    AR="false"
10134  else
10135    case $cross_compiling:$ac_tool_warned in
10136yes:)
10137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10138printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10139ac_tool_warned=yes ;;
10140esac
10141    AR=$ac_ct_AR
10142  fi
10143fi
10144
10145: ${AR=ar}
10146
10147
10148
10149
10150
10151
10152# Use ARFLAGS variable as AR's operation code to sync the variable naming with
10153# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10154# higher priority because thats what people were doing historically (setting
10155# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
10156# variable obsoleted/removed.
10157
10158test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10159lt_ar_flags=$AR_FLAGS
10160
10161
10162
10163
10164
10165
10166# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
10167# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10168
10169
10170
10171
10172
10173
10174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10175printf %s "checking for archiver @FILE support... " >&6; }
10176if test ${lt_cv_ar_at_file+y}
10177then :
10178  printf %s "(cached) " >&6
10179else $as_nop
10180  lt_cv_ar_at_file=no
10181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h.  */
10183
10184int main (void)
10185{
10186
10187 ;
10188 return 0;
10189}
10190_ACEOF
10191if ac_fn_c_try_compile "$LINENO"
10192then :
10193  echo conftest.$ac_objext > conftest.lst
10194      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10195      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10196  (eval $lt_ar_try) 2>&5
10197  ac_status=$?
10198  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199  test $ac_status = 0; }
10200      if test 0 -eq "$ac_status"; then
10201	# Ensure the archiver fails upon bogus file names.
10202	rm -f conftest.$ac_objext libconftest.a
10203	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10204  (eval $lt_ar_try) 2>&5
10205  ac_status=$?
10206  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10207  test $ac_status = 0; }
10208	if test 0 -ne "$ac_status"; then
10209          lt_cv_ar_at_file=@
10210        fi
10211      fi
10212      rm -f conftest.* libconftest.a
10213
10214fi
10215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10216
10217fi
10218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10219printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10220
10221if test no = "$lt_cv_ar_at_file"; then
10222  archiver_list_spec=
10223else
10224  archiver_list_spec=$lt_cv_ar_at_file
10225fi
10226
10227
10228
10229
10230
10231
10232
10233if test -n "$ac_tool_prefix"; then
10234  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10235set dummy ${ac_tool_prefix}strip; ac_word=$2
10236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237printf %s "checking for $ac_word... " >&6; }
10238if test ${ac_cv_prog_STRIP+y}
10239then :
10240  printf %s "(cached) " >&6
10241else $as_nop
10242  if test -n "$STRIP"; then
10243  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10244else
10245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246for as_dir in $PATH
10247do
10248  IFS=$as_save_IFS
10249  case $as_dir in #(((
10250    '') as_dir=./ ;;
10251    */) ;;
10252    *) as_dir=$as_dir/ ;;
10253  esac
10254    for ac_exec_ext in '' $ac_executable_extensions; do
10255  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10256    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10257    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10258    break 2
10259  fi
10260done
10261  done
10262IFS=$as_save_IFS
10263
10264fi
10265fi
10266STRIP=$ac_cv_prog_STRIP
10267if test -n "$STRIP"; then
10268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10269printf "%s\n" "$STRIP" >&6; }
10270else
10271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272printf "%s\n" "no" >&6; }
10273fi
10274
10275
10276fi
10277if test -z "$ac_cv_prog_STRIP"; then
10278  ac_ct_STRIP=$STRIP
10279  # Extract the first word of "strip", so it can be a program name with args.
10280set dummy strip; ac_word=$2
10281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282printf %s "checking for $ac_word... " >&6; }
10283if test ${ac_cv_prog_ac_ct_STRIP+y}
10284then :
10285  printf %s "(cached) " >&6
10286else $as_nop
10287  if test -n "$ac_ct_STRIP"; then
10288  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10289else
10290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291for as_dir in $PATH
10292do
10293  IFS=$as_save_IFS
10294  case $as_dir in #(((
10295    '') as_dir=./ ;;
10296    */) ;;
10297    *) as_dir=$as_dir/ ;;
10298  esac
10299    for ac_exec_ext in '' $ac_executable_extensions; do
10300  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10301    ac_cv_prog_ac_ct_STRIP="strip"
10302    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10303    break 2
10304  fi
10305done
10306  done
10307IFS=$as_save_IFS
10308
10309fi
10310fi
10311ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10312if test -n "$ac_ct_STRIP"; then
10313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10314printf "%s\n" "$ac_ct_STRIP" >&6; }
10315else
10316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317printf "%s\n" "no" >&6; }
10318fi
10319
10320  if test "x$ac_ct_STRIP" = x; then
10321    STRIP=":"
10322  else
10323    case $cross_compiling:$ac_tool_warned in
10324yes:)
10325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10326printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10327ac_tool_warned=yes ;;
10328esac
10329    STRIP=$ac_ct_STRIP
10330  fi
10331else
10332  STRIP="$ac_cv_prog_STRIP"
10333fi
10334
10335test -z "$STRIP" && STRIP=:
10336
10337
10338
10339
10340
10341
10342if test -n "$ac_tool_prefix"; then
10343  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10344set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346printf %s "checking for $ac_word... " >&6; }
10347if test ${ac_cv_prog_RANLIB+y}
10348then :
10349  printf %s "(cached) " >&6
10350else $as_nop
10351  if test -n "$RANLIB"; then
10352  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10353else
10354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in $PATH
10356do
10357  IFS=$as_save_IFS
10358  case $as_dir in #(((
10359    '') as_dir=./ ;;
10360    */) ;;
10361    *) as_dir=$as_dir/ ;;
10362  esac
10363    for ac_exec_ext in '' $ac_executable_extensions; do
10364  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10365    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10366    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10367    break 2
10368  fi
10369done
10370  done
10371IFS=$as_save_IFS
10372
10373fi
10374fi
10375RANLIB=$ac_cv_prog_RANLIB
10376if test -n "$RANLIB"; then
10377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10378printf "%s\n" "$RANLIB" >&6; }
10379else
10380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381printf "%s\n" "no" >&6; }
10382fi
10383
10384
10385fi
10386if test -z "$ac_cv_prog_RANLIB"; then
10387  ac_ct_RANLIB=$RANLIB
10388  # Extract the first word of "ranlib", so it can be a program name with args.
10389set dummy ranlib; ac_word=$2
10390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391printf %s "checking for $ac_word... " >&6; }
10392if test ${ac_cv_prog_ac_ct_RANLIB+y}
10393then :
10394  printf %s "(cached) " >&6
10395else $as_nop
10396  if test -n "$ac_ct_RANLIB"; then
10397  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10398else
10399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400for as_dir in $PATH
10401do
10402  IFS=$as_save_IFS
10403  case $as_dir in #(((
10404    '') as_dir=./ ;;
10405    */) ;;
10406    *) as_dir=$as_dir/ ;;
10407  esac
10408    for ac_exec_ext in '' $ac_executable_extensions; do
10409  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10410    ac_cv_prog_ac_ct_RANLIB="ranlib"
10411    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10412    break 2
10413  fi
10414done
10415  done
10416IFS=$as_save_IFS
10417
10418fi
10419fi
10420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10421if test -n "$ac_ct_RANLIB"; then
10422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10423printf "%s\n" "$ac_ct_RANLIB" >&6; }
10424else
10425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426printf "%s\n" "no" >&6; }
10427fi
10428
10429  if test "x$ac_ct_RANLIB" = x; then
10430    RANLIB=":"
10431  else
10432    case $cross_compiling:$ac_tool_warned in
10433yes:)
10434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10435printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10436ac_tool_warned=yes ;;
10437esac
10438    RANLIB=$ac_ct_RANLIB
10439  fi
10440else
10441  RANLIB="$ac_cv_prog_RANLIB"
10442fi
10443
10444test -z "$RANLIB" && RANLIB=:
10445
10446
10447
10448
10449
10450
10451# Determine commands to create old-style static archives.
10452old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10453old_postinstall_cmds='chmod 644 $oldlib'
10454old_postuninstall_cmds=
10455
10456if test -n "$RANLIB"; then
10457  case $host_os in
10458  bitrig* | openbsd*)
10459    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10460    ;;
10461  *)
10462    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10463    ;;
10464  esac
10465  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10466fi
10467
10468case $host_os in
10469  darwin*)
10470    lock_old_archive_extraction=yes ;;
10471  *)
10472    lock_old_archive_extraction=no ;;
10473esac
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513# If no C compiler was specified, use CC.
10514LTCC=${LTCC-"$CC"}
10515
10516# If no C compiler flags were specified, use CFLAGS.
10517LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10518
10519# Allow CC to be a program name with arguments.
10520compiler=$CC
10521
10522
10523# Check for command to grab the raw symbol name followed by C symbol from nm.
10524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10525printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10526if test ${lt_cv_sys_global_symbol_pipe+y}
10527then :
10528  printf %s "(cached) " >&6
10529else $as_nop
10530
10531# These are sane defaults that work on at least a few old systems.
10532# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10533
10534# Character class describing NM global symbol codes.
10535symcode='[BCDEGRST]'
10536
10537# Regexp to match symbols that can be accessed directly from C.
10538sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10539
10540# Define system-specific variables.
10541case $host_os in
10542aix*)
10543  symcode='[BCDT]'
10544  ;;
10545cygwin* | mingw* | pw32* | cegcc*)
10546  symcode='[ABCDGISTW]'
10547  ;;
10548hpux*)
10549  if test ia64 = "$host_cpu"; then
10550    symcode='[ABCDEGRST]'
10551  fi
10552  ;;
10553irix* | nonstopux*)
10554  symcode='[BCDEGRST]'
10555  ;;
10556osf*)
10557  symcode='[BCDEGQRST]'
10558  ;;
10559solaris*)
10560  symcode='[BDRT]'
10561  ;;
10562sco3.2v5*)
10563  symcode='[DT]'
10564  ;;
10565sysv4.2uw2*)
10566  symcode='[DT]'
10567  ;;
10568sysv5* | sco5v6* | unixware* | OpenUNIX*)
10569  symcode='[ABDT]'
10570  ;;
10571sysv4)
10572  symcode='[DFNSTU]'
10573  ;;
10574esac
10575
10576# If we're using GNU nm, then use its standard symbol codes.
10577case `$NM -V 2>&1` in
10578*GNU* | *'with BFD'*)
10579  symcode='[ABCDGIRSTW]' ;;
10580esac
10581
10582if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10583  # Gets list of data symbols to import.
10584  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10585  # Adjust the below global symbol transforms to fixup imported variables.
10586  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10587  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10588  lt_c_name_lib_hook="\
10589  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10590  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10591else
10592  # Disable hooks by default.
10593  lt_cv_sys_global_symbol_to_import=
10594  lt_cdecl_hook=
10595  lt_c_name_hook=
10596  lt_c_name_lib_hook=
10597fi
10598
10599# Transform an extracted symbol line into a proper C declaration.
10600# Some systems (esp. on ia64) link data and code symbols differently,
10601# so use this general approach.
10602lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10603$lt_cdecl_hook\
10604" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10605" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10606
10607# Transform an extracted symbol line into symbol name and symbol address
10608lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10609$lt_c_name_hook\
10610" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10611" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10612
10613# Transform an extracted symbol line into symbol name with lib prefix and
10614# symbol address.
10615lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10616$lt_c_name_lib_hook\
10617" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10618" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10619" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10620
10621# Handle CRLF in mingw tool chain
10622opt_cr=
10623case $build_os in
10624mingw*)
10625  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10626  ;;
10627esac
10628
10629# Try without a prefix underscore, then with it.
10630for ac_symprfx in "" "_"; do
10631
10632  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10633  symxfrm="\\1 $ac_symprfx\\2 \\2"
10634
10635  # Write the raw and C identifiers.
10636  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10637    # Fake it for dumpbin and say T for any non-static function,
10638    # D for any global variable and I for any imported variable.
10639    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10640    # which start with @ or ?.
10641    lt_cv_sys_global_symbol_pipe="$AWK '"\
10642"     {last_section=section; section=\$ 3};"\
10643"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10644"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10645"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10646"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10647"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10648"     \$ 0!~/External *\|/{next};"\
10649"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10650"     {if(hide[section]) next};"\
10651"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10652"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10653"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10654"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10655"     ' prfx=^$ac_symprfx"
10656  else
10657    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10658  fi
10659  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10660
10661  # Check to see that the pipe works correctly.
10662  pipe_works=no
10663
10664  rm -f conftest*
10665  cat > conftest.$ac_ext <<_LT_EOF
10666#ifdef __cplusplus
10667extern "C" {
10668#endif
10669char nm_test_var;
10670void nm_test_func(void);
10671void nm_test_func(void){}
10672#ifdef __cplusplus
10673}
10674#endif
10675int main(){nm_test_var='a';nm_test_func();return(0);}
10676_LT_EOF
10677
10678  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10679  (eval $ac_compile) 2>&5
10680  ac_status=$?
10681  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10682  test $ac_status = 0; }; then
10683    # Now try to grab the symbols.
10684    nlist=conftest.nm
10685    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10686    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10687      # Try sorting and uniquifying the output.
10688      if sort "$nlist" | uniq > "$nlist"T; then
10689	mv -f "$nlist"T "$nlist"
10690      else
10691	rm -f "$nlist"T
10692      fi
10693
10694      # Make sure that we snagged all the symbols we need.
10695      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10696	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10697	  cat <<_LT_EOF > conftest.$ac_ext
10698/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10699#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10700/* DATA imports from DLLs on WIN32 can't be const, because runtime
10701   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10702# define LT_DLSYM_CONST
10703#elif defined __osf__
10704/* This system does not cope well with relocations in const data.  */
10705# define LT_DLSYM_CONST
10706#else
10707# define LT_DLSYM_CONST const
10708#endif
10709
10710#ifdef __cplusplus
10711extern "C" {
10712#endif
10713
10714_LT_EOF
10715	  # Now generate the symbol file.
10716	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10717
10718	  cat <<_LT_EOF >> conftest.$ac_ext
10719
10720/* The mapping between symbol names and symbols.  */
10721LT_DLSYM_CONST struct {
10722  const char *name;
10723  void       *address;
10724}
10725lt__PROGRAM__LTX_preloaded_symbols[] =
10726{
10727  { "@PROGRAM@", (void *) 0 },
10728_LT_EOF
10729	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10730	  cat <<\_LT_EOF >> conftest.$ac_ext
10731  {0, (void *) 0}
10732};
10733
10734/* This works around a problem in FreeBSD linker */
10735#ifdef FREEBSD_WORKAROUND
10736static const void *lt_preloaded_setup() {
10737  return lt__PROGRAM__LTX_preloaded_symbols;
10738}
10739#endif
10740
10741#ifdef __cplusplus
10742}
10743#endif
10744_LT_EOF
10745	  # Now try linking the two files.
10746	  mv conftest.$ac_objext conftstm.$ac_objext
10747	  lt_globsym_save_LIBS=$LIBS
10748	  lt_globsym_save_CFLAGS=$CFLAGS
10749	  LIBS=conftstm.$ac_objext
10750	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10751	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10752  (eval $ac_link) 2>&5
10753  ac_status=$?
10754  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10756	    pipe_works=yes
10757	  fi
10758	  LIBS=$lt_globsym_save_LIBS
10759	  CFLAGS=$lt_globsym_save_CFLAGS
10760	else
10761	  echo "cannot find nm_test_func in $nlist" >&5
10762	fi
10763      else
10764	echo "cannot find nm_test_var in $nlist" >&5
10765      fi
10766    else
10767      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10768    fi
10769  else
10770    echo "$progname: failed program was:" >&5
10771    cat conftest.$ac_ext >&5
10772  fi
10773  rm -rf conftest* conftst*
10774
10775  # Do not use the global_symbol_pipe unless it works.
10776  if test yes = "$pipe_works"; then
10777    break
10778  else
10779    lt_cv_sys_global_symbol_pipe=
10780  fi
10781done
10782
10783fi
10784
10785if test -z "$lt_cv_sys_global_symbol_pipe"; then
10786  lt_cv_sys_global_symbol_to_cdecl=
10787fi
10788if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10790printf "%s\n" "failed" >&6; }
10791else
10792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10793printf "%s\n" "ok" >&6; }
10794fi
10795
10796# Response file support.
10797if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10798  nm_file_list_spec='@'
10799elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10800  nm_file_list_spec='@'
10801fi
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10840printf %s "checking for sysroot... " >&6; }
10841
10842# Check whether --with-sysroot was given.
10843if test ${with_sysroot+y}
10844then :
10845  withval=$with_sysroot;
10846else $as_nop
10847  with_sysroot=no
10848fi
10849
10850
10851lt_sysroot=
10852case $with_sysroot in #(
10853 yes)
10854   if test yes = "$GCC"; then
10855     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10856   fi
10857   ;; #(
10858 /*)
10859   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10860   ;; #(
10861 no|'')
10862   ;; #(
10863 *)
10864   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10865printf "%s\n" "$with_sysroot" >&6; }
10866   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10867   ;;
10868esac
10869
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10871printf "%s\n" "${lt_sysroot:-no}" >&6; }
10872
10873
10874
10875
10876
10877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10878printf %s "checking for a working dd... " >&6; }
10879if test ${ac_cv_path_lt_DD+y}
10880then :
10881  printf %s "(cached) " >&6
10882else $as_nop
10883  printf 0123456789abcdef0123456789abcdef >conftest.i
10884cat conftest.i conftest.i >conftest2.i
10885: ${lt_DD:=$DD}
10886if test -z "$lt_DD"; then
10887  ac_path_lt_DD_found=false
10888  # Loop through the user's path and test for each of PROGNAME-LIST
10889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890for as_dir in $PATH
10891do
10892  IFS=$as_save_IFS
10893  case $as_dir in #(((
10894    '') as_dir=./ ;;
10895    */) ;;
10896    *) as_dir=$as_dir/ ;;
10897  esac
10898    for ac_prog in dd
10899   do
10900    for ac_exec_ext in '' $ac_executable_extensions; do
10901      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10902      as_fn_executable_p "$ac_path_lt_DD" || continue
10903if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10904  cmp -s conftest.i conftest.out \
10905  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10906fi
10907      $ac_path_lt_DD_found && break 3
10908    done
10909  done
10910  done
10911IFS=$as_save_IFS
10912  if test -z "$ac_cv_path_lt_DD"; then
10913    :
10914  fi
10915else
10916  ac_cv_path_lt_DD=$lt_DD
10917fi
10918
10919rm -f conftest.i conftest2.i conftest.out
10920fi
10921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10922printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10923
10924
10925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10926printf %s "checking how to truncate binary pipes... " >&6; }
10927if test ${lt_cv_truncate_bin+y}
10928then :
10929  printf %s "(cached) " >&6
10930else $as_nop
10931  printf 0123456789abcdef0123456789abcdef >conftest.i
10932cat conftest.i conftest.i >conftest2.i
10933lt_cv_truncate_bin=
10934if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10935  cmp -s conftest.i conftest.out \
10936  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10937fi
10938rm -f conftest.i conftest2.i conftest.out
10939test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10940fi
10941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10942printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10943
10944
10945
10946
10947
10948
10949
10950# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10951func_cc_basename ()
10952{
10953    for cc_temp in $*""; do
10954      case $cc_temp in
10955        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10956        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10957        \-*) ;;
10958        *) break;;
10959      esac
10960    done
10961    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10962}
10963
10964# Check whether --enable-libtool-lock was given.
10965if test ${enable_libtool_lock+y}
10966then :
10967  enableval=$enable_libtool_lock;
10968fi
10969
10970test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10971
10972# Some flags need to be propagated to the compiler or linker for good
10973# libtool support.
10974case $host in
10975ia64-*-hpux*)
10976  # Find out what ABI is being produced by ac_compile, and set mode
10977  # options accordingly.
10978  echo 'int i;' > conftest.$ac_ext
10979  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10980  (eval $ac_compile) 2>&5
10981  ac_status=$?
10982  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10983  test $ac_status = 0; }; then
10984    case `$FILECMD conftest.$ac_objext` in
10985      *ELF-32*)
10986	HPUX_IA64_MODE=32
10987	;;
10988      *ELF-64*)
10989	HPUX_IA64_MODE=64
10990	;;
10991    esac
10992  fi
10993  rm -rf conftest*
10994  ;;
10995*-*-irix6*)
10996  # Find out what ABI is being produced by ac_compile, and set linker
10997  # options accordingly.
10998  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10999  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11000  (eval $ac_compile) 2>&5
11001  ac_status=$?
11002  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11003  test $ac_status = 0; }; then
11004    if test yes = "$lt_cv_prog_gnu_ld"; then
11005      case `$FILECMD conftest.$ac_objext` in
11006	*32-bit*)
11007	  LD="${LD-ld} -melf32bsmip"
11008	  ;;
11009	*N32*)
11010	  LD="${LD-ld} -melf32bmipn32"
11011	  ;;
11012	*64-bit*)
11013	  LD="${LD-ld} -melf64bmip"
11014	;;
11015      esac
11016    else
11017      case `$FILECMD conftest.$ac_objext` in
11018	*32-bit*)
11019	  LD="${LD-ld} -32"
11020	  ;;
11021	*N32*)
11022	  LD="${LD-ld} -n32"
11023	  ;;
11024	*64-bit*)
11025	  LD="${LD-ld} -64"
11026	  ;;
11027      esac
11028    fi
11029  fi
11030  rm -rf conftest*
11031  ;;
11032
11033mips64*-*linux*)
11034  # Find out what ABI is being produced by ac_compile, and set linker
11035  # options accordingly.
11036  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11037  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11038  (eval $ac_compile) 2>&5
11039  ac_status=$?
11040  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041  test $ac_status = 0; }; then
11042    emul=elf
11043    case `$FILECMD conftest.$ac_objext` in
11044      *32-bit*)
11045	emul="${emul}32"
11046	;;
11047      *64-bit*)
11048	emul="${emul}64"
11049	;;
11050    esac
11051    case `$FILECMD conftest.$ac_objext` in
11052      *MSB*)
11053	emul="${emul}btsmip"
11054	;;
11055      *LSB*)
11056	emul="${emul}ltsmip"
11057	;;
11058    esac
11059    case `$FILECMD conftest.$ac_objext` in
11060      *N32*)
11061	emul="${emul}n32"
11062	;;
11063    esac
11064    LD="${LD-ld} -m $emul"
11065  fi
11066  rm -rf conftest*
11067  ;;
11068
11069x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11070s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11071  # Find out what ABI is being produced by ac_compile, and set linker
11072  # options accordingly.  Note that the listed cases only cover the
11073  # situations where additional linker options are needed (such as when
11074  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11075  # vice versa); the common cases where no linker options are needed do
11076  # not appear in the list.
11077  echo 'int i;' > conftest.$ac_ext
11078  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11079  (eval $ac_compile) 2>&5
11080  ac_status=$?
11081  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082  test $ac_status = 0; }; then
11083    case `$FILECMD conftest.o` in
11084      *32-bit*)
11085	case $host in
11086	  x86_64-*kfreebsd*-gnu)
11087	    LD="${LD-ld} -m elf_i386_fbsd"
11088	    ;;
11089	  x86_64-*linux*)
11090	    case `$FILECMD conftest.o` in
11091	      *x86-64*)
11092		LD="${LD-ld} -m elf32_x86_64"
11093		;;
11094	      *)
11095		LD="${LD-ld} -m elf_i386"
11096		;;
11097	    esac
11098	    ;;
11099	  powerpc64le-*linux*)
11100	    LD="${LD-ld} -m elf32lppclinux"
11101	    ;;
11102	  powerpc64-*linux*)
11103	    LD="${LD-ld} -m elf32ppclinux"
11104	    ;;
11105	  s390x-*linux*)
11106	    LD="${LD-ld} -m elf_s390"
11107	    ;;
11108	  sparc64-*linux*)
11109	    LD="${LD-ld} -m elf32_sparc"
11110	    ;;
11111	esac
11112	;;
11113      *64-bit*)
11114	case $host in
11115	  x86_64-*kfreebsd*-gnu)
11116	    LD="${LD-ld} -m elf_x86_64_fbsd"
11117	    ;;
11118	  x86_64-*linux*)
11119	    LD="${LD-ld} -m elf_x86_64"
11120	    ;;
11121	  powerpcle-*linux*)
11122	    LD="${LD-ld} -m elf64lppc"
11123	    ;;
11124	  powerpc-*linux*)
11125	    LD="${LD-ld} -m elf64ppc"
11126	    ;;
11127	  s390*-*linux*|s390*-*tpf*)
11128	    LD="${LD-ld} -m elf64_s390"
11129	    ;;
11130	  sparc*-*linux*)
11131	    LD="${LD-ld} -m elf64_sparc"
11132	    ;;
11133	esac
11134	;;
11135    esac
11136  fi
11137  rm -rf conftest*
11138  ;;
11139
11140*-*-sco3.2v5*)
11141  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11142  SAVE_CFLAGS=$CFLAGS
11143  CFLAGS="$CFLAGS -belf"
11144  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11145printf %s "checking whether the C compiler needs -belf... " >&6; }
11146if test ${lt_cv_cc_needs_belf+y}
11147then :
11148  printf %s "(cached) " >&6
11149else $as_nop
11150  ac_ext=c
11151ac_cpp='$CPP $CPPFLAGS'
11152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11154ac_compiler_gnu=$ac_cv_c_compiler_gnu
11155
11156     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157/* end confdefs.h.  */
11158
11159int main (void)
11160{
11161
11162 ;
11163 return 0;
11164}
11165_ACEOF
11166if ac_fn_c_try_link "$LINENO"
11167then :
11168  lt_cv_cc_needs_belf=yes
11169else $as_nop
11170  lt_cv_cc_needs_belf=no
11171fi
11172rm -f core conftest.err conftest.$ac_objext conftest.beam \
11173    conftest$ac_exeext conftest.$ac_ext
11174     ac_ext=c
11175ac_cpp='$CPP $CPPFLAGS'
11176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11178ac_compiler_gnu=$ac_cv_c_compiler_gnu
11179
11180fi
11181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11182printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11183  if test yes != "$lt_cv_cc_needs_belf"; then
11184    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11185    CFLAGS=$SAVE_CFLAGS
11186  fi
11187  ;;
11188*-*solaris*)
11189  # Find out what ABI is being produced by ac_compile, and set linker
11190  # options accordingly.
11191  echo 'int i;' > conftest.$ac_ext
11192  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11193  (eval $ac_compile) 2>&5
11194  ac_status=$?
11195  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11196  test $ac_status = 0; }; then
11197    case `$FILECMD conftest.o` in
11198    *64-bit*)
11199      case $lt_cv_prog_gnu_ld in
11200      yes*)
11201        case $host in
11202        i?86-*-solaris*|x86_64-*-solaris*)
11203          LD="${LD-ld} -m elf_x86_64"
11204          ;;
11205        sparc*-*-solaris*)
11206          LD="${LD-ld} -m elf64_sparc"
11207          ;;
11208        esac
11209        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11210        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11211          LD=${LD-ld}_sol2
11212        fi
11213        ;;
11214      *)
11215	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11216	  LD="${LD-ld} -64"
11217	fi
11218	;;
11219      esac
11220      ;;
11221    esac
11222  fi
11223  rm -rf conftest*
11224  ;;
11225esac
11226
11227need_locks=$enable_libtool_lock
11228
11229if test -n "$ac_tool_prefix"; then
11230  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11231set dummy ${ac_tool_prefix}mt; ac_word=$2
11232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11233printf %s "checking for $ac_word... " >&6; }
11234if test ${ac_cv_prog_MANIFEST_TOOL+y}
11235then :
11236  printf %s "(cached) " >&6
11237else $as_nop
11238  if test -n "$MANIFEST_TOOL"; then
11239  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11240else
11241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242for as_dir in $PATH
11243do
11244  IFS=$as_save_IFS
11245  case $as_dir in #(((
11246    '') as_dir=./ ;;
11247    */) ;;
11248    *) as_dir=$as_dir/ ;;
11249  esac
11250    for ac_exec_ext in '' $ac_executable_extensions; do
11251  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11252    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11253    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11254    break 2
11255  fi
11256done
11257  done
11258IFS=$as_save_IFS
11259
11260fi
11261fi
11262MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11263if test -n "$MANIFEST_TOOL"; then
11264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11265printf "%s\n" "$MANIFEST_TOOL" >&6; }
11266else
11267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268printf "%s\n" "no" >&6; }
11269fi
11270
11271
11272fi
11273if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11274  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11275  # Extract the first word of "mt", so it can be a program name with args.
11276set dummy mt; ac_word=$2
11277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11278printf %s "checking for $ac_word... " >&6; }
11279if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11280then :
11281  printf %s "(cached) " >&6
11282else $as_nop
11283  if test -n "$ac_ct_MANIFEST_TOOL"; then
11284  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11285else
11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $PATH
11288do
11289  IFS=$as_save_IFS
11290  case $as_dir in #(((
11291    '') as_dir=./ ;;
11292    */) ;;
11293    *) as_dir=$as_dir/ ;;
11294  esac
11295    for ac_exec_ext in '' $ac_executable_extensions; do
11296  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11297    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11298    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11299    break 2
11300  fi
11301done
11302  done
11303IFS=$as_save_IFS
11304
11305fi
11306fi
11307ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11308if test -n "$ac_ct_MANIFEST_TOOL"; then
11309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11310printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11311else
11312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313printf "%s\n" "no" >&6; }
11314fi
11315
11316  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11317    MANIFEST_TOOL=":"
11318  else
11319    case $cross_compiling:$ac_tool_warned in
11320yes:)
11321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11322printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11323ac_tool_warned=yes ;;
11324esac
11325    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11326  fi
11327else
11328  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11329fi
11330
11331test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11333printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11334if test ${lt_cv_path_mainfest_tool+y}
11335then :
11336  printf %s "(cached) " >&6
11337else $as_nop
11338  lt_cv_path_mainfest_tool=no
11339  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11340  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11341  cat conftest.err >&5
11342  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11343    lt_cv_path_mainfest_tool=yes
11344  fi
11345  rm -f conftest*
11346fi
11347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11348printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11349if test yes != "$lt_cv_path_mainfest_tool"; then
11350  MANIFEST_TOOL=:
11351fi
11352
11353
11354
11355
11356
11357
11358  case $host_os in
11359    rhapsody* | darwin*)
11360    if test -n "$ac_tool_prefix"; then
11361  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11362set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11364printf %s "checking for $ac_word... " >&6; }
11365if test ${ac_cv_prog_DSYMUTIL+y}
11366then :
11367  printf %s "(cached) " >&6
11368else $as_nop
11369  if test -n "$DSYMUTIL"; then
11370  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11371else
11372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $PATH
11374do
11375  IFS=$as_save_IFS
11376  case $as_dir in #(((
11377    '') as_dir=./ ;;
11378    */) ;;
11379    *) as_dir=$as_dir/ ;;
11380  esac
11381    for ac_exec_ext in '' $ac_executable_extensions; do
11382  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11383    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11384    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11385    break 2
11386  fi
11387done
11388  done
11389IFS=$as_save_IFS
11390
11391fi
11392fi
11393DSYMUTIL=$ac_cv_prog_DSYMUTIL
11394if test -n "$DSYMUTIL"; then
11395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11396printf "%s\n" "$DSYMUTIL" >&6; }
11397else
11398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399printf "%s\n" "no" >&6; }
11400fi
11401
11402
11403fi
11404if test -z "$ac_cv_prog_DSYMUTIL"; then
11405  ac_ct_DSYMUTIL=$DSYMUTIL
11406  # Extract the first word of "dsymutil", so it can be a program name with args.
11407set dummy dsymutil; ac_word=$2
11408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11409printf %s "checking for $ac_word... " >&6; }
11410if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11411then :
11412  printf %s "(cached) " >&6
11413else $as_nop
11414  if test -n "$ac_ct_DSYMUTIL"; then
11415  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11416else
11417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418for as_dir in $PATH
11419do
11420  IFS=$as_save_IFS
11421  case $as_dir in #(((
11422    '') as_dir=./ ;;
11423    */) ;;
11424    *) as_dir=$as_dir/ ;;
11425  esac
11426    for ac_exec_ext in '' $ac_executable_extensions; do
11427  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11428    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11429    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11430    break 2
11431  fi
11432done
11433  done
11434IFS=$as_save_IFS
11435
11436fi
11437fi
11438ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11439if test -n "$ac_ct_DSYMUTIL"; then
11440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11441printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11442else
11443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444printf "%s\n" "no" >&6; }
11445fi
11446
11447  if test "x$ac_ct_DSYMUTIL" = x; then
11448    DSYMUTIL=":"
11449  else
11450    case $cross_compiling:$ac_tool_warned in
11451yes:)
11452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11453printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11454ac_tool_warned=yes ;;
11455esac
11456    DSYMUTIL=$ac_ct_DSYMUTIL
11457  fi
11458else
11459  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11460fi
11461
11462    if test -n "$ac_tool_prefix"; then
11463  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11464set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+y}
11468then :
11469  printf %s "(cached) " >&6
11470else $as_nop
11471  if test -n "$NMEDIT"; then
11472  ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
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
11495NMEDIT=$ac_cv_prog_NMEDIT
11496if test -n "$NMEDIT"; then
11497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11498printf "%s\n" "$NMEDIT" >&6; }
11499else
11500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501printf "%s\n" "no" >&6; }
11502fi
11503
11504
11505fi
11506if test -z "$ac_cv_prog_NMEDIT"; then
11507  ac_ct_NMEDIT=$NMEDIT
11508  # Extract the first word of "nmedit", so it can be a program name with args.
11509set dummy nmedit; ac_word=$2
11510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511printf %s "checking for $ac_word... " >&6; }
11512if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11513then :
11514  printf %s "(cached) " >&6
11515else $as_nop
11516  if test -n "$ac_ct_NMEDIT"; then
11517  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11518else
11519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520for as_dir in $PATH
11521do
11522  IFS=$as_save_IFS
11523  case $as_dir in #(((
11524    '') as_dir=./ ;;
11525    */) ;;
11526    *) as_dir=$as_dir/ ;;
11527  esac
11528    for ac_exec_ext in '' $ac_executable_extensions; do
11529  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11530    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11531    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11532    break 2
11533  fi
11534done
11535  done
11536IFS=$as_save_IFS
11537
11538fi
11539fi
11540ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11541if test -n "$ac_ct_NMEDIT"; then
11542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11543printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11544else
11545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546printf "%s\n" "no" >&6; }
11547fi
11548
11549  if test "x$ac_ct_NMEDIT" = x; then
11550    NMEDIT=":"
11551  else
11552    case $cross_compiling:$ac_tool_warned in
11553yes:)
11554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11555printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11556ac_tool_warned=yes ;;
11557esac
11558    NMEDIT=$ac_ct_NMEDIT
11559  fi
11560else
11561  NMEDIT="$ac_cv_prog_NMEDIT"
11562fi
11563
11564    if test -n "$ac_tool_prefix"; then
11565  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11566set dummy ${ac_tool_prefix}lipo; 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_LIPO+y}
11570then :
11571  printf %s "(cached) " >&6
11572else $as_nop
11573  if test -n "$LIPO"; then
11574  ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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
11597LIPO=$ac_cv_prog_LIPO
11598if test -n "$LIPO"; then
11599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11600printf "%s\n" "$LIPO" >&6; }
11601else
11602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603printf "%s\n" "no" >&6; }
11604fi
11605
11606
11607fi
11608if test -z "$ac_cv_prog_LIPO"; then
11609  ac_ct_LIPO=$LIPO
11610  # Extract the first word of "lipo", so it can be a program name with args.
11611set dummy lipo; ac_word=$2
11612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613printf %s "checking for $ac_word... " >&6; }
11614if test ${ac_cv_prog_ac_ct_LIPO+y}
11615then :
11616  printf %s "(cached) " >&6
11617else $as_nop
11618  if test -n "$ac_ct_LIPO"; then
11619  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11620else
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624  IFS=$as_save_IFS
11625  case $as_dir in #(((
11626    '') as_dir=./ ;;
11627    */) ;;
11628    *) as_dir=$as_dir/ ;;
11629  esac
11630    for ac_exec_ext in '' $ac_executable_extensions; do
11631  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11632    ac_cv_prog_ac_ct_LIPO="lipo"
11633    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11634    break 2
11635  fi
11636done
11637  done
11638IFS=$as_save_IFS
11639
11640fi
11641fi
11642ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11643if test -n "$ac_ct_LIPO"; then
11644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11645printf "%s\n" "$ac_ct_LIPO" >&6; }
11646else
11647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648printf "%s\n" "no" >&6; }
11649fi
11650
11651  if test "x$ac_ct_LIPO" = x; then
11652    LIPO=":"
11653  else
11654    case $cross_compiling:$ac_tool_warned in
11655yes:)
11656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11657printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11658ac_tool_warned=yes ;;
11659esac
11660    LIPO=$ac_ct_LIPO
11661  fi
11662else
11663  LIPO="$ac_cv_prog_LIPO"
11664fi
11665
11666    if test -n "$ac_tool_prefix"; then
11667  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11668set dummy ${ac_tool_prefix}otool; 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_OTOOL+y}
11672then :
11673  printf %s "(cached) " >&6
11674else $as_nop
11675  if test -n "$OTOOL"; then
11676  ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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
11699OTOOL=$ac_cv_prog_OTOOL
11700if test -n "$OTOOL"; then
11701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11702printf "%s\n" "$OTOOL" >&6; }
11703else
11704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705printf "%s\n" "no" >&6; }
11706fi
11707
11708
11709fi
11710if test -z "$ac_cv_prog_OTOOL"; then
11711  ac_ct_OTOOL=$OTOOL
11712  # Extract the first word of "otool", so it can be a program name with args.
11713set dummy otool; ac_word=$2
11714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715printf %s "checking for $ac_word... " >&6; }
11716if test ${ac_cv_prog_ac_ct_OTOOL+y}
11717then :
11718  printf %s "(cached) " >&6
11719else $as_nop
11720  if test -n "$ac_ct_OTOOL"; then
11721  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11722else
11723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724for as_dir in $PATH
11725do
11726  IFS=$as_save_IFS
11727  case $as_dir in #(((
11728    '') as_dir=./ ;;
11729    */) ;;
11730    *) as_dir=$as_dir/ ;;
11731  esac
11732    for ac_exec_ext in '' $ac_executable_extensions; do
11733  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11734    ac_cv_prog_ac_ct_OTOOL="otool"
11735    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11736    break 2
11737  fi
11738done
11739  done
11740IFS=$as_save_IFS
11741
11742fi
11743fi
11744ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11745if test -n "$ac_ct_OTOOL"; then
11746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11747printf "%s\n" "$ac_ct_OTOOL" >&6; }
11748else
11749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750printf "%s\n" "no" >&6; }
11751fi
11752
11753  if test "x$ac_ct_OTOOL" = x; then
11754    OTOOL=":"
11755  else
11756    case $cross_compiling:$ac_tool_warned in
11757yes:)
11758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11759printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11760ac_tool_warned=yes ;;
11761esac
11762    OTOOL=$ac_ct_OTOOL
11763  fi
11764else
11765  OTOOL="$ac_cv_prog_OTOOL"
11766fi
11767
11768    if test -n "$ac_tool_prefix"; then
11769  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11770set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+y}
11774then :
11775  printf %s "(cached) " >&6
11776else $as_nop
11777  if test -n "$OTOOL64"; then
11778  ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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
11801OTOOL64=$ac_cv_prog_OTOOL64
11802if test -n "$OTOOL64"; then
11803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11804printf "%s\n" "$OTOOL64" >&6; }
11805else
11806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807printf "%s\n" "no" >&6; }
11808fi
11809
11810
11811fi
11812if test -z "$ac_cv_prog_OTOOL64"; then
11813  ac_ct_OTOOL64=$OTOOL64
11814  # Extract the first word of "otool64", so it can be a program name with args.
11815set dummy otool64; ac_word=$2
11816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817printf %s "checking for $ac_word... " >&6; }
11818if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11819then :
11820  printf %s "(cached) " >&6
11821else $as_nop
11822  if test -n "$ac_ct_OTOOL64"; then
11823  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11824else
11825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826for as_dir in $PATH
11827do
11828  IFS=$as_save_IFS
11829  case $as_dir in #(((
11830    '') as_dir=./ ;;
11831    */) ;;
11832    *) as_dir=$as_dir/ ;;
11833  esac
11834    for ac_exec_ext in '' $ac_executable_extensions; do
11835  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11836    ac_cv_prog_ac_ct_OTOOL64="otool64"
11837    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11838    break 2
11839  fi
11840done
11841  done
11842IFS=$as_save_IFS
11843
11844fi
11845fi
11846ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11847if test -n "$ac_ct_OTOOL64"; then
11848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11849printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11850else
11851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852printf "%s\n" "no" >&6; }
11853fi
11854
11855  if test "x$ac_ct_OTOOL64" = x; then
11856    OTOOL64=":"
11857  else
11858    case $cross_compiling:$ac_tool_warned in
11859yes:)
11860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11861printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11862ac_tool_warned=yes ;;
11863esac
11864    OTOOL64=$ac_ct_OTOOL64
11865  fi
11866else
11867  OTOOL64="$ac_cv_prog_OTOOL64"
11868fi
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11897printf %s "checking for -single_module linker flag... " >&6; }
11898if test ${lt_cv_apple_cc_single_mod+y}
11899then :
11900  printf %s "(cached) " >&6
11901else $as_nop
11902  lt_cv_apple_cc_single_mod=no
11903      if test -z "$LT_MULTI_MODULE"; then
11904	# By default we will add the -single_module flag. You can override
11905	# by either setting the environment variable LT_MULTI_MODULE
11906	# non-empty at configure time, or by adding -multi_module to the
11907	# link flags.
11908	rm -rf libconftest.dylib*
11909	echo "int foo(void){return 1;}" > conftest.c
11910	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11911-dynamiclib -Wl,-single_module conftest.c" >&5
11912	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11913	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11914        _lt_result=$?
11915	# If there is a non-empty error log, and "single_module"
11916	# appears in it, assume the flag caused a linker warning
11917        if test -s conftest.err && $GREP single_module conftest.err; then
11918	  cat conftest.err >&5
11919	# Otherwise, if the output was created with a 0 exit code from
11920	# the compiler, it worked.
11921	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11922	  lt_cv_apple_cc_single_mod=yes
11923	else
11924	  cat conftest.err >&5
11925	fi
11926	rm -rf libconftest.dylib*
11927	rm -f conftest.*
11928      fi
11929fi
11930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11931printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11932
11933    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11934printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11935if test ${lt_cv_ld_exported_symbols_list+y}
11936then :
11937  printf %s "(cached) " >&6
11938else $as_nop
11939  lt_cv_ld_exported_symbols_list=no
11940      save_LDFLAGS=$LDFLAGS
11941      echo "_main" > conftest.sym
11942      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11943      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h.  */
11945
11946int main (void)
11947{
11948
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953if ac_fn_c_try_link "$LINENO"
11954then :
11955  lt_cv_ld_exported_symbols_list=yes
11956else $as_nop
11957  lt_cv_ld_exported_symbols_list=no
11958fi
11959rm -f core conftest.err conftest.$ac_objext conftest.beam \
11960    conftest$ac_exeext conftest.$ac_ext
11961	LDFLAGS=$save_LDFLAGS
11962
11963fi
11964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11965printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11966
11967    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11968printf %s "checking for -force_load linker flag... " >&6; }
11969if test ${lt_cv_ld_force_load+y}
11970then :
11971  printf %s "(cached) " >&6
11972else $as_nop
11973  lt_cv_ld_force_load=no
11974      cat > conftest.c << _LT_EOF
11975int forced_loaded() { return 2;}
11976_LT_EOF
11977      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11978      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11979      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11980      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11981      echo "$RANLIB libconftest.a" >&5
11982      $RANLIB libconftest.a 2>&5
11983      cat > conftest.c << _LT_EOF
11984int main() { return 0;}
11985_LT_EOF
11986      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11987      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11988      _lt_result=$?
11989      if test -s conftest.err && $GREP force_load conftest.err; then
11990	cat conftest.err >&5
11991      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11992	lt_cv_ld_force_load=yes
11993      else
11994	cat conftest.err >&5
11995      fi
11996        rm -f conftest.err libconftest.a conftest conftest.c
11997        rm -rf conftest.dSYM
11998
11999fi
12000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12001printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12002    case $host_os in
12003    rhapsody* | darwin1.[012])
12004      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12005    darwin1.*)
12006      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12007    darwin*)
12008      case $MACOSX_DEPLOYMENT_TARGET,$host in
12009        10.[012],*|,*powerpc*-darwin[5-8]*)
12010          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12011        *)
12012          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12013      esac
12014    ;;
12015  esac
12016    if test yes = "$lt_cv_apple_cc_single_mod"; then
12017      _lt_dar_single_mod='$single_module'
12018    fi
12019    if test yes = "$lt_cv_ld_exported_symbols_list"; then
12020      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12021    else
12022      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12023    fi
12024    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12025      _lt_dsymutil='~$DSYMUTIL $lib || :'
12026    else
12027      _lt_dsymutil=
12028    fi
12029    ;;
12030  esac
12031
12032# func_munge_path_list VARIABLE PATH
12033# -----------------------------------
12034# VARIABLE is name of variable containing _space_ separated list of
12035# directories to be munged by the contents of PATH, which is string
12036# having a format:
12037# "DIR[:DIR]:"
12038#       string "DIR[ DIR]" will be prepended to VARIABLE
12039# ":DIR[:DIR]"
12040#       string "DIR[ DIR]" will be appended to VARIABLE
12041# "DIRP[:DIRP]::[DIRA:]DIRA"
12042#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12043#       "DIRA[ DIRA]" will be appended to VARIABLE
12044# "DIR[:DIR]"
12045#       VARIABLE will be replaced by "DIR[ DIR]"
12046func_munge_path_list ()
12047{
12048    case x$2 in
12049    x)
12050        ;;
12051    *:)
12052        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12053        ;;
12054    x:*)
12055        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12056        ;;
12057    *::*)
12058        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12059        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12060        ;;
12061    *)
12062        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12063        ;;
12064    esac
12065}
12066
12067ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12068"
12069if test "x$ac_cv_header_dlfcn_h" = xyes
12070then :
12071  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12072
12073fi
12074
12075# ------------------------------------ #
12076#  Determine libtool default behavior  #
12077# ------------------------------------ #
12078
12079#
12080# Default behavior is to enable shared and static libraries on systems
12081# where libtool knows how to build both library versions, and does not
12082# require separate configuration and build runs for each flavor.
12083#
12084
12085xc_lt_want_enable_shared='yes'
12086xc_lt_want_enable_static='yes'
12087
12088#
12089# User may have disabled shared or static libraries.
12090#
12091case "x$enable_shared" in # (
12092  xno)
12093    xc_lt_want_enable_shared='no'
12094    ;;
12095esac
12096case "x$enable_static" in # (
12097  xno)
12098    xc_lt_want_enable_static='no'
12099    ;;
12100esac
12101if test "x$xc_lt_want_enable_shared" = 'xno' &&
12102  test "x$xc_lt_want_enable_static" = 'xno'; then
12103  as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
12104fi
12105
12106#
12107# Default behavior on systems that require independent configuration
12108# and build runs for shared and static is to enable shared libraries
12109# and disable static ones. On these systems option '--disable-shared'
12110# must be used in order to build a proper static library.
12111#
12112
12113if test "x$xc_lt_want_enable_shared" = 'xyes' &&
12114  test "x$xc_lt_want_enable_static" = 'xyes'; then
12115  case $host_os in # (
12116    pw32* | cegcc* | os2* | aix*)
12117      xc_lt_want_enable_static='no'
12118      ;;
12119  esac
12120fi
12121
12122#
12123# Make libtool aware of current shared and static library preferences
12124# taking in account that, depending on host characteristics, libtool
12125# may modify these option preferences later in this configure script.
12126#
12127
12128enable_shared=$xc_lt_want_enable_shared
12129enable_static=$xc_lt_want_enable_static
12130
12131#
12132# Default behavior is to build PIC objects for shared libraries and
12133# non-PIC objects for static libraries.
12134#
12135
12136xc_lt_want_with_pic='default'
12137
12138#
12139# User may have specified PIC preference.
12140#
12141
12142case "x$with_pic" in # ((
12143  xno)
12144    xc_lt_want_with_pic='no'
12145    ;;
12146  xyes)
12147    xc_lt_want_with_pic='yes'
12148    ;;
12149esac
12150
12151#
12152# Default behavior on some systems where building a shared library out
12153# of non-PIC compiled objects will fail with following linker error
12154# "relocation R_X86_64_32 can not be used when making a shared object"
12155# is to build PIC objects even for static libraries. This behavior may
12156# be overridden using 'configure --disable-shared --without-pic'.
12157#
12158
12159if test "x$xc_lt_want_with_pic" = 'xdefault'; then
12160  case $host_cpu in # (
12161    x86_64 | amd64 | ia64)
12162      case $host_os in # (
12163        linux* | freebsd* | midnightbsd*)
12164          xc_lt_want_with_pic='yes'
12165          ;;
12166      esac
12167      ;;
12168  esac
12169fi
12170
12171#
12172# Make libtool aware of current PIC preference taking in account that,
12173# depending on host characteristics, libtool may modify PIC default
12174# behavior to fit host system idiosyncrasies later in this script.
12175#
12176
12177with_pic=$xc_lt_want_with_pic
12178
12179## ----------------------- ##
12180##  Start of libtool code  ##
12181## ----------------------- ##
12182
12183
12184
12185
12186# Set options
12187enable_win32_dll=yes
12188
12189case $host in
12190*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12191  if test -n "$ac_tool_prefix"; then
12192  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12193set dummy ${ac_tool_prefix}as; ac_word=$2
12194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195printf %s "checking for $ac_word... " >&6; }
12196if test ${ac_cv_prog_AS+y}
12197then :
12198  printf %s "(cached) " >&6
12199else $as_nop
12200  if test -n "$AS"; then
12201  ac_cv_prog_AS="$AS" # Let the user override the test.
12202else
12203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204for as_dir in $PATH
12205do
12206  IFS=$as_save_IFS
12207  case $as_dir in #(((
12208    '') as_dir=./ ;;
12209    */) ;;
12210    *) as_dir=$as_dir/ ;;
12211  esac
12212    for ac_exec_ext in '' $ac_executable_extensions; do
12213  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12214    ac_cv_prog_AS="${ac_tool_prefix}as"
12215    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12216    break 2
12217  fi
12218done
12219  done
12220IFS=$as_save_IFS
12221
12222fi
12223fi
12224AS=$ac_cv_prog_AS
12225if test -n "$AS"; then
12226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12227printf "%s\n" "$AS" >&6; }
12228else
12229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230printf "%s\n" "no" >&6; }
12231fi
12232
12233
12234fi
12235if test -z "$ac_cv_prog_AS"; then
12236  ac_ct_AS=$AS
12237  # Extract the first word of "as", so it can be a program name with args.
12238set dummy as; ac_word=$2
12239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12240printf %s "checking for $ac_word... " >&6; }
12241if test ${ac_cv_prog_ac_ct_AS+y}
12242then :
12243  printf %s "(cached) " >&6
12244else $as_nop
12245  if test -n "$ac_ct_AS"; then
12246  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12247else
12248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $PATH
12250do
12251  IFS=$as_save_IFS
12252  case $as_dir in #(((
12253    '') as_dir=./ ;;
12254    */) ;;
12255    *) as_dir=$as_dir/ ;;
12256  esac
12257    for ac_exec_ext in '' $ac_executable_extensions; do
12258  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12259    ac_cv_prog_ac_ct_AS="as"
12260    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12261    break 2
12262  fi
12263done
12264  done
12265IFS=$as_save_IFS
12266
12267fi
12268fi
12269ac_ct_AS=$ac_cv_prog_ac_ct_AS
12270if test -n "$ac_ct_AS"; then
12271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12272printf "%s\n" "$ac_ct_AS" >&6; }
12273else
12274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275printf "%s\n" "no" >&6; }
12276fi
12277
12278  if test "x$ac_ct_AS" = x; then
12279    AS="false"
12280  else
12281    case $cross_compiling:$ac_tool_warned in
12282yes:)
12283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12284printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12285ac_tool_warned=yes ;;
12286esac
12287    AS=$ac_ct_AS
12288  fi
12289else
12290  AS="$ac_cv_prog_AS"
12291fi
12292
12293  if test -n "$ac_tool_prefix"; then
12294  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12295set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+y}
12299then :
12300  printf %s "(cached) " >&6
12301else $as_nop
12302  if test -n "$DLLTOOL"; then
12303  ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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
12326DLLTOOL=$ac_cv_prog_DLLTOOL
12327if test -n "$DLLTOOL"; then
12328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12329printf "%s\n" "$DLLTOOL" >&6; }
12330else
12331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332printf "%s\n" "no" >&6; }
12333fi
12334
12335
12336fi
12337if test -z "$ac_cv_prog_DLLTOOL"; then
12338  ac_ct_DLLTOOL=$DLLTOOL
12339  # Extract the first word of "dlltool", so it can be a program name with args.
12340set dummy dlltool; ac_word=$2
12341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342printf %s "checking for $ac_word... " >&6; }
12343if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12344then :
12345  printf %s "(cached) " >&6
12346else $as_nop
12347  if test -n "$ac_ct_DLLTOOL"; then
12348  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12349else
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353  IFS=$as_save_IFS
12354  case $as_dir in #(((
12355    '') as_dir=./ ;;
12356    */) ;;
12357    *) as_dir=$as_dir/ ;;
12358  esac
12359    for ac_exec_ext in '' $ac_executable_extensions; do
12360  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12361    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12362    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12363    break 2
12364  fi
12365done
12366  done
12367IFS=$as_save_IFS
12368
12369fi
12370fi
12371ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12372if test -n "$ac_ct_DLLTOOL"; then
12373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12374printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12375else
12376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377printf "%s\n" "no" >&6; }
12378fi
12379
12380  if test "x$ac_ct_DLLTOOL" = x; then
12381    DLLTOOL="false"
12382  else
12383    case $cross_compiling:$ac_tool_warned in
12384yes:)
12385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12386printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12387ac_tool_warned=yes ;;
12388esac
12389    DLLTOOL=$ac_ct_DLLTOOL
12390  fi
12391else
12392  DLLTOOL="$ac_cv_prog_DLLTOOL"
12393fi
12394
12395  if test -n "$ac_tool_prefix"; then
12396  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12397set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+y}
12401then :
12402  printf %s "(cached) " >&6
12403else $as_nop
12404  if test -n "$OBJDUMP"; then
12405  ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
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
12428OBJDUMP=$ac_cv_prog_OBJDUMP
12429if test -n "$OBJDUMP"; then
12430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12431printf "%s\n" "$OBJDUMP" >&6; }
12432else
12433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434printf "%s\n" "no" >&6; }
12435fi
12436
12437
12438fi
12439if test -z "$ac_cv_prog_OBJDUMP"; then
12440  ac_ct_OBJDUMP=$OBJDUMP
12441  # Extract the first word of "objdump", so it can be a program name with args.
12442set dummy objdump; ac_word=$2
12443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444printf %s "checking for $ac_word... " >&6; }
12445if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12446then :
12447  printf %s "(cached) " >&6
12448else $as_nop
12449  if test -n "$ac_ct_OBJDUMP"; then
12450  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12451else
12452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453for as_dir in $PATH
12454do
12455  IFS=$as_save_IFS
12456  case $as_dir in #(((
12457    '') as_dir=./ ;;
12458    */) ;;
12459    *) as_dir=$as_dir/ ;;
12460  esac
12461    for ac_exec_ext in '' $ac_executable_extensions; do
12462  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12463    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12464    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12465    break 2
12466  fi
12467done
12468  done
12469IFS=$as_save_IFS
12470
12471fi
12472fi
12473ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12474if test -n "$ac_ct_OBJDUMP"; then
12475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12476printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12477else
12478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479printf "%s\n" "no" >&6; }
12480fi
12481
12482  if test "x$ac_ct_OBJDUMP" = x; then
12483    OBJDUMP="false"
12484  else
12485    case $cross_compiling:$ac_tool_warned in
12486yes:)
12487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12488printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12489ac_tool_warned=yes ;;
12490esac
12491    OBJDUMP=$ac_ct_OBJDUMP
12492  fi
12493else
12494  OBJDUMP="$ac_cv_prog_OBJDUMP"
12495fi
12496
12497  ;;
12498esac
12499
12500test -z "$AS" && AS=as
12501
12502
12503
12504
12505
12506test -z "$DLLTOOL" && DLLTOOL=dlltool
12507
12508
12509
12510
12511
12512test -z "$OBJDUMP" && OBJDUMP=objdump
12513
12514
12515
12516
12517
12518
12519
12520        enable_dlopen=no
12521
12522
12523
12524            # Check whether --enable-shared was given.
12525if test ${enable_shared+y}
12526then :
12527  enableval=$enable_shared; p=${PACKAGE-default}
12528    case $enableval in
12529    yes) enable_shared=yes ;;
12530    no) enable_shared=no ;;
12531    *)
12532      enable_shared=no
12533      # Look at the argument we got.  We use all the common list separators.
12534      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12535      for pkg in $enableval; do
12536	IFS=$lt_save_ifs
12537	if test "X$pkg" = "X$p"; then
12538	  enable_shared=yes
12539	fi
12540      done
12541      IFS=$lt_save_ifs
12542      ;;
12543    esac
12544else $as_nop
12545  enable_shared=yes
12546fi
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556  # Check whether --enable-static was given.
12557if test ${enable_static+y}
12558then :
12559  enableval=$enable_static; p=${PACKAGE-default}
12560    case $enableval in
12561    yes) enable_static=yes ;;
12562    no) enable_static=no ;;
12563    *)
12564     enable_static=no
12565      # Look at the argument we got.  We use all the common list separators.
12566      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12567      for pkg in $enableval; do
12568	IFS=$lt_save_ifs
12569	if test "X$pkg" = "X$p"; then
12570	  enable_static=yes
12571	fi
12572      done
12573      IFS=$lt_save_ifs
12574      ;;
12575    esac
12576else $as_nop
12577  enable_static=yes
12578fi
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589# Check whether --with-pic was given.
12590if test ${with_pic+y}
12591then :
12592  withval=$with_pic; lt_p=${PACKAGE-default}
12593    case $withval in
12594    yes|no) pic_mode=$withval ;;
12595    *)
12596      pic_mode=default
12597      # Look at the argument we got.  We use all the common list separators.
12598      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12599      for lt_pkg in $withval; do
12600	IFS=$lt_save_ifs
12601	if test "X$lt_pkg" = "X$lt_p"; then
12602	  pic_mode=yes
12603	fi
12604      done
12605      IFS=$lt_save_ifs
12606      ;;
12607    esac
12608else $as_nop
12609  pic_mode=default
12610fi
12611
12612
12613
12614
12615
12616
12617
12618
12619  # Check whether --enable-fast-install was given.
12620if test ${enable_fast_install+y}
12621then :
12622  enableval=$enable_fast_install; p=${PACKAGE-default}
12623    case $enableval in
12624    yes) enable_fast_install=yes ;;
12625    no) enable_fast_install=no ;;
12626    *)
12627      enable_fast_install=no
12628      # Look at the argument we got.  We use all the common list separators.
12629      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12630      for pkg in $enableval; do
12631	IFS=$lt_save_ifs
12632	if test "X$pkg" = "X$p"; then
12633	  enable_fast_install=yes
12634	fi
12635      done
12636      IFS=$lt_save_ifs
12637      ;;
12638    esac
12639else $as_nop
12640  enable_fast_install=yes
12641fi
12642
12643
12644
12645
12646
12647
12648
12649
12650  shared_archive_member_spec=
12651case $host,$enable_shared in
12652power*-*-aix[5-9]*,yes)
12653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12654printf %s "checking which variant of shared library versioning to provide... " >&6; }
12655
12656# Check whether --with-aix-soname was given.
12657if test ${with_aix_soname+y}
12658then :
12659  withval=$with_aix_soname; case $withval in
12660    aix|svr4|both)
12661      ;;
12662    *)
12663      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12664      ;;
12665    esac
12666    lt_cv_with_aix_soname=$with_aix_soname
12667else $as_nop
12668  if test ${lt_cv_with_aix_soname+y}
12669then :
12670  printf %s "(cached) " >&6
12671else $as_nop
12672  lt_cv_with_aix_soname=aix
12673fi
12674
12675    with_aix_soname=$lt_cv_with_aix_soname
12676fi
12677
12678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12679printf "%s\n" "$with_aix_soname" >&6; }
12680  if test aix != "$with_aix_soname"; then
12681    # For the AIX way of multilib, we name the shared archive member
12682    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12683    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12684    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12685    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12686    if test 64 = "${OBJECT_MODE-32}"; then
12687      shared_archive_member_spec=shr_64
12688    else
12689      shared_archive_member_spec=shr
12690    fi
12691  fi
12692  ;;
12693*)
12694  with_aix_soname=aix
12695  ;;
12696esac
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707# This can be used to rebuild libtool when needed
12708LIBTOOL_DEPS=$ltmain
12709
12710# Always use our own libtool.
12711LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742test -z "$LN_S" && LN_S="ln -s"
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757if test -n "${ZSH_VERSION+set}"; then
12758   setopt NO_GLOB_SUBST
12759fi
12760
12761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12762printf %s "checking for objdir... " >&6; }
12763if test ${lt_cv_objdir+y}
12764then :
12765  printf %s "(cached) " >&6
12766else $as_nop
12767  rm -f .libs 2>/dev/null
12768mkdir .libs 2>/dev/null
12769if test -d .libs; then
12770  lt_cv_objdir=.libs
12771else
12772  # MS-DOS does not allow filenames that begin with a dot.
12773  lt_cv_objdir=_libs
12774fi
12775rmdir .libs 2>/dev/null
12776fi
12777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12778printf "%s\n" "$lt_cv_objdir" >&6; }
12779objdir=$lt_cv_objdir
12780
12781
12782
12783
12784
12785printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12786
12787
12788
12789
12790case $host_os in
12791aix3*)
12792  # AIX sometimes has problems with the GCC collect2 program.  For some
12793  # reason, if we set the COLLECT_NAMES environment variable, the problems
12794  # vanish in a puff of smoke.
12795  if test set != "${COLLECT_NAMES+set}"; then
12796    COLLECT_NAMES=
12797    export COLLECT_NAMES
12798  fi
12799  ;;
12800esac
12801
12802# Global variables:
12803ofile=libtool
12804can_build_shared=yes
12805
12806# All known linkers require a '.a' archive for static linking (except MSVC and
12807# ICC, which need '.lib').
12808libext=a
12809
12810with_gnu_ld=$lt_cv_prog_gnu_ld
12811
12812old_CC=$CC
12813old_CFLAGS=$CFLAGS
12814
12815# Set sane defaults for various variables
12816test -z "$CC" && CC=cc
12817test -z "$LTCC" && LTCC=$CC
12818test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12819test -z "$LD" && LD=ld
12820test -z "$ac_objext" && ac_objext=o
12821
12822func_cc_basename $compiler
12823cc_basename=$func_cc_basename_result
12824
12825
12826# Only perform the check for file, if the check method requires it
12827test -z "$MAGIC_CMD" && MAGIC_CMD=file
12828case $deplibs_check_method in
12829file_magic*)
12830  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12832printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12833if test ${lt_cv_path_MAGIC_CMD+y}
12834then :
12835  printf %s "(cached) " >&6
12836else $as_nop
12837  case $MAGIC_CMD in
12838[\\/*] |  ?:[\\/]*)
12839  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12840  ;;
12841*)
12842  lt_save_MAGIC_CMD=$MAGIC_CMD
12843  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12844  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12845  for ac_dir in $ac_dummy; do
12846    IFS=$lt_save_ifs
12847    test -z "$ac_dir" && ac_dir=.
12848    if test -f "$ac_dir/${ac_tool_prefix}file"; then
12849      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12850      if test -n "$file_magic_test_file"; then
12851	case $deplibs_check_method in
12852	"file_magic "*)
12853	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12854	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12855	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12856	    $EGREP "$file_magic_regex" > /dev/null; then
12857	    :
12858	  else
12859	    cat <<_LT_EOF 1>&2
12860
12861*** Warning: the command libtool uses to detect shared libraries,
12862*** $file_magic_cmd, produces output that libtool cannot recognize.
12863*** The result is that libtool may fail to recognize shared libraries
12864*** as such.  This will affect the creation of libtool libraries that
12865*** depend on shared libraries, but programs linked with such libtool
12866*** libraries will work regardless of this problem.  Nevertheless, you
12867*** may want to report the problem to your system manager and/or to
12868*** bug-libtool@gnu.org
12869
12870_LT_EOF
12871	  fi ;;
12872	esac
12873      fi
12874      break
12875    fi
12876  done
12877  IFS=$lt_save_ifs
12878  MAGIC_CMD=$lt_save_MAGIC_CMD
12879  ;;
12880esac
12881fi
12882
12883MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12884if test -n "$MAGIC_CMD"; then
12885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12886printf "%s\n" "$MAGIC_CMD" >&6; }
12887else
12888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889printf "%s\n" "no" >&6; }
12890fi
12891
12892
12893
12894
12895
12896if test -z "$lt_cv_path_MAGIC_CMD"; then
12897  if test -n "$ac_tool_prefix"; then
12898    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12899printf %s "checking for file... " >&6; }
12900if test ${lt_cv_path_MAGIC_CMD+y}
12901then :
12902  printf %s "(cached) " >&6
12903else $as_nop
12904  case $MAGIC_CMD in
12905[\\/*] |  ?:[\\/]*)
12906  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12907  ;;
12908*)
12909  lt_save_MAGIC_CMD=$MAGIC_CMD
12910  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12911  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12912  for ac_dir in $ac_dummy; do
12913    IFS=$lt_save_ifs
12914    test -z "$ac_dir" && ac_dir=.
12915    if test -f "$ac_dir/file"; then
12916      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12917      if test -n "$file_magic_test_file"; then
12918	case $deplibs_check_method in
12919	"file_magic "*)
12920	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12921	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12922	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12923	    $EGREP "$file_magic_regex" > /dev/null; then
12924	    :
12925	  else
12926	    cat <<_LT_EOF 1>&2
12927
12928*** Warning: the command libtool uses to detect shared libraries,
12929*** $file_magic_cmd, produces output that libtool cannot recognize.
12930*** The result is that libtool may fail to recognize shared libraries
12931*** as such.  This will affect the creation of libtool libraries that
12932*** depend on shared libraries, but programs linked with such libtool
12933*** libraries will work regardless of this problem.  Nevertheless, you
12934*** may want to report the problem to your system manager and/or to
12935*** bug-libtool@gnu.org
12936
12937_LT_EOF
12938	  fi ;;
12939	esac
12940      fi
12941      break
12942    fi
12943  done
12944  IFS=$lt_save_ifs
12945  MAGIC_CMD=$lt_save_MAGIC_CMD
12946  ;;
12947esac
12948fi
12949
12950MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12951if test -n "$MAGIC_CMD"; then
12952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12953printf "%s\n" "$MAGIC_CMD" >&6; }
12954else
12955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956printf "%s\n" "no" >&6; }
12957fi
12958
12959
12960  else
12961    MAGIC_CMD=:
12962  fi
12963fi
12964
12965  fi
12966  ;;
12967esac
12968
12969# Use C for the default configuration in the libtool script
12970
12971lt_save_CC=$CC
12972ac_ext=c
12973ac_cpp='$CPP $CPPFLAGS'
12974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977
12978
12979# Source file extension for C test sources.
12980ac_ext=c
12981
12982# Object file extension for compiled C test sources.
12983objext=o
12984objext=$objext
12985
12986# Code to be used in simple compile tests
12987lt_simple_compile_test_code="int some_variable = 0;"
12988
12989# Code to be used in simple link tests
12990lt_simple_link_test_code='int main(){return(0);}'
12991
12992
12993
12994
12995
12996
12997
12998# If no C compiler was specified, use CC.
12999LTCC=${LTCC-"$CC"}
13000
13001# If no C compiler flags were specified, use CFLAGS.
13002LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13003
13004# Allow CC to be a program name with arguments.
13005compiler=$CC
13006
13007# Save the default compiler, since it gets overwritten when the other
13008# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13009compiler_DEFAULT=$CC
13010
13011# save warnings/boilerplate of simple test code
13012ac_outfile=conftest.$ac_objext
13013echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13014eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13015_lt_compiler_boilerplate=`cat conftest.err`
13016$RM conftest*
13017
13018ac_outfile=conftest.$ac_objext
13019echo "$lt_simple_link_test_code" >conftest.$ac_ext
13020eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13021_lt_linker_boilerplate=`cat conftest.err`
13022$RM -r conftest*
13023
13024
13025## CAVEAT EMPTOR:
13026## There is no encapsulation within the following macros, do not change
13027## the running order or otherwise move them around unless you know exactly
13028## what you are doing...
13029if test -n "$compiler"; then
13030
13031lt_prog_compiler_no_builtin_flag=
13032
13033if test yes = "$GCC"; then
13034  case $cc_basename in
13035  nvcc*)
13036    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13037  *)
13038    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13039  esac
13040
13041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13042printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13043if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13044then :
13045  printf %s "(cached) " >&6
13046else $as_nop
13047  lt_cv_prog_compiler_rtti_exceptions=no
13048   ac_outfile=conftest.$ac_objext
13049   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13050   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
13051   # Insert the option either (1) after the last *FLAGS variable, or
13052   # (2) before a word containing "conftest.", or (3) at the end.
13053   # Note that $ac_compile itself does not contain backslashes and begins
13054   # with a dollar sign (not a hyphen), so the echo should work correctly.
13055   # The option is referenced via a variable to avoid confusing sed.
13056   lt_compile=`echo "$ac_compile" | $SED \
13057   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13058   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13059   -e 's:$: $lt_compiler_flag:'`
13060   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13061   (eval "$lt_compile" 2>conftest.err)
13062   ac_status=$?
13063   cat conftest.err >&5
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   if (exit $ac_status) && test -s "$ac_outfile"; then
13066     # The compiler can only warn and ignore the option if not recognized
13067     # So say no if there are warnings other than the usual output.
13068     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13069     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13070     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13071       lt_cv_prog_compiler_rtti_exceptions=yes
13072     fi
13073   fi
13074   $RM conftest*
13075
13076fi
13077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13078printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13079
13080if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13081    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13082else
13083    :
13084fi
13085
13086fi
13087
13088
13089
13090
13091
13092
13093  lt_prog_compiler_wl=
13094lt_prog_compiler_pic=
13095lt_prog_compiler_static=
13096
13097
13098  if test yes = "$GCC"; then
13099    lt_prog_compiler_wl='-Wl,'
13100    lt_prog_compiler_static='-static'
13101
13102    case $host_os in
13103      aix*)
13104      # All AIX code is PIC.
13105      if test ia64 = "$host_cpu"; then
13106	# AIX 5 now supports IA64 processor
13107	lt_prog_compiler_static='-Bstatic'
13108      fi
13109      lt_prog_compiler_pic='-fPIC'
13110      ;;
13111
13112    amigaos*)
13113      case $host_cpu in
13114      powerpc)
13115            # see comment about AmigaOS4 .so support
13116            lt_prog_compiler_pic='-fPIC'
13117        ;;
13118      m68k)
13119            # FIXME: we need at least 68020 code to build shared libraries, but
13120            # adding the '-m68020' flag to GCC prevents building anything better,
13121            # like '-m68040'.
13122            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13123        ;;
13124      esac
13125      ;;
13126
13127    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13128      # PIC is the default for these OSes.
13129      ;;
13130
13131    mingw* | cygwin* | pw32* | os2* | cegcc*)
13132      # This hack is so that the source file can tell whether it is being
13133      # built for inclusion in a dll (and should export symbols for example).
13134      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13135      # (--disable-auto-import) libraries
13136      lt_prog_compiler_pic='-DDLL_EXPORT'
13137      case $host_os in
13138      os2*)
13139	lt_prog_compiler_static='$wl-static'
13140	;;
13141      esac
13142      ;;
13143
13144    darwin* | rhapsody*)
13145      # PIC is the default on this platform
13146      # Common symbols not allowed in MH_DYLIB files
13147      lt_prog_compiler_pic='-fno-common'
13148      ;;
13149
13150    haiku*)
13151      # PIC is the default for Haiku.
13152      # The "-static" flag exists, but is broken.
13153      lt_prog_compiler_static=
13154      ;;
13155
13156    hpux*)
13157      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13158      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13159      # sets the default TLS model and affects inlining.
13160      case $host_cpu in
13161      hppa*64*)
13162	# +Z the default
13163	;;
13164      *)
13165	lt_prog_compiler_pic='-fPIC'
13166	;;
13167      esac
13168      ;;
13169
13170    interix[3-9]*)
13171      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13172      # Instead, we relocate shared libraries at runtime.
13173      ;;
13174
13175    msdosdjgpp*)
13176      # Just because we use GCC doesn't mean we suddenly get shared libraries
13177      # on systems that don't support them.
13178      lt_prog_compiler_can_build_shared=no
13179      enable_shared=no
13180      ;;
13181
13182    *nto* | *qnx*)
13183      # QNX uses GNU C++, but need to define -shared option too, otherwise
13184      # it will coredump.
13185      lt_prog_compiler_pic='-fPIC -shared'
13186      ;;
13187
13188    sysv4*MP*)
13189      if test -d /usr/nec; then
13190	lt_prog_compiler_pic=-Kconform_pic
13191      fi
13192      ;;
13193
13194    *)
13195      lt_prog_compiler_pic='-fPIC'
13196      ;;
13197    esac
13198
13199    case $cc_basename in
13200    nvcc*) # Cuda Compiler Driver 2.2
13201      lt_prog_compiler_wl='-Xlinker '
13202      if test -n "$lt_prog_compiler_pic"; then
13203        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13204      fi
13205      ;;
13206    esac
13207  else
13208    # PORTME Check for flag to pass linker flags through the system compiler.
13209    case $host_os in
13210    aix*)
13211      lt_prog_compiler_wl='-Wl,'
13212      if test ia64 = "$host_cpu"; then
13213	# AIX 5 now supports IA64 processor
13214	lt_prog_compiler_static='-Bstatic'
13215      else
13216	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13217      fi
13218      ;;
13219
13220    darwin* | rhapsody*)
13221      # PIC is the default on this platform
13222      # Common symbols not allowed in MH_DYLIB files
13223      lt_prog_compiler_pic='-fno-common'
13224      case $cc_basename in
13225      nagfor*)
13226        # NAG Fortran compiler
13227        lt_prog_compiler_wl='-Wl,-Wl,,'
13228        lt_prog_compiler_pic='-PIC'
13229        lt_prog_compiler_static='-Bstatic'
13230        ;;
13231      esac
13232      ;;
13233
13234    mingw* | cygwin* | pw32* | os2* | cegcc*)
13235      # This hack is so that the source file can tell whether it is being
13236      # built for inclusion in a dll (and should export symbols for example).
13237      lt_prog_compiler_pic='-DDLL_EXPORT'
13238      case $host_os in
13239      os2*)
13240	lt_prog_compiler_static='$wl-static'
13241	;;
13242      esac
13243      ;;
13244
13245    hpux9* | hpux10* | hpux11*)
13246      lt_prog_compiler_wl='-Wl,'
13247      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13248      # not for PA HP-UX.
13249      case $host_cpu in
13250      hppa*64*|ia64*)
13251	# +Z the default
13252	;;
13253      *)
13254	lt_prog_compiler_pic='+Z'
13255	;;
13256      esac
13257      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13258      lt_prog_compiler_static='$wl-a ${wl}archive'
13259      ;;
13260
13261    irix5* | irix6* | nonstopux*)
13262      lt_prog_compiler_wl='-Wl,'
13263      # PIC (with -KPIC) is the default.
13264      lt_prog_compiler_static='-non_shared'
13265      ;;
13266
13267    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13268      case $cc_basename in
13269      # old Intel for x86_64, which still supported -KPIC.
13270      ecc*)
13271	lt_prog_compiler_wl='-Wl,'
13272	lt_prog_compiler_pic='-KPIC'
13273	lt_prog_compiler_static='-static'
13274        ;;
13275      # flang / f18. f95 an alias for gfortran or flang on Debian
13276      flang* | f18* | f95*)
13277	lt_prog_compiler_wl='-Wl,'
13278	lt_prog_compiler_pic='-fPIC'
13279	lt_prog_compiler_static='-static'
13280        ;;
13281      # icc used to be incompatible with GCC.
13282      # ICC 10 doesn't accept -KPIC any more.
13283      icc* | ifort*)
13284	lt_prog_compiler_wl='-Wl,'
13285	lt_prog_compiler_pic='-fPIC'
13286	lt_prog_compiler_static='-static'
13287        ;;
13288      # Lahey Fortran 8.1.
13289      lf95*)
13290	lt_prog_compiler_wl='-Wl,'
13291	lt_prog_compiler_pic='--shared'
13292	lt_prog_compiler_static='--static'
13293	;;
13294      nagfor*)
13295	# NAG Fortran compiler
13296	lt_prog_compiler_wl='-Wl,-Wl,,'
13297	lt_prog_compiler_pic='-PIC'
13298	lt_prog_compiler_static='-Bstatic'
13299	;;
13300      tcc*)
13301	# Fabrice Bellard et al's Tiny C Compiler
13302	lt_prog_compiler_wl='-Wl,'
13303	lt_prog_compiler_pic='-fPIC'
13304	lt_prog_compiler_static='-static'
13305	;;
13306      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13307        # Portland Group compilers (*not* the Pentium gcc compiler,
13308	# which looks to be a dead project)
13309	lt_prog_compiler_wl='-Wl,'
13310	lt_prog_compiler_pic='-fpic'
13311	lt_prog_compiler_static='-Bstatic'
13312        ;;
13313      ccc*)
13314        lt_prog_compiler_wl='-Wl,'
13315        # All Alpha code is PIC.
13316        lt_prog_compiler_static='-non_shared'
13317        ;;
13318      xl* | bgxl* | bgf* | mpixl*)
13319	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13320	lt_prog_compiler_wl='-Wl,'
13321	lt_prog_compiler_pic='-qpic'
13322	lt_prog_compiler_static='-qstaticlink'
13323	;;
13324      *)
13325	case `$CC -V 2>&1 | $SED 5q` in
13326	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13327	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13328	  lt_prog_compiler_pic='-KPIC'
13329	  lt_prog_compiler_static='-Bstatic'
13330	  lt_prog_compiler_wl=''
13331	  ;;
13332	*Sun\ F* | *Sun*Fortran*)
13333	  lt_prog_compiler_pic='-KPIC'
13334	  lt_prog_compiler_static='-Bstatic'
13335	  lt_prog_compiler_wl='-Qoption ld '
13336	  ;;
13337	*Sun\ C*)
13338	  # Sun C 5.9
13339	  lt_prog_compiler_pic='-KPIC'
13340	  lt_prog_compiler_static='-Bstatic'
13341	  lt_prog_compiler_wl='-Wl,'
13342	  ;;
13343        *Intel*\ [CF]*Compiler*)
13344	  lt_prog_compiler_wl='-Wl,'
13345	  lt_prog_compiler_pic='-fPIC'
13346	  lt_prog_compiler_static='-static'
13347	  ;;
13348	*Portland\ Group*)
13349	  lt_prog_compiler_wl='-Wl,'
13350	  lt_prog_compiler_pic='-fpic'
13351	  lt_prog_compiler_static='-Bstatic'
13352	  ;;
13353	esac
13354	;;
13355      esac
13356      ;;
13357
13358    newsos6)
13359      lt_prog_compiler_pic='-KPIC'
13360      lt_prog_compiler_static='-Bstatic'
13361      ;;
13362
13363    *nto* | *qnx*)
13364      # QNX uses GNU C++, but need to define -shared option too, otherwise
13365      # it will coredump.
13366      lt_prog_compiler_pic='-fPIC -shared'
13367      ;;
13368
13369    osf3* | osf4* | osf5*)
13370      lt_prog_compiler_wl='-Wl,'
13371      # All OSF/1 code is PIC.
13372      lt_prog_compiler_static='-non_shared'
13373      ;;
13374
13375    rdos*)
13376      lt_prog_compiler_static='-non_shared'
13377      ;;
13378
13379    solaris*)
13380      lt_prog_compiler_pic='-KPIC'
13381      lt_prog_compiler_static='-Bstatic'
13382      case $cc_basename in
13383      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13384	lt_prog_compiler_wl='-Qoption ld ';;
13385      *)
13386	lt_prog_compiler_wl='-Wl,';;
13387      esac
13388      ;;
13389
13390    sunos4*)
13391      lt_prog_compiler_wl='-Qoption ld '
13392      lt_prog_compiler_pic='-PIC'
13393      lt_prog_compiler_static='-Bstatic'
13394      ;;
13395
13396    sysv4 | sysv4.2uw2* | sysv4.3*)
13397      lt_prog_compiler_wl='-Wl,'
13398      lt_prog_compiler_pic='-KPIC'
13399      lt_prog_compiler_static='-Bstatic'
13400      ;;
13401
13402    sysv4*MP*)
13403      if test -d /usr/nec; then
13404	lt_prog_compiler_pic='-Kconform_pic'
13405	lt_prog_compiler_static='-Bstatic'
13406      fi
13407      ;;
13408
13409    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13410      lt_prog_compiler_wl='-Wl,'
13411      lt_prog_compiler_pic='-KPIC'
13412      lt_prog_compiler_static='-Bstatic'
13413      ;;
13414
13415    unicos*)
13416      lt_prog_compiler_wl='-Wl,'
13417      lt_prog_compiler_can_build_shared=no
13418      ;;
13419
13420    uts4*)
13421      lt_prog_compiler_pic='-pic'
13422      lt_prog_compiler_static='-Bstatic'
13423      ;;
13424
13425    *)
13426      lt_prog_compiler_can_build_shared=no
13427      ;;
13428    esac
13429  fi
13430
13431case $host_os in
13432  # For platforms that do not support PIC, -DPIC is meaningless:
13433  *djgpp*)
13434    lt_prog_compiler_pic=
13435    ;;
13436  *)
13437    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13438    ;;
13439esac
13440
13441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13442printf %s "checking for $compiler option to produce PIC... " >&6; }
13443if test ${lt_cv_prog_compiler_pic+y}
13444then :
13445  printf %s "(cached) " >&6
13446else $as_nop
13447  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13448fi
13449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13450printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13451lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13452
13453#
13454# Check to make sure the PIC flag actually works.
13455#
13456if test -n "$lt_prog_compiler_pic"; then
13457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13458printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13459if test ${lt_cv_prog_compiler_pic_works+y}
13460then :
13461  printf %s "(cached) " >&6
13462else $as_nop
13463  lt_cv_prog_compiler_pic_works=no
13464   ac_outfile=conftest.$ac_objext
13465   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13466   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13467   # Insert the option either (1) after the last *FLAGS variable, or
13468   # (2) before a word containing "conftest.", or (3) at the end.
13469   # Note that $ac_compile itself does not contain backslashes and begins
13470   # with a dollar sign (not a hyphen), so the echo should work correctly.
13471   # The option is referenced via a variable to avoid confusing sed.
13472   lt_compile=`echo "$ac_compile" | $SED \
13473   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13474   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13475   -e 's:$: $lt_compiler_flag:'`
13476   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13477   (eval "$lt_compile" 2>conftest.err)
13478   ac_status=$?
13479   cat conftest.err >&5
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   if (exit $ac_status) && test -s "$ac_outfile"; then
13482     # The compiler can only warn and ignore the option if not recognized
13483     # So say no if there are warnings other than the usual output.
13484     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13485     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13486     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13487       lt_cv_prog_compiler_pic_works=yes
13488     fi
13489   fi
13490   $RM conftest*
13491
13492fi
13493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13494printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13495
13496if test yes = "$lt_cv_prog_compiler_pic_works"; then
13497    case $lt_prog_compiler_pic in
13498     "" | " "*) ;;
13499     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13500     esac
13501else
13502    lt_prog_compiler_pic=
13503     lt_prog_compiler_can_build_shared=no
13504fi
13505
13506fi
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518#
13519# Check to make sure the static flag actually works.
13520#
13521wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13523printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13524if test ${lt_cv_prog_compiler_static_works+y}
13525then :
13526  printf %s "(cached) " >&6
13527else $as_nop
13528  lt_cv_prog_compiler_static_works=no
13529   save_LDFLAGS=$LDFLAGS
13530   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13531   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13532   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13533     # The linker can only warn and ignore the option if not recognized
13534     # So say no if there are warnings
13535     if test -s conftest.err; then
13536       # Append any errors to the config.log.
13537       cat conftest.err 1>&5
13538       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13539       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13540       if diff conftest.exp conftest.er2 >/dev/null; then
13541         lt_cv_prog_compiler_static_works=yes
13542       fi
13543     else
13544       lt_cv_prog_compiler_static_works=yes
13545     fi
13546   fi
13547   $RM -r conftest*
13548   LDFLAGS=$save_LDFLAGS
13549
13550fi
13551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13552printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13553
13554if test yes = "$lt_cv_prog_compiler_static_works"; then
13555    :
13556else
13557    lt_prog_compiler_static=
13558fi
13559
13560
13561
13562
13563
13564
13565
13566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13567printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13568if test ${lt_cv_prog_compiler_c_o+y}
13569then :
13570  printf %s "(cached) " >&6
13571else $as_nop
13572  lt_cv_prog_compiler_c_o=no
13573   $RM -r conftest 2>/dev/null
13574   mkdir conftest
13575   cd conftest
13576   mkdir out
13577   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13578
13579   lt_compiler_flag="-o out/conftest2.$ac_objext"
13580   # Insert the option either (1) after the last *FLAGS variable, or
13581   # (2) before a word containing "conftest.", or (3) at the end.
13582   # Note that $ac_compile itself does not contain backslashes and begins
13583   # with a dollar sign (not a hyphen), so the echo should work correctly.
13584   lt_compile=`echo "$ac_compile" | $SED \
13585   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13586   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13587   -e 's:$: $lt_compiler_flag:'`
13588   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13589   (eval "$lt_compile" 2>out/conftest.err)
13590   ac_status=$?
13591   cat out/conftest.err >&5
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13594   then
13595     # The compiler can only warn and ignore the option if not recognized
13596     # So say no if there are warnings
13597     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13598     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13599     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13600       lt_cv_prog_compiler_c_o=yes
13601     fi
13602   fi
13603   chmod u+w . 2>&5
13604   $RM conftest*
13605   # SGI C++ compiler will create directory out/ii_files/ for
13606   # template instantiation
13607   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13608   $RM out/* && rmdir out
13609   cd ..
13610   $RM -r conftest
13611   $RM conftest*
13612
13613fi
13614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13615printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13616
13617
13618
13619
13620
13621
13622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13623printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13624if test ${lt_cv_prog_compiler_c_o+y}
13625then :
13626  printf %s "(cached) " >&6
13627else $as_nop
13628  lt_cv_prog_compiler_c_o=no
13629   $RM -r conftest 2>/dev/null
13630   mkdir conftest
13631   cd conftest
13632   mkdir out
13633   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13634
13635   lt_compiler_flag="-o out/conftest2.$ac_objext"
13636   # Insert the option either (1) after the last *FLAGS variable, or
13637   # (2) before a word containing "conftest.", or (3) at the end.
13638   # Note that $ac_compile itself does not contain backslashes and begins
13639   # with a dollar sign (not a hyphen), so the echo should work correctly.
13640   lt_compile=`echo "$ac_compile" | $SED \
13641   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13642   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13643   -e 's:$: $lt_compiler_flag:'`
13644   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13645   (eval "$lt_compile" 2>out/conftest.err)
13646   ac_status=$?
13647   cat out/conftest.err >&5
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13650   then
13651     # The compiler can only warn and ignore the option if not recognized
13652     # So say no if there are warnings
13653     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13654     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13655     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13656       lt_cv_prog_compiler_c_o=yes
13657     fi
13658   fi
13659   chmod u+w . 2>&5
13660   $RM conftest*
13661   # SGI C++ compiler will create directory out/ii_files/ for
13662   # template instantiation
13663   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13664   $RM out/* && rmdir out
13665   cd ..
13666   $RM -r conftest
13667   $RM conftest*
13668
13669fi
13670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13671printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13672
13673
13674
13675
13676hard_links=nottested
13677if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13678  # do not overwrite the value of need_locks provided by the user
13679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13680printf %s "checking if we can lock with hard links... " >&6; }
13681  hard_links=yes
13682  $RM conftest*
13683  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13684  touch conftest.a
13685  ln conftest.a conftest.b 2>&5 || hard_links=no
13686  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13688printf "%s\n" "$hard_links" >&6; }
13689  if test no = "$hard_links"; then
13690    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13691printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13692    need_locks=warn
13693  fi
13694else
13695  need_locks=no
13696fi
13697
13698
13699
13700
13701
13702
13703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13704printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13705
13706  runpath_var=
13707  allow_undefined_flag=
13708  always_export_symbols=no
13709  archive_cmds=
13710  archive_expsym_cmds=
13711  compiler_needs_object=no
13712  enable_shared_with_static_runtimes=no
13713  export_dynamic_flag_spec=
13714  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13715  hardcode_automatic=no
13716  hardcode_direct=no
13717  hardcode_direct_absolute=no
13718  hardcode_libdir_flag_spec=
13719  hardcode_libdir_separator=
13720  hardcode_minus_L=no
13721  hardcode_shlibpath_var=unsupported
13722  inherit_rpath=no
13723  link_all_deplibs=unknown
13724  module_cmds=
13725  module_expsym_cmds=
13726  old_archive_from_new_cmds=
13727  old_archive_from_expsyms_cmds=
13728  thread_safe_flag_spec=
13729  whole_archive_flag_spec=
13730  # include_expsyms should be a list of space-separated symbols to be *always*
13731  # included in the symbol list
13732  include_expsyms=
13733  # exclude_expsyms can be an extended regexp of symbols to exclude
13734  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13735  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13736  # as well as any symbol that contains 'd'.
13737  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13738  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13739  # platforms (ab)use it in PIC code, but their linkers get confused if
13740  # the symbol is explicitly referenced.  Since portable code cannot
13741  # rely on this symbol name, it's probably fine to never include it in
13742  # preloaded symbol tables.
13743  # Exclude shared library initialization/finalization symbols.
13744  extract_expsyms_cmds=
13745
13746  case $host_os in
13747  cygwin* | mingw* | pw32* | cegcc*)
13748    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13749    # When not using gcc, we currently assume that we are using
13750    # Microsoft Visual C++ or Intel C++ Compiler.
13751    if test yes != "$GCC"; then
13752      with_gnu_ld=no
13753    fi
13754    ;;
13755  interix*)
13756    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13757    with_gnu_ld=yes
13758    ;;
13759  openbsd* | bitrig*)
13760    with_gnu_ld=no
13761    ;;
13762  linux* | k*bsd*-gnu | gnu*)
13763    link_all_deplibs=no
13764    ;;
13765  esac
13766
13767  ld_shlibs=yes
13768
13769  # On some targets, GNU ld is compatible enough with the native linker
13770  # that we're better off using the native interface for both.
13771  lt_use_gnu_ld_interface=no
13772  if test yes = "$with_gnu_ld"; then
13773    case $host_os in
13774      aix*)
13775	# The AIX port of GNU ld has always aspired to compatibility
13776	# with the native linker.  However, as the warning in the GNU ld
13777	# block says, versions before 2.19.5* couldn't really create working
13778	# shared libraries, regardless of the interface used.
13779	case `$LD -v 2>&1` in
13780	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13781	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13782	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13783	  *)
13784	    lt_use_gnu_ld_interface=yes
13785	    ;;
13786	esac
13787	;;
13788      *)
13789	lt_use_gnu_ld_interface=yes
13790	;;
13791    esac
13792  fi
13793
13794  if test yes = "$lt_use_gnu_ld_interface"; then
13795    # If archive_cmds runs LD, not CC, wlarc should be empty
13796    wlarc='$wl'
13797
13798    # Set some defaults for GNU ld with shared library support. These
13799    # are reset later if shared libraries are not supported. Putting them
13800    # here allows them to be overridden if necessary.
13801    runpath_var=LD_RUN_PATH
13802    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13803    export_dynamic_flag_spec='$wl--export-dynamic'
13804    # ancient GNU ld didn't support --whole-archive et. al.
13805    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13806      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13807    else
13808      whole_archive_flag_spec=
13809    fi
13810    supports_anon_versioning=no
13811    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13812      *GNU\ gold*) supports_anon_versioning=yes ;;
13813      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13814      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13815      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13816      *\ 2.11.*) ;; # other 2.11 versions
13817      *) supports_anon_versioning=yes ;;
13818    esac
13819
13820    # See if GNU ld supports shared libraries.
13821    case $host_os in
13822    aix[3-9]*)
13823      # On AIX/PPC, the GNU linker is very broken
13824      if test ia64 != "$host_cpu"; then
13825	ld_shlibs=no
13826	cat <<_LT_EOF 1>&2
13827
13828*** Warning: the GNU linker, at least up to release 2.19, is reported
13829*** to be unable to reliably create shared libraries on AIX.
13830*** Therefore, libtool is disabling shared libraries support.  If you
13831*** really care for shared libraries, you may want to install binutils
13832*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13833*** You will then need to restart the configuration process.
13834
13835_LT_EOF
13836      fi
13837      ;;
13838
13839    amigaos*)
13840      case $host_cpu in
13841      powerpc)
13842            # see comment about AmigaOS4 .so support
13843            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13844            archive_expsym_cmds=''
13845        ;;
13846      m68k)
13847            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)'
13848            hardcode_libdir_flag_spec='-L$libdir'
13849            hardcode_minus_L=yes
13850        ;;
13851      esac
13852      ;;
13853
13854    beos*)
13855      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13856	allow_undefined_flag=unsupported
13857	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13858	# support --undefined.  This deserves some investigation.  FIXME
13859	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13860      else
13861	ld_shlibs=no
13862      fi
13863      ;;
13864
13865    cygwin* | mingw* | pw32* | cegcc*)
13866      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13867      # as there is no search path for DLLs.
13868      hardcode_libdir_flag_spec='-L$libdir'
13869      export_dynamic_flag_spec='$wl--export-all-symbols'
13870      allow_undefined_flag=unsupported
13871      always_export_symbols=no
13872      enable_shared_with_static_runtimes=yes
13873      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'
13874      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13875
13876      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13877        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13878	# If the export-symbols file already is a .def file, use it as
13879	# is; otherwise, prepend EXPORTS...
13880	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13881          cp $export_symbols $output_objdir/$soname.def;
13882        else
13883          echo EXPORTS > $output_objdir/$soname.def;
13884          cat $export_symbols >> $output_objdir/$soname.def;
13885        fi~
13886        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13887      else
13888	ld_shlibs=no
13889      fi
13890      ;;
13891
13892    haiku*)
13893      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13894      link_all_deplibs=yes
13895      ;;
13896
13897    os2*)
13898      hardcode_libdir_flag_spec='-L$libdir'
13899      hardcode_minus_L=yes
13900      allow_undefined_flag=unsupported
13901      shrext_cmds=.dll
13902      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13903	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13904	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13905	$ECHO EXPORTS >> $output_objdir/$libname.def~
13906	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13907	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13908	emximp -o $lib $output_objdir/$libname.def'
13909      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13910	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13911	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13912	$ECHO EXPORTS >> $output_objdir/$libname.def~
13913	prefix_cmds="$SED"~
13914	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13915	  prefix_cmds="$prefix_cmds -e 1d";
13916	fi~
13917	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13918	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13919	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13920	emximp -o $lib $output_objdir/$libname.def'
13921      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13922      enable_shared_with_static_runtimes=yes
13923      file_list_spec='@'
13924      ;;
13925
13926    interix[3-9]*)
13927      hardcode_direct=no
13928      hardcode_shlibpath_var=no
13929      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13930      export_dynamic_flag_spec='$wl-E'
13931      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13932      # Instead, shared libraries are loaded at an image base (0x10000000 by
13933      # default) and relocated if they conflict, which is a slow very memory
13934      # consuming and fragmenting process.  To avoid this, we pick a random,
13935      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13936      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13937      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13938      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'
13939      ;;
13940
13941    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13942      tmp_diet=no
13943      if test linux-dietlibc = "$host_os"; then
13944	case $cc_basename in
13945	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13946	esac
13947      fi
13948      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13949	 && test no = "$tmp_diet"
13950      then
13951	tmp_addflag=' $pic_flag'
13952	tmp_sharedflag='-shared'
13953	case $cc_basename,$host_cpu in
13954        pgcc*)				# Portland Group C compiler
13955	  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'
13956	  tmp_addflag=' $pic_flag'
13957	  ;;
13958	pgf77* | pgf90* | pgf95* | pgfortran*)
13959					# Portland Group f77 and f90 compilers
13960	  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'
13961	  tmp_addflag=' $pic_flag -Mnomain' ;;
13962	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13963	  tmp_addflag=' -i_dynamic' ;;
13964	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13965	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13966	ifc* | ifort*)			# Intel Fortran compiler
13967	  tmp_addflag=' -nofor_main' ;;
13968	lf95*)				# Lahey Fortran 8.1
13969	  whole_archive_flag_spec=
13970	  tmp_sharedflag='--shared' ;;
13971        nagfor*)                        # NAGFOR 5.3
13972          tmp_sharedflag='-Wl,-shared' ;;
13973	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13974	  tmp_sharedflag='-qmkshrobj'
13975	  tmp_addflag= ;;
13976	nvcc*)	# Cuda Compiler Driver 2.2
13977	  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'
13978	  compiler_needs_object=yes
13979	  ;;
13980	esac
13981	case `$CC -V 2>&1 | $SED 5q` in
13982	*Sun\ C*)			# Sun C 5.9
13983	  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'
13984	  compiler_needs_object=yes
13985	  tmp_sharedflag='-G' ;;
13986	*Sun\ F*)			# Sun Fortran 8.3
13987	  tmp_sharedflag='-G' ;;
13988	esac
13989	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13990
13991        if test yes = "$supports_anon_versioning"; then
13992          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13993            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13994            echo "local: *; };" >> $output_objdir/$libname.ver~
13995            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13996        fi
13997
13998	case $cc_basename in
13999	tcc*)
14000	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14001	  export_dynamic_flag_spec='-rdynamic'
14002	  ;;
14003	xlf* | bgf* | bgxlf* | mpixlf*)
14004	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14005	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14006	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14007	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14008	  if test yes = "$supports_anon_versioning"; then
14009	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14010              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14011              echo "local: *; };" >> $output_objdir/$libname.ver~
14012              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14013	  fi
14014	  ;;
14015	esac
14016      else
14017        ld_shlibs=no
14018      fi
14019      ;;
14020
14021    netbsd* | netbsdelf*-gnu)
14022      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14023	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14024	wlarc=
14025      else
14026	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14027	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14028      fi
14029      ;;
14030
14031    solaris*)
14032      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14033	ld_shlibs=no
14034	cat <<_LT_EOF 1>&2
14035
14036*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14037*** create shared libraries on Solaris systems.  Therefore, libtool
14038*** is disabling shared libraries support.  We urge you to upgrade GNU
14039*** binutils to release 2.9.1 or newer.  Another option is to modify
14040*** your PATH or compiler configuration so that the native linker is
14041*** used, and then restart.
14042
14043_LT_EOF
14044      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14045	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14046	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14047      else
14048	ld_shlibs=no
14049      fi
14050      ;;
14051
14052    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14053      case `$LD -v 2>&1` in
14054        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14055	ld_shlibs=no
14056	cat <<_LT_EOF 1>&2
14057
14058*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14059*** reliably create shared libraries on SCO systems.  Therefore, libtool
14060*** is disabling shared libraries support.  We urge you to upgrade GNU
14061*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14062*** your PATH or compiler configuration so that the native linker is
14063*** used, and then restart.
14064
14065_LT_EOF
14066	;;
14067	*)
14068	  # For security reasons, it is highly recommended that you always
14069	  # use absolute paths for naming shared libraries, and exclude the
14070	  # DT_RUNPATH tag from executables and libraries.  But doing so
14071	  # requires that you compile everything twice, which is a pain.
14072	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14073	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14074	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14075	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14076	  else
14077	    ld_shlibs=no
14078	  fi
14079	;;
14080      esac
14081      ;;
14082
14083    sunos4*)
14084      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14085      wlarc=
14086      hardcode_direct=yes
14087      hardcode_shlibpath_var=no
14088      ;;
14089
14090    *)
14091      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14092	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14093	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14094      else
14095	ld_shlibs=no
14096      fi
14097      ;;
14098    esac
14099
14100    if test no = "$ld_shlibs"; then
14101      runpath_var=
14102      hardcode_libdir_flag_spec=
14103      export_dynamic_flag_spec=
14104      whole_archive_flag_spec=
14105    fi
14106  else
14107    # PORTME fill in a description of your system's linker (not GNU ld)
14108    case $host_os in
14109    aix3*)
14110      allow_undefined_flag=unsupported
14111      always_export_symbols=yes
14112      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'
14113      # Note: this linker hardcodes the directories in LIBPATH if there
14114      # are no directories specified by -L.
14115      hardcode_minus_L=yes
14116      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14117	# Neither direct hardcoding nor static linking is supported with a
14118	# broken collect2.
14119	hardcode_direct=unsupported
14120      fi
14121      ;;
14122
14123    aix[4-9]*)
14124      if test ia64 = "$host_cpu"; then
14125	# On IA64, the linker does run time linking by default, so we don't
14126	# have to do anything special.
14127	aix_use_runtimelinking=no
14128	exp_sym_flag='-Bexport'
14129	no_entry_flag=
14130      else
14131	# If we're using GNU nm, then we don't want the "-C" option.
14132	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
14133	# Without the "-l" option, or with the "-B" option, AIX nm treats
14134	# weak defined symbols like other global defined symbols, whereas
14135	# GNU nm marks them as "W".
14136	# While the 'weak' keyword is ignored in the Export File, we need
14137	# it in the Import File for the 'aix-soname' feature, so we have
14138	# to replace the "-B" option with "-P" for AIX nm.
14139	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14140	  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'
14141	else
14142	  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'
14143	fi
14144	aix_use_runtimelinking=no
14145
14146	# Test if we are trying to use run time linking or normal
14147	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14148	# have runtime linking enabled, and use it for executables.
14149	# For shared libraries, we enable/disable runtime linking
14150	# depending on the kind of the shared library created -
14151	# when "with_aix_soname,aix_use_runtimelinking" is:
14152	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14153	# "aix,yes"  lib.so          shared, rtl:yes, for executables
14154	#            lib.a           static archive
14155	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
14156	#            lib.a(lib.so.V) shared, rtl:no,  for executables
14157	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14158	#            lib.a(lib.so.V) shared, rtl:no
14159	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14160	#            lib.a           static archive
14161	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14162	  for ld_flag in $LDFLAGS; do
14163	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14164	    aix_use_runtimelinking=yes
14165	    break
14166	  fi
14167	  done
14168	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14169	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
14170	    # so we don't have lib.a shared libs to link our executables.
14171	    # We have to force runtime linking in this case.
14172	    aix_use_runtimelinking=yes
14173	    LDFLAGS="$LDFLAGS -Wl,-brtl"
14174	  fi
14175	  ;;
14176	esac
14177
14178	exp_sym_flag='-bexport'
14179	no_entry_flag='-bnoentry'
14180      fi
14181
14182      # When large executables or shared objects are built, AIX ld can
14183      # have problems creating the table of contents.  If linking a library
14184      # or program results in "error TOC overflow" add -mminimal-toc to
14185      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14186      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14187
14188      archive_cmds=''
14189      hardcode_direct=yes
14190      hardcode_direct_absolute=yes
14191      hardcode_libdir_separator=':'
14192      link_all_deplibs=yes
14193      file_list_spec='$wl-f,'
14194      case $with_aix_soname,$aix_use_runtimelinking in
14195      aix,*) ;; # traditional, no import file
14196      svr4,* | *,yes) # use import file
14197	# The Import File defines what to hardcode.
14198	hardcode_direct=no
14199	hardcode_direct_absolute=no
14200	;;
14201      esac
14202
14203      if test yes = "$GCC"; then
14204	case $host_os in aix4.[012]|aix4.[012].*)
14205	# We only want to do this on AIX 4.2 and lower, the check
14206	# below for broken collect2 doesn't work under 4.3+
14207	  collect2name=`$CC -print-prog-name=collect2`
14208	  if test -f "$collect2name" &&
14209	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14210	  then
14211	  # We have reworked collect2
14212	  :
14213	  else
14214	  # We have old collect2
14215	  hardcode_direct=unsupported
14216	  # It fails to find uninstalled libraries when the uninstalled
14217	  # path is not listed in the libpath.  Setting hardcode_minus_L
14218	  # to unsupported forces relinking
14219	  hardcode_minus_L=yes
14220	  hardcode_libdir_flag_spec='-L$libdir'
14221	  hardcode_libdir_separator=
14222	  fi
14223	  ;;
14224	esac
14225	shared_flag='-shared'
14226	if test yes = "$aix_use_runtimelinking"; then
14227	  shared_flag="$shared_flag "'$wl-G'
14228	fi
14229	# Need to ensure runtime linking is disabled for the traditional
14230	# shared library, or the linker may eventually find shared libraries
14231	# /with/ Import File - we do not want to mix them.
14232	shared_flag_aix='-shared'
14233	shared_flag_svr4='-shared $wl-G'
14234      else
14235	# not using gcc
14236	if test ia64 = "$host_cpu"; then
14237	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14238	# chokes on -Wl,-G. The following line is correct:
14239	  shared_flag='-G'
14240	else
14241	  if test yes = "$aix_use_runtimelinking"; then
14242	    shared_flag='$wl-G'
14243	  else
14244	    shared_flag='$wl-bM:SRE'
14245	  fi
14246	  shared_flag_aix='$wl-bM:SRE'
14247	  shared_flag_svr4='$wl-G'
14248	fi
14249      fi
14250
14251      export_dynamic_flag_spec='$wl-bexpall'
14252      # It seems that -bexpall does not export symbols beginning with
14253      # underscore (_), so it is better to generate a list of symbols to export.
14254      always_export_symbols=yes
14255      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14256	# Warning - without using the other runtime loading flags (-brtl),
14257	# -berok will link without error, but may produce a broken library.
14258	allow_undefined_flag='-berok'
14259        # Determine the default libpath from the value encoded in an
14260        # empty executable.
14261        if test set = "${lt_cv_aix_libpath+set}"; then
14262  aix_libpath=$lt_cv_aix_libpath
14263else
14264  if test ${lt_cv_aix_libpath_+y}
14265then :
14266  printf %s "(cached) " >&6
14267else $as_nop
14268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269/* end confdefs.h.  */
14270
14271int main (void)
14272{
14273
14274 ;
14275 return 0;
14276}
14277_ACEOF
14278if ac_fn_c_try_link "$LINENO"
14279then :
14280
14281  lt_aix_libpath_sed='
14282      /Import File Strings/,/^$/ {
14283	  /^0/ {
14284	      s/^0  *\([^ ]*\) *$/\1/
14285	      p
14286	  }
14287      }'
14288  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14289  # Check for a 64-bit object if we didn't find anything.
14290  if test -z "$lt_cv_aix_libpath_"; then
14291    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14292  fi
14293fi
14294rm -f core conftest.err conftest.$ac_objext conftest.beam \
14295    conftest$ac_exeext conftest.$ac_ext
14296  if test -z "$lt_cv_aix_libpath_"; then
14297    lt_cv_aix_libpath_=/usr/lib:/lib
14298  fi
14299
14300fi
14301
14302  aix_libpath=$lt_cv_aix_libpath_
14303fi
14304
14305        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14306        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
14307      else
14308	if test ia64 = "$host_cpu"; then
14309	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14310	  allow_undefined_flag="-z nodefs"
14311	  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"
14312	else
14313	 # Determine the default libpath from the value encoded in an
14314	 # empty executable.
14315	 if test set = "${lt_cv_aix_libpath+set}"; then
14316  aix_libpath=$lt_cv_aix_libpath
14317else
14318  if test ${lt_cv_aix_libpath_+y}
14319then :
14320  printf %s "(cached) " >&6
14321else $as_nop
14322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323/* end confdefs.h.  */
14324
14325int main (void)
14326{
14327
14328 ;
14329 return 0;
14330}
14331_ACEOF
14332if ac_fn_c_try_link "$LINENO"
14333then :
14334
14335  lt_aix_libpath_sed='
14336      /Import File Strings/,/^$/ {
14337	  /^0/ {
14338	      s/^0  *\([^ ]*\) *$/\1/
14339	      p
14340	  }
14341      }'
14342  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14343  # Check for a 64-bit object if we didn't find anything.
14344  if test -z "$lt_cv_aix_libpath_"; then
14345    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14346  fi
14347fi
14348rm -f core conftest.err conftest.$ac_objext conftest.beam \
14349    conftest$ac_exeext conftest.$ac_ext
14350  if test -z "$lt_cv_aix_libpath_"; then
14351    lt_cv_aix_libpath_=/usr/lib:/lib
14352  fi
14353
14354fi
14355
14356  aix_libpath=$lt_cv_aix_libpath_
14357fi
14358
14359	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14360	  # Warning - without using the other run time loading flags,
14361	  # -berok will link without error, but may produce a broken library.
14362	  no_undefined_flag=' $wl-bernotok'
14363	  allow_undefined_flag=' $wl-berok'
14364	  if test yes = "$with_gnu_ld"; then
14365	    # We only use this code for GNU lds that support --whole-archive.
14366	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14367	  else
14368	    # Exported symbols can be pulled into shared objects from archives
14369	    whole_archive_flag_spec='$convenience'
14370	  fi
14371	  archive_cmds_need_lc=yes
14372	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14373	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14374	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14375	  if test svr4 != "$with_aix_soname"; then
14376	    # This is similar to how AIX traditionally builds its shared libraries.
14377	    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'
14378	  fi
14379	  if test aix != "$with_aix_soname"; then
14380	    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'
14381	  else
14382	    # used by -dlpreopen to get the symbols
14383	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14384	  fi
14385	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14386	fi
14387      fi
14388      ;;
14389
14390    amigaos*)
14391      case $host_cpu in
14392      powerpc)
14393            # see comment about AmigaOS4 .so support
14394            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14395            archive_expsym_cmds=''
14396        ;;
14397      m68k)
14398            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)'
14399            hardcode_libdir_flag_spec='-L$libdir'
14400            hardcode_minus_L=yes
14401        ;;
14402      esac
14403      ;;
14404
14405    bsdi[45]*)
14406      export_dynamic_flag_spec=-rdynamic
14407      ;;
14408
14409    cygwin* | mingw* | pw32* | cegcc*)
14410      # When not using gcc, we currently assume that we are using
14411      # Microsoft Visual C++ or Intel C++ Compiler.
14412      # hardcode_libdir_flag_spec is actually meaningless, as there is
14413      # no search path for DLLs.
14414      case $cc_basename in
14415      cl* | icl*)
14416	# Native MSVC or ICC
14417	hardcode_libdir_flag_spec=' '
14418	allow_undefined_flag=unsupported
14419	always_export_symbols=yes
14420	file_list_spec='@'
14421	# Tell ltmain to make .lib files, not .a files.
14422	libext=lib
14423	# Tell ltmain to make .dll files, not .so files.
14424	shrext_cmds=.dll
14425	# FIXME: Setting linknames here is a bad hack.
14426	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14427	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14428            cp "$export_symbols" "$output_objdir/$soname.def";
14429            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14430          else
14431            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14432          fi~
14433          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14434          linknames='
14435	# The linker will not automatically build a static lib if we build a DLL.
14436	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14437	enable_shared_with_static_runtimes=yes
14438	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14439	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14440	# Don't use ranlib
14441	old_postinstall_cmds='chmod 644 $oldlib'
14442	postlink_cmds='lt_outputfile="@OUTPUT@"~
14443          lt_tool_outputfile="@TOOL_OUTPUT@"~
14444          case $lt_outputfile in
14445            *.exe|*.EXE) ;;
14446            *)
14447              lt_outputfile=$lt_outputfile.exe
14448              lt_tool_outputfile=$lt_tool_outputfile.exe
14449              ;;
14450          esac~
14451          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14452            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14453            $RM "$lt_outputfile.manifest";
14454          fi'
14455	;;
14456      *)
14457	# Assume MSVC and ICC wrapper
14458	hardcode_libdir_flag_spec=' '
14459	allow_undefined_flag=unsupported
14460	# Tell ltmain to make .lib files, not .a files.
14461	libext=lib
14462	# Tell ltmain to make .dll files, not .so files.
14463	shrext_cmds=.dll
14464	# FIXME: Setting linknames here is a bad hack.
14465	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14466	# The linker will automatically build a .lib file if we build a DLL.
14467	old_archive_from_new_cmds='true'
14468	# FIXME: Should let the user specify the lib program.
14469	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14470	enable_shared_with_static_runtimes=yes
14471	;;
14472      esac
14473      ;;
14474
14475    darwin* | rhapsody*)
14476
14477
14478  archive_cmds_need_lc=no
14479  hardcode_direct=no
14480  hardcode_automatic=yes
14481  hardcode_shlibpath_var=unsupported
14482  if test yes = "$lt_cv_ld_force_load"; then
14483    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\"`'
14484
14485  else
14486    whole_archive_flag_spec=''
14487  fi
14488  link_all_deplibs=yes
14489  allow_undefined_flag=$_lt_dar_allow_undefined
14490  case $cc_basename in
14491     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14492     *) _lt_dar_can_shared=$GCC ;;
14493  esac
14494  if test yes = "$_lt_dar_can_shared"; then
14495    output_verbose_link_cmd=func_echo_all
14496    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14497    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14498    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"
14499    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"
14500
14501  else
14502  ld_shlibs=no
14503  fi
14504
14505      ;;
14506
14507    dgux*)
14508      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509      hardcode_libdir_flag_spec='-L$libdir'
14510      hardcode_shlibpath_var=no
14511      ;;
14512
14513    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14514    # support.  Future versions do this automatically, but an explicit c++rt0.o
14515    # does not break anything, and helps significantly (at the cost of a little
14516    # extra space).
14517    freebsd2.2*)
14518      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14519      hardcode_libdir_flag_spec='-R$libdir'
14520      hardcode_direct=yes
14521      hardcode_shlibpath_var=no
14522      ;;
14523
14524    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14525    freebsd2.*)
14526      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14527      hardcode_direct=yes
14528      hardcode_minus_L=yes
14529      hardcode_shlibpath_var=no
14530      ;;
14531
14532    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14533    freebsd* | dragonfly* | midnightbsd*)
14534      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14535      hardcode_libdir_flag_spec='-R$libdir'
14536      hardcode_direct=yes
14537      hardcode_shlibpath_var=no
14538      ;;
14539
14540    hpux9*)
14541      if test yes = "$GCC"; then
14542	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'
14543      else
14544	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'
14545      fi
14546      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14547      hardcode_libdir_separator=:
14548      hardcode_direct=yes
14549
14550      # hardcode_minus_L: Not really in the search PATH,
14551      # but as the default location of the library.
14552      hardcode_minus_L=yes
14553      export_dynamic_flag_spec='$wl-E'
14554      ;;
14555
14556    hpux10*)
14557      if test yes,no = "$GCC,$with_gnu_ld"; then
14558	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14559      else
14560	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14561      fi
14562      if test no = "$with_gnu_ld"; then
14563	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14564	hardcode_libdir_separator=:
14565	hardcode_direct=yes
14566	hardcode_direct_absolute=yes
14567	export_dynamic_flag_spec='$wl-E'
14568	# hardcode_minus_L: Not really in the search PATH,
14569	# but as the default location of the library.
14570	hardcode_minus_L=yes
14571      fi
14572      ;;
14573
14574    hpux11*)
14575      if test yes,no = "$GCC,$with_gnu_ld"; then
14576	case $host_cpu in
14577	hppa*64*)
14578	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14579	  ;;
14580	ia64*)
14581	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14582	  ;;
14583	*)
14584	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14585	  ;;
14586	esac
14587      else
14588	case $host_cpu in
14589	hppa*64*)
14590	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14591	  ;;
14592	ia64*)
14593	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14594	  ;;
14595	*)
14596
14597	  # Older versions of the 11.00 compiler do not understand -b yet
14598	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14599	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14600printf %s "checking if $CC understands -b... " >&6; }
14601if test ${lt_cv_prog_compiler__b+y}
14602then :
14603  printf %s "(cached) " >&6
14604else $as_nop
14605  lt_cv_prog_compiler__b=no
14606   save_LDFLAGS=$LDFLAGS
14607   LDFLAGS="$LDFLAGS -b"
14608   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14609   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14610     # The linker can only warn and ignore the option if not recognized
14611     # So say no if there are warnings
14612     if test -s conftest.err; then
14613       # Append any errors to the config.log.
14614       cat conftest.err 1>&5
14615       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14616       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14617       if diff conftest.exp conftest.er2 >/dev/null; then
14618         lt_cv_prog_compiler__b=yes
14619       fi
14620     else
14621       lt_cv_prog_compiler__b=yes
14622     fi
14623   fi
14624   $RM -r conftest*
14625   LDFLAGS=$save_LDFLAGS
14626
14627fi
14628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14629printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14630
14631if test yes = "$lt_cv_prog_compiler__b"; then
14632    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14633else
14634    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14635fi
14636
14637	  ;;
14638	esac
14639      fi
14640      if test no = "$with_gnu_ld"; then
14641	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14642	hardcode_libdir_separator=:
14643
14644	case $host_cpu in
14645	hppa*64*|ia64*)
14646	  hardcode_direct=no
14647	  hardcode_shlibpath_var=no
14648	  ;;
14649	*)
14650	  hardcode_direct=yes
14651	  hardcode_direct_absolute=yes
14652	  export_dynamic_flag_spec='$wl-E'
14653
14654	  # hardcode_minus_L: Not really in the search PATH,
14655	  # but as the default location of the library.
14656	  hardcode_minus_L=yes
14657	  ;;
14658	esac
14659      fi
14660      ;;
14661
14662    irix5* | irix6* | nonstopux*)
14663      if test yes = "$GCC"; then
14664	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'
14665	# Try to use the -exported_symbol ld option, if it does not
14666	# work, assume that -exports_file does not work either and
14667	# implicitly export all symbols.
14668	# This should be the same for all languages, so no per-tag cache variable.
14669	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14670printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14671if test ${lt_cv_irix_exported_symbol+y}
14672then :
14673  printf %s "(cached) " >&6
14674else $as_nop
14675  save_LDFLAGS=$LDFLAGS
14676	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14677	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678/* end confdefs.h.  */
14679int foo (void) { return 0; }
14680_ACEOF
14681if ac_fn_c_try_link "$LINENO"
14682then :
14683  lt_cv_irix_exported_symbol=yes
14684else $as_nop
14685  lt_cv_irix_exported_symbol=no
14686fi
14687rm -f core conftest.err conftest.$ac_objext conftest.beam \
14688    conftest$ac_exeext conftest.$ac_ext
14689           LDFLAGS=$save_LDFLAGS
14690fi
14691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14692printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14693	if test yes = "$lt_cv_irix_exported_symbol"; then
14694          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'
14695	fi
14696	link_all_deplibs=no
14697      else
14698	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'
14699	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'
14700      fi
14701      archive_cmds_need_lc='no'
14702      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14703      hardcode_libdir_separator=:
14704      inherit_rpath=yes
14705      link_all_deplibs=yes
14706      ;;
14707
14708    linux*)
14709      case $cc_basename in
14710      tcc*)
14711	# Fabrice Bellard et al's Tiny C Compiler
14712	ld_shlibs=yes
14713	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14714	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14715	;;
14716      esac
14717      ;;
14718
14719    netbsd* | netbsdelf*-gnu)
14720      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14721	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14722      else
14723	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14724      fi
14725      hardcode_libdir_flag_spec='-R$libdir'
14726      hardcode_direct=yes
14727      hardcode_shlibpath_var=no
14728      ;;
14729
14730    newsos6)
14731      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14732      hardcode_direct=yes
14733      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14734      hardcode_libdir_separator=:
14735      hardcode_shlibpath_var=no
14736      ;;
14737
14738    *nto* | *qnx*)
14739      ;;
14740
14741    openbsd* | bitrig*)
14742      if test -f /usr/libexec/ld.so; then
14743	hardcode_direct=yes
14744	hardcode_shlibpath_var=no
14745	hardcode_direct_absolute=yes
14746	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14747	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14748	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14749	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14750	  export_dynamic_flag_spec='$wl-E'
14751	else
14752	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14753	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14754	fi
14755      else
14756	ld_shlibs=no
14757      fi
14758      ;;
14759
14760    os2*)
14761      hardcode_libdir_flag_spec='-L$libdir'
14762      hardcode_minus_L=yes
14763      allow_undefined_flag=unsupported
14764      shrext_cmds=.dll
14765      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14766	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14767	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14768	$ECHO EXPORTS >> $output_objdir/$libname.def~
14769	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14770	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14771	emximp -o $lib $output_objdir/$libname.def'
14772      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14773	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14774	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14775	$ECHO EXPORTS >> $output_objdir/$libname.def~
14776	prefix_cmds="$SED"~
14777	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14778	  prefix_cmds="$prefix_cmds -e 1d";
14779	fi~
14780	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14781	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14782	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14783	emximp -o $lib $output_objdir/$libname.def'
14784      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14785      enable_shared_with_static_runtimes=yes
14786      file_list_spec='@'
14787      ;;
14788
14789    osf3*)
14790      if test yes = "$GCC"; then
14791	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14792	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'
14793      else
14794	allow_undefined_flag=' -expect_unresolved \*'
14795	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'
14796      fi
14797      archive_cmds_need_lc='no'
14798      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14799      hardcode_libdir_separator=:
14800      ;;
14801
14802    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14803      if test yes = "$GCC"; then
14804	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14805	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'
14806	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14807      else
14808	allow_undefined_flag=' -expect_unresolved \*'
14809	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'
14810	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~
14811          $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'
14812
14813	# Both c and cxx compiler support -rpath directly
14814	hardcode_libdir_flag_spec='-rpath $libdir'
14815      fi
14816      archive_cmds_need_lc='no'
14817      hardcode_libdir_separator=:
14818      ;;
14819
14820    solaris*)
14821      no_undefined_flag=' -z defs'
14822      if test yes = "$GCC"; then
14823	wlarc='$wl'
14824	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14825	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14826          $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'
14827      else
14828	case `$CC -V 2>&1` in
14829	*"Compilers 5.0"*)
14830	  wlarc=''
14831	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14832	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14833            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14834	  ;;
14835	*)
14836	  wlarc='$wl'
14837	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14838	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14839            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14840	  ;;
14841	esac
14842      fi
14843      hardcode_libdir_flag_spec='-R$libdir'
14844      hardcode_shlibpath_var=no
14845      case $host_os in
14846      solaris2.[0-5] | solaris2.[0-5].*) ;;
14847      *)
14848	# The compiler driver will combine and reorder linker options,
14849	# but understands '-z linker_flag'.  GCC discards it without '$wl',
14850	# but is careful enough not to reorder.
14851	# Supported since Solaris 2.6 (maybe 2.5.1?)
14852	if test yes = "$GCC"; then
14853	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14854	else
14855	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14856	fi
14857	;;
14858      esac
14859      link_all_deplibs=yes
14860      ;;
14861
14862    sunos4*)
14863      if test sequent = "$host_vendor"; then
14864	# Use $CC to link under sequent, because it throws in some extra .o
14865	# files that make .init and .fini sections work.
14866	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14867      else
14868	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14869      fi
14870      hardcode_libdir_flag_spec='-L$libdir'
14871      hardcode_direct=yes
14872      hardcode_minus_L=yes
14873      hardcode_shlibpath_var=no
14874      ;;
14875
14876    sysv4)
14877      case $host_vendor in
14878	sni)
14879	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14880	  hardcode_direct=yes # is this really true???
14881	;;
14882	siemens)
14883	  ## LD is ld it makes a PLAMLIB
14884	  ## CC just makes a GrossModule.
14885	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14886	  reload_cmds='$CC -r -o $output$reload_objs'
14887	  hardcode_direct=no
14888        ;;
14889	motorola)
14890	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14892	;;
14893      esac
14894      runpath_var='LD_RUN_PATH'
14895      hardcode_shlibpath_var=no
14896      ;;
14897
14898    sysv4.3*)
14899      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14900      hardcode_shlibpath_var=no
14901      export_dynamic_flag_spec='-Bexport'
14902      ;;
14903
14904    sysv4*MP*)
14905      if test -d /usr/nec; then
14906	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14907	hardcode_shlibpath_var=no
14908	runpath_var=LD_RUN_PATH
14909	hardcode_runpath_var=yes
14910	ld_shlibs=yes
14911      fi
14912      ;;
14913
14914    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14915      no_undefined_flag='$wl-z,text'
14916      archive_cmds_need_lc=no
14917      hardcode_shlibpath_var=no
14918      runpath_var='LD_RUN_PATH'
14919
14920      if test yes = "$GCC"; then
14921	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14922	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14923      else
14924	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14926      fi
14927      ;;
14928
14929    sysv5* | sco3.2v5* | sco5v6*)
14930      # Note: We CANNOT use -z defs as we might desire, because we do not
14931      # link with -lc, and that would cause any symbols used from libc to
14932      # always be unresolved, which means just about no library would
14933      # ever link correctly.  If we're not using GNU ld we use -z text
14934      # though, which does catch some bad symbols but isn't as heavy-handed
14935      # as -z defs.
14936      no_undefined_flag='$wl-z,text'
14937      allow_undefined_flag='$wl-z,nodefs'
14938      archive_cmds_need_lc=no
14939      hardcode_shlibpath_var=no
14940      hardcode_libdir_flag_spec='$wl-R,$libdir'
14941      hardcode_libdir_separator=':'
14942      link_all_deplibs=yes
14943      export_dynamic_flag_spec='$wl-Bexport'
14944      runpath_var='LD_RUN_PATH'
14945
14946      if test yes = "$GCC"; then
14947	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14948	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14949      else
14950	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14951	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14952      fi
14953      ;;
14954
14955    uts4*)
14956      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957      hardcode_libdir_flag_spec='-L$libdir'
14958      hardcode_shlibpath_var=no
14959      ;;
14960
14961    *)
14962      ld_shlibs=no
14963      ;;
14964    esac
14965
14966    if test sni = "$host_vendor"; then
14967      case $host in
14968      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14969	export_dynamic_flag_spec='$wl-Blargedynsym'
14970	;;
14971      esac
14972    fi
14973  fi
14974
14975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14976printf "%s\n" "$ld_shlibs" >&6; }
14977test no = "$ld_shlibs" && can_build_shared=no
14978
14979with_gnu_ld=$with_gnu_ld
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995#
14996# Do we need to explicitly link libc?
14997#
14998case "x$archive_cmds_need_lc" in
14999x|xyes)
15000  # Assume -lc should be added
15001  archive_cmds_need_lc=yes
15002
15003  if test yes,yes = "$GCC,$enable_shared"; then
15004    case $archive_cmds in
15005    *'~'*)
15006      # FIXME: we may have to deal with multi-command sequences.
15007      ;;
15008    '$CC '*)
15009      # Test whether the compiler implicitly links with -lc since on some
15010      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15011      # to ld, don't add -lc before -lgcc.
15012      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15013printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15014if test ${lt_cv_archive_cmds_need_lc+y}
15015then :
15016  printf %s "(cached) " >&6
15017else $as_nop
15018  $RM conftest*
15019	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15020
15021	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15022  (eval $ac_compile) 2>&5
15023  ac_status=$?
15024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15025  test $ac_status = 0; } 2>conftest.err; then
15026	  soname=conftest
15027	  lib=conftest
15028	  libobjs=conftest.$ac_objext
15029	  deplibs=
15030	  wl=$lt_prog_compiler_wl
15031	  pic_flag=$lt_prog_compiler_pic
15032	  compiler_flags=-v
15033	  linker_flags=-v
15034	  verstring=
15035	  output_objdir=.
15036	  libname=conftest
15037	  lt_save_allow_undefined_flag=$allow_undefined_flag
15038	  allow_undefined_flag=
15039	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15040  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15041  ac_status=$?
15042  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15043  test $ac_status = 0; }
15044	  then
15045	    lt_cv_archive_cmds_need_lc=no
15046	  else
15047	    lt_cv_archive_cmds_need_lc=yes
15048	  fi
15049	  allow_undefined_flag=$lt_save_allow_undefined_flag
15050	else
15051	  cat conftest.err 1>&5
15052	fi
15053	$RM conftest*
15054
15055fi
15056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15057printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15058      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15059      ;;
15060    esac
15061  fi
15062  ;;
15063esac
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15217printf %s "checking dynamic linker characteristics... " >&6; }
15218
15219if test yes = "$GCC"; then
15220  case $host_os in
15221    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15222    *) lt_awk_arg='/^libraries:/' ;;
15223  esac
15224  case $host_os in
15225    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15226    *) lt_sed_strip_eq='s|=/|/|g' ;;
15227  esac
15228  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15229  case $lt_search_path_spec in
15230  *\;*)
15231    # if the path contains ";" then we assume it to be the separator
15232    # otherwise default to the standard path separator (i.e. ":") - it is
15233    # assumed that no part of a normal pathname contains ";" but that should
15234    # okay in the real world where ";" in dirpaths is itself problematic.
15235    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15236    ;;
15237  *)
15238    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15239    ;;
15240  esac
15241  # Ok, now we have the path, separated by spaces, we can step through it
15242  # and add multilib dir if necessary...
15243  lt_tmp_lt_search_path_spec=
15244  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15245  # ...but if some path component already ends with the multilib dir we assume
15246  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15247  case "$lt_multi_os_dir; $lt_search_path_spec " in
15248  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15249    lt_multi_os_dir=
15250    ;;
15251  esac
15252  for lt_sys_path in $lt_search_path_spec; do
15253    if test -d "$lt_sys_path$lt_multi_os_dir"; then
15254      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15255    elif test -n "$lt_multi_os_dir"; then
15256      test -d "$lt_sys_path" && \
15257	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15258    fi
15259  done
15260  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15261BEGIN {RS = " "; FS = "/|\n";} {
15262  lt_foo = "";
15263  lt_count = 0;
15264  for (lt_i = NF; lt_i > 0; lt_i--) {
15265    if ($lt_i != "" && $lt_i != ".") {
15266      if ($lt_i == "..") {
15267        lt_count++;
15268      } else {
15269        if (lt_count == 0) {
15270          lt_foo = "/" $lt_i lt_foo;
15271        } else {
15272          lt_count--;
15273        }
15274      }
15275    }
15276  }
15277  if (lt_foo != "") { lt_freq[lt_foo]++; }
15278  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15279}'`
15280  # AWK program above erroneously prepends '/' to C:/dos/paths
15281  # for these hosts.
15282  case $host_os in
15283    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15284      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15285  esac
15286  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15287else
15288  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15289fi
15290library_names_spec=
15291libname_spec='lib$name'
15292soname_spec=
15293shrext_cmds=.so
15294postinstall_cmds=
15295postuninstall_cmds=
15296finish_cmds=
15297finish_eval=
15298shlibpath_var=
15299shlibpath_overrides_runpath=unknown
15300version_type=none
15301dynamic_linker="$host_os ld.so"
15302sys_lib_dlsearch_path_spec="/lib /usr/lib"
15303need_lib_prefix=unknown
15304hardcode_into_libs=no
15305
15306# when you set need_version to no, make sure it does not cause -set_version
15307# flags to be left without arguments
15308need_version=unknown
15309
15310
15311
15312case $host_os in
15313aix3*)
15314  version_type=linux # correct to gnu/linux during the next big refactor
15315  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15316  shlibpath_var=LIBPATH
15317
15318  # AIX 3 has no versioning support, so we append a major version to the name.
15319  soname_spec='$libname$release$shared_ext$major'
15320  ;;
15321
15322aix[4-9]*)
15323  version_type=linux # correct to gnu/linux during the next big refactor
15324  need_lib_prefix=no
15325  need_version=no
15326  hardcode_into_libs=yes
15327  if test ia64 = "$host_cpu"; then
15328    # AIX 5 supports IA64
15329    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15330    shlibpath_var=LD_LIBRARY_PATH
15331  else
15332    # With GCC up to 2.95.x, collect2 would create an import file
15333    # for dependence libraries.  The import file would start with
15334    # the line '#! .'.  This would cause the generated library to
15335    # depend on '.', always an invalid library.  This was fixed in
15336    # development snapshots of GCC prior to 3.0.
15337    case $host_os in
15338      aix4 | aix4.[01] | aix4.[01].*)
15339      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15340	   echo ' yes '
15341	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15342	:
15343      else
15344	can_build_shared=no
15345      fi
15346      ;;
15347    esac
15348    # Using Import Files as archive members, it is possible to support
15349    # filename-based versioning of shared library archives on AIX. While
15350    # this would work for both with and without runtime linking, it will
15351    # prevent static linking of such archives. So we do filename-based
15352    # shared library versioning with .so extension only, which is used
15353    # when both runtime linking and shared linking is enabled.
15354    # Unfortunately, runtime linking may impact performance, so we do
15355    # not want this to be the default eventually. Also, we use the
15356    # versioned .so libs for executables only if there is the -brtl
15357    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15358    # To allow for filename-based versioning support, we need to create
15359    # libNAME.so.V as an archive file, containing:
15360    # *) an Import File, referring to the versioned filename of the
15361    #    archive as well as the shared archive member, telling the
15362    #    bitwidth (32 or 64) of that shared object, and providing the
15363    #    list of exported symbols of that shared object, eventually
15364    #    decorated with the 'weak' keyword
15365    # *) the shared object with the F_LOADONLY flag set, to really avoid
15366    #    it being seen by the linker.
15367    # At run time we better use the real file rather than another symlink,
15368    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15369
15370    case $with_aix_soname,$aix_use_runtimelinking in
15371    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15372    # soname into executable. Probably we can add versioning support to
15373    # collect2, so additional links can be useful in future.
15374    aix,yes) # traditional libtool
15375      dynamic_linker='AIX unversionable lib.so'
15376      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15377      # instead of lib<name>.a to let people know that these are not
15378      # typical AIX shared libraries.
15379      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15380      ;;
15381    aix,no) # traditional AIX only
15382      dynamic_linker='AIX lib.a(lib.so.V)'
15383      # We preserve .a as extension for shared libraries through AIX4.2
15384      # and later when we are not doing run time linking.
15385      library_names_spec='$libname$release.a $libname.a'
15386      soname_spec='$libname$release$shared_ext$major'
15387      ;;
15388    svr4,*) # full svr4 only
15389      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15390      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15391      # We do not specify a path in Import Files, so LIBPATH fires.
15392      shlibpath_overrides_runpath=yes
15393      ;;
15394    *,yes) # both, prefer svr4
15395      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15396      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15397      # unpreferred sharedlib libNAME.a needs extra handling
15398      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"'
15399      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"'
15400      # We do not specify a path in Import Files, so LIBPATH fires.
15401      shlibpath_overrides_runpath=yes
15402      ;;
15403    *,no) # both, prefer aix
15404      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15405      library_names_spec='$libname$release.a $libname.a'
15406      soname_spec='$libname$release$shared_ext$major'
15407      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15408      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)'
15409      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"'
15410      ;;
15411    esac
15412    shlibpath_var=LIBPATH
15413  fi
15414  ;;
15415
15416amigaos*)
15417  case $host_cpu in
15418  powerpc)
15419    # Since July 2007 AmigaOS4 officially supports .so libraries.
15420    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15421    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15422    ;;
15423  m68k)
15424    library_names_spec='$libname.ixlibrary $libname.a'
15425    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15426    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'
15427    ;;
15428  esac
15429  ;;
15430
15431beos*)
15432  library_names_spec='$libname$shared_ext'
15433  dynamic_linker="$host_os ld.so"
15434  shlibpath_var=LIBRARY_PATH
15435  ;;
15436
15437bsdi[45]*)
15438  version_type=linux # correct to gnu/linux during the next big refactor
15439  need_version=no
15440  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15441  soname_spec='$libname$release$shared_ext$major'
15442  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15443  shlibpath_var=LD_LIBRARY_PATH
15444  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15445  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15446  # the default ld.so.conf also contains /usr/contrib/lib and
15447  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15448  # libtool to hard-code these into programs
15449  ;;
15450
15451cygwin* | mingw* | pw32* | cegcc*)
15452  version_type=windows
15453  shrext_cmds=.dll
15454  need_version=no
15455  need_lib_prefix=no
15456
15457  case $GCC,$cc_basename in
15458  yes,*)
15459    # gcc
15460    library_names_spec='$libname.dll.a'
15461    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15462    postinstall_cmds='base_file=`basename \$file`~
15463      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15464      dldir=$destdir/`dirname \$dlpath`~
15465      test -d \$dldir || mkdir -p \$dldir~
15466      $install_prog $dir/$dlname \$dldir/$dlname~
15467      chmod a+x \$dldir/$dlname~
15468      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15469        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15470      fi'
15471    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15472      dlpath=$dir/\$dldll~
15473       $RM \$dlpath'
15474    shlibpath_overrides_runpath=yes
15475
15476    case $host_os in
15477    cygwin*)
15478      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15479      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15480
15481      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15482      ;;
15483    mingw* | cegcc*)
15484      # MinGW DLLs use traditional 'lib' prefix
15485      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15486      ;;
15487    pw32*)
15488      # pw32 DLLs use 'pw' prefix rather than 'lib'
15489      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15490      ;;
15491    esac
15492    dynamic_linker='Win32 ld.exe'
15493    ;;
15494
15495  *,cl* | *,icl*)
15496    # Native MSVC or ICC
15497    libname_spec='$name'
15498    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15499    library_names_spec='$libname.dll.lib'
15500
15501    case $build_os in
15502    mingw*)
15503      sys_lib_search_path_spec=
15504      lt_save_ifs=$IFS
15505      IFS=';'
15506      for lt_path in $LIB
15507      do
15508        IFS=$lt_save_ifs
15509        # Let DOS variable expansion print the short 8.3 style file name.
15510        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15511        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15512      done
15513      IFS=$lt_save_ifs
15514      # Convert to MSYS style.
15515      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15516      ;;
15517    cygwin*)
15518      # Convert to unix form, then to dos form, then back to unix form
15519      # but this time dos style (no spaces!) so that the unix form looks
15520      # like /cygdrive/c/PROGRA~1:/cygdr...
15521      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15522      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15523      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15524      ;;
15525    *)
15526      sys_lib_search_path_spec=$LIB
15527      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15528        # It is most probably a Windows format PATH.
15529        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15530      else
15531        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15532      fi
15533      # FIXME: find the short name or the path components, as spaces are
15534      # common. (e.g. "Program Files" -> "PROGRA~1")
15535      ;;
15536    esac
15537
15538    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15539    postinstall_cmds='base_file=`basename \$file`~
15540      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15541      dldir=$destdir/`dirname \$dlpath`~
15542      test -d \$dldir || mkdir -p \$dldir~
15543      $install_prog $dir/$dlname \$dldir/$dlname'
15544    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15545      dlpath=$dir/\$dldll~
15546       $RM \$dlpath'
15547    shlibpath_overrides_runpath=yes
15548    dynamic_linker='Win32 link.exe'
15549    ;;
15550
15551  *)
15552    # Assume MSVC and ICC wrapper
15553    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15554    dynamic_linker='Win32 ld.exe'
15555    ;;
15556  esac
15557  # FIXME: first we should search . and the directory the executable is in
15558  shlibpath_var=PATH
15559  ;;
15560
15561darwin* | rhapsody*)
15562  dynamic_linker="$host_os dyld"
15563  version_type=darwin
15564  need_lib_prefix=no
15565  need_version=no
15566  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15567  soname_spec='$libname$release$major$shared_ext'
15568  shlibpath_overrides_runpath=yes
15569  shlibpath_var=DYLD_LIBRARY_PATH
15570  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15571
15572  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15573  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15574  ;;
15575
15576dgux*)
15577  version_type=linux # correct to gnu/linux during the next big refactor
15578  need_lib_prefix=no
15579  need_version=no
15580  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15581  soname_spec='$libname$release$shared_ext$major'
15582  shlibpath_var=LD_LIBRARY_PATH
15583  ;;
15584
15585freebsd* | dragonfly* | midnightbsd*)
15586  # DragonFly does not have aout.  When/if they implement a new
15587  # versioning mechanism, adjust this.
15588  if test -x /usr/bin/objformat; then
15589    objformat=`/usr/bin/objformat`
15590  else
15591    case $host_os in
15592    freebsd[23].*) objformat=aout ;;
15593    *) objformat=elf ;;
15594    esac
15595  fi
15596  version_type=freebsd-$objformat
15597  case $version_type in
15598    freebsd-elf*)
15599      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15600      soname_spec='$libname$release$shared_ext$major'
15601      need_version=no
15602      need_lib_prefix=no
15603      ;;
15604    freebsd-*)
15605      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15606      need_version=yes
15607      ;;
15608  esac
15609  shlibpath_var=LD_LIBRARY_PATH
15610  case $host_os in
15611  freebsd2.*)
15612    shlibpath_overrides_runpath=yes
15613    ;;
15614  freebsd3.[01]* | freebsdelf3.[01]*)
15615    shlibpath_overrides_runpath=yes
15616    hardcode_into_libs=yes
15617    ;;
15618  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15619  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15620    shlibpath_overrides_runpath=no
15621    hardcode_into_libs=yes
15622    ;;
15623  *) # from 4.6 on, and DragonFly
15624    shlibpath_overrides_runpath=yes
15625    hardcode_into_libs=yes
15626    ;;
15627  esac
15628  ;;
15629
15630haiku*)
15631  version_type=linux # correct to gnu/linux during the next big refactor
15632  need_lib_prefix=no
15633  need_version=no
15634  dynamic_linker="$host_os runtime_loader"
15635  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15636  soname_spec='$libname$release$shared_ext$major'
15637  shlibpath_var=LIBRARY_PATH
15638  shlibpath_overrides_runpath=no
15639  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15640  hardcode_into_libs=yes
15641  ;;
15642
15643hpux9* | hpux10* | hpux11*)
15644  # Give a soname corresponding to the major version so that dld.sl refuses to
15645  # link against other versions.
15646  version_type=sunos
15647  need_lib_prefix=no
15648  need_version=no
15649  case $host_cpu in
15650  ia64*)
15651    shrext_cmds='.so'
15652    hardcode_into_libs=yes
15653    dynamic_linker="$host_os dld.so"
15654    shlibpath_var=LD_LIBRARY_PATH
15655    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test 32 = "$HPUX_IA64_MODE"; then
15659      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15660      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15661    else
15662      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15663      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15664    fi
15665    ;;
15666  hppa*64*)
15667    shrext_cmds='.sl'
15668    hardcode_into_libs=yes
15669    dynamic_linker="$host_os dld.sl"
15670    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15671    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15672    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15673    soname_spec='$libname$release$shared_ext$major'
15674    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15675    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15676    ;;
15677  *)
15678    shrext_cmds='.sl'
15679    dynamic_linker="$host_os dld.sl"
15680    shlibpath_var=SHLIB_PATH
15681    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15682    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15683    soname_spec='$libname$release$shared_ext$major'
15684    ;;
15685  esac
15686  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15687  postinstall_cmds='chmod 555 $lib'
15688  # or fails outright, so override atomically:
15689  install_override_mode=555
15690  ;;
15691
15692interix[3-9]*)
15693  version_type=linux # correct to gnu/linux during the next big refactor
15694  need_lib_prefix=no
15695  need_version=no
15696  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15697  soname_spec='$libname$release$shared_ext$major'
15698  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15699  shlibpath_var=LD_LIBRARY_PATH
15700  shlibpath_overrides_runpath=no
15701  hardcode_into_libs=yes
15702  ;;
15703
15704irix5* | irix6* | nonstopux*)
15705  case $host_os in
15706    nonstopux*) version_type=nonstopux ;;
15707    *)
15708	if test yes = "$lt_cv_prog_gnu_ld"; then
15709		version_type=linux # correct to gnu/linux during the next big refactor
15710	else
15711		version_type=irix
15712	fi ;;
15713  esac
15714  need_lib_prefix=no
15715  need_version=no
15716  soname_spec='$libname$release$shared_ext$major'
15717  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15718  case $host_os in
15719  irix5* | nonstopux*)
15720    libsuff= shlibsuff=
15721    ;;
15722  *)
15723    case $LD in # libtool.m4 will add one of these switches to LD
15724    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15725      libsuff= shlibsuff= libmagic=32-bit;;
15726    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15727      libsuff=32 shlibsuff=N32 libmagic=N32;;
15728    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15729      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15730    *) libsuff= shlibsuff= libmagic=never-match;;
15731    esac
15732    ;;
15733  esac
15734  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15735  shlibpath_overrides_runpath=no
15736  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15737  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15738  hardcode_into_libs=yes
15739  ;;
15740
15741# No shared lib support for Linux oldld, aout, or coff.
15742linux*oldld* | linux*aout* | linux*coff*)
15743  dynamic_linker=no
15744  ;;
15745
15746linux*android*)
15747  version_type=none # Android doesn't support versioned libraries.
15748  need_lib_prefix=no
15749  need_version=no
15750  library_names_spec='$libname$release$shared_ext'
15751  soname_spec='$libname$release$shared_ext'
15752  finish_cmds=
15753  shlibpath_var=LD_LIBRARY_PATH
15754  shlibpath_overrides_runpath=yes
15755
15756  # This implies no fast_install, which is unacceptable.
15757  # Some rework will be needed to allow for fast_install
15758  # before this can be enabled.
15759  hardcode_into_libs=yes
15760
15761  dynamic_linker='Android linker'
15762  # Don't embed -rpath directories since the linker doesn't support them.
15763  hardcode_libdir_flag_spec='-L$libdir'
15764  ;;
15765
15766# This must be glibc/ELF.
15767linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15768  version_type=linux # correct to gnu/linux during the next big refactor
15769  need_lib_prefix=no
15770  need_version=no
15771  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15772  soname_spec='$libname$release$shared_ext$major'
15773  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15774  shlibpath_var=LD_LIBRARY_PATH
15775  shlibpath_overrides_runpath=no
15776
15777  # Some binutils ld are patched to set DT_RUNPATH
15778  if test ${lt_cv_shlibpath_overrides_runpath+y}
15779then :
15780  printf %s "(cached) " >&6
15781else $as_nop
15782  lt_cv_shlibpath_overrides_runpath=no
15783    save_LDFLAGS=$LDFLAGS
15784    save_libdir=$libdir
15785    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15786	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15787    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788/* end confdefs.h.  */
15789
15790int main (void)
15791{
15792
15793 ;
15794 return 0;
15795}
15796_ACEOF
15797if ac_fn_c_try_link "$LINENO"
15798then :
15799  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15800then :
15801  lt_cv_shlibpath_overrides_runpath=yes
15802fi
15803fi
15804rm -f core conftest.err conftest.$ac_objext conftest.beam \
15805    conftest$ac_exeext conftest.$ac_ext
15806    LDFLAGS=$save_LDFLAGS
15807    libdir=$save_libdir
15808
15809fi
15810
15811  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
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  # Ideally, we could use ldconfig to report *all* directores which are
15819  # searched for libraries, however this is still not possible.  Aside from not
15820  # being certain /sbin/ldconfig is available, command
15821  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15822  # even though it is searched at run-time.  Try to do the best guess by
15823  # appending ld.so.conf contents (and includes) to the search path.
15824  if test -f /etc/ld.so.conf; then
15825    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' ' '`
15826    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15827  fi
15828
15829  # We used to test for /lib/ld.so.1 and disable shared libraries on
15830  # powerpc, because MkLinux only supported shared libraries with the
15831  # GNU dynamic linker.  Since this was broken with cross compilers,
15832  # most powerpc-linux boxes support dynamic linking these days and
15833  # people can always --disable-shared, the test was removed, and we
15834  # assume the GNU/Linux dynamic linker is in use.
15835  dynamic_linker='GNU/Linux ld.so'
15836  ;;
15837
15838netbsdelf*-gnu)
15839  version_type=linux
15840  need_lib_prefix=no
15841  need_version=no
15842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15843  soname_spec='${libname}${release}${shared_ext}$major'
15844  shlibpath_var=LD_LIBRARY_PATH
15845  shlibpath_overrides_runpath=no
15846  hardcode_into_libs=yes
15847  dynamic_linker='NetBSD ld.elf_so'
15848  ;;
15849
15850netbsd*)
15851  version_type=sunos
15852  need_lib_prefix=no
15853  need_version=no
15854  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15855    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15856    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15857    dynamic_linker='NetBSD (a.out) ld.so'
15858  else
15859    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15860    soname_spec='$libname$release$shared_ext$major'
15861    dynamic_linker='NetBSD ld.elf_so'
15862  fi
15863  shlibpath_var=LD_LIBRARY_PATH
15864  shlibpath_overrides_runpath=yes
15865  hardcode_into_libs=yes
15866  ;;
15867
15868newsos6)
15869  version_type=linux # correct to gnu/linux during the next big refactor
15870  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15871  shlibpath_var=LD_LIBRARY_PATH
15872  shlibpath_overrides_runpath=yes
15873  ;;
15874
15875*nto* | *qnx*)
15876  version_type=qnx
15877  need_lib_prefix=no
15878  need_version=no
15879  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15880  soname_spec='$libname$release$shared_ext$major'
15881  shlibpath_var=LD_LIBRARY_PATH
15882  shlibpath_overrides_runpath=no
15883  hardcode_into_libs=yes
15884  dynamic_linker='ldqnx.so'
15885  ;;
15886
15887openbsd* | bitrig*)
15888  version_type=sunos
15889  sys_lib_dlsearch_path_spec=/usr/lib
15890  need_lib_prefix=no
15891  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15892    need_version=no
15893  else
15894    need_version=yes
15895  fi
15896  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15897  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15898  shlibpath_var=LD_LIBRARY_PATH
15899  shlibpath_overrides_runpath=yes
15900  ;;
15901
15902os2*)
15903  libname_spec='$name'
15904  version_type=windows
15905  shrext_cmds=.dll
15906  need_version=no
15907  need_lib_prefix=no
15908  # OS/2 can only load a DLL with a base name of 8 characters or less.
15909  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15910    v=$($ECHO $release$versuffix | tr -d .-);
15911    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15912    $ECHO $n$v`$shared_ext'
15913  library_names_spec='${libname}_dll.$libext'
15914  dynamic_linker='OS/2 ld.exe'
15915  shlibpath_var=BEGINLIBPATH
15916  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15917  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15918  postinstall_cmds='base_file=`basename \$file`~
15919    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15920    dldir=$destdir/`dirname \$dlpath`~
15921    test -d \$dldir || mkdir -p \$dldir~
15922    $install_prog $dir/$dlname \$dldir/$dlname~
15923    chmod a+x \$dldir/$dlname~
15924    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15925      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15926    fi'
15927  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15928    dlpath=$dir/\$dldll~
15929    $RM \$dlpath'
15930  ;;
15931
15932osf3* | osf4* | osf5*)
15933  version_type=osf
15934  need_lib_prefix=no
15935  need_version=no
15936  soname_spec='$libname$release$shared_ext$major'
15937  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15938  shlibpath_var=LD_LIBRARY_PATH
15939  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15940  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15941  ;;
15942
15943rdos*)
15944  dynamic_linker=no
15945  ;;
15946
15947solaris*)
15948  version_type=linux # correct to gnu/linux during the next big refactor
15949  need_lib_prefix=no
15950  need_version=no
15951  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15952  soname_spec='$libname$release$shared_ext$major'
15953  shlibpath_var=LD_LIBRARY_PATH
15954  shlibpath_overrides_runpath=yes
15955  hardcode_into_libs=yes
15956  # ldd complains unless libraries are executable
15957  postinstall_cmds='chmod +x $lib'
15958  ;;
15959
15960sunos4*)
15961  version_type=sunos
15962  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15963  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15964  shlibpath_var=LD_LIBRARY_PATH
15965  shlibpath_overrides_runpath=yes
15966  if test yes = "$with_gnu_ld"; then
15967    need_lib_prefix=no
15968  fi
15969  need_version=yes
15970  ;;
15971
15972sysv4 | sysv4.3*)
15973  version_type=linux # correct to gnu/linux during the next big refactor
15974  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15975  soname_spec='$libname$release$shared_ext$major'
15976  shlibpath_var=LD_LIBRARY_PATH
15977  case $host_vendor in
15978    sni)
15979      shlibpath_overrides_runpath=no
15980      need_lib_prefix=no
15981      runpath_var=LD_RUN_PATH
15982      ;;
15983    siemens)
15984      need_lib_prefix=no
15985      ;;
15986    motorola)
15987      need_lib_prefix=no
15988      need_version=no
15989      shlibpath_overrides_runpath=no
15990      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15991      ;;
15992  esac
15993  ;;
15994
15995sysv4*MP*)
15996  if test -d /usr/nec; then
15997    version_type=linux # correct to gnu/linux during the next big refactor
15998    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15999    soname_spec='$libname$shared_ext.$major'
16000    shlibpath_var=LD_LIBRARY_PATH
16001  fi
16002  ;;
16003
16004sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16005  version_type=sco
16006  need_lib_prefix=no
16007  need_version=no
16008  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $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  if test yes = "$with_gnu_ld"; then
16014    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16015  else
16016    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16017    case $host_os in
16018      sco3.2v5*)
16019        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16020	;;
16021    esac
16022  fi
16023  sys_lib_dlsearch_path_spec='/usr/lib'
16024  ;;
16025
16026tpf*)
16027  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16028  version_type=linux # correct to gnu/linux during the next big refactor
16029  need_lib_prefix=no
16030  need_version=no
16031  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032  shlibpath_var=LD_LIBRARY_PATH
16033  shlibpath_overrides_runpath=no
16034  hardcode_into_libs=yes
16035  ;;
16036
16037uts4*)
16038  version_type=linux # correct to gnu/linux during the next big refactor
16039  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16040  soname_spec='$libname$release$shared_ext$major'
16041  shlibpath_var=LD_LIBRARY_PATH
16042  ;;
16043
16044*)
16045  dynamic_linker=no
16046  ;;
16047esac
16048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16049printf "%s\n" "$dynamic_linker" >&6; }
16050test no = "$dynamic_linker" && can_build_shared=no
16051
16052variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16053if test yes = "$GCC"; then
16054  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16055fi
16056
16057if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16058  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16059fi
16060
16061if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16062  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16063fi
16064
16065# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16066configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16067
16068# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16069func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16070
16071# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16072configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16171printf %s "checking how to hardcode library paths into programs... " >&6; }
16172hardcode_action=
16173if test -n "$hardcode_libdir_flag_spec" ||
16174   test -n "$runpath_var" ||
16175   test yes = "$hardcode_automatic"; then
16176
16177  # We can hardcode non-existent directories.
16178  if test no != "$hardcode_direct" &&
16179     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16180     # have to relink, otherwise we might link with an installed library
16181     # when we should be linking with a yet-to-be-installed one
16182     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16183     test no != "$hardcode_minus_L"; then
16184    # Linking always hardcodes the temporary library directory.
16185    hardcode_action=relink
16186  else
16187    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16188    hardcode_action=immediate
16189  fi
16190else
16191  # We cannot hardcode anything, or else we can only hardcode existing
16192  # directories.
16193  hardcode_action=unsupported
16194fi
16195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16196printf "%s\n" "$hardcode_action" >&6; }
16197
16198if test relink = "$hardcode_action" ||
16199   test yes = "$inherit_rpath"; then
16200  # Fast installation is not supported
16201  enable_fast_install=no
16202elif test yes = "$shlibpath_overrides_runpath" ||
16203     test no = "$enable_shared"; then
16204  # Fast installation is not necessary
16205  enable_fast_install=needless
16206fi
16207
16208
16209
16210
16211
16212
16213  if test yes != "$enable_dlopen"; then
16214  enable_dlopen=unknown
16215  enable_dlopen_self=unknown
16216  enable_dlopen_self_static=unknown
16217else
16218  lt_cv_dlopen=no
16219  lt_cv_dlopen_libs=
16220
16221  case $host_os in
16222  beos*)
16223    lt_cv_dlopen=load_add_on
16224    lt_cv_dlopen_libs=
16225    lt_cv_dlopen_self=yes
16226    ;;
16227
16228  mingw* | pw32* | cegcc*)
16229    lt_cv_dlopen=LoadLibrary
16230    lt_cv_dlopen_libs=
16231    ;;
16232
16233  cygwin*)
16234    lt_cv_dlopen=dlopen
16235    lt_cv_dlopen_libs=
16236    ;;
16237
16238  darwin*)
16239    # if libdl is installed we need to link against it
16240    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16241printf %s "checking for dlopen in -ldl... " >&6; }
16242if test ${ac_cv_lib_dl_dlopen+y}
16243then :
16244  printf %s "(cached) " >&6
16245else $as_nop
16246  ac_check_lib_save_LIBS=$LIBS
16247LIBS="-ldl  $LIBS"
16248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249/* end confdefs.h.  */
16250
16251
16252#ifdef __cplusplus
16253extern "C"
16254#endif
16255char dlopen ();
16256int main (void)
16257{
16258return dlopen ();
16259 ;
16260 return 0;
16261}
16262_ACEOF
16263if ac_fn_c_try_link "$LINENO"
16264then :
16265  ac_cv_lib_dl_dlopen=yes
16266else $as_nop
16267  ac_cv_lib_dl_dlopen=no
16268fi
16269rm -f core conftest.err conftest.$ac_objext conftest.beam \
16270    conftest$ac_exeext conftest.$ac_ext
16271LIBS=$ac_check_lib_save_LIBS
16272fi
16273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16274printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16275if test "x$ac_cv_lib_dl_dlopen" = xyes
16276then :
16277  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16278else $as_nop
16279
16280    lt_cv_dlopen=dyld
16281    lt_cv_dlopen_libs=
16282    lt_cv_dlopen_self=yes
16283
16284fi
16285
16286    ;;
16287
16288  tpf*)
16289    # Don't try to run any link tests for TPF.  We know it's impossible
16290    # because TPF is a cross-compiler, and we know how we open DSOs.
16291    lt_cv_dlopen=dlopen
16292    lt_cv_dlopen_libs=
16293    lt_cv_dlopen_self=no
16294    ;;
16295
16296  *)
16297    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16298if test "x$ac_cv_func_shl_load" = xyes
16299then :
16300  lt_cv_dlopen=shl_load
16301else $as_nop
16302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16303printf %s "checking for shl_load in -ldld... " >&6; }
16304if test ${ac_cv_lib_dld_shl_load+y}
16305then :
16306  printf %s "(cached) " >&6
16307else $as_nop
16308  ac_check_lib_save_LIBS=$LIBS
16309LIBS="-ldld  $LIBS"
16310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311/* end confdefs.h.  */
16312
16313
16314#ifdef __cplusplus
16315extern "C"
16316#endif
16317char shl_load ();
16318int main (void)
16319{
16320return shl_load ();
16321 ;
16322 return 0;
16323}
16324_ACEOF
16325if ac_fn_c_try_link "$LINENO"
16326then :
16327  ac_cv_lib_dld_shl_load=yes
16328else $as_nop
16329  ac_cv_lib_dld_shl_load=no
16330fi
16331rm -f core conftest.err conftest.$ac_objext conftest.beam \
16332    conftest$ac_exeext conftest.$ac_ext
16333LIBS=$ac_check_lib_save_LIBS
16334fi
16335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16336printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16337if test "x$ac_cv_lib_dld_shl_load" = xyes
16338then :
16339  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16340else $as_nop
16341  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16342if test "x$ac_cv_func_dlopen" = xyes
16343then :
16344  lt_cv_dlopen=dlopen
16345else $as_nop
16346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16347printf %s "checking for dlopen in -ldl... " >&6; }
16348if test ${ac_cv_lib_dl_dlopen+y}
16349then :
16350  printf %s "(cached) " >&6
16351else $as_nop
16352  ac_check_lib_save_LIBS=$LIBS
16353LIBS="-ldl  $LIBS"
16354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355/* end confdefs.h.  */
16356
16357
16358#ifdef __cplusplus
16359extern "C"
16360#endif
16361char dlopen ();
16362int main (void)
16363{
16364return dlopen ();
16365 ;
16366 return 0;
16367}
16368_ACEOF
16369if ac_fn_c_try_link "$LINENO"
16370then :
16371  ac_cv_lib_dl_dlopen=yes
16372else $as_nop
16373  ac_cv_lib_dl_dlopen=no
16374fi
16375rm -f core conftest.err conftest.$ac_objext conftest.beam \
16376    conftest$ac_exeext conftest.$ac_ext
16377LIBS=$ac_check_lib_save_LIBS
16378fi
16379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16380printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16381if test "x$ac_cv_lib_dl_dlopen" = xyes
16382then :
16383  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16384else $as_nop
16385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16386printf %s "checking for dlopen in -lsvld... " >&6; }
16387if test ${ac_cv_lib_svld_dlopen+y}
16388then :
16389  printf %s "(cached) " >&6
16390else $as_nop
16391  ac_check_lib_save_LIBS=$LIBS
16392LIBS="-lsvld  $LIBS"
16393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394/* end confdefs.h.  */
16395
16396
16397#ifdef __cplusplus
16398extern "C"
16399#endif
16400char dlopen ();
16401int main (void)
16402{
16403return dlopen ();
16404 ;
16405 return 0;
16406}
16407_ACEOF
16408if ac_fn_c_try_link "$LINENO"
16409then :
16410  ac_cv_lib_svld_dlopen=yes
16411else $as_nop
16412  ac_cv_lib_svld_dlopen=no
16413fi
16414rm -f core conftest.err conftest.$ac_objext conftest.beam \
16415    conftest$ac_exeext conftest.$ac_ext
16416LIBS=$ac_check_lib_save_LIBS
16417fi
16418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16419printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16420if test "x$ac_cv_lib_svld_dlopen" = xyes
16421then :
16422  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16423else $as_nop
16424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16425printf %s "checking for dld_link in -ldld... " >&6; }
16426if test ${ac_cv_lib_dld_dld_link+y}
16427then :
16428  printf %s "(cached) " >&6
16429else $as_nop
16430  ac_check_lib_save_LIBS=$LIBS
16431LIBS="-ldld  $LIBS"
16432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433/* end confdefs.h.  */
16434
16435
16436#ifdef __cplusplus
16437extern "C"
16438#endif
16439char dld_link ();
16440int main (void)
16441{
16442return dld_link ();
16443 ;
16444 return 0;
16445}
16446_ACEOF
16447if ac_fn_c_try_link "$LINENO"
16448then :
16449  ac_cv_lib_dld_dld_link=yes
16450else $as_nop
16451  ac_cv_lib_dld_dld_link=no
16452fi
16453rm -f core conftest.err conftest.$ac_objext conftest.beam \
16454    conftest$ac_exeext conftest.$ac_ext
16455LIBS=$ac_check_lib_save_LIBS
16456fi
16457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16458printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16459if test "x$ac_cv_lib_dld_dld_link" = xyes
16460then :
16461  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16462fi
16463
16464
16465fi
16466
16467
16468fi
16469
16470
16471fi
16472
16473
16474fi
16475
16476
16477fi
16478
16479    ;;
16480  esac
16481
16482  if test no = "$lt_cv_dlopen"; then
16483    enable_dlopen=no
16484  else
16485    enable_dlopen=yes
16486  fi
16487
16488  case $lt_cv_dlopen in
16489  dlopen)
16490    save_CPPFLAGS=$CPPFLAGS
16491    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16492
16493    save_LDFLAGS=$LDFLAGS
16494    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16495
16496    save_LIBS=$LIBS
16497    LIBS="$lt_cv_dlopen_libs $LIBS"
16498
16499    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16500printf %s "checking whether a program can dlopen itself... " >&6; }
16501if test ${lt_cv_dlopen_self+y}
16502then :
16503  printf %s "(cached) " >&6
16504else $as_nop
16505  	  if test yes = "$cross_compiling"; then :
16506  lt_cv_dlopen_self=cross
16507else
16508  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16509  lt_status=$lt_dlunknown
16510  cat > conftest.$ac_ext <<_LT_EOF
16511#line $LINENO "configure"
16512#include "confdefs.h"
16513
16514#if HAVE_DLFCN_H
16515#include <dlfcn.h>
16516#endif
16517
16518#include <stdio.h>
16519
16520#ifdef RTLD_GLOBAL
16521#  define LT_DLGLOBAL		RTLD_GLOBAL
16522#else
16523#  ifdef DL_GLOBAL
16524#    define LT_DLGLOBAL		DL_GLOBAL
16525#  else
16526#    define LT_DLGLOBAL		0
16527#  endif
16528#endif
16529
16530/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16531   find out it does not work in some platform. */
16532#ifndef LT_DLLAZY_OR_NOW
16533#  ifdef RTLD_LAZY
16534#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16535#  else
16536#    ifdef DL_LAZY
16537#      define LT_DLLAZY_OR_NOW		DL_LAZY
16538#    else
16539#      ifdef RTLD_NOW
16540#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16541#      else
16542#        ifdef DL_NOW
16543#          define LT_DLLAZY_OR_NOW	DL_NOW
16544#        else
16545#          define LT_DLLAZY_OR_NOW	0
16546#        endif
16547#      endif
16548#    endif
16549#  endif
16550#endif
16551
16552/* When -fvisibility=hidden is used, assume the code has been annotated
16553   correspondingly for the symbols needed.  */
16554#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16555int fnord () __attribute__((visibility("default")));
16556#endif
16557
16558int fnord () { return 42; }
16559int main ()
16560{
16561  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16562  int status = $lt_dlunknown;
16563
16564  if (self)
16565    {
16566      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16567      else
16568        {
16569	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16570          else puts (dlerror ());
16571	}
16572      /* dlclose (self); */
16573    }
16574  else
16575    puts (dlerror ());
16576
16577  return status;
16578}
16579_LT_EOF
16580  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16581  (eval $ac_link) 2>&5
16582  ac_status=$?
16583  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16584  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16585    (./conftest; exit; ) >&5 2>/dev/null
16586    lt_status=$?
16587    case x$lt_status in
16588      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16589      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16590      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16591    esac
16592  else :
16593    # compilation failed
16594    lt_cv_dlopen_self=no
16595  fi
16596fi
16597rm -fr conftest*
16598
16599
16600fi
16601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16602printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16603
16604    if test yes = "$lt_cv_dlopen_self"; then
16605      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16606      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16607printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16608if test ${lt_cv_dlopen_self_static+y}
16609then :
16610  printf %s "(cached) " >&6
16611else $as_nop
16612  	  if test yes = "$cross_compiling"; then :
16613  lt_cv_dlopen_self_static=cross
16614else
16615  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16616  lt_status=$lt_dlunknown
16617  cat > conftest.$ac_ext <<_LT_EOF
16618#line $LINENO "configure"
16619#include "confdefs.h"
16620
16621#if HAVE_DLFCN_H
16622#include <dlfcn.h>
16623#endif
16624
16625#include <stdio.h>
16626
16627#ifdef RTLD_GLOBAL
16628#  define LT_DLGLOBAL		RTLD_GLOBAL
16629#else
16630#  ifdef DL_GLOBAL
16631#    define LT_DLGLOBAL		DL_GLOBAL
16632#  else
16633#    define LT_DLGLOBAL		0
16634#  endif
16635#endif
16636
16637/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16638   find out it does not work in some platform. */
16639#ifndef LT_DLLAZY_OR_NOW
16640#  ifdef RTLD_LAZY
16641#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16642#  else
16643#    ifdef DL_LAZY
16644#      define LT_DLLAZY_OR_NOW		DL_LAZY
16645#    else
16646#      ifdef RTLD_NOW
16647#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16648#      else
16649#        ifdef DL_NOW
16650#          define LT_DLLAZY_OR_NOW	DL_NOW
16651#        else
16652#          define LT_DLLAZY_OR_NOW	0
16653#        endif
16654#      endif
16655#    endif
16656#  endif
16657#endif
16658
16659/* When -fvisibility=hidden is used, assume the code has been annotated
16660   correspondingly for the symbols needed.  */
16661#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16662int fnord () __attribute__((visibility("default")));
16663#endif
16664
16665int fnord () { return 42; }
16666int main ()
16667{
16668  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16669  int status = $lt_dlunknown;
16670
16671  if (self)
16672    {
16673      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16674      else
16675        {
16676	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16677          else puts (dlerror ());
16678	}
16679      /* dlclose (self); */
16680    }
16681  else
16682    puts (dlerror ());
16683
16684  return status;
16685}
16686_LT_EOF
16687  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16688  (eval $ac_link) 2>&5
16689  ac_status=$?
16690  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16691  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16692    (./conftest; exit; ) >&5 2>/dev/null
16693    lt_status=$?
16694    case x$lt_status in
16695      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16696      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16697      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16698    esac
16699  else :
16700    # compilation failed
16701    lt_cv_dlopen_self_static=no
16702  fi
16703fi
16704rm -fr conftest*
16705
16706
16707fi
16708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16709printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16710    fi
16711
16712    CPPFLAGS=$save_CPPFLAGS
16713    LDFLAGS=$save_LDFLAGS
16714    LIBS=$save_LIBS
16715    ;;
16716  esac
16717
16718  case $lt_cv_dlopen_self in
16719  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16720  *) enable_dlopen_self=unknown ;;
16721  esac
16722
16723  case $lt_cv_dlopen_self_static in
16724  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16725  *) enable_dlopen_self_static=unknown ;;
16726  esac
16727fi
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745striplib=
16746old_striplib=
16747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16748printf %s "checking whether stripping libraries is possible... " >&6; }
16749if test -z "$STRIP"; then
16750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751printf "%s\n" "no" >&6; }
16752else
16753  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16754    old_striplib="$STRIP --strip-debug"
16755    striplib="$STRIP --strip-unneeded"
16756    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757printf "%s\n" "yes" >&6; }
16758  else
16759    case $host_os in
16760    darwin*)
16761      # FIXME - insert some real tests, host_os isn't really good enough
16762      striplib="$STRIP -x"
16763      old_striplib="$STRIP -S"
16764      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16765printf "%s\n" "yes" >&6; }
16766      ;;
16767    freebsd*)
16768      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16769        old_striplib="$STRIP --strip-debug"
16770        striplib="$STRIP --strip-unneeded"
16771        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772printf "%s\n" "yes" >&6; }
16773      else
16774        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16775printf "%s\n" "no" >&6; }
16776      fi
16777      ;;
16778    *)
16779      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16780printf "%s\n" "no" >&6; }
16781      ;;
16782    esac
16783  fi
16784fi
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797  # Report what library types will actually be built
16798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16799printf %s "checking if libtool supports shared libraries... " >&6; }
16800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16801printf "%s\n" "$can_build_shared" >&6; }
16802
16803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16804printf %s "checking whether to build shared libraries... " >&6; }
16805  test no = "$can_build_shared" && enable_shared=no
16806
16807  # On AIX, shared libraries and static libraries use the same namespace, and
16808  # are all built from PIC.
16809  case $host_os in
16810  aix3*)
16811    test yes = "$enable_shared" && enable_static=no
16812    if test -n "$RANLIB"; then
16813      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16814      postinstall_cmds='$RANLIB $lib'
16815    fi
16816    ;;
16817
16818  aix[4-9]*)
16819    if test ia64 != "$host_cpu"; then
16820      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16821      yes,aix,yes) ;;			# shared object as lib.so file only
16822      yes,svr4,*) ;;			# shared object as lib.so archive member only
16823      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
16824      esac
16825    fi
16826    ;;
16827  esac
16828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16829printf "%s\n" "$enable_shared" >&6; }
16830
16831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16832printf %s "checking whether to build static libraries... " >&6; }
16833  # Make sure either enable_shared or enable_static is yes.
16834  test yes = "$enable_shared" || enable_static=yes
16835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16836printf "%s\n" "$enable_static" >&6; }
16837
16838
16839
16840
16841fi
16842ac_ext=c
16843ac_cpp='$CPP $CPPFLAGS'
16844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16846ac_compiler_gnu=$ac_cv_c_compiler_gnu
16847
16848CC=$lt_save_CC
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864        ac_config_commands="$ac_config_commands libtool"
16865
16866
16867
16868
16869# Only expand once:
16870
16871
16872## --------------------- ##
16873##  End of libtool code  ##
16874## --------------------- ##
16875
16876#
16877# Verify if finally libtool shared libraries will be built
16878#
16879
16880case "x$enable_shared" in # ((
16881  xyes | xno)
16882    xc_lt_build_shared=$enable_shared
16883    ;;
16884  *)
16885    as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16886    ;;
16887esac
16888
16889#
16890# Verify if finally libtool static libraries will be built
16891#
16892
16893case "x$enable_static" in # ((
16894  xyes | xno)
16895    xc_lt_build_static=$enable_static
16896    ;;
16897  *)
16898    as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16899    ;;
16900esac
16901
16902#
16903# Verify if libtool shared libraries should be linked using flag -version-info
16904#
16905
16906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16907printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16908xc_lt_shlib_use_version_info='yes'
16909if test "x$version_type" = 'xnone'; then
16910  xc_lt_shlib_use_version_info='no'
16911fi
16912case $host_os in # (
16913  amigaos*)
16914    xc_lt_shlib_use_version_info='yes'
16915    ;;
16916esac
16917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16918printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16919
16920#
16921# Verify if libtool shared libraries should be linked using flag -no-undefined
16922#
16923
16924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16925printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16926xc_lt_shlib_use_no_undefined='no'
16927if test "x$allow_undefined" = 'xno'; then
16928  xc_lt_shlib_use_no_undefined='yes'
16929elif test "x$allow_undefined_flag" = 'xunsupported'; then
16930  xc_lt_shlib_use_no_undefined='yes'
16931fi
16932case $host_os in # (
16933  cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16934    xc_lt_shlib_use_no_undefined='yes'
16935    ;;
16936esac
16937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16938printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16939
16940#
16941# Verify if libtool shared libraries should be linked using flag -mimpure-text
16942#
16943
16944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16945printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16946xc_lt_shlib_use_mimpure_text='no'
16947case $host_os in # (
16948  solaris2*)
16949    if test "x$GCC" = 'xyes'; then
16950      xc_lt_shlib_use_mimpure_text='yes'
16951    fi
16952    ;;
16953esac
16954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16955printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16956
16957#
16958# Find out whether libtool libraries would be built with PIC
16959#
16960
16961case "x$pic_mode" in # ((((
16962  xdefault)
16963    xc_lt_build_shared_with_pic='yes'
16964    xc_lt_build_static_with_pic='no'
16965    ;;
16966  xyes)
16967    xc_lt_build_shared_with_pic='yes'
16968    xc_lt_build_static_with_pic='yes'
16969    ;;
16970  xno)
16971    xc_lt_build_shared_with_pic='no'
16972    xc_lt_build_static_with_pic='no'
16973    ;;
16974  *)
16975    xc_lt_build_shared_with_pic='unknown'
16976    xc_lt_build_static_with_pic='unknown'
16977    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16978printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16979    ;;
16980esac
16981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16982printf %s "checking whether to build shared libraries with PIC... " >&6; }
16983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16984printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16986printf %s "checking whether to build static libraries with PIC... " >&6; }
16987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16988printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16989
16990#
16991# Verify if libtool shared libraries will be built while static not built
16992#
16993
16994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16995printf %s "checking whether to build shared libraries only... " >&6; }
16996if test "$xc_lt_build_shared" = 'yes' &&
16997  test "$xc_lt_build_static" = 'no'; then
16998  xc_lt_build_shared_only='yes'
16999else
17000  xc_lt_build_shared_only='no'
17001fi
17002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
17003printf "%s\n" "$xc_lt_build_shared_only" >&6; }
17004
17005#
17006# Verify if libtool static libraries will be built while shared not built
17007#
17008
17009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
17010printf %s "checking whether to build static libraries only... " >&6; }
17011if test "$xc_lt_build_static" = 'yes' &&
17012  test "$xc_lt_build_shared" = 'no'; then
17013  xc_lt_build_static_only='yes'
17014else
17015  xc_lt_build_static_only='no'
17016fi
17017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
17018printf "%s\n" "$xc_lt_build_static_only" >&6; }
17019
17020
17021
17022
17023if test -n "$ac_tool_prefix"; then
17024  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17025set dummy ${ac_tool_prefix}windres; ac_word=$2
17026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17027printf %s "checking for $ac_word... " >&6; }
17028if test ${ac_cv_prog_RC+y}
17029then :
17030  printf %s "(cached) " >&6
17031else $as_nop
17032  if test -n "$RC"; then
17033  ac_cv_prog_RC="$RC" # Let the user override the test.
17034else
17035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17036for as_dir in $PATH
17037do
17038  IFS=$as_save_IFS
17039  case $as_dir in #(((
17040    '') as_dir=./ ;;
17041    */) ;;
17042    *) as_dir=$as_dir/ ;;
17043  esac
17044    for ac_exec_ext in '' $ac_executable_extensions; do
17045  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17046    ac_cv_prog_RC="${ac_tool_prefix}windres"
17047    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17048    break 2
17049  fi
17050done
17051  done
17052IFS=$as_save_IFS
17053
17054fi
17055fi
17056RC=$ac_cv_prog_RC
17057if test -n "$RC"; then
17058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17059printf "%s\n" "$RC" >&6; }
17060else
17061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17062printf "%s\n" "no" >&6; }
17063fi
17064
17065
17066fi
17067if test -z "$ac_cv_prog_RC"; then
17068  ac_ct_RC=$RC
17069  # Extract the first word of "windres", so it can be a program name with args.
17070set dummy windres; ac_word=$2
17071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17072printf %s "checking for $ac_word... " >&6; }
17073if test ${ac_cv_prog_ac_ct_RC+y}
17074then :
17075  printf %s "(cached) " >&6
17076else $as_nop
17077  if test -n "$ac_ct_RC"; then
17078  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17079else
17080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17081for as_dir in $PATH
17082do
17083  IFS=$as_save_IFS
17084  case $as_dir in #(((
17085    '') as_dir=./ ;;
17086    */) ;;
17087    *) as_dir=$as_dir/ ;;
17088  esac
17089    for ac_exec_ext in '' $ac_executable_extensions; do
17090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17091    ac_cv_prog_ac_ct_RC="windres"
17092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17093    break 2
17094  fi
17095done
17096  done
17097IFS=$as_save_IFS
17098
17099fi
17100fi
17101ac_ct_RC=$ac_cv_prog_ac_ct_RC
17102if test -n "$ac_ct_RC"; then
17103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17104printf "%s\n" "$ac_ct_RC" >&6; }
17105else
17106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17107printf "%s\n" "no" >&6; }
17108fi
17109
17110  if test "x$ac_ct_RC" = x; then
17111    RC=""
17112  else
17113    case $cross_compiling:$ac_tool_warned in
17114yes:)
17115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17116printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17117ac_tool_warned=yes ;;
17118esac
17119    RC=$ac_ct_RC
17120  fi
17121else
17122  RC="$ac_cv_prog_RC"
17123fi
17124
17125
17126
17127
17128# Source file extension for RC test sources.
17129ac_ext=rc
17130
17131# Object file extension for compiled RC test sources.
17132objext=o
17133objext_RC=$objext
17134
17135# Code to be used in simple compile tests
17136lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17137
17138# Code to be used in simple link tests
17139lt_simple_link_test_code=$lt_simple_compile_test_code
17140
17141# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17142
17143
17144
17145
17146
17147
17148# If no C compiler was specified, use CC.
17149LTCC=${LTCC-"$CC"}
17150
17151# If no C compiler flags were specified, use CFLAGS.
17152LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17153
17154# Allow CC to be a program name with arguments.
17155compiler=$CC
17156
17157
17158# save warnings/boilerplate of simple test code
17159ac_outfile=conftest.$ac_objext
17160echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17162_lt_compiler_boilerplate=`cat conftest.err`
17163$RM conftest*
17164
17165ac_outfile=conftest.$ac_objext
17166echo "$lt_simple_link_test_code" >conftest.$ac_ext
17167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17168_lt_linker_boilerplate=`cat conftest.err`
17169$RM -r conftest*
17170
17171
17172# Allow CC to be a program name with arguments.
17173lt_save_CC=$CC
17174lt_save_CFLAGS=$CFLAGS
17175lt_save_GCC=$GCC
17176GCC=
17177CC=${RC-"windres"}
17178CFLAGS=
17179compiler=$CC
17180compiler_RC=$CC
17181func_cc_basename $compiler
17182cc_basename=$func_cc_basename_result
17183
17184lt_cv_prog_compiler_c_o_RC=yes
17185
17186if test -n "$compiler"; then
17187  :
17188
17189
17190
17191fi
17192
17193GCC=$lt_save_GCC
17194ac_ext=c
17195ac_cpp='$CPP $CPPFLAGS'
17196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17198ac_compiler_gnu=$ac_cv_c_compiler_gnu
17199
17200CC=$lt_save_CC
17201CFLAGS=$lt_save_CFLAGS
17202
17203
17204#
17205# Automake conditionals based on libtool related checks
17206#
17207
17208 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
17209  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
17210  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
17211else
17212  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
17213  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
17214fi
17215
17216 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17217  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
17218  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
17219else
17220  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
17221  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
17222fi
17223
17224 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
17225  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
17226  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
17227else
17228  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
17229  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
17230fi
17231
17232
17233#
17234# Due to libtool and automake machinery limitations of not allowing
17235# specifying separate CPPFLAGS or CFLAGS when compiling objects for
17236# inclusion of these in shared or static libraries, we are forced to
17237# build using separate configure runs for shared and static libraries
17238# on systems where different CPPFLAGS or CFLAGS are mandatory in order
17239# to compile objects for each kind of library. Notice that relying on
17240# the '-DPIC' CFLAG that libtool provides is not valid given that the
17241# user might for example choose to build static libraries with PIC.
17242#
17243
17244#
17245# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
17246# targeting a static library and not building its shared counterpart.
17247#
17248
17249 if test "x$xc_lt_build_static_only" = 'xyes'; then
17250  USE_CPPFLAG_CURL_STATICLIB_TRUE=
17251  USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
17252else
17253  USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
17254  USE_CPPFLAG_CURL_STATICLIB_FALSE=
17255fi
17256
17257
17258#
17259# Make staticlib CPPFLAG variable and its definition visible in output
17260# files unconditionally, providing an empty definition unless strictly
17261# targeting a static library and not building its shared counterpart.
17262#
17263
17264CPPFLAG_CURL_STATICLIB=
17265if test "x$xc_lt_build_static_only" = 'xyes'; then
17266  CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
17267fi
17268
17269
17270
17271# Determine whether all dependent libraries must be specified when linking
17272if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
17273then
17274    REQUIRE_LIB_DEPS=no
17275else
17276    REQUIRE_LIB_DEPS=yes
17277fi
17278
17279 if test x$REQUIRE_LIB_DEPS = xyes; then
17280  USE_EXPLICIT_LIB_DEPS_TRUE=
17281  USE_EXPLICIT_LIB_DEPS_FALSE='#'
17282else
17283  USE_EXPLICIT_LIB_DEPS_TRUE='#'
17284  USE_EXPLICIT_LIB_DEPS_FALSE=
17285fi
17286
17287
17288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17289printf %s "checking for inline... " >&6; }
17290if test ${ac_cv_c_inline+y}
17291then :
17292  printf %s "(cached) " >&6
17293else $as_nop
17294  ac_cv_c_inline=no
17295for ac_kw in inline __inline__ __inline; do
17296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297/* end confdefs.h.  */
17298#ifndef __cplusplus
17299typedef int foo_t;
17300static $ac_kw foo_t static_foo (void) {return 0; }
17301$ac_kw foo_t foo (void) {return 0; }
17302#endif
17303
17304_ACEOF
17305if ac_fn_c_try_compile "$LINENO"
17306then :
17307  ac_cv_c_inline=$ac_kw
17308fi
17309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17310  test "$ac_cv_c_inline" != no && break
17311done
17312
17313fi
17314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17315printf "%s\n" "$ac_cv_c_inline" >&6; }
17316
17317case $ac_cv_c_inline in
17318  inline | yes) ;;
17319  *)
17320    case $ac_cv_c_inline in
17321      no) ac_val=;;
17322      *) ac_val=$ac_cv_c_inline;;
17323    esac
17324    cat >>confdefs.h <<_ACEOF
17325#ifndef __cplusplus
17326#define inline $ac_val
17327#endif
17328_ACEOF
17329    ;;
17330esac
17331
17332
17333
17334
17335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
17336printf %s "checking if cpp -P is needed... " >&6; }
17337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339
17340 #include <errno.h>
17341TEST EINVAL TEST
17342
17343_ACEOF
17344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17345  $EGREP "TEST.*TEST" >/dev/null 2>&1
17346then :
17347  cpp=no
17348else $as_nop
17349  cpp=yes
17350fi
17351rm -rf conftest*
17352
17353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
17354printf "%s\n" "$cpp" >&6; }
17355
17356    if test "x$cpp" = "xyes"; then
17357    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
17358printf %s "checking if cpp -P works... " >&6; }
17359    OLDCPPFLAGS=$CPPFLAGS
17360    CPPFLAGS="$CPPFLAGS -P"
17361    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362/* end confdefs.h.  */
17363
17364 #include <errno.h>
17365TEST EINVAL TEST
17366
17367_ACEOF
17368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17369  $EGREP "TEST.*TEST" >/dev/null 2>&1
17370then :
17371  cpp_p=yes
17372else $as_nop
17373  cpp_p=no
17374fi
17375rm -rf conftest*
17376
17377    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
17378printf "%s\n" "$cpp_p" >&6; }
17379
17380    if test "x$cpp_p" = "xno"; then
17381      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
17382printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
17383      # without -P
17384      CPPPFLAG=""
17385    else
17386      # with -P
17387      CPPPFLAG="-P"
17388    fi
17389        CPPFLAGS=$OLDCPPFLAGS
17390  else
17391    # without -P
17392    CPPPFLAG=""
17393  fi
17394
17395
17396  #
17397  compiler_id="unknown"
17398  compiler_num="0"
17399  #
17400  flags_dbg_yes="unknown"
17401  flags_opt_all="unknown"
17402  flags_opt_yes="unknown"
17403  flags_opt_off="unknown"
17404  #
17405  flags_prefer_cppflags="no"
17406  #
17407
17408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
17409printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
17410
17411    OLDCPPFLAGS=$CPPFLAGS
17412  # CPPPFLAG comes from CURL_CPP_P
17413  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17414      if test -z "$SED"; then
17415    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17416  fi
17417  if test -z "$GREP"; then
17418    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17419  fi
17420
17421  tmp_exp=""
17422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423/* end confdefs.h.  */
17424
17425
17426#ifdef __DECC
17427CURL_DEF_TOKEN __DECC
17428#endif
17429
17430
17431_ACEOF
17432if ac_fn_c_try_cpp "$LINENO"
17433then :
17434
17435    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17436      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17437      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17438      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17439    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
17440      tmp_exp=""
17441    fi
17442
17443fi
17444rm -f conftest.err conftest.i conftest.$ac_ext
17445  if test -z "$tmp_exp"; then
17446    curl_cv_have_def___DECC=no
17447
17448  else
17449    curl_cv_have_def___DECC=yes
17450    curl_cv_def___DECC=$tmp_exp
17451
17452  fi
17453      CPPFLAGS=$OLDCPPFLAGS
17454
17455
17456    OLDCPPFLAGS=$CPPFLAGS
17457  # CPPPFLAG comes from CURL_CPP_P
17458  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17459      if test -z "$SED"; then
17460    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17461  fi
17462  if test -z "$GREP"; then
17463    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17464  fi
17465
17466  tmp_exp=""
17467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468/* end confdefs.h.  */
17469
17470
17471#ifdef __DECC_VER
17472CURL_DEF_TOKEN __DECC_VER
17473#endif
17474
17475
17476_ACEOF
17477if ac_fn_c_try_cpp "$LINENO"
17478then :
17479
17480    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17481      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17482      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17483      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17484    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
17485      tmp_exp=""
17486    fi
17487
17488fi
17489rm -f conftest.err conftest.i conftest.$ac_ext
17490  if test -z "$tmp_exp"; then
17491    curl_cv_have_def___DECC_VER=no
17492
17493  else
17494    curl_cv_have_def___DECC_VER=yes
17495    curl_cv_def___DECC_VER=$tmp_exp
17496
17497  fi
17498      CPPFLAGS=$OLDCPPFLAGS
17499
17500  if test "$curl_cv_have_def___DECC" = "yes" &&
17501    test "$curl_cv_have_def___DECC_VER" = "yes"; then
17502    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17503printf "%s\n" "yes" >&6; }
17504    compiler_id="DEC_C"
17505    flags_dbg_yes="-g2"
17506    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
17507    flags_opt_yes="-O1"
17508    flags_opt_off="-O0"
17509  else
17510    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17511printf "%s\n" "no" >&6; }
17512  fi
17513
17514
17515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
17516printf %s "checking if compiler is HP-UX C... " >&6; }
17517
17518    OLDCPPFLAGS=$CPPFLAGS
17519  # CPPPFLAG comes from CURL_CPP_P
17520  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17521      if test -z "$SED"; then
17522    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17523  fi
17524  if test -z "$GREP"; then
17525    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17526  fi
17527
17528  tmp_exp=""
17529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530/* end confdefs.h.  */
17531
17532
17533#ifdef __HP_cc
17534CURL_DEF_TOKEN __HP_cc
17535#endif
17536
17537
17538_ACEOF
17539if ac_fn_c_try_cpp "$LINENO"
17540then :
17541
17542    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17543      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17544      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17545      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17546    if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
17547      tmp_exp=""
17548    fi
17549
17550fi
17551rm -f conftest.err conftest.i conftest.$ac_ext
17552  if test -z "$tmp_exp"; then
17553    curl_cv_have_def___HP_cc=no
17554
17555  else
17556    curl_cv_have_def___HP_cc=yes
17557    curl_cv_def___HP_cc=$tmp_exp
17558
17559  fi
17560      CPPFLAGS=$OLDCPPFLAGS
17561
17562  if test "$curl_cv_have_def___HP_cc" = "yes"; then
17563    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17564printf "%s\n" "yes" >&6; }
17565    compiler_id="HP_UX_C"
17566    flags_dbg_yes="-g"
17567    flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
17568    flags_opt_yes="+O2"
17569    flags_opt_off="+O0"
17570  else
17571    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17572printf "%s\n" "no" >&6; }
17573  fi
17574
17575
17576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
17577printf %s "checking if compiler is IBM C... " >&6; }
17578
17579    OLDCPPFLAGS=$CPPFLAGS
17580  # CPPPFLAG comes from CURL_CPP_P
17581  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17582      if test -z "$SED"; then
17583    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17584  fi
17585  if test -z "$GREP"; then
17586    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17587  fi
17588
17589  tmp_exp=""
17590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17591/* end confdefs.h.  */
17592
17593
17594#ifdef __IBMC__
17595CURL_DEF_TOKEN __IBMC__
17596#endif
17597
17598
17599_ACEOF
17600if ac_fn_c_try_cpp "$LINENO"
17601then :
17602
17603    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17604      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17605      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17606      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17607    if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
17608      tmp_exp=""
17609    fi
17610
17611fi
17612rm -f conftest.err conftest.i conftest.$ac_ext
17613  if test -z "$tmp_exp"; then
17614    curl_cv_have_def___IBMC__=no
17615
17616  else
17617    curl_cv_have_def___IBMC__=yes
17618    curl_cv_def___IBMC__=$tmp_exp
17619
17620  fi
17621      CPPFLAGS=$OLDCPPFLAGS
17622
17623  if test "$curl_cv_have_def___IBMC__" = "yes"; then
17624    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17625printf "%s\n" "yes" >&6; }
17626    compiler_id="IBM_C"
17627    flags_dbg_yes="-g"
17628    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
17629    flags_opt_all="$flags_opt_all -qnooptimize"
17630    flags_opt_all="$flags_opt_all -qoptimize=0"
17631    flags_opt_all="$flags_opt_all -qoptimize=1"
17632    flags_opt_all="$flags_opt_all -qoptimize=2"
17633    flags_opt_all="$flags_opt_all -qoptimize=3"
17634    flags_opt_all="$flags_opt_all -qoptimize=4"
17635    flags_opt_all="$flags_opt_all -qoptimize=5"
17636    flags_opt_yes="-O2"
17637    flags_opt_off="-qnooptimize"
17638    flags_prefer_cppflags="yes"
17639  else
17640    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17641printf "%s\n" "no" >&6; }
17642  fi
17643
17644
17645    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
17646printf %s "checking if compiler is Intel C... " >&6; }
17647
17648    OLDCPPFLAGS=$CPPFLAGS
17649  # CPPPFLAG comes from CURL_CPP_P
17650  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17651      if test -z "$SED"; then
17652    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17653  fi
17654  if test -z "$GREP"; then
17655    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17656  fi
17657
17658  tmp_exp=""
17659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660/* end confdefs.h.  */
17661
17662
17663#ifdef __INTEL_COMPILER
17664CURL_DEF_TOKEN __INTEL_COMPILER
17665#endif
17666
17667
17668_ACEOF
17669if ac_fn_c_try_cpp "$LINENO"
17670then :
17671
17672    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17673      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17674      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17675      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17676    if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
17677      tmp_exp=""
17678    fi
17679
17680fi
17681rm -f conftest.err conftest.i conftest.$ac_ext
17682  if test -z "$tmp_exp"; then
17683    curl_cv_have_def___INTEL_COMPILER=no
17684
17685  else
17686    curl_cv_have_def___INTEL_COMPILER=yes
17687    curl_cv_def___INTEL_COMPILER=$tmp_exp
17688
17689  fi
17690      CPPFLAGS=$OLDCPPFLAGS
17691
17692  if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
17693    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17694printf "%s\n" "yes" >&6; }
17695    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17696printf %s "checking compiler version... " >&6; }
17697    compiler_num="$curl_cv_def___INTEL_COMPILER"
17698    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Intel C '$compiler_num'" >&5
17699printf "%s\n" "Intel C '$compiler_num'" >&6; }
17700
17701    OLDCPPFLAGS=$CPPFLAGS
17702  # CPPPFLAG comes from CURL_CPP_P
17703  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17704      if test -z "$SED"; then
17705    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17706  fi
17707  if test -z "$GREP"; then
17708    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17709  fi
17710
17711  tmp_exp=""
17712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713/* end confdefs.h.  */
17714
17715
17716#ifdef __unix__
17717CURL_DEF_TOKEN __unix__
17718#endif
17719
17720
17721_ACEOF
17722if ac_fn_c_try_cpp "$LINENO"
17723then :
17724
17725    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17726      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17727      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17728      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17729    if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
17730      tmp_exp=""
17731    fi
17732
17733fi
17734rm -f conftest.err conftest.i conftest.$ac_ext
17735  if test -z "$tmp_exp"; then
17736    curl_cv_have_def___unix__=no
17737
17738  else
17739    curl_cv_have_def___unix__=yes
17740    curl_cv_def___unix__=$tmp_exp
17741
17742  fi
17743      CPPFLAGS=$OLDCPPFLAGS
17744
17745    if test "$curl_cv_have_def___unix__" = "yes"; then
17746      compiler_id="INTEL_UNIX_C"
17747      flags_dbg_yes="-g"
17748      flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
17749      flags_opt_yes="-O2"
17750      flags_opt_off="-O0"
17751    else
17752      compiler_id="INTEL_WINDOWS_C"
17753      flags_dbg_yes="/Zi /Oy-"
17754      flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
17755      flags_opt_yes="/O2"
17756      flags_opt_off="/Od"
17757    fi
17758  else
17759    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17760printf "%s\n" "no" >&6; }
17761  fi
17762
17763
17764    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
17765printf %s "checking if compiler is clang... " >&6; }
17766
17767    OLDCPPFLAGS=$CPPFLAGS
17768  # CPPPFLAG comes from CURL_CPP_P
17769  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17770      if test -z "$SED"; then
17771    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17772  fi
17773  if test -z "$GREP"; then
17774    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17775  fi
17776
17777  tmp_exp=""
17778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779/* end confdefs.h.  */
17780
17781
17782#ifdef __clang__
17783CURL_DEF_TOKEN __clang__
17784#endif
17785
17786
17787_ACEOF
17788if ac_fn_c_try_cpp "$LINENO"
17789then :
17790
17791    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17792      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17793      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17794      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17795    if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
17796      tmp_exp=""
17797    fi
17798
17799fi
17800rm -f conftest.err conftest.i conftest.$ac_ext
17801  if test -z "$tmp_exp"; then
17802    curl_cv_have_def___clang__=no
17803
17804  else
17805    curl_cv_have_def___clang__=yes
17806    curl_cv_def___clang__=$tmp_exp
17807
17808  fi
17809      CPPFLAGS=$OLDCPPFLAGS
17810
17811  if test "$curl_cv_have_def___clang__" = "yes"; then
17812    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17813printf "%s\n" "yes" >&6; }
17814    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
17815printf %s "checking if compiler is xlclang... " >&6; }
17816
17817    OLDCPPFLAGS=$CPPFLAGS
17818  # CPPPFLAG comes from CURL_CPP_P
17819  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17820      if test -z "$SED"; then
17821    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17822  fi
17823  if test -z "$GREP"; then
17824    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17825  fi
17826
17827  tmp_exp=""
17828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17829/* end confdefs.h.  */
17830
17831
17832#ifdef __ibmxl__
17833CURL_DEF_TOKEN __ibmxl__
17834#endif
17835
17836
17837_ACEOF
17838if ac_fn_c_try_cpp "$LINENO"
17839then :
17840
17841    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17842      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17843      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17844      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17845    if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17846      tmp_exp=""
17847    fi
17848
17849fi
17850rm -f conftest.err conftest.i conftest.$ac_ext
17851  if test -z "$tmp_exp"; then
17852    curl_cv_have_def___ibmxl__=no
17853
17854  else
17855    curl_cv_have_def___ibmxl__=yes
17856    curl_cv_def___ibmxl__=$tmp_exp
17857
17858  fi
17859      CPPFLAGS=$OLDCPPFLAGS
17860
17861    if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17862            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17863printf "%s\n" "yes" >&6; }
17864      compiler_id="XLCLANG"
17865    else
17866      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867printf "%s\n" "no" >&6; }
17868      compiler_id="CLANG"
17869    fi
17870    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17871printf %s "checking compiler version... " >&6; }
17872    fullclangver=`$CC -v 2>&1 | grep version`
17873    if echo $fullclangver | grep 'Apple' >/dev/null; then
17874      appleclang=1
17875    else
17876      appleclang=0
17877    fi
17878    clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17879    if test -z "$clangver"; then
17880      clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17881      oldapple=0
17882    else
17883      oldapple=1
17884    fi
17885    clangvhi=`echo $clangver | cut -d . -f1`
17886    clangvlo=`echo $clangver | cut -d . -f2`
17887    compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17888    if test "$appleclang" = '1' && test "$oldapple" = '0'; then
17889            if   test "$compiler_num" -ge '1300'; then compiler_num='1200'
17890      elif test "$compiler_num" -ge '1205'; then compiler_num='1101'
17891      elif test "$compiler_num" -ge '1204'; then compiler_num='1000'
17892      elif test "$compiler_num" -ge '1107'; then compiler_num='900'
17893      elif test "$compiler_num" -ge '1103'; then compiler_num='800'
17894      elif test "$compiler_num" -ge '1003'; then compiler_num='700'
17895      elif test "$compiler_num" -ge '1001'; then compiler_num='600'
17896      elif test "$compiler_num" -ge  '904'; then compiler_num='500'
17897      elif test "$compiler_num" -ge  '902'; then compiler_num='400'
17898      elif test "$compiler_num" -ge  '803'; then compiler_num='309'
17899      elif test "$compiler_num" -ge  '703'; then compiler_num='308'
17900      else                                       compiler_num='307'
17901      fi
17902    fi
17903    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&5
17904printf "%s\n" "clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&6; }
17905    flags_dbg_yes="-g"
17906    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17907    flags_opt_yes="-O2"
17908    flags_opt_off="-O0"
17909  else
17910    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17911printf "%s\n" "no" >&6; }
17912  fi
17913
17914
17915      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17916printf %s "checking if compiler is GNU C... " >&6; }
17917
17918    OLDCPPFLAGS=$CPPFLAGS
17919  # CPPPFLAG comes from CURL_CPP_P
17920  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17921      if test -z "$SED"; then
17922    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17923  fi
17924  if test -z "$GREP"; then
17925    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17926  fi
17927
17928  tmp_exp=""
17929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930/* end confdefs.h.  */
17931
17932
17933#ifdef __GNUC__
17934CURL_DEF_TOKEN __GNUC__
17935#endif
17936
17937
17938_ACEOF
17939if ac_fn_c_try_cpp "$LINENO"
17940then :
17941
17942    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17943      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17944      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17945      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17946    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17947      tmp_exp=""
17948    fi
17949
17950fi
17951rm -f conftest.err conftest.i conftest.$ac_ext
17952  if test -z "$tmp_exp"; then
17953    curl_cv_have_def___GNUC__=no
17954
17955  else
17956    curl_cv_have_def___GNUC__=yes
17957    curl_cv_def___GNUC__=$tmp_exp
17958
17959  fi
17960      CPPFLAGS=$OLDCPPFLAGS
17961
17962  if test "$curl_cv_have_def___GNUC__" = "yes" &&
17963    test "$compiler_id" = "unknown"; then
17964    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17965printf "%s\n" "yes" >&6; }
17966    compiler_id="GNU_C"
17967    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17968printf %s "checking compiler version... " >&6; }
17969    # strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
17970    gccver=`$CC -dumpversion | sed -E 's/-.+$//'`
17971    gccvhi=`echo $gccver | cut -d . -f1`
17972    if echo $gccver | grep -F '.' >/dev/null; then
17973      gccvlo=`echo $gccver | cut -d . -f2`
17974    else
17975      gccvlo="0"
17976    fi
17977    compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17978    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc '$compiler_num' (raw: '$gccver')" >&5
17979printf "%s\n" "gcc '$compiler_num' (raw: '$gccver')" >&6; }
17980    flags_dbg_yes="-g"
17981    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17982    flags_opt_yes="-O2"
17983    flags_opt_off="-O0"
17984  else
17985    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17986printf "%s\n" "no" >&6; }
17987  fi
17988
17989
17990    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
17991printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
17992
17993    OLDCPPFLAGS=$CPPFLAGS
17994  # CPPPFLAG comes from CURL_CPP_P
17995  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17996      if test -z "$SED"; then
17997    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17998  fi
17999  if test -z "$GREP"; then
18000    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18001  fi
18002
18003  tmp_exp=""
18004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005/* end confdefs.h.  */
18006
18007
18008#ifdef __GNUC__
18009CURL_DEF_TOKEN __GNUC__
18010#endif
18011
18012
18013_ACEOF
18014if ac_fn_c_try_cpp "$LINENO"
18015then :
18016
18017    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18018      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18019      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18020      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18021    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18022      tmp_exp=""
18023    fi
18024
18025fi
18026rm -f conftest.err conftest.i conftest.$ac_ext
18027  if test -z "$tmp_exp"; then
18028    curl_cv_have_def___GNUC__=no
18029
18030  else
18031    curl_cv_have_def___GNUC__=yes
18032    curl_cv_def___GNUC__=$tmp_exp
18033
18034  fi
18035      CPPFLAGS=$OLDCPPFLAGS
18036
18037
18038    OLDCPPFLAGS=$CPPFLAGS
18039  # CPPPFLAG comes from CURL_CPP_P
18040  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18041      if test -z "$SED"; then
18042    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18043  fi
18044  if test -z "$GREP"; then
18045    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18046  fi
18047
18048  tmp_exp=""
18049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050/* end confdefs.h.  */
18051
18052
18053#ifdef _COMPILER_VERSION
18054CURL_DEF_TOKEN _COMPILER_VERSION
18055#endif
18056
18057
18058_ACEOF
18059if ac_fn_c_try_cpp "$LINENO"
18060then :
18061
18062    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18063      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18064      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18065      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18066    if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
18067      tmp_exp=""
18068    fi
18069
18070fi
18071rm -f conftest.err conftest.i conftest.$ac_ext
18072  if test -z "$tmp_exp"; then
18073    curl_cv_have_def__COMPILER_VERSION=no
18074
18075  else
18076    curl_cv_have_def__COMPILER_VERSION=yes
18077    curl_cv_def__COMPILER_VERSION=$tmp_exp
18078
18079  fi
18080      CPPFLAGS=$OLDCPPFLAGS
18081
18082
18083    OLDCPPFLAGS=$CPPFLAGS
18084  # CPPPFLAG comes from CURL_CPP_P
18085  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18086      if test -z "$SED"; then
18087    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18088  fi
18089  if test -z "$GREP"; then
18090    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18091  fi
18092
18093  tmp_exp=""
18094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095/* end confdefs.h.  */
18096
18097
18098#ifdef _SGI_COMPILER_VERSION
18099CURL_DEF_TOKEN _SGI_COMPILER_VERSION
18100#endif
18101
18102
18103_ACEOF
18104if ac_fn_c_try_cpp "$LINENO"
18105then :
18106
18107    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18108      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18109      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18110      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18111    if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
18112      tmp_exp=""
18113    fi
18114
18115fi
18116rm -f conftest.err conftest.i conftest.$ac_ext
18117  if test -z "$tmp_exp"; then
18118    curl_cv_have_def__SGI_COMPILER_VERSION=no
18119
18120  else
18121    curl_cv_have_def__SGI_COMPILER_VERSION=yes
18122    curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
18123
18124  fi
18125      CPPFLAGS=$OLDCPPFLAGS
18126
18127  if test "$curl_cv_have_def___GNUC__" = "no" &&
18128    (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
18129     test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
18130    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18131printf "%s\n" "yes" >&6; }
18132    compiler_id="SGI_MIPSPRO_C"
18133    flags_dbg_yes="-g"
18134    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18135    flags_opt_yes="-O2"
18136    flags_opt_off="-O0"
18137  else
18138    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139printf "%s\n" "no" >&6; }
18140  fi
18141
18142
18143    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
18144printf %s "checking if compiler is SGI MIPS C... " >&6; }
18145
18146    OLDCPPFLAGS=$CPPFLAGS
18147  # CPPPFLAG comes from CURL_CPP_P
18148  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18149      if test -z "$SED"; then
18150    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18151  fi
18152  if test -z "$GREP"; then
18153    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18154  fi
18155
18156  tmp_exp=""
18157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158/* end confdefs.h.  */
18159
18160
18161#ifdef __GNUC__
18162CURL_DEF_TOKEN __GNUC__
18163#endif
18164
18165
18166_ACEOF
18167if ac_fn_c_try_cpp "$LINENO"
18168then :
18169
18170    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18171      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18172      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18173      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18174    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18175      tmp_exp=""
18176    fi
18177
18178fi
18179rm -f conftest.err conftest.i conftest.$ac_ext
18180  if test -z "$tmp_exp"; then
18181    curl_cv_have_def___GNUC__=no
18182
18183  else
18184    curl_cv_have_def___GNUC__=yes
18185    curl_cv_def___GNUC__=$tmp_exp
18186
18187  fi
18188      CPPFLAGS=$OLDCPPFLAGS
18189
18190
18191    OLDCPPFLAGS=$CPPFLAGS
18192  # CPPPFLAG comes from CURL_CPP_P
18193  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18194      if test -z "$SED"; then
18195    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18196  fi
18197  if test -z "$GREP"; then
18198    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18199  fi
18200
18201  tmp_exp=""
18202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203/* end confdefs.h.  */
18204
18205
18206#ifdef __sgi
18207CURL_DEF_TOKEN __sgi
18208#endif
18209
18210
18211_ACEOF
18212if ac_fn_c_try_cpp "$LINENO"
18213then :
18214
18215    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18216      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18217      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18218      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18219    if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
18220      tmp_exp=""
18221    fi
18222
18223fi
18224rm -f conftest.err conftest.i conftest.$ac_ext
18225  if test -z "$tmp_exp"; then
18226    curl_cv_have_def___sgi=no
18227
18228  else
18229    curl_cv_have_def___sgi=yes
18230    curl_cv_def___sgi=$tmp_exp
18231
18232  fi
18233      CPPFLAGS=$OLDCPPFLAGS
18234
18235  if test "$curl_cv_have_def___GNUC__" = "no" &&
18236    test "$curl_cv_have_def___sgi" = "yes" &&
18237    test "$compiler_id" = "unknown"; then
18238    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18239printf "%s\n" "yes" >&6; }
18240    compiler_id="SGI_MIPS_C"
18241    flags_dbg_yes="-g"
18242    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18243    flags_opt_yes="-O2"
18244    flags_opt_off="-O0"
18245  else
18246    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18247printf "%s\n" "no" >&6; }
18248  fi
18249
18250
18251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
18252printf %s "checking if compiler is SunPro C... " >&6; }
18253
18254    OLDCPPFLAGS=$CPPFLAGS
18255  # CPPPFLAG comes from CURL_CPP_P
18256  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18257      if test -z "$SED"; then
18258    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18259  fi
18260  if test -z "$GREP"; then
18261    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18262  fi
18263
18264  tmp_exp=""
18265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266/* end confdefs.h.  */
18267
18268
18269#ifdef __SUNPRO_C
18270CURL_DEF_TOKEN __SUNPRO_C
18271#endif
18272
18273
18274_ACEOF
18275if ac_fn_c_try_cpp "$LINENO"
18276then :
18277
18278    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18279      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18280      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18281      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18282    if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
18283      tmp_exp=""
18284    fi
18285
18286fi
18287rm -f conftest.err conftest.i conftest.$ac_ext
18288  if test -z "$tmp_exp"; then
18289    curl_cv_have_def___SUNPRO_C=no
18290
18291  else
18292    curl_cv_have_def___SUNPRO_C=yes
18293    curl_cv_def___SUNPRO_C=$tmp_exp
18294
18295  fi
18296      CPPFLAGS=$OLDCPPFLAGS
18297
18298  if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
18299    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18300printf "%s\n" "yes" >&6; }
18301    compiler_id="SUNPRO_C"
18302    flags_dbg_yes="-g"
18303    flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
18304    flags_opt_yes="-xO2"
18305    flags_opt_off=""
18306  else
18307    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308printf "%s\n" "no" >&6; }
18309  fi
18310
18311
18312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
18313printf %s "checking if compiler is Tiny C... " >&6; }
18314
18315    OLDCPPFLAGS=$CPPFLAGS
18316  # CPPPFLAG comes from CURL_CPP_P
18317  CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18318      if test -z "$SED"; then
18319    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18320  fi
18321  if test -z "$GREP"; then
18322    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18323  fi
18324
18325  tmp_exp=""
18326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327/* end confdefs.h.  */
18328
18329
18330#ifdef __TINYC__
18331CURL_DEF_TOKEN __TINYC__
18332#endif
18333
18334
18335_ACEOF
18336if ac_fn_c_try_cpp "$LINENO"
18337then :
18338
18339    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18340      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18341      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18342      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18343    if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
18344      tmp_exp=""
18345    fi
18346
18347fi
18348rm -f conftest.err conftest.i conftest.$ac_ext
18349  if test -z "$tmp_exp"; then
18350    curl_cv_have_def___TINYC__=no
18351
18352  else
18353    curl_cv_have_def___TINYC__=yes
18354    curl_cv_def___TINYC__=$tmp_exp
18355
18356  fi
18357      CPPFLAGS=$OLDCPPFLAGS
18358
18359  if test "$curl_cv_have_def___TINYC__" = "yes"; then
18360    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18361printf "%s\n" "yes" >&6; }
18362    compiler_id="TINY_C"
18363    flags_dbg_yes="-g"
18364    flags_opt_all=""
18365    flags_opt_yes=""
18366    flags_opt_off=""
18367  else
18368    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18369printf "%s\n" "no" >&6; }
18370  fi
18371
18372  #
18373  if test "$compiler_id" = "unknown"; then
18374  cat <<_EOF 1>&2
18375***
18376*** Warning: This configure script does not have information about the
18377*** compiler you are using, relative to the flags required to enable or
18378*** disable generation of debug info, optimization options or warnings.
18379***
18380*** Whatever settings are present in CFLAGS will be used for this run.
18381***
18382*** If you wish to help the curl project to better support your compiler
18383*** you can report this and the required info on the libcurl development
18384*** mailing list: https://lists.haxx.selistinfo/curl-library/
18385***
18386_EOF
18387  fi
18388
18389
18390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18391printf %s "checking whether build target is a native Windows one... " >&6; }
18392if test ${curl_cv_native_windows+y}
18393then :
18394  printf %s "(cached) " >&6
18395else $as_nop
18396
18397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398/* end confdefs.h.  */
18399
18400
18401
18402int main (void)
18403{
18404
18405#ifdef _WIN32
18406        int dummy=1;
18407#else
18408        Not a native Windows build target.
18409#endif
18410
18411 ;
18412 return 0;
18413}
18414
18415_ACEOF
18416if ac_fn_c_try_compile "$LINENO"
18417then :
18418
18419      curl_cv_native_windows="yes"
18420
18421else $as_nop
18422
18423      curl_cv_native_windows="no"
18424
18425fi
18426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18427
18428fi
18429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18430printf "%s\n" "$curl_cv_native_windows" >&6; }
18431   if test "x$curl_cv_native_windows" = xyes; then
18432  DOING_NATIVE_WINDOWS_TRUE=
18433  DOING_NATIVE_WINDOWS_FALSE='#'
18434else
18435  DOING_NATIVE_WINDOWS_TRUE='#'
18436  DOING_NATIVE_WINDOWS_FALSE=
18437fi
18438
18439
18440
18441squeeze() {
18442  _sqz_result=""
18443  eval _sqz_input=\$$1
18444  for _sqz_token in $_sqz_input; do
18445    if test -z "$_sqz_result"; then
18446      _sqz_result="$_sqz_token"
18447    else
18448      _sqz_result="$_sqz_result $_sqz_token"
18449    fi
18450  done
18451  eval $1=\$_sqz_result
18452  return 0
18453}
18454
18455
18456      #
18457  if test "$compiler_id" != "unknown"; then
18458    #
18459    tmp_save_CPPFLAGS="$CPPFLAGS"
18460    tmp_save_CFLAGS="$CFLAGS"
18461    tmp_CPPFLAGS=""
18462    tmp_CFLAGS=""
18463    #
18464    case "$compiler_id" in
18465        #
18466      CLANG)
18467        #
18468                                tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
18469        ;;
18470        #
18471      DEC_C)
18472        #
18473                tmp_CFLAGS="$tmp_CFLAGS -std1"
18474                tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
18475                tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
18476                tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
18477        ;;
18478        #
18479      GNU_C)
18480        #
18481                        if test "$compiler_num" -ge "295"; then
18482          tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
18483        fi
18484        ;;
18485        #
18486      HP_UX_C)
18487        #
18488                tmp_CFLAGS="$tmp_CFLAGS -z"
18489                                tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
18490        ;;
18491        #
18492      IBM_C)
18493        #
18494                tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
18495                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
18496                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
18497        ;;
18498        #
18499      INTEL_UNIX_C)
18500        #
18501                        tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
18502                                                tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
18503                                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
18504        ;;
18505        #
18506      INTEL_WINDOWS_C)
18507        #
18508                tmp_CFLAGS="$tmp_CFLAGS"
18509        ;;
18510        #
18511      SGI_MIPS_C)
18512        #
18513                tmp_CFLAGS="$tmp_CFLAGS"
18514        ;;
18515        #
18516      SGI_MIPSPRO_C)
18517        #
18518                tmp_CFLAGS="$tmp_CFLAGS"
18519        ;;
18520        #
18521      SUNPRO_C)
18522        #
18523                tmp_CFLAGS="$tmp_CFLAGS"
18524        ;;
18525        #
18526      TINY_C)
18527        #
18528                tmp_CFLAGS="$tmp_CFLAGS"
18529        ;;
18530        #
18531    esac
18532    #
18533    squeeze tmp_CPPFLAGS
18534    squeeze tmp_CFLAGS
18535    #
18536    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18537      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
18538printf %s "checking if compiler accepts some basic options... " >&6; }
18539      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18540      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18541      squeeze CPPFLAGS
18542      squeeze CFLAGS
18543
18544    tmp_compiler_works="unknown"
18545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18546/* end confdefs.h.  */
18547
18548
18549
18550int main (void)
18551{
18552
18553      int i = 1;
18554      return i;
18555
18556 ;
18557 return 0;
18558}
18559
18560_ACEOF
18561if ac_fn_c_try_compile "$LINENO"
18562then :
18563
18564    tmp_compiler_works="yes"
18565
18566else $as_nop
18567
18568    tmp_compiler_works="no"
18569    echo " " >&6
18570    sed 's/^/cc-fail: /' conftest.err >&6
18571    echo " " >&6
18572
18573fi
18574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18575    if test "$tmp_compiler_works" = "yes"; then
18576    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577/* end confdefs.h.  */
18578
18579
18580
18581int main (void)
18582{
18583
18584        int i = 1;
18585        return i;
18586
18587 ;
18588 return 0;
18589}
18590
18591_ACEOF
18592if ac_fn_c_try_link "$LINENO"
18593then :
18594
18595      tmp_compiler_works="yes"
18596
18597else $as_nop
18598
18599      tmp_compiler_works="no"
18600      echo " " >&6
18601      sed 's/^/link-fail: /' conftest.err >&6
18602      echo " " >&6
18603
18604fi
18605rm -f core conftest.err conftest.$ac_objext conftest.beam \
18606    conftest$ac_exeext conftest.$ac_ext
18607  fi
18608    if test "x$cross_compiling" != "xyes" &&
18609    test "$tmp_compiler_works" = "yes"; then
18610
18611   case $host_os in
18612     darwin*)
18613      if test "$cross_compiling" = yes
18614then :
18615  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18616printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18617as_fn_error $? "cannot run test program while cross compiling
18618See \`config.log' for more details" "$LINENO" 5; }
18619else $as_nop
18620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18621/* end confdefs.h.  */
18622
18623
18624#       ifdef __STDC__
18625#         include <stdlib.h>
18626#       endif
18627
18628int main (void)
18629{
18630
18631        int i = 0;
18632        exit(i);
18633
18634 ;
18635 return 0;
18636}
18637
18638_ACEOF
18639if ac_fn_c_try_run "$LINENO"
18640then :
18641  tmp_compiler_works="yes"
18642
18643else $as_nop
18644  tmp_compiler_works="no"
18645      echo " " >&6
18646      echo "run-fail: test program exited with status $ac_status" >&6
18647      echo " " >&6
18648
18649fi
18650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18651  conftest.$ac_objext conftest.beam conftest.$ac_ext
18652fi
18653
18654     ;;
18655     *)
18656      oldcc=$CC
18657      old=$LD_LIBRARY_PATH
18658      CC="sh ./run-compiler"
18659      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18660      export LD_LIBRARY_PATH
18661      if test "$cross_compiling" = yes
18662then :
18663  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18664printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18665as_fn_error $? "cannot run test program while cross compiling
18666See \`config.log' for more details" "$LINENO" 5; }
18667else $as_nop
18668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669/* end confdefs.h.  */
18670
18671
18672#       ifdef __STDC__
18673#         include <stdlib.h>
18674#       endif
18675
18676int main (void)
18677{
18678
18679        int i = 0;
18680        exit(i);
18681
18682 ;
18683 return 0;
18684}
18685
18686_ACEOF
18687if ac_fn_c_try_run "$LINENO"
18688then :
18689  tmp_compiler_works="yes"
18690
18691else $as_nop
18692  tmp_compiler_works="no"
18693      echo " " >&6
18694      echo "run-fail: test program exited with status $ac_status" >&6
18695      echo " " >&6
18696
18697fi
18698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18699  conftest.$ac_objext conftest.beam conftest.$ac_ext
18700fi
18701
18702      LD_LIBRARY_PATH=$old # restore
18703      CC=$oldcc
18704     ;;
18705   esac
18706
18707  fi
18708    if test "$tmp_compiler_works" = "yes"; then
18709
18710        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18711printf "%s\n" "yes" >&6; }
18712        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18713printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18714
18715  else
18716
18717        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718printf "%s\n" "no" >&6; }
18719        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18720printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18721                CPPFLAGS="$tmp_save_CPPFLAGS"
18722        CFLAGS="$tmp_save_CFLAGS"
18723
18724  fi
18725
18726    fi
18727    #
18728  fi
18729
18730
18731        #
18732  if test "$compiler_id" != "unknown"; then
18733    #
18734    tmp_save_CFLAGS="$CFLAGS"
18735    tmp_save_CPPFLAGS="$CPPFLAGS"
18736    #
18737    tmp_options=""
18738    tmp_CFLAGS="$CFLAGS"
18739    tmp_CPPFLAGS="$CPPFLAGS"
18740    #
18741    if test "$want_debug" = "yes"; then
18742      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18743printf %s "checking if compiler accepts debug enabling options... " >&6; }
18744      tmp_options="$flags_dbg_yes"
18745    fi
18746    #
18747    if test "$flags_prefer_cppflags" = "yes"; then
18748      CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18749      CFLAGS="$tmp_CFLAGS"
18750    else
18751      CPPFLAGS="$tmp_CPPFLAGS"
18752      CFLAGS="$tmp_CFLAGS $tmp_options"
18753    fi
18754    squeeze CPPFLAGS
18755    squeeze CFLAGS
18756  fi
18757
18758
18759        #
18760  if test "$compiler_id" != "unknown"; then
18761    #
18762    tmp_save_CFLAGS="$CFLAGS"
18763    tmp_save_CPPFLAGS="$CPPFLAGS"
18764    #
18765    tmp_options=""
18766    tmp_CFLAGS="$CFLAGS"
18767    tmp_CPPFLAGS="$CPPFLAGS"
18768    honor_optimize_option="yes"
18769    #
18770                        #
18771    if test "$want_optimize" = "assume_no" ||
18772       test "$want_optimize" = "assume_yes"; then
18773      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18774printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18775
18776
18777  ac_var_match_word="no"
18778  for word1 in $tmp_CFLAGS; do
18779    for word2 in $flags_opt_all; do
18780      if test "$word1" = "$word2"; then
18781        ac_var_match_word="yes"
18782      fi
18783    done
18784  done
18785
18786  if test "$ac_var_match_word" = "yes"; then
18787
18788        honor_optimize_option="no"
18789
18790
18791  fi
18792
18793
18794
18795  ac_var_match_word="no"
18796  for word1 in $tmp_CPPFLAGS; do
18797    for word2 in $flags_opt_all; do
18798      if test "$word1" = "$word2"; then
18799        ac_var_match_word="yes"
18800      fi
18801    done
18802  done
18803
18804  if test "$ac_var_match_word" = "yes"; then
18805
18806        honor_optimize_option="no"
18807
18808
18809  fi
18810
18811      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18812printf "%s\n" "$honor_optimize_option" >&6; }
18813      if test "$honor_optimize_option" = "yes"; then
18814        if test "$want_optimize" = "assume_yes"; then
18815          want_optimize="yes"
18816        fi
18817        if test "$want_optimize" = "assume_no"; then
18818          want_optimize="no"
18819        fi
18820      fi
18821    fi
18822    #
18823    if test "$honor_optimize_option" = "yes"; then
18824
18825    ac_var_stripped=""
18826  for word1 in $tmp_CFLAGS; do
18827    ac_var_strip_word="no"
18828    for word2 in $flags_opt_all; do
18829      if test "$word1" = "$word2"; then
18830        ac_var_strip_word="yes"
18831      fi
18832    done
18833    if test "$ac_var_strip_word" = "no"; then
18834      ac_var_stripped="$ac_var_stripped $word1"
18835    fi
18836  done
18837    tmp_CFLAGS="$ac_var_stripped"
18838  squeeze tmp_CFLAGS
18839
18840
18841    ac_var_stripped=""
18842  for word1 in $tmp_CPPFLAGS; 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_CPPFLAGS="$ac_var_stripped"
18854  squeeze tmp_CPPFLAGS
18855
18856      if test "$want_optimize" = "yes"; then
18857        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18858printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18859        tmp_options="$flags_opt_yes"
18860      fi
18861      if test "$want_optimize" = "no"; then
18862        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18863printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18864        tmp_options="$flags_opt_off"
18865      fi
18866      if test "$flags_prefer_cppflags" = "yes"; then
18867        CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18868        CFLAGS="$tmp_CFLAGS"
18869      else
18870        CPPFLAGS="$tmp_CPPFLAGS"
18871        CFLAGS="$tmp_CFLAGS $tmp_options"
18872      fi
18873      squeeze CPPFLAGS
18874      squeeze CFLAGS
18875
18876    tmp_compiler_works="unknown"
18877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18878/* end confdefs.h.  */
18879
18880
18881
18882int main (void)
18883{
18884
18885      int i = 1;
18886      return i;
18887
18888 ;
18889 return 0;
18890}
18891
18892_ACEOF
18893if ac_fn_c_try_compile "$LINENO"
18894then :
18895
18896    tmp_compiler_works="yes"
18897
18898else $as_nop
18899
18900    tmp_compiler_works="no"
18901    echo " " >&6
18902    sed 's/^/cc-fail: /' conftest.err >&6
18903    echo " " >&6
18904
18905fi
18906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18907    if test "$tmp_compiler_works" = "yes"; then
18908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909/* end confdefs.h.  */
18910
18911
18912
18913int main (void)
18914{
18915
18916        int i = 1;
18917        return i;
18918
18919 ;
18920 return 0;
18921}
18922
18923_ACEOF
18924if ac_fn_c_try_link "$LINENO"
18925then :
18926
18927      tmp_compiler_works="yes"
18928
18929else $as_nop
18930
18931      tmp_compiler_works="no"
18932      echo " " >&6
18933      sed 's/^/link-fail: /' conftest.err >&6
18934      echo " " >&6
18935
18936fi
18937rm -f core conftest.err conftest.$ac_objext conftest.beam \
18938    conftest$ac_exeext conftest.$ac_ext
18939  fi
18940    if test "x$cross_compiling" != "xyes" &&
18941    test "$tmp_compiler_works" = "yes"; then
18942
18943   case $host_os in
18944     darwin*)
18945      if test "$cross_compiling" = yes
18946then :
18947  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18948printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18949as_fn_error $? "cannot run test program while cross compiling
18950See \`config.log' for more details" "$LINENO" 5; }
18951else $as_nop
18952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18953/* end confdefs.h.  */
18954
18955
18956#       ifdef __STDC__
18957#         include <stdlib.h>
18958#       endif
18959
18960int main (void)
18961{
18962
18963        int i = 0;
18964        exit(i);
18965
18966 ;
18967 return 0;
18968}
18969
18970_ACEOF
18971if ac_fn_c_try_run "$LINENO"
18972then :
18973  tmp_compiler_works="yes"
18974
18975else $as_nop
18976  tmp_compiler_works="no"
18977      echo " " >&6
18978      echo "run-fail: test program exited with status $ac_status" >&6
18979      echo " " >&6
18980
18981fi
18982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18983  conftest.$ac_objext conftest.beam conftest.$ac_ext
18984fi
18985
18986     ;;
18987     *)
18988      oldcc=$CC
18989      old=$LD_LIBRARY_PATH
18990      CC="sh ./run-compiler"
18991      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18992      export LD_LIBRARY_PATH
18993      if test "$cross_compiling" = yes
18994then :
18995  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18996printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18997as_fn_error $? "cannot run test program while cross compiling
18998See \`config.log' for more details" "$LINENO" 5; }
18999else $as_nop
19000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001/* end confdefs.h.  */
19002
19003
19004#       ifdef __STDC__
19005#         include <stdlib.h>
19006#       endif
19007
19008int main (void)
19009{
19010
19011        int i = 0;
19012        exit(i);
19013
19014 ;
19015 return 0;
19016}
19017
19018_ACEOF
19019if ac_fn_c_try_run "$LINENO"
19020then :
19021  tmp_compiler_works="yes"
19022
19023else $as_nop
19024  tmp_compiler_works="no"
19025      echo " " >&6
19026      echo "run-fail: test program exited with status $ac_status" >&6
19027      echo " " >&6
19028
19029fi
19030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19031  conftest.$ac_objext conftest.beam conftest.$ac_ext
19032fi
19033
19034      LD_LIBRARY_PATH=$old # restore
19035      CC=$oldcc
19036     ;;
19037   esac
19038
19039  fi
19040    if test "$tmp_compiler_works" = "yes"; then
19041
19042        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19043printf "%s\n" "yes" >&6; }
19044        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
19045printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
19046
19047  else
19048
19049        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050printf "%s\n" "no" >&6; }
19051        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
19052printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
19053                CPPFLAGS="$tmp_save_CPPFLAGS"
19054        CFLAGS="$tmp_save_CFLAGS"
19055
19056  fi
19057
19058    fi
19059    #
19060  fi
19061
19062
19063        #
19064  if test "$compiler_id" != "unknown"; then
19065    #
19066    tmp_save_CPPFLAGS="$CPPFLAGS"
19067    tmp_save_CFLAGS="$CFLAGS"
19068    tmp_CPPFLAGS=""
19069    tmp_CFLAGS=""
19070    #
19071    case "$compiler_id" in
19072        #
19073      CLANG)
19074        #
19075        if test "$want_warnings" = "yes"; then
19076          tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19077
19078    ac_var_added_warnings=""
19079  for warning in all extra; do
19080
19081  ac_var_match_word="no"
19082  for word1 in $CFLAGS; do
19083    for word2 in -Wno-$warning -W$warning; do
19084      if test "$word1" = "$word2"; then
19085        ac_var_match_word="yes"
19086      fi
19087    done
19088  done
19089
19090    if test "$ac_var_match_word" = "no"; then
19091      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19092    fi
19093  done
19094    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19095  squeeze tmp_CFLAGS
19096
19097
19098    ac_var_added_warnings=""
19099  for warning in pointer-arith write-strings; do
19100
19101  ac_var_match_word="no"
19102  for word1 in $CFLAGS; do
19103    for word2 in -Wno-$warning -W$warning; do
19104      if test "$word1" = "$word2"; then
19105        ac_var_match_word="yes"
19106      fi
19107    done
19108  done
19109
19110    if test "$ac_var_match_word" = "no"; then
19111      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19112    fi
19113  done
19114    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19115  squeeze tmp_CFLAGS
19116
19117
19118    ac_var_added_warnings=""
19119  for warning in shadow; do
19120
19121  ac_var_match_word="no"
19122  for word1 in $CFLAGS; do
19123    for word2 in -Wno-$warning -W$warning; do
19124      if test "$word1" = "$word2"; then
19125        ac_var_match_word="yes"
19126      fi
19127    done
19128  done
19129
19130    if test "$ac_var_match_word" = "no"; then
19131      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19132    fi
19133  done
19134    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19135  squeeze tmp_CFLAGS
19136
19137
19138    ac_var_added_warnings=""
19139  for warning in inline nested-externs; do
19140
19141  ac_var_match_word="no"
19142  for word1 in $CFLAGS; do
19143    for word2 in -Wno-$warning -W$warning; do
19144      if test "$word1" = "$word2"; then
19145        ac_var_match_word="yes"
19146      fi
19147    done
19148  done
19149
19150    if test "$ac_var_match_word" = "no"; then
19151      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19152    fi
19153  done
19154    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19155  squeeze tmp_CFLAGS
19156
19157
19158    ac_var_added_warnings=""
19159  for warning in missing-declarations; do
19160
19161  ac_var_match_word="no"
19162  for word1 in $CFLAGS; do
19163    for word2 in -Wno-$warning -W$warning; do
19164      if test "$word1" = "$word2"; then
19165        ac_var_match_word="yes"
19166      fi
19167    done
19168  done
19169
19170    if test "$ac_var_match_word" = "no"; then
19171      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19172    fi
19173  done
19174    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19175  squeeze tmp_CFLAGS
19176
19177
19178    ac_var_added_warnings=""
19179  for warning in missing-prototypes; do
19180
19181  ac_var_match_word="no"
19182  for word1 in $CFLAGS; do
19183    for word2 in -Wno-$warning -W$warning; do
19184      if test "$word1" = "$word2"; then
19185        ac_var_match_word="yes"
19186      fi
19187    done
19188  done
19189
19190    if test "$ac_var_match_word" = "no"; then
19191      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19192    fi
19193  done
19194    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19195  squeeze tmp_CFLAGS
19196
19197          tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19198
19199    ac_var_added_warnings=""
19200  for warning in float-equal; do
19201
19202  ac_var_match_word="no"
19203  for word1 in $CFLAGS; do
19204    for word2 in -Wno-$warning -W$warning; do
19205      if test "$word1" = "$word2"; then
19206        ac_var_match_word="yes"
19207      fi
19208    done
19209  done
19210
19211    if test "$ac_var_match_word" = "no"; then
19212      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19213    fi
19214  done
19215    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19216  squeeze tmp_CFLAGS
19217
19218
19219    ac_var_added_warnings=""
19220  for warning in sign-compare; do
19221
19222  ac_var_match_word="no"
19223  for word1 in $CFLAGS; do
19224    for word2 in -Wno-$warning -W$warning; do
19225      if test "$word1" = "$word2"; then
19226        ac_var_match_word="yes"
19227      fi
19228    done
19229  done
19230
19231    if test "$ac_var_match_word" = "no"; then
19232      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19233    fi
19234  done
19235    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19236  squeeze tmp_CFLAGS
19237
19238          tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
19239
19240    ac_var_added_warnings=""
19241  for warning in undef; do
19242
19243  ac_var_match_word="no"
19244  for word1 in $CFLAGS; do
19245    for word2 in -Wno-$warning -W$warning; do
19246      if test "$word1" = "$word2"; then
19247        ac_var_match_word="yes"
19248      fi
19249    done
19250  done
19251
19252    if test "$ac_var_match_word" = "no"; then
19253      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19254    fi
19255  done
19256    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19257  squeeze tmp_CFLAGS
19258
19259          tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19260
19261    ac_var_added_warnings=""
19262  for warning in endif-labels strict-prototypes; do
19263
19264  ac_var_match_word="no"
19265  for word1 in $CFLAGS; do
19266    for word2 in -Wno-$warning -W$warning; do
19267      if test "$word1" = "$word2"; then
19268        ac_var_match_word="yes"
19269      fi
19270    done
19271  done
19272
19273    if test "$ac_var_match_word" = "no"; then
19274      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19275    fi
19276  done
19277    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19278  squeeze tmp_CFLAGS
19279
19280
19281    ac_var_added_warnings=""
19282  for warning in declaration-after-statement; do
19283
19284  ac_var_match_word="no"
19285  for word1 in $CFLAGS; do
19286    for word2 in -Wno-$warning -W$warning; do
19287      if test "$word1" = "$word2"; then
19288        ac_var_match_word="yes"
19289      fi
19290    done
19291  done
19292
19293    if test "$ac_var_match_word" = "no"; then
19294      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19295    fi
19296  done
19297    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19298  squeeze tmp_CFLAGS
19299
19300
19301    ac_var_added_warnings=""
19302  for warning in cast-align; do
19303
19304  ac_var_match_word="no"
19305  for word1 in $CFLAGS; do
19306    for word2 in -Wno-$warning -W$warning; do
19307      if test "$word1" = "$word2"; then
19308        ac_var_match_word="yes"
19309      fi
19310    done
19311  done
19312
19313    if test "$ac_var_match_word" = "no"; then
19314      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19315    fi
19316  done
19317    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19318  squeeze tmp_CFLAGS
19319
19320          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19321
19322    ac_var_added_warnings=""
19323  for warning in shorten-64-to-32; do
19324
19325  ac_var_match_word="no"
19326  for word1 in $CFLAGS; do
19327    for word2 in -Wno-$warning -W$warning; do
19328      if test "$word1" = "$word2"; then
19329        ac_var_match_word="yes"
19330      fi
19331    done
19332  done
19333
19334    if test "$ac_var_match_word" = "no"; then
19335      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19336    fi
19337  done
19338    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19339  squeeze tmp_CFLAGS
19340
19341          #
19342                    if test "$compiler_num" -ge "101"; then
19343
19344    ac_var_added_warnings=""
19345  for warning in unused; do
19346
19347  ac_var_match_word="no"
19348  for word1 in $CFLAGS; do
19349    for word2 in -Wno-$warning -W$warning; do
19350      if test "$word1" = "$word2"; then
19351        ac_var_match_word="yes"
19352      fi
19353    done
19354  done
19355
19356    if test "$ac_var_match_word" = "no"; then
19357      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19358    fi
19359  done
19360    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19361  squeeze tmp_CFLAGS
19362
19363          fi
19364          #
19365                    if test "$compiler_num" -ge "207"; then
19366
19367    ac_var_added_warnings=""
19368  for warning in address; do
19369
19370  ac_var_match_word="no"
19371  for word1 in $CFLAGS; do
19372    for word2 in -Wno-$warning -W$warning; do
19373      if test "$word1" = "$word2"; then
19374        ac_var_match_word="yes"
19375      fi
19376    done
19377  done
19378
19379    if test "$ac_var_match_word" = "no"; then
19380      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19381    fi
19382  done
19383    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19384  squeeze tmp_CFLAGS
19385
19386
19387    ac_var_added_warnings=""
19388  for warning in attributes; do
19389
19390  ac_var_match_word="no"
19391  for word1 in $CFLAGS; do
19392    for word2 in -Wno-$warning -W$warning; do
19393      if test "$word1" = "$word2"; then
19394        ac_var_match_word="yes"
19395      fi
19396    done
19397  done
19398
19399    if test "$ac_var_match_word" = "no"; then
19400      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19401    fi
19402  done
19403    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19404  squeeze tmp_CFLAGS
19405
19406
19407    ac_var_added_warnings=""
19408  for warning in bad-function-cast; do
19409
19410  ac_var_match_word="no"
19411  for word1 in $CFLAGS; do
19412    for word2 in -Wno-$warning -W$warning; do
19413      if test "$word1" = "$word2"; then
19414        ac_var_match_word="yes"
19415      fi
19416    done
19417  done
19418
19419    if test "$ac_var_match_word" = "no"; then
19420      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19421    fi
19422  done
19423    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19424  squeeze tmp_CFLAGS
19425
19426
19427    ac_var_added_warnings=""
19428  for warning in conversion; do
19429
19430  ac_var_match_word="no"
19431  for word1 in $CFLAGS; do
19432    for word2 in -Wno-$warning -W$warning; do
19433      if test "$word1" = "$word2"; then
19434        ac_var_match_word="yes"
19435      fi
19436    done
19437  done
19438
19439    if test "$ac_var_match_word" = "no"; then
19440      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19441    fi
19442  done
19443    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19444  squeeze tmp_CFLAGS
19445
19446
19447    ac_var_added_warnings=""
19448  for warning in div-by-zero format-security; do
19449
19450  ac_var_match_word="no"
19451  for word1 in $CFLAGS; do
19452    for word2 in -Wno-$warning -W$warning; do
19453      if test "$word1" = "$word2"; then
19454        ac_var_match_word="yes"
19455      fi
19456    done
19457  done
19458
19459    if test "$ac_var_match_word" = "no"; then
19460      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19461    fi
19462  done
19463    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19464  squeeze tmp_CFLAGS
19465
19466
19467    ac_var_added_warnings=""
19468  for warning in empty-body; do
19469
19470  ac_var_match_word="no"
19471  for word1 in $CFLAGS; do
19472    for word2 in -Wno-$warning -W$warning; do
19473      if test "$word1" = "$word2"; then
19474        ac_var_match_word="yes"
19475      fi
19476    done
19477  done
19478
19479    if test "$ac_var_match_word" = "no"; then
19480      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19481    fi
19482  done
19483    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19484  squeeze tmp_CFLAGS
19485
19486
19487    ac_var_added_warnings=""
19488  for warning in missing-field-initializers; do
19489
19490  ac_var_match_word="no"
19491  for word1 in $CFLAGS; do
19492    for word2 in -Wno-$warning -W$warning; do
19493      if test "$word1" = "$word2"; then
19494        ac_var_match_word="yes"
19495      fi
19496    done
19497  done
19498
19499    if test "$ac_var_match_word" = "no"; then
19500      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19501    fi
19502  done
19503    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19504  squeeze tmp_CFLAGS
19505
19506
19507    ac_var_added_warnings=""
19508  for warning in missing-noreturn; do
19509
19510  ac_var_match_word="no"
19511  for word1 in $CFLAGS; do
19512    for word2 in -Wno-$warning -W$warning; do
19513      if test "$word1" = "$word2"; then
19514        ac_var_match_word="yes"
19515      fi
19516    done
19517  done
19518
19519    if test "$ac_var_match_word" = "no"; then
19520      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19521    fi
19522  done
19523    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19524  squeeze tmp_CFLAGS
19525
19526
19527    ac_var_added_warnings=""
19528  for warning in old-style-definition; do
19529
19530  ac_var_match_word="no"
19531  for word1 in $CFLAGS; do
19532    for word2 in -Wno-$warning -W$warning; do
19533      if test "$word1" = "$word2"; then
19534        ac_var_match_word="yes"
19535      fi
19536    done
19537  done
19538
19539    if test "$ac_var_match_word" = "no"; then
19540      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19541    fi
19542  done
19543    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19544  squeeze tmp_CFLAGS
19545
19546
19547    ac_var_added_warnings=""
19548  for warning in redundant-decls; do
19549
19550  ac_var_match_word="no"
19551  for word1 in $CFLAGS; do
19552    for word2 in -Wno-$warning -W$warning; do
19553      if test "$word1" = "$word2"; then
19554        ac_var_match_word="yes"
19555      fi
19556    done
19557  done
19558
19559    if test "$ac_var_match_word" = "no"; then
19560      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19561    fi
19562  done
19563    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19564  squeeze tmp_CFLAGS
19565
19566          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum])      # Not used because this basically disallows default case
19567
19568    ac_var_added_warnings=""
19569  for warning in type-limits; do
19570
19571  ac_var_match_word="no"
19572  for word1 in $CFLAGS; do
19573    for word2 in -Wno-$warning -W$warning; do
19574      if test "$word1" = "$word2"; then
19575        ac_var_match_word="yes"
19576      fi
19577    done
19578  done
19579
19580    if test "$ac_var_match_word" = "no"; then
19581      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19582    fi
19583  done
19584    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19585  squeeze tmp_CFLAGS
19586
19587          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros])    # Not practical
19588
19589    ac_var_added_warnings=""
19590  for warning in unreachable-code unused-parameter; do
19591
19592  ac_var_match_word="no"
19593  for word1 in $CFLAGS; do
19594    for word2 in -Wno-$warning -W$warning; do
19595      if test "$word1" = "$word2"; then
19596        ac_var_match_word="yes"
19597      fi
19598    done
19599  done
19600
19601    if test "$ac_var_match_word" = "no"; then
19602      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19603    fi
19604  done
19605    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19606  squeeze tmp_CFLAGS
19607
19608          fi
19609          #
19610                    if test "$compiler_num" -ge "208"; then
19611
19612    ac_var_added_warnings=""
19613  for warning in ignored-qualifiers; do
19614
19615  ac_var_match_word="no"
19616  for word1 in $CFLAGS; do
19617    for word2 in -Wno-$warning -W$warning; do
19618      if test "$word1" = "$word2"; then
19619        ac_var_match_word="yes"
19620      fi
19621    done
19622  done
19623
19624    if test "$ac_var_match_word" = "no"; then
19625      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19626    fi
19627  done
19628    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19629  squeeze tmp_CFLAGS
19630
19631
19632    ac_var_added_warnings=""
19633  for warning in vla; do
19634
19635  ac_var_match_word="no"
19636  for word1 in $CFLAGS; do
19637    for word2 in -Wno-$warning -W$warning; do
19638      if test "$word1" = "$word2"; then
19639        ac_var_match_word="yes"
19640      fi
19641    done
19642  done
19643
19644    if test "$ac_var_match_word" = "no"; then
19645      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19646    fi
19647  done
19648    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19649  squeeze tmp_CFLAGS
19650
19651          fi
19652          #
19653                    if test "$compiler_num" -ge "209"; then
19654
19655    ac_var_added_warnings=""
19656  for warning in sign-conversion; do
19657
19658  ac_var_match_word="no"
19659  for word1 in $CFLAGS; do
19660    for word2 in -Wno-$warning -W$warning; do
19661      if test "$word1" = "$word2"; then
19662        ac_var_match_word="yes"
19663      fi
19664    done
19665  done
19666
19667    if test "$ac_var_match_word" = "no"; then
19668      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19669    fi
19670  done
19671    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19672  squeeze tmp_CFLAGS
19673
19674            tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion"          # FIXME
19675
19676    ac_var_added_warnings=""
19677  for warning in shift-sign-overflow; do
19678
19679  ac_var_match_word="no"
19680  for word1 in $CFLAGS; do
19681    for word2 in -Wno-$warning -W$warning; do
19682      if test "$word1" = "$word2"; then
19683        ac_var_match_word="yes"
19684      fi
19685    done
19686  done
19687
19688    if test "$ac_var_match_word" = "no"; then
19689      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19690    fi
19691  done
19692    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19693  squeeze tmp_CFLAGS
19694
19695          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded])  # Not used because we cannot change public structs
19696          fi
19697          #
19698                    if test "$compiler_num" -ge "300"; then
19699
19700    ac_var_added_warnings=""
19701  for warning in language-extension-token; do
19702
19703  ac_var_match_word="no"
19704  for word1 in $CFLAGS; do
19705    for word2 in -Wno-$warning -W$warning; do
19706      if test "$word1" = "$word2"; then
19707        ac_var_match_word="yes"
19708      fi
19709    done
19710  done
19711
19712    if test "$ac_var_match_word" = "no"; then
19713      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19714    fi
19715  done
19716    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19717  squeeze tmp_CFLAGS
19718
19719            tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
19720          fi
19721          #
19722                    if test "$compiler_num" -ge "302"; then
19723
19724    ac_var_added_warnings=""
19725  for warning in enum-conversion; do
19726
19727  ac_var_match_word="no"
19728  for word1 in $CFLAGS; do
19729    for word2 in -Wno-$warning -W$warning; do
19730      if test "$word1" = "$word2"; then
19731        ac_var_match_word="yes"
19732      fi
19733    done
19734  done
19735
19736    if test "$ac_var_match_word" = "no"; then
19737      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19738    fi
19739  done
19740    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19741  squeeze tmp_CFLAGS
19742
19743
19744    ac_var_added_warnings=""
19745  for warning in sometimes-uninitialized; do
19746
19747  ac_var_match_word="no"
19748  for word1 in $CFLAGS; do
19749    for word2 in -Wno-$warning -W$warning; do
19750      if test "$word1" = "$word2"; then
19751        ac_var_match_word="yes"
19752      fi
19753    done
19754  done
19755
19756    if test "$ac_var_match_word" = "no"; then
19757      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19758    fi
19759  done
19760    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19761  squeeze tmp_CFLAGS
19762
19763            case $host_os in
19764            cygwin* | mingw*)
19765                                          ;;
19766            *)
19767
19768    ac_var_added_warnings=""
19769  for warning in missing-variable-declarations; do
19770
19771  ac_var_match_word="no"
19772  for word1 in $CFLAGS; do
19773    for word2 in -Wno-$warning -W$warning; do
19774      if test "$word1" = "$word2"; then
19775        ac_var_match_word="yes"
19776      fi
19777    done
19778  done
19779
19780    if test "$ac_var_match_word" = "no"; then
19781      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19782    fi
19783  done
19784    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19785  squeeze tmp_CFLAGS
19786
19787              ;;
19788            esac
19789          fi
19790          #
19791                    if test "$compiler_num" -ge "304"; then
19792
19793    ac_var_added_warnings=""
19794  for warning in header-guard; do
19795
19796  ac_var_match_word="no"
19797  for word1 in $CFLAGS; do
19798    for word2 in -Wno-$warning -W$warning; do
19799      if test "$word1" = "$word2"; then
19800        ac_var_match_word="yes"
19801      fi
19802    done
19803  done
19804
19805    if test "$ac_var_match_word" = "no"; then
19806      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19807    fi
19808  done
19809    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19810  squeeze tmp_CFLAGS
19811
19812
19813    ac_var_added_warnings=""
19814  for warning in unused-const-variable; do
19815
19816  ac_var_match_word="no"
19817  for word1 in $CFLAGS; do
19818    for word2 in -Wno-$warning -W$warning; do
19819      if test "$word1" = "$word2"; then
19820        ac_var_match_word="yes"
19821      fi
19822    done
19823  done
19824
19825    if test "$ac_var_match_word" = "no"; then
19826      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19827    fi
19828  done
19829    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19830  squeeze tmp_CFLAGS
19831
19832          fi
19833          #
19834                    if test "$compiler_num" -ge "305"; then
19835
19836    ac_var_added_warnings=""
19837  for warning in pragmas; do
19838
19839  ac_var_match_word="no"
19840  for word1 in $CFLAGS; do
19841    for word2 in -Wno-$warning -W$warning; do
19842      if test "$word1" = "$word2"; then
19843        ac_var_match_word="yes"
19844      fi
19845    done
19846  done
19847
19848    if test "$ac_var_match_word" = "no"; then
19849      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19850    fi
19851  done
19852    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19853  squeeze tmp_CFLAGS
19854
19855
19856    ac_var_added_warnings=""
19857  for warning in unreachable-code-break; do
19858
19859  ac_var_match_word="no"
19860  for word1 in $CFLAGS; do
19861    for word2 in -Wno-$warning -W$warning; do
19862      if test "$word1" = "$word2"; then
19863        ac_var_match_word="yes"
19864      fi
19865    done
19866  done
19867
19868    if test "$ac_var_match_word" = "no"; then
19869      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19870    fi
19871  done
19872    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19873  squeeze tmp_CFLAGS
19874
19875          fi
19876          #
19877                    if test "$compiler_num" -ge "306"; then
19878
19879    ac_var_added_warnings=""
19880  for warning in double-promotion; do
19881
19882  ac_var_match_word="no"
19883  for word1 in $CFLAGS; do
19884    for word2 in -Wno-$warning -W$warning; do
19885      if test "$word1" = "$word2"; then
19886        ac_var_match_word="yes"
19887      fi
19888    done
19889  done
19890
19891    if test "$ac_var_match_word" = "no"; then
19892      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19893    fi
19894  done
19895    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19896  squeeze tmp_CFLAGS
19897
19898          fi
19899          #
19900                    if test "$compiler_num" -ge "309"; then
19901
19902    ac_var_added_warnings=""
19903  for warning in comma; do
19904
19905  ac_var_match_word="no"
19906  for word1 in $CFLAGS; do
19907    for word2 in -Wno-$warning -W$warning; do
19908      if test "$word1" = "$word2"; then
19909        ac_var_match_word="yes"
19910      fi
19911    done
19912  done
19913
19914    if test "$ac_var_match_word" = "no"; then
19915      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19916    fi
19917  done
19918    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19919  squeeze tmp_CFLAGS
19920
19921            # avoid the varargs warning, fixed in 4.0
19922            # https://bugs.llvm.org/show_bug.cgi?id=29140
19923            if test "$compiler_num" -lt "400"; then
19924              tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
19925            fi
19926          fi
19927                    if test "$compiler_num" -ge "700"; then
19928
19929    ac_var_added_warnings=""
19930  for warning in assign-enum; do
19931
19932  ac_var_match_word="no"
19933  for word1 in $CFLAGS; do
19934    for word2 in -Wno-$warning -W$warning; do
19935      if test "$word1" = "$word2"; then
19936        ac_var_match_word="yes"
19937      fi
19938    done
19939  done
19940
19941    if test "$ac_var_match_word" = "no"; then
19942      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19943    fi
19944  done
19945    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19946  squeeze tmp_CFLAGS
19947
19948
19949    ac_var_added_warnings=""
19950  for warning in extra-semi-stmt; do
19951
19952  ac_var_match_word="no"
19953  for word1 in $CFLAGS; do
19954    for word2 in -Wno-$warning -W$warning; do
19955      if test "$word1" = "$word2"; then
19956        ac_var_match_word="yes"
19957      fi
19958    done
19959  done
19960
19961    if test "$ac_var_match_word" = "no"; then
19962      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19963    fi
19964  done
19965    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19966  squeeze tmp_CFLAGS
19967
19968          fi
19969                    if test "$compiler_num" -ge "1000"; then
19970            tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough"  # we have silencing markup for clang 10.0 and above only
19971          fi
19972        fi
19973                                tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
19974        ;;
19975        #
19976      DEC_C)
19977        #
19978        if test "$want_warnings" = "yes"; then
19979                    tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
19980        fi
19981        ;;
19982        #
19983      GNU_C)
19984        #
19985        if test "$want_warnings" = "yes"; then
19986          #
19987                              if test "x$cross_compiling" != "xyes" ||
19988            test "$compiler_num" -ge "300"; then
19989            tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19990          fi
19991          #
19992
19993    ac_var_added_warnings=""
19994  for warning in all; do
19995
19996  ac_var_match_word="no"
19997  for word1 in $CFLAGS; do
19998    for word2 in -Wno-$warning -W$warning; do
19999      if test "$word1" = "$word2"; then
20000        ac_var_match_word="yes"
20001      fi
20002    done
20003  done
20004
20005    if test "$ac_var_match_word" = "no"; then
20006      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20007    fi
20008  done
20009    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20010  squeeze tmp_CFLAGS
20011
20012          tmp_CFLAGS="$tmp_CFLAGS -W"
20013          #
20014                    if test "$compiler_num" -ge "104"; then
20015
20016    ac_var_added_warnings=""
20017  for warning in pointer-arith write-strings; do
20018
20019  ac_var_match_word="no"
20020  for word1 in $CFLAGS; do
20021    for word2 in -Wno-$warning -W$warning; do
20022      if test "$word1" = "$word2"; then
20023        ac_var_match_word="yes"
20024      fi
20025    done
20026  done
20027
20028    if test "$ac_var_match_word" = "no"; then
20029      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20030    fi
20031  done
20032    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20033  squeeze tmp_CFLAGS
20034
20035                        if test "x$cross_compiling" != "xyes" ||
20036              test "$compiler_num" -ge "300"; then
20037
20038    ac_var_added_warnings=""
20039  for warning in unused shadow; do
20040
20041  ac_var_match_word="no"
20042  for word1 in $CFLAGS; do
20043    for word2 in -Wno-$warning -W$warning; do
20044      if test "$word1" = "$word2"; then
20045        ac_var_match_word="yes"
20046      fi
20047    done
20048  done
20049
20050    if test "$ac_var_match_word" = "no"; then
20051      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20052    fi
20053  done
20054    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20055  squeeze tmp_CFLAGS
20056
20057            fi
20058          fi
20059          #
20060                    if test "$compiler_num" -ge "207"; then
20061
20062    ac_var_added_warnings=""
20063  for warning in inline nested-externs; do
20064
20065  ac_var_match_word="no"
20066  for word1 in $CFLAGS; do
20067    for word2 in -Wno-$warning -W$warning; do
20068      if test "$word1" = "$word2"; then
20069        ac_var_match_word="yes"
20070      fi
20071    done
20072  done
20073
20074    if test "$ac_var_match_word" = "no"; then
20075      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20076    fi
20077  done
20078    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20079  squeeze tmp_CFLAGS
20080
20081                        if test "x$cross_compiling" != "xyes" ||
20082              test "$compiler_num" -ge "300"; then
20083
20084    ac_var_added_warnings=""
20085  for warning in missing-declarations; do
20086
20087  ac_var_match_word="no"
20088  for word1 in $CFLAGS; do
20089    for word2 in -Wno-$warning -W$warning; do
20090      if test "$word1" = "$word2"; then
20091        ac_var_match_word="yes"
20092      fi
20093    done
20094  done
20095
20096    if test "$ac_var_match_word" = "no"; then
20097      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20098    fi
20099  done
20100    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20101  squeeze tmp_CFLAGS
20102
20103
20104    ac_var_added_warnings=""
20105  for warning in missing-prototypes; do
20106
20107  ac_var_match_word="no"
20108  for word1 in $CFLAGS; do
20109    for word2 in -Wno-$warning -W$warning; do
20110      if test "$word1" = "$word2"; then
20111        ac_var_match_word="yes"
20112      fi
20113    done
20114  done
20115
20116    if test "$ac_var_match_word" = "no"; then
20117      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20118    fi
20119  done
20120    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20121  squeeze tmp_CFLAGS
20122
20123            fi
20124          fi
20125          #
20126                    if test "$compiler_num" -ge "295"; then
20127            tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
20128
20129    ac_var_added_warnings=""
20130  for warning in bad-function-cast; do
20131
20132  ac_var_match_word="no"
20133  for word1 in $CFLAGS; do
20134    for word2 in -Wno-$warning -W$warning; do
20135      if test "$word1" = "$word2"; then
20136        ac_var_match_word="yes"
20137      fi
20138    done
20139  done
20140
20141    if test "$ac_var_match_word" = "no"; then
20142      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20143    fi
20144  done
20145    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20146  squeeze tmp_CFLAGS
20147
20148          fi
20149          #
20150                    if test "$compiler_num" -ge "296"; then
20151
20152    ac_var_added_warnings=""
20153  for warning in float-equal; do
20154
20155  ac_var_match_word="no"
20156  for word1 in $CFLAGS; do
20157    for word2 in -Wno-$warning -W$warning; do
20158      if test "$word1" = "$word2"; then
20159        ac_var_match_word="yes"
20160      fi
20161    done
20162  done
20163
20164    if test "$ac_var_match_word" = "no"; then
20165      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20166    fi
20167  done
20168    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20169  squeeze tmp_CFLAGS
20170
20171            tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
20172
20173    ac_var_added_warnings=""
20174  for warning in sign-compare; do
20175
20176  ac_var_match_word="no"
20177  for word1 in $CFLAGS; do
20178    for word2 in -Wno-$warning -W$warning; do
20179      if test "$word1" = "$word2"; then
20180        ac_var_match_word="yes"
20181      fi
20182    done
20183  done
20184
20185    if test "$ac_var_match_word" = "no"; then
20186      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20187    fi
20188  done
20189    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20190  squeeze tmp_CFLAGS
20191
20192
20193    ac_var_added_warnings=""
20194  for warning in undef; do
20195
20196  ac_var_match_word="no"
20197  for word1 in $CFLAGS; do
20198    for word2 in -Wno-$warning -W$warning; do
20199      if test "$word1" = "$word2"; then
20200        ac_var_match_word="yes"
20201      fi
20202    done
20203  done
20204
20205    if test "$ac_var_match_word" = "no"; then
20206      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20207    fi
20208  done
20209    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20210  squeeze tmp_CFLAGS
20211
20212          fi
20213          #
20214                    if test "$compiler_num" -ge "297"; then
20215            tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
20216          fi
20217          #
20218                    if test "$compiler_num" -ge "300"; then
20219                                                            tmp_CFLAGS="$tmp_CFLAGS"
20220          fi
20221          #
20222                    if test "$compiler_num" -ge "303"; then
20223
20224    ac_var_added_warnings=""
20225  for warning in endif-labels strict-prototypes; do
20226
20227  ac_var_match_word="no"
20228  for word1 in $CFLAGS; do
20229    for word2 in -Wno-$warning -W$warning; do
20230      if test "$word1" = "$word2"; then
20231        ac_var_match_word="yes"
20232      fi
20233    done
20234  done
20235
20236    if test "$ac_var_match_word" = "no"; then
20237      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20238    fi
20239  done
20240    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20241  squeeze tmp_CFLAGS
20242
20243          fi
20244          #
20245                    if test "$compiler_num" -ge "304"; then
20246
20247    ac_var_added_warnings=""
20248  for warning in declaration-after-statement; do
20249
20250  ac_var_match_word="no"
20251  for word1 in $CFLAGS; do
20252    for word2 in -Wno-$warning -W$warning; do
20253      if test "$word1" = "$word2"; then
20254        ac_var_match_word="yes"
20255      fi
20256    done
20257  done
20258
20259    if test "$ac_var_match_word" = "no"; then
20260      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20261    fi
20262  done
20263    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20264  squeeze tmp_CFLAGS
20265
20266
20267    ac_var_added_warnings=""
20268  for warning in old-style-definition; do
20269
20270  ac_var_match_word="no"
20271  for word1 in $CFLAGS; do
20272    for word2 in -Wno-$warning -W$warning; do
20273      if test "$word1" = "$word2"; then
20274        ac_var_match_word="yes"
20275      fi
20276    done
20277  done
20278
20279    if test "$ac_var_match_word" = "no"; then
20280      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20281    fi
20282  done
20283    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20284  squeeze tmp_CFLAGS
20285
20286          fi
20287          #
20288                    if test "$compiler_num" -ge "400"; then
20289            tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
20290          fi
20291          #
20292                    if test "$compiler_num" -ge "401"; then
20293
20294    ac_var_added_warnings=""
20295  for warning in attributes; do
20296
20297  ac_var_match_word="no"
20298  for word1 in $CFLAGS; do
20299    for word2 in -Wno-$warning -W$warning; do
20300      if test "$word1" = "$word2"; then
20301        ac_var_match_word="yes"
20302      fi
20303    done
20304  done
20305
20306    if test "$ac_var_match_word" = "no"; then
20307      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20308    fi
20309  done
20310    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20311  squeeze tmp_CFLAGS
20312
20313
20314    ac_var_added_warnings=""
20315  for warning in div-by-zero format-security; do
20316
20317  ac_var_match_word="no"
20318  for word1 in $CFLAGS; do
20319    for word2 in -Wno-$warning -W$warning; do
20320      if test "$word1" = "$word2"; then
20321        ac_var_match_word="yes"
20322      fi
20323    done
20324  done
20325
20326    if test "$ac_var_match_word" = "no"; then
20327      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20328    fi
20329  done
20330    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20331  squeeze tmp_CFLAGS
20332
20333
20334    ac_var_added_warnings=""
20335  for warning in missing-field-initializers; do
20336
20337  ac_var_match_word="no"
20338  for word1 in $CFLAGS; do
20339    for word2 in -Wno-$warning -W$warning; do
20340      if test "$word1" = "$word2"; then
20341        ac_var_match_word="yes"
20342      fi
20343    done
20344  done
20345
20346    if test "$ac_var_match_word" = "no"; then
20347      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20348    fi
20349  done
20350    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20351  squeeze tmp_CFLAGS
20352
20353            case $host in
20354              *-*-msys*)
20355                ;;
20356              *)
20357
20358    ac_var_added_warnings=""
20359  for warning in missing-noreturn; do
20360
20361  ac_var_match_word="no"
20362  for word1 in $CFLAGS; do
20363    for word2 in -Wno-$warning -W$warning; do
20364      if test "$word1" = "$word2"; then
20365        ac_var_match_word="yes"
20366      fi
20367    done
20368  done
20369
20370    if test "$ac_var_match_word" = "no"; then
20371      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20372    fi
20373  done
20374    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20375  squeeze tmp_CFLAGS
20376  # Seen to clash with libtool-generated stub code
20377                ;;
20378            esac
20379
20380    ac_var_added_warnings=""
20381  for warning in unreachable-code unused-parameter; do
20382
20383  ac_var_match_word="no"
20384  for word1 in $CFLAGS; do
20385    for word2 in -Wno-$warning -W$warning; do
20386      if test "$word1" = "$word2"; then
20387        ac_var_match_word="yes"
20388      fi
20389    done
20390  done
20391
20392    if test "$ac_var_match_word" = "no"; then
20393      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20394    fi
20395  done
20396    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20397  squeeze tmp_CFLAGS
20398
20399          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded])           # Not used because we cannot change public structs
20400
20401    ac_var_added_warnings=""
20402  for warning in pragmas; do
20403
20404  ac_var_match_word="no"
20405  for word1 in $CFLAGS; do
20406    for word2 in -Wno-$warning -W$warning; do
20407      if test "$word1" = "$word2"; then
20408        ac_var_match_word="yes"
20409      fi
20410    done
20411  done
20412
20413    if test "$ac_var_match_word" = "no"; then
20414      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20415    fi
20416  done
20417    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20418  squeeze tmp_CFLAGS
20419
20420
20421    ac_var_added_warnings=""
20422  for warning in redundant-decls; do
20423
20424  ac_var_match_word="no"
20425  for word1 in $CFLAGS; do
20426    for word2 in -Wno-$warning -W$warning; do
20427      if test "$word1" = "$word2"; then
20428        ac_var_match_word="yes"
20429      fi
20430    done
20431  done
20432
20433    if test "$ac_var_match_word" = "no"; then
20434      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20435    fi
20436  done
20437    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20438  squeeze tmp_CFLAGS
20439
20440          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum])      # Not used because this basically disallows default case
20441          # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros])    # Not practical
20442          fi
20443          #
20444                    if test "$compiler_num" -ge "402"; then
20445
20446    ac_var_added_warnings=""
20447  for warning in cast-align; do
20448
20449  ac_var_match_word="no"
20450  for word1 in $CFLAGS; do
20451    for word2 in -Wno-$warning -W$warning; do
20452      if test "$word1" = "$word2"; then
20453        ac_var_match_word="yes"
20454      fi
20455    done
20456  done
20457
20458    if test "$ac_var_match_word" = "no"; then
20459      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20460    fi
20461  done
20462    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20463  squeeze tmp_CFLAGS
20464
20465          fi
20466          #
20467                    if test "$compiler_num" -ge "403"; then
20468
20469    ac_var_added_warnings=""
20470  for warning in address; do
20471
20472  ac_var_match_word="no"
20473  for word1 in $CFLAGS; do
20474    for word2 in -Wno-$warning -W$warning; do
20475      if test "$word1" = "$word2"; then
20476        ac_var_match_word="yes"
20477      fi
20478    done
20479  done
20480
20481    if test "$ac_var_match_word" = "no"; then
20482      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20483    fi
20484  done
20485    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20486  squeeze tmp_CFLAGS
20487
20488
20489    ac_var_added_warnings=""
20490  for warning in type-limits old-style-declaration; do
20491
20492  ac_var_match_word="no"
20493  for word1 in $CFLAGS; do
20494    for word2 in -Wno-$warning -W$warning; do
20495      if test "$word1" = "$word2"; then
20496        ac_var_match_word="yes"
20497      fi
20498    done
20499  done
20500
20501    if test "$ac_var_match_word" = "no"; then
20502      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20503    fi
20504  done
20505    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20506  squeeze tmp_CFLAGS
20507
20508
20509    ac_var_added_warnings=""
20510  for warning in missing-parameter-type empty-body; do
20511
20512  ac_var_match_word="no"
20513  for word1 in $CFLAGS; do
20514    for word2 in -Wno-$warning -W$warning; do
20515      if test "$word1" = "$word2"; then
20516        ac_var_match_word="yes"
20517      fi
20518    done
20519  done
20520
20521    if test "$ac_var_match_word" = "no"; then
20522      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20523    fi
20524  done
20525    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20526  squeeze tmp_CFLAGS
20527
20528
20529    ac_var_added_warnings=""
20530  for warning in clobbered ignored-qualifiers; do
20531
20532  ac_var_match_word="no"
20533  for word1 in $CFLAGS; do
20534    for word2 in -Wno-$warning -W$warning; do
20535      if test "$word1" = "$word2"; then
20536        ac_var_match_word="yes"
20537      fi
20538    done
20539  done
20540
20541    if test "$ac_var_match_word" = "no"; then
20542      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20543    fi
20544  done
20545    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20546  squeeze tmp_CFLAGS
20547
20548
20549    ac_var_added_warnings=""
20550  for warning in conversion trampolines; do
20551
20552  ac_var_match_word="no"
20553  for word1 in $CFLAGS; do
20554    for word2 in -Wno-$warning -W$warning; do
20555      if test "$word1" = "$word2"; then
20556        ac_var_match_word="yes"
20557      fi
20558    done
20559  done
20560
20561    if test "$ac_var_match_word" = "no"; then
20562      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20563    fi
20564  done
20565    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20566  squeeze tmp_CFLAGS
20567
20568
20569    ac_var_added_warnings=""
20570  for warning in sign-conversion; do
20571
20572  ac_var_match_word="no"
20573  for word1 in $CFLAGS; do
20574    for word2 in -Wno-$warning -W$warning; do
20575      if test "$word1" = "$word2"; then
20576        ac_var_match_word="yes"
20577      fi
20578    done
20579  done
20580
20581    if test "$ac_var_match_word" = "no"; then
20582      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20583    fi
20584  done
20585    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20586  squeeze tmp_CFLAGS
20587
20588            tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion"          # FIXME
20589
20590    ac_var_added_warnings=""
20591  for warning in vla; do
20592
20593  ac_var_match_word="no"
20594  for word1 in $CFLAGS; do
20595    for word2 in -Wno-$warning -W$warning; do
20596      if test "$word1" = "$word2"; then
20597        ac_var_match_word="yes"
20598      fi
20599    done
20600  done
20601
20602    if test "$ac_var_match_word" = "no"; then
20603      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20604    fi
20605  done
20606    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20607  squeeze tmp_CFLAGS
20608
20609                        tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
20610          fi
20611          #
20612                    if test "$compiler_num" -ge "405"; then
20613                        if test "$curl_cv_native_windows" = "yes"; then
20614              tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
20615            fi
20616          fi
20617          #
20618                    if test "$compiler_num" -ge "406"; then
20619
20620    ac_var_added_warnings=""
20621  for warning in double-promotion; do
20622
20623  ac_var_match_word="no"
20624  for word1 in $CFLAGS; do
20625    for word2 in -Wno-$warning -W$warning; do
20626      if test "$word1" = "$word2"; then
20627        ac_var_match_word="yes"
20628      fi
20629    done
20630  done
20631
20632    if test "$ac_var_match_word" = "no"; then
20633      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20634    fi
20635  done
20636    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20637  squeeze tmp_CFLAGS
20638
20639          fi
20640          #
20641                    if test "$compiler_num" -ge "408"; then
20642            tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
20643          fi
20644          #
20645                    if test "$compiler_num" -ge "500"; then
20646            tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
20647          fi
20648          #
20649                    if test "$compiler_num" -ge "600"; then
20650
20651    ac_var_added_warnings=""
20652  for warning in shift-negative-value; do
20653
20654  ac_var_match_word="no"
20655  for word1 in $CFLAGS; do
20656    for word2 in -Wno-$warning -W$warning; do
20657      if test "$word1" = "$word2"; then
20658        ac_var_match_word="yes"
20659      fi
20660    done
20661  done
20662
20663    if test "$ac_var_match_word" = "no"; then
20664      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20665    fi
20666  done
20667    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20668  squeeze tmp_CFLAGS
20669
20670            tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
20671
20672    ac_var_added_warnings=""
20673  for warning in null-dereference; do
20674
20675  ac_var_match_word="no"
20676  for word1 in $CFLAGS; do
20677    for word2 in -Wno-$warning -W$warning; do
20678      if test "$word1" = "$word2"; then
20679        ac_var_match_word="yes"
20680      fi
20681    done
20682  done
20683
20684    if test "$ac_var_match_word" = "no"; then
20685      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20686    fi
20687  done
20688    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20689  squeeze tmp_CFLAGS
20690
20691            tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
20692
20693    ac_var_added_warnings=""
20694  for warning in duplicated-cond; do
20695
20696  ac_var_match_word="no"
20697  for word1 in $CFLAGS; do
20698    for word2 in -Wno-$warning -W$warning; do
20699      if test "$word1" = "$word2"; then
20700        ac_var_match_word="yes"
20701      fi
20702    done
20703  done
20704
20705    if test "$ac_var_match_word" = "no"; then
20706      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20707    fi
20708  done
20709    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20710  squeeze tmp_CFLAGS
20711
20712
20713    ac_var_added_warnings=""
20714  for warning in unused-const-variable; do
20715
20716  ac_var_match_word="no"
20717  for word1 in $CFLAGS; do
20718    for word2 in -Wno-$warning -W$warning; do
20719      if test "$word1" = "$word2"; then
20720        ac_var_match_word="yes"
20721      fi
20722    done
20723  done
20724
20725    if test "$ac_var_match_word" = "no"; then
20726      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20727    fi
20728  done
20729    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20730  squeeze tmp_CFLAGS
20731
20732          fi
20733          #
20734                    if test "$compiler_num" -ge "700"; then
20735
20736    ac_var_added_warnings=""
20737  for warning in duplicated-branches; do
20738
20739  ac_var_match_word="no"
20740  for word1 in $CFLAGS; do
20741    for word2 in -Wno-$warning -W$warning; do
20742      if test "$word1" = "$word2"; then
20743        ac_var_match_word="yes"
20744      fi
20745    done
20746  done
20747
20748    if test "$ac_var_match_word" = "no"; then
20749      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20750    fi
20751  done
20752    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20753  squeeze tmp_CFLAGS
20754
20755
20756    ac_var_added_warnings=""
20757  for warning in restrict; do
20758
20759  ac_var_match_word="no"
20760  for word1 in $CFLAGS; do
20761    for word2 in -Wno-$warning -W$warning; do
20762      if test "$word1" = "$word2"; then
20763        ac_var_match_word="yes"
20764      fi
20765    done
20766  done
20767
20768    if test "$ac_var_match_word" = "no"; then
20769      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20770    fi
20771  done
20772    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20773  squeeze tmp_CFLAGS
20774
20775
20776    ac_var_added_warnings=""
20777  for warning in alloc-zero; do
20778
20779  ac_var_match_word="no"
20780  for word1 in $CFLAGS; do
20781    for word2 in -Wno-$warning -W$warning; do
20782      if test "$word1" = "$word2"; then
20783        ac_var_match_word="yes"
20784      fi
20785    done
20786  done
20787
20788    if test "$ac_var_match_word" = "no"; then
20789      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20790    fi
20791  done
20792    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20793  squeeze tmp_CFLAGS
20794
20795            tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
20796            tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
20797            tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough"
20798          fi
20799          #
20800                    if test "$compiler_num" -ge "1000"; then
20801
20802    ac_var_added_warnings=""
20803  for warning in arith-conversion; do
20804
20805  ac_var_match_word="no"
20806  for word1 in $CFLAGS; do
20807    for word2 in -Wno-$warning -W$warning; do
20808      if test "$word1" = "$word2"; then
20809        ac_var_match_word="yes"
20810      fi
20811    done
20812  done
20813
20814    if test "$ac_var_match_word" = "no"; then
20815      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20816    fi
20817  done
20818    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20819  squeeze tmp_CFLAGS
20820
20821
20822    ac_var_added_warnings=""
20823  for warning in enum-conversion; do
20824
20825  ac_var_match_word="no"
20826  for word1 in $CFLAGS; do
20827    for word2 in -Wno-$warning -W$warning; do
20828      if test "$word1" = "$word2"; then
20829        ac_var_match_word="yes"
20830      fi
20831    done
20832  done
20833
20834    if test "$ac_var_match_word" = "no"; then
20835      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20836    fi
20837  done
20838    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20839  squeeze tmp_CFLAGS
20840
20841          fi
20842          #
20843        fi
20844        #
20845                if test "$compiler_num" -ge "300"; then
20846          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
20847        else
20848                              if test "x$cross_compiling" = "xyes"; then
20849            if test "$compiler_num" -ge "104"; then
20850                            tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
20851            fi
20852            if test "$compiler_num" -ge "207"; then
20853                            tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
20854              tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
20855            fi
20856          fi
20857        fi
20858        ;;
20859        #
20860      HP_UX_C)
20861        #
20862        if test "$want_warnings" = "yes"; then
20863                    tmp_CFLAGS="$tmp_CFLAGS +w1"
20864        fi
20865        ;;
20866        #
20867      IBM_C)
20868        #
20869                tmp_CFLAGS="$tmp_CFLAGS"
20870        ;;
20871        #
20872      INTEL_UNIX_C)
20873        #
20874        if test "$want_warnings" = "yes"; then
20875          if test "$compiler_num" -gt "600"; then
20876                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
20877                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
20878                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
20879                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
20880                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
20881                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
20882                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
20883                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
20884                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
20885                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
20886                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
20887          fi
20888        fi
20889                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
20890                tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
20891                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
20892        ;;
20893        #
20894      INTEL_WINDOWS_C)
20895        #
20896                tmp_CFLAGS="$tmp_CFLAGS"
20897        ;;
20898        #
20899      SGI_MIPS_C)
20900        #
20901        if test "$want_warnings" = "yes"; then
20902                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20903        fi
20904        ;;
20905        #
20906      SGI_MIPSPRO_C)
20907        #
20908        if test "$want_warnings" = "yes"; then
20909                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20910                              tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
20911        fi
20912        ;;
20913        #
20914      SUNPRO_C)
20915        #
20916        if test "$want_warnings" = "yes"; then
20917                    tmp_CFLAGS="$tmp_CFLAGS -v"
20918        fi
20919        ;;
20920        #
20921      TINY_C)
20922        #
20923        if test "$want_warnings" = "yes"; then
20924
20925    ac_var_added_warnings=""
20926  for warning in all; do
20927
20928  ac_var_match_word="no"
20929  for word1 in $CFLAGS; do
20930    for word2 in -Wno-$warning -W$warning; do
20931      if test "$word1" = "$word2"; then
20932        ac_var_match_word="yes"
20933      fi
20934    done
20935  done
20936
20937    if test "$ac_var_match_word" = "no"; then
20938      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20939    fi
20940  done
20941    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20942  squeeze tmp_CFLAGS
20943
20944
20945    ac_var_added_warnings=""
20946  for warning in write-strings; do
20947
20948  ac_var_match_word="no"
20949  for word1 in $CFLAGS; do
20950    for word2 in -Wno-$warning -W$warning; do
20951      if test "$word1" = "$word2"; then
20952        ac_var_match_word="yes"
20953      fi
20954    done
20955  done
20956
20957    if test "$ac_var_match_word" = "no"; then
20958      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20959    fi
20960  done
20961    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20962  squeeze tmp_CFLAGS
20963
20964
20965    ac_var_added_warnings=""
20966  for warning in unsupported; do
20967
20968  ac_var_match_word="no"
20969  for word1 in $CFLAGS; do
20970    for word2 in -Wno-$warning -W$warning; do
20971      if test "$word1" = "$word2"; then
20972        ac_var_match_word="yes"
20973      fi
20974    done
20975  done
20976
20977    if test "$ac_var_match_word" = "no"; then
20978      ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20979    fi
20980  done
20981    tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20982  squeeze tmp_CFLAGS
20983
20984        fi
20985        ;;
20986        #
20987    esac
20988    #
20989    squeeze tmp_CPPFLAGS
20990    squeeze tmp_CFLAGS
20991    #
20992    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20993      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
20994printf %s "checking if compiler accepts strict warning options... " >&6; }
20995      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20996      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20997      squeeze CPPFLAGS
20998      squeeze CFLAGS
20999
21000    tmp_compiler_works="unknown"
21001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21002/* end confdefs.h.  */
21003
21004
21005
21006int main (void)
21007{
21008
21009      int i = 1;
21010      return i;
21011
21012 ;
21013 return 0;
21014}
21015
21016_ACEOF
21017if ac_fn_c_try_compile "$LINENO"
21018then :
21019
21020    tmp_compiler_works="yes"
21021
21022else $as_nop
21023
21024    tmp_compiler_works="no"
21025    echo " " >&6
21026    sed 's/^/cc-fail: /' conftest.err >&6
21027    echo " " >&6
21028
21029fi
21030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21031    if test "$tmp_compiler_works" = "yes"; then
21032    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21033/* end confdefs.h.  */
21034
21035
21036
21037int main (void)
21038{
21039
21040        int i = 1;
21041        return i;
21042
21043 ;
21044 return 0;
21045}
21046
21047_ACEOF
21048if ac_fn_c_try_link "$LINENO"
21049then :
21050
21051      tmp_compiler_works="yes"
21052
21053else $as_nop
21054
21055      tmp_compiler_works="no"
21056      echo " " >&6
21057      sed 's/^/link-fail: /' conftest.err >&6
21058      echo " " >&6
21059
21060fi
21061rm -f core conftest.err conftest.$ac_objext conftest.beam \
21062    conftest$ac_exeext conftest.$ac_ext
21063  fi
21064    if test "x$cross_compiling" != "xyes" &&
21065    test "$tmp_compiler_works" = "yes"; then
21066
21067   case $host_os in
21068     darwin*)
21069      if test "$cross_compiling" = yes
21070then :
21071  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21072printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21073as_fn_error $? "cannot run test program while cross compiling
21074See \`config.log' for more details" "$LINENO" 5; }
21075else $as_nop
21076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077/* end confdefs.h.  */
21078
21079
21080#       ifdef __STDC__
21081#         include <stdlib.h>
21082#       endif
21083
21084int main (void)
21085{
21086
21087        int i = 0;
21088        exit(i);
21089
21090 ;
21091 return 0;
21092}
21093
21094_ACEOF
21095if ac_fn_c_try_run "$LINENO"
21096then :
21097  tmp_compiler_works="yes"
21098
21099else $as_nop
21100  tmp_compiler_works="no"
21101      echo " " >&6
21102      echo "run-fail: test program exited with status $ac_status" >&6
21103      echo " " >&6
21104
21105fi
21106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21107  conftest.$ac_objext conftest.beam conftest.$ac_ext
21108fi
21109
21110     ;;
21111     *)
21112      oldcc=$CC
21113      old=$LD_LIBRARY_PATH
21114      CC="sh ./run-compiler"
21115      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21116      export LD_LIBRARY_PATH
21117      if test "$cross_compiling" = yes
21118then :
21119  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21120printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21121as_fn_error $? "cannot run test program while cross compiling
21122See \`config.log' for more details" "$LINENO" 5; }
21123else $as_nop
21124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21125/* end confdefs.h.  */
21126
21127
21128#       ifdef __STDC__
21129#         include <stdlib.h>
21130#       endif
21131
21132int main (void)
21133{
21134
21135        int i = 0;
21136        exit(i);
21137
21138 ;
21139 return 0;
21140}
21141
21142_ACEOF
21143if ac_fn_c_try_run "$LINENO"
21144then :
21145  tmp_compiler_works="yes"
21146
21147else $as_nop
21148  tmp_compiler_works="no"
21149      echo " " >&6
21150      echo "run-fail: test program exited with status $ac_status" >&6
21151      echo " " >&6
21152
21153fi
21154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21155  conftest.$ac_objext conftest.beam conftest.$ac_ext
21156fi
21157
21158      LD_LIBRARY_PATH=$old # restore
21159      CC=$oldcc
21160     ;;
21161   esac
21162
21163  fi
21164    if test "$tmp_compiler_works" = "yes"; then
21165
21166        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21167printf "%s\n" "yes" >&6; }
21168        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21169printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21170
21171  else
21172
21173        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21174printf "%s\n" "no" >&6; }
21175        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21176printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21177                CPPFLAGS="$tmp_save_CPPFLAGS"
21178        CFLAGS="$tmp_save_CFLAGS"
21179
21180  fi
21181
21182    fi
21183    #
21184  fi
21185
21186
21187if test "$compiler_id" = "INTEL_UNIX_C"; then
21188  #
21189  if test "$compiler_num" -ge "1000"; then
21190        CFLAGS="$CFLAGS -shared-intel"
21191  elif test "$compiler_num" -ge "900"; then
21192        CFLAGS="$CFLAGS -i-dynamic"
21193  fi
21194  #
21195fi
21196
21197CURL_CFLAG_EXTRAS=""
21198if test X"$want_werror" = Xyes; then
21199  CURL_CFLAG_EXTRAS="-Werror"
21200  if test "$compiler_id" = "GNU_C"; then
21201            if test "$compiler_num" -ge "500"; then
21202      CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
21203    fi
21204  fi
21205fi
21206
21207
21208
21209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
21210printf %s "checking if compiler halts on compilation errors... " >&6; }
21211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21212/* end confdefs.h.  */
21213
21214
21215
21216int main (void)
21217{
21218
21219      force compilation error
21220
21221 ;
21222 return 0;
21223}
21224
21225_ACEOF
21226if ac_fn_c_try_compile "$LINENO"
21227then :
21228
21229    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21230printf "%s\n" "no" >&6; }
21231    as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
21232
21233else $as_nop
21234
21235    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21236printf "%s\n" "yes" >&6; }
21237
21238fi
21239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21240
21241
21242    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
21243printf %s "checking if compiler halts on negative sized arrays... " >&6; }
21244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245/* end confdefs.h.  */
21246
21247
21248      typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
21249
21250int main (void)
21251{
21252
21253      bad_t dummy;
21254
21255 ;
21256 return 0;
21257}
21258
21259_ACEOF
21260if ac_fn_c_try_compile "$LINENO"
21261then :
21262
21263    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21264printf "%s\n" "no" >&6; }
21265    as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
21266
21267else $as_nop
21268
21269    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21270printf "%s\n" "yes" >&6; }
21271
21272fi
21273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21274
21275
21276    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
21277printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
21278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21279/* end confdefs.h.  */
21280
21281
21282#     include <stdlib.h>
21283      int rand(int n);
21284      int rand(int n)
21285      {
21286        if(n)
21287          return ++n;
21288        else
21289          return n;
21290      }
21291
21292int main (void)
21293{
21294
21295      int i[2]={0,0};
21296      int j = rand(i[0]);
21297      if(j)
21298        return j;
21299
21300 ;
21301 return 0;
21302}
21303
21304_ACEOF
21305if ac_fn_c_try_compile "$LINENO"
21306then :
21307
21308    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21309printf "%s\n" "no" >&6; }
21310    as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
21311
21312else $as_nop
21313
21314    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21315printf "%s\n" "yes" >&6; }
21316
21317fi
21318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21319
21320
21321      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
21322printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
21323  supports_symbol_hiding="no"
21324  symbol_hiding_CFLAGS=""
21325  symbol_hiding_EXTERN=""
21326  tmp_CFLAGS=""
21327  tmp_EXTERN=""
21328  case "$compiler_id" in
21329    CLANG)
21330            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21331      tmp_CFLAGS="-fvisibility=hidden"
21332      supports_symbol_hiding="yes"
21333      ;;
21334    GNU_C)
21335            if test "$compiler_num" -ge "304"; then
21336        if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
21337          tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21338          tmp_CFLAGS="-fvisibility=hidden"
21339          supports_symbol_hiding="yes"
21340        fi
21341      fi
21342      ;;
21343    INTEL_UNIX_C)
21344            if test "$compiler_num" -ge "900"; then
21345        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21346          tmp_save_CFLAGS="$CFLAGS"
21347          CFLAGS="$CFLAGS -fvisibility=hidden"
21348          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21349/* end confdefs.h.  */
21350
21351
21352#             include <stdio.h>
21353
21354int main (void)
21355{
21356
21357              printf("icc fvisibility bug test");
21358
21359 ;
21360 return 0;
21361}
21362
21363_ACEOF
21364if ac_fn_c_try_link "$LINENO"
21365then :
21366
21367            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21368            tmp_CFLAGS="-fvisibility=hidden"
21369            supports_symbol_hiding="yes"
21370
21371fi
21372rm -f core conftest.err conftest.$ac_objext conftest.beam \
21373    conftest$ac_exeext conftest.$ac_ext
21374          CFLAGS="$tmp_save_CFLAGS"
21375        fi
21376      fi
21377      ;;
21378    SUNPRO_C)
21379      if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
21380        tmp_EXTERN="__global"
21381        tmp_CFLAGS="-xldscope=hidden"
21382        supports_symbol_hiding="yes"
21383      fi
21384      ;;
21385  esac
21386  if test "$supports_symbol_hiding" = "yes"; then
21387    tmp_save_CFLAGS="$CFLAGS"
21388    CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21389    squeeze CFLAGS
21390    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21391/* end confdefs.h.  */
21392
21393
21394        $tmp_EXTERN char *dummy(char *buff);
21395        char *dummy(char *buff)
21396        {
21397         if(buff)
21398           return ++buff;
21399         else
21400           return buff;
21401        }
21402
21403int main (void)
21404{
21405
21406        char b[16];
21407        char *r = dummy(&b[0]);
21408        if(r)
21409          return (int)*r;
21410
21411 ;
21412 return 0;
21413}
21414
21415_ACEOF
21416if ac_fn_c_try_compile "$LINENO"
21417then :
21418
21419      supports_symbol_hiding="yes"
21420      if test -f conftest.err; then
21421        grep 'visibility' conftest.err >/dev/null
21422        if test "$?" -eq "0"; then
21423          supports_symbol_hiding="no"
21424        fi
21425      fi
21426
21427else $as_nop
21428
21429      supports_symbol_hiding="no"
21430      echo " " >&6
21431      sed 's/^/cc-src: /' conftest.$ac_ext >&6
21432      sed 's/^/cc-err: /' conftest.err >&6
21433      echo " " >&6
21434
21435fi
21436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21437    CFLAGS="$tmp_save_CFLAGS"
21438  fi
21439  if test "$supports_symbol_hiding" = "yes"; then
21440    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21441printf "%s\n" "yes" >&6; }
21442    symbol_hiding_CFLAGS="$tmp_CFLAGS"
21443    symbol_hiding_EXTERN="$tmp_EXTERN"
21444  else
21445    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21446printf "%s\n" "no" >&6; }
21447  fi
21448
21449
21450
21451      supports_curldebug="unknown"
21452  if test "$want_curldebug" = "yes"; then
21453    if test "x$enable_shared" != "xno" &&
21454      test "x$enable_shared" != "xyes"; then
21455      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
21456printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
21457      supports_curldebug="no"
21458    fi
21459    if test "x$enable_static" != "xno" &&
21460      test "x$enable_static" != "xyes"; then
21461      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
21462printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
21463      supports_curldebug="no"
21464    fi
21465    if test "$supports_curldebug" != "no"; then
21466      if test "$enable_shared" = "yes" &&
21467        test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
21468        supports_curldebug="no"
21469        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
21470printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
21471      fi
21472    fi
21473  fi
21474  #
21475  if test "$want_curldebug" = "yes"; then
21476    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
21477printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
21478    test "$supports_curldebug" = "no" || supports_curldebug="yes"
21479    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
21480printf "%s\n" "$supports_curldebug" >&6; }
21481    if test "$supports_curldebug" = "no"; then
21482      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
21483printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
21484      want_curldebug="no"
21485    fi
21486  fi
21487
21488 if test x$want_curldebug = xyes; then
21489  CURLDEBUG_TRUE=
21490  CURLDEBUG_FALSE='#'
21491else
21492  CURLDEBUG_TRUE='#'
21493  CURLDEBUG_FALSE=
21494fi
21495
21496
21497supports_unittests=yes
21498# cross-compilation of unit tests static library/programs fails when
21499# libcurl shared library is built. This might be due to a libtool or
21500# automake issue. In this case we disable unit tests.
21501if test "x$cross_compiling" != "xno" &&
21502   test "x$enable_shared" != "xno"; then
21503  supports_unittests=no
21504fi
21505
21506# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
21507# a problem related with OpenSSL headers and library versions not matching.
21508# Disable unit tests while time to further investigate this is found.
21509case $host in
21510  mips-sgi-irix6.5)
21511    if test "$compiler_id" = "GNU_C"; then
21512      supports_unittests=no
21513    fi
21514    ;;
21515esac
21516
21517# All AIX autobuilds fails unit tests linking against unittests library
21518# due to unittests library being built with no symbols or members. Libtool ?
21519# Disable unit tests while time to further investigate this is found.
21520case $host_os in
21521  aix*)
21522    supports_unittests=no
21523    ;;
21524esac
21525
21526if test "x$want_debug" = "xyes" &&
21527   test "x$supports_unittests" = "xyes"; then
21528  want_unittests=yes
21529else
21530  want_unittests=no
21531fi
21532 if test x$want_unittests = xyes; then
21533  BUILD_UNITTESTS_TRUE=
21534  BUILD_UNITTESTS_FALSE='#'
21535else
21536  BUILD_UNITTESTS_TRUE='#'
21537  BUILD_UNITTESTS_FALSE=
21538fi
21539
21540
21541
21542
21543    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
21544printf %s "checking whether build target supports WIN32 file API... " >&6; }
21545  curl_win32_file_api="no"
21546  if test "$curl_cv_native_windows" = "yes"; then
21547    if test x"$enable_largefile" != "xno"; then
21548      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21549/* end confdefs.h.  */
21550
21551
21552
21553int main (void)
21554{
21555
21556#if !defined(_WIN32_WCE) && (defined(__MINGW32__) || defined(_MSC_VER))
21557          int dummy=1;
21558#else
21559          WIN32 large file API not supported.
21560#endif
21561
21562 ;
21563 return 0;
21564}
21565
21566_ACEOF
21567if ac_fn_c_try_compile "$LINENO"
21568then :
21569
21570        curl_win32_file_api="win32_large_files"
21571
21572fi
21573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21574    fi
21575    if test "$curl_win32_file_api" = "no"; then
21576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21577/* end confdefs.h.  */
21578
21579
21580
21581int main (void)
21582{
21583
21584#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
21585          int dummy=1;
21586#else
21587          WIN32 small file API not supported.
21588#endif
21589
21590 ;
21591 return 0;
21592}
21593
21594_ACEOF
21595if ac_fn_c_try_compile "$LINENO"
21596then :
21597
21598        curl_win32_file_api="win32_small_files"
21599
21600fi
21601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21602    fi
21603  fi
21604  case "$curl_win32_file_api" in
21605    win32_large_files)
21606      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
21607printf "%s\n" "yes (large file enabled)" >&6; }
21608
21609printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
21610
21611      USE_WIN32_LARGE_FILES=1
21612
21613      ;;
21614    win32_small_files)
21615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
21616printf "%s\n" "yes (large file disabled)" >&6; }
21617
21618printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
21619
21620      USE_WIN32_SMALL_FILES=1
21621
21622      ;;
21623    *)
21624      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21625printf "%s\n" "no" >&6; }
21626      ;;
21627  esac
21628
21629
21630    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
21631printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
21632  curl_win32_crypto_api="no"
21633  if test "$curl_cv_native_windows" = "yes"; then
21634    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21635/* end confdefs.h.  */
21636
21637
21638#undef inline
21639#ifndef WIN32_LEAN_AND_MEAN
21640#define WIN32_LEAN_AND_MEAN
21641#endif
21642#include <windows.h>
21643#include <wincrypt.h>
21644
21645int main (void)
21646{
21647
21648        HCRYPTPROV hCryptProv;
21649        if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21650                               CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
21651          CryptReleaseContext(hCryptProv, 0);
21652        }
21653
21654 ;
21655 return 0;
21656}
21657
21658_ACEOF
21659if ac_fn_c_try_compile "$LINENO"
21660then :
21661
21662      curl_win32_crypto_api="yes"
21663
21664fi
21665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21666  fi
21667  case "$curl_win32_crypto_api" in
21668    yes)
21669      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21670printf "%s\n" "yes" >&6; }
21671
21672printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
21673
21674      USE_WIN32_CRYPTO=1
21675
21676      ;;
21677    *)
21678      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21679printf "%s\n" "no" >&6; }
21680      ;;
21681  esac
21682
21683
21684
21685
21686  tst_cflags="no"
21687  case $host_os in
21688    darwin*)
21689      tst_cflags="yes"
21690      ;;
21691  esac
21692
21693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
21694printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
21695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
21696printf "%s\n" "$tst_cflags" >&6; };
21697
21698  if test "$tst_cflags" = "yes"; then
21699    old_CFLAGS=$CFLAGS
21700    CFLAGS="$CFLAGS -Werror=partial-availability"
21701    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
21702printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
21703    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21704/* end confdefs.h.  */
21705
21706int main (void)
21707{
21708
21709 ;
21710 return 0;
21711}
21712_ACEOF
21713if ac_fn_c_try_compile "$LINENO"
21714then :
21715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21716printf "%s\n" "yes" >&6; }
21717else $as_nop
21718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21719printf "%s\n" "no" >&6; }
21720      CFLAGS=$old_CFLAGS
21721fi
21722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21723  fi
21724
21725
21726
21727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks" >&5
21728printf %s "checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks... " >&6; }
21729case $host_os in
21730  darwin*)
21731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21732/* end confdefs.h.  */
21733
21734
21735#include <TargetConditionals.h>
21736
21737int main (void)
21738{
21739
21740#if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
21741      return 0;
21742#else
21743#error Not macOS
21744#endif
21745
21746 ;
21747 return 0;
21748}
21749
21750_ACEOF
21751if ac_fn_c_try_compile "$LINENO"
21752then :
21753
21754      build_for_macos="yes"
21755
21756else $as_nop
21757
21758      build_for_macos="no"
21759
21760fi
21761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21762    if test "x$build_for_macos" != xno; then
21763      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21764printf "%s\n" "yes" >&6; }
21765      LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework SystemConfiguration"
21766    else
21767      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21768printf "%s\n" "no" >&6; }
21769    fi
21770    ;;
21771  *)
21772    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21773printf "%s\n" "no" >&6; }
21774esac
21775
21776
21777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
21778printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
21779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780/* end confdefs.h.  */
21781
21782
21783#include <stdlib.h>
21784
21785int main (void)
21786{
21787
21788      if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
21789
21790 ;
21791 return 0;
21792}
21793
21794_ACEOF
21795if ac_fn_c_try_compile "$LINENO"
21796then :
21797
21798    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21799printf "%s\n" "yes" >&6; }
21800
21801printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
21802
21803
21804else $as_nop
21805
21806    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21807printf "%s\n" "no" >&6; }
21808
21809fi
21810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21811
21812
21813 if test "$curl_cv_native_windows" = "yes" && test -n "${RC}"; then
21814  HAVE_WINDRES_TRUE=
21815  HAVE_WINDRES_FALSE='#'
21816else
21817  HAVE_WINDRES_TRUE='#'
21818  HAVE_WINDRES_FALSE=
21819fi
21820
21821
21822if test "$curl_cv_native_windows" = "yes"; then
21823  if test -z "$HAVE_WINDRES_TRUE"; then :
21824  else
21825  as_fn_error $? "windres not found in PATH. Windows builds require windres. Cannot continue." "$LINENO" 5
21826fi
21827fi
21828
21829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
21830printf %s "checking whether to support http... " >&6; }
21831# Check whether --enable-http was given.
21832if test ${enable_http+y}
21833then :
21834  enableval=$enable_http;  case "$enableval" in
21835  no)
21836       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21837printf "%s\n" "no" >&6; }
21838
21839printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
21840
21841       disable_http="yes"
21842       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
21843printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
21844       CURL_DISABLE_HTTP=1
21845
21846
21847printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21848
21849       CURL_DISABLE_RTSP=1
21850
21851
21852printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
21853
21854
21855printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
21856
21857       curl_h1_msg="no      (--enable-http, --with-hyper)"
21858       curl_altsvc_msg="no";
21859       curl_hsts_msg="no      (--enable-hsts)";
21860       enable_altsvc="no"
21861       hsts="no"
21862       ;;
21863  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21864printf "%s\n" "yes" >&6; }
21865       ;;
21866  esac
21867else $as_nop
21868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21869printf "%s\n" "yes" >&6; }
21870
21871fi
21872
21873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
21874printf %s "checking whether to support ftp... " >&6; }
21875# Check whether --enable-ftp was given.
21876if test ${enable_ftp+y}
21877then :
21878  enableval=$enable_ftp;  case "$enableval" in
21879  no)
21880       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21881printf "%s\n" "no" >&6; }
21882
21883printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
21884
21885       CURL_DISABLE_FTP=1
21886
21887       ;;
21888  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21889printf "%s\n" "yes" >&6; }
21890       ;;
21891  esac
21892else $as_nop
21893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21894printf "%s\n" "yes" >&6; }
21895
21896fi
21897
21898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
21899printf %s "checking whether to support file... " >&6; }
21900# Check whether --enable-file was given.
21901if test ${enable_file+y}
21902then :
21903  enableval=$enable_file;  case "$enableval" in
21904  no)
21905       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21906printf "%s\n" "no" >&6; }
21907
21908printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
21909
21910       CURL_DISABLE_FILE=1
21911
21912       ;;
21913  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21914printf "%s\n" "yes" >&6; }
21915       ;;
21916  esac
21917else $as_nop
21918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21919printf "%s\n" "yes" >&6; }
21920
21921fi
21922
21923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
21924printf %s "checking whether to support ldap... " >&6; }
21925# Check whether --enable-ldap was given.
21926if test ${enable_ldap+y}
21927then :
21928  enableval=$enable_ldap;  case "$enableval" in
21929  no)
21930       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21931printf "%s\n" "no" >&6; }
21932
21933printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21934
21935       CURL_DISABLE_LDAP=1
21936
21937       ;;
21938  yes)
21939       ldap_askedfor="yes"
21940       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21941printf "%s\n" "yes" >&6; }
21942       ;;
21943  *)
21944       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21945printf "%s\n" "yes" >&6; }
21946       ;;
21947  esac
21948else $as_nop
21949
21950       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21951printf "%s\n" "yes" >&6; }
21952
21953fi
21954
21955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
21956printf %s "checking whether to support ldaps... " >&6; }
21957# Check whether --enable-ldaps was given.
21958if test ${enable_ldaps+y}
21959then :
21960  enableval=$enable_ldaps;  case "$enableval" in
21961  no)
21962       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963printf "%s\n" "no" >&6; }
21964
21965printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21966
21967       CURL_DISABLE_LDAPS=1
21968
21969       ;;
21970  *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21971         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
21972printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
21973
21974printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21975
21976         CURL_DISABLE_LDAPS=1
21977
21978       else
21979         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21980printf "%s\n" "yes" >&6; }
21981
21982printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21983
21984         HAVE_LDAP_SSL=1
21985
21986       fi
21987       ;;
21988  esac
21989else $as_nop
21990
21991       if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21992         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21993printf "%s\n" "no" >&6; }
21994
21995printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21996
21997         CURL_DISABLE_LDAPS=1
21998
21999       else
22000         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22001printf "%s\n" "yes" >&6; }
22002
22003printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
22004
22005         HAVE_LDAP_SSL=1
22006
22007       fi
22008
22009fi
22010
22011
22012
22013OPT_HYPER="no"
22014
22015
22016# Check whether --with-hyper was given.
22017if test ${with_hyper+y}
22018then :
22019  withval=$with_hyper; OPT_HYPER=$withval
22020fi
22021
22022case "$OPT_HYPER" in
22023  no)
22024        want_hyper="no"
22025    ;;
22026  yes)
22027        want_hyper="default"
22028    want_hyper_path=""
22029    ;;
22030  *)
22031        want_hyper="yes"
22032    want_hyper_path="$withval"
22033    ;;
22034esac
22035
22036if test X"$want_hyper" != Xno; then
22037  if test "x$disable_http" = "xyes"; then
22038    as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
22039  fi
22040
22041    CLEANLDFLAGS="$LDFLAGS"
22042  CLEANCPPFLAGS="$CPPFLAGS"
22043  CLEANLIBS="$LIBS"
22044
22045
22046    if test -n "$PKG_CONFIG"; then
22047      PKGCONFIG="$PKG_CONFIG"
22048    else
22049      if test -n "$ac_tool_prefix"; then
22050  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22051set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22053printf %s "checking for $ac_word... " >&6; }
22054if test ${ac_cv_path_PKGCONFIG+y}
22055then :
22056  printf %s "(cached) " >&6
22057else $as_nop
22058  case $PKGCONFIG in
22059  [\\/]* | ?:[\\/]*)
22060  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22061  ;;
22062  *)
22063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22064as_dummy="$PATH:/usr/bin:/usr/local/bin"
22065for as_dir in $as_dummy
22066do
22067  IFS=$as_save_IFS
22068  case $as_dir in #(((
22069    '') as_dir=./ ;;
22070    */) ;;
22071    *) as_dir=$as_dir/ ;;
22072  esac
22073    for ac_exec_ext in '' $ac_executable_extensions; do
22074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22075    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22077    break 2
22078  fi
22079done
22080  done
22081IFS=$as_save_IFS
22082
22083  ;;
22084esac
22085fi
22086PKGCONFIG=$ac_cv_path_PKGCONFIG
22087if test -n "$PKGCONFIG"; then
22088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22089printf "%s\n" "$PKGCONFIG" >&6; }
22090else
22091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22092printf "%s\n" "no" >&6; }
22093fi
22094
22095
22096fi
22097if test -z "$ac_cv_path_PKGCONFIG"; then
22098  ac_pt_PKGCONFIG=$PKGCONFIG
22099  # Extract the first word of "pkg-config", so it can be a program name with args.
22100set dummy pkg-config; ac_word=$2
22101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22102printf %s "checking for $ac_word... " >&6; }
22103if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
22104then :
22105  printf %s "(cached) " >&6
22106else $as_nop
22107  case $ac_pt_PKGCONFIG in
22108  [\\/]* | ?:[\\/]*)
22109  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22110  ;;
22111  *)
22112  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22113as_dummy="$PATH:/usr/bin:/usr/local/bin"
22114for as_dir in $as_dummy
22115do
22116  IFS=$as_save_IFS
22117  case $as_dir in #(((
22118    '') as_dir=./ ;;
22119    */) ;;
22120    *) as_dir=$as_dir/ ;;
22121  esac
22122    for ac_exec_ext in '' $ac_executable_extensions; do
22123  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22124    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22125    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22126    break 2
22127  fi
22128done
22129  done
22130IFS=$as_save_IFS
22131
22132  ;;
22133esac
22134fi
22135ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22136if test -n "$ac_pt_PKGCONFIG"; then
22137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22138printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
22139else
22140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22141printf "%s\n" "no" >&6; }
22142fi
22143
22144  if test "x$ac_pt_PKGCONFIG" = x; then
22145    PKGCONFIG="no"
22146  else
22147    case $cross_compiling:$ac_tool_warned in
22148yes:)
22149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22150printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22151ac_tool_warned=yes ;;
22152esac
22153    PKGCONFIG=$ac_pt_PKGCONFIG
22154  fi
22155else
22156  PKGCONFIG="$ac_cv_path_PKGCONFIG"
22157fi
22158
22159    fi
22160
22161    if test "x$PKGCONFIG" != "xno"; then
22162      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
22163printf %s "checking for hyper options with pkg-config... " >&6; }
22164            itexists=`
22165    if test -n "$want_hyper_path"; then
22166      PKG_CONFIG_LIBDIR="$want_hyper_path"
22167      export PKG_CONFIG_LIBDIR
22168    fi
22169         $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
22170
22171      if test -z "$itexists"; then
22172                        PKGCONFIG="no"
22173        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22174printf "%s\n" "no" >&6; }
22175      else
22176        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
22177printf "%s\n" "found" >&6; }
22178      fi
22179    fi
22180
22181
22182  if test "$PKGCONFIG" != "no" ; then
22183    LIB_HYPER=`
22184    if test -n "$want_hyper_path"; then
22185      PKG_CONFIG_LIBDIR="$want_hyper_path"
22186      export PKG_CONFIG_LIBDIR
22187    fi
22188
22189      $PKGCONFIG --libs-only-l hyper`
22190    CPP_HYPER=`
22191    if test -n "$want_hyper_path"; then
22192      PKG_CONFIG_LIBDIR="$want_hyper_path"
22193      export PKG_CONFIG_LIBDIR
22194    fi
22195       $PKGCONFIG --cflags-only-I hyper`
22196    LD_HYPER=`
22197    if test -n "$want_hyper_path"; then
22198      PKG_CONFIG_LIBDIR="$want_hyper_path"
22199      export PKG_CONFIG_LIBDIR
22200    fi
22201
22202      $PKGCONFIG --libs-only-L hyper`
22203  else
22204        LIB_HYPER="-lhyper -ldl -lpthread -lm"
22205    if test X"$want_hyper" != Xdefault; then
22206      CPP_HYPER=-I"$want_hyper_path/capi/include"
22207      LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
22208    fi
22209  fi
22210  if test -n "$LIB_HYPER"; then
22211    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
22212printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
22213    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
22214printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
22215    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
22216printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
22217
22218    LDFLAGS="$LDFLAGS $LD_HYPER"
22219    CPPFLAGS="$CPPFLAGS $CPP_HYPER"
22220    LIBS="$LIB_HYPER $LIBS"
22221
22222    if test "x$cross_compiling" != "xyes"; then
22223            DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
22224    fi
22225
22226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
22227printf %s "checking for hyper_io_new in -lhyper... " >&6; }
22228if test ${ac_cv_lib_hyper_hyper_io_new+y}
22229then :
22230  printf %s "(cached) " >&6
22231else $as_nop
22232  ac_check_lib_save_LIBS=$LIBS
22233LIBS="-lhyper  $LIBS"
22234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22235/* end confdefs.h.  */
22236
22237
22238#ifdef __cplusplus
22239extern "C"
22240#endif
22241char hyper_io_new ();
22242int main (void)
22243{
22244return hyper_io_new ();
22245 ;
22246 return 0;
22247}
22248_ACEOF
22249if ac_fn_c_try_link "$LINENO"
22250then :
22251  ac_cv_lib_hyper_hyper_io_new=yes
22252else $as_nop
22253  ac_cv_lib_hyper_hyper_io_new=no
22254fi
22255rm -f core conftest.err conftest.$ac_objext conftest.beam \
22256    conftest$ac_exeext conftest.$ac_ext
22257LIBS=$ac_check_lib_save_LIBS
22258fi
22259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
22260printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
22261if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
22262then :
22263
22264              for ac_header in hyper.h
22265do :
22266  ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
22267if test "x$ac_cv_header_hyper_h" = xyes
22268then :
22269  printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
22270 experimental="$experimental Hyper"
22271          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
22272printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
22273          curl_h1_msg="enabled (Hyper)"
22274          HYPER_ENABLED=1
22275
22276printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
22277
22278          USE_HYPER=1
22279
22280          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
22281          export CURL_LIBRARY_PATH
22282          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
22283printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
22284fi
22285
22286done
22287
22288else $as_nop
22289  for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
22290        if test -f "$d/libhyper.a"; then
22291          as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
22292        fi
22293      done
22294      as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
22295
22296fi
22297
22298  fi
22299fi
22300
22301if test X"$want_hyper" != Xno; then
22302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
22303printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
22304
22305printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22306
22307  CURL_DISABLE_RTSP=1
22308
22309else
22310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
22311printf %s "checking whether to support rtsp... " >&6; }
22312  # Check whether --enable-rtsp was given.
22313if test ${enable_rtsp+y}
22314then :
22315  enableval=$enable_rtsp;  case "$enableval" in
22316    no)
22317       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318printf "%s\n" "no" >&6; }
22319
22320printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22321
22322       CURL_DISABLE_RTSP=1
22323
22324       ;;
22325    *)
22326       if test x$CURL_DISABLE_HTTP = x1 ; then
22327         as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
22328       else
22329         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22330printf "%s\n" "yes" >&6; }
22331         curl_rtsp_msg="enabled"
22332       fi
22333       ;;
22334    esac
22335else $as_nop
22336  if test "x$CURL_DISABLE_HTTP" != "x1"; then
22337          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22338printf "%s\n" "yes" >&6; }
22339          curl_rtsp_msg="enabled"
22340       else
22341          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22342printf "%s\n" "no" >&6; }
22343       fi
22344
22345fi
22346
22347fi
22348
22349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
22350printf %s "checking whether to support proxies... " >&6; }
22351# Check whether --enable-proxy was given.
22352if test ${enable_proxy+y}
22353then :
22354  enableval=$enable_proxy;  case "$enableval" in
22355  no)
22356       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22357printf "%s\n" "no" >&6; }
22358
22359printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
22360
22361       CURL_DISABLE_PROXY=1
22362
22363       https_proxy="no"
22364       ;;
22365  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22366printf "%s\n" "yes" >&6; }
22367       ;;
22368  esac
22369else $as_nop
22370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22371printf "%s\n" "yes" >&6; }
22372
22373fi
22374
22375
22376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
22377printf %s "checking whether to support dict... " >&6; }
22378# Check whether --enable-dict was given.
22379if test ${enable_dict+y}
22380then :
22381  enableval=$enable_dict;  case "$enableval" in
22382  no)
22383       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22384printf "%s\n" "no" >&6; }
22385
22386printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
22387
22388       CURL_DISABLE_DICT=1
22389
22390       ;;
22391  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22392printf "%s\n" "yes" >&6; }
22393       ;;
22394  esac
22395else $as_nop
22396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22397printf "%s\n" "yes" >&6; }
22398
22399fi
22400
22401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
22402printf %s "checking whether to support telnet... " >&6; }
22403# Check whether --enable-telnet was given.
22404if test ${enable_telnet+y}
22405then :
22406  enableval=$enable_telnet;  case "$enableval" in
22407  no)
22408       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22409printf "%s\n" "no" >&6; }
22410
22411printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
22412
22413       CURL_DISABLE_TELNET=1
22414
22415       ;;
22416  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22417printf "%s\n" "yes" >&6; }
22418       ;;
22419  esac
22420else $as_nop
22421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22422printf "%s\n" "yes" >&6; }
22423
22424fi
22425
22426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
22427printf %s "checking whether to support tftp... " >&6; }
22428# Check whether --enable-tftp was given.
22429if test ${enable_tftp+y}
22430then :
22431  enableval=$enable_tftp;  case "$enableval" in
22432  no)
22433       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22434printf "%s\n" "no" >&6; }
22435
22436printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
22437
22438       CURL_DISABLE_TFTP=1
22439
22440       ;;
22441  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22442printf "%s\n" "yes" >&6; }
22443       ;;
22444  esac
22445else $as_nop
22446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22447printf "%s\n" "yes" >&6; }
22448
22449fi
22450
22451
22452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
22453printf %s "checking whether to support pop3... " >&6; }
22454# Check whether --enable-pop3 was given.
22455if test ${enable_pop3+y}
22456then :
22457  enableval=$enable_pop3;  case "$enableval" in
22458  no)
22459       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22460printf "%s\n" "no" >&6; }
22461
22462printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
22463
22464       CURL_DISABLE_POP3=1
22465
22466       ;;
22467  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22468printf "%s\n" "yes" >&6; }
22469       ;;
22470  esac
22471else $as_nop
22472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22473printf "%s\n" "yes" >&6; }
22474
22475fi
22476
22477
22478
22479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
22480printf %s "checking whether to support imap... " >&6; }
22481# Check whether --enable-imap was given.
22482if test ${enable_imap+y}
22483then :
22484  enableval=$enable_imap;  case "$enableval" in
22485  no)
22486       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22487printf "%s\n" "no" >&6; }
22488
22489printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
22490
22491       CURL_DISABLE_IMAP=1
22492
22493       ;;
22494  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22495printf "%s\n" "yes" >&6; }
22496       ;;
22497  esac
22498else $as_nop
22499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22500printf "%s\n" "yes" >&6; }
22501
22502fi
22503
22504
22505
22506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
22507printf %s "checking whether to support smb... " >&6; }
22508# Check whether --enable-smb was given.
22509if test ${enable_smb+y}
22510then :
22511  enableval=$enable_smb;  case "$enableval" in
22512  no)
22513       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22514printf "%s\n" "no" >&6; }
22515
22516printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
22517
22518       CURL_DISABLE_SMB=1
22519
22520       ;;
22521  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22522printf "%s\n" "yes" >&6; }
22523       ;;
22524  esac
22525else $as_nop
22526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22527printf "%s\n" "yes" >&6; }
22528
22529fi
22530
22531
22532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
22533printf %s "checking whether to support smtp... " >&6; }
22534# Check whether --enable-smtp was given.
22535if test ${enable_smtp+y}
22536then :
22537  enableval=$enable_smtp;  case "$enableval" in
22538  no)
22539       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22540printf "%s\n" "no" >&6; }
22541
22542printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
22543
22544       CURL_DISABLE_SMTP=1
22545
22546       ;;
22547  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22548printf "%s\n" "yes" >&6; }
22549       ;;
22550  esac
22551else $as_nop
22552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22553printf "%s\n" "yes" >&6; }
22554
22555fi
22556
22557
22558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
22559printf %s "checking whether to support gopher... " >&6; }
22560# Check whether --enable-gopher was given.
22561if test ${enable_gopher+y}
22562then :
22563  enableval=$enable_gopher;  case "$enableval" in
22564  no)
22565       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22566printf "%s\n" "no" >&6; }
22567
22568printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
22569
22570       CURL_DISABLE_GOPHER=1
22571
22572       ;;
22573  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22574printf "%s\n" "yes" >&6; }
22575       ;;
22576  esac
22577else $as_nop
22578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22579printf "%s\n" "yes" >&6; }
22580
22581fi
22582
22583
22584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
22585printf %s "checking whether to support mqtt... " >&6; }
22586# Check whether --enable-mqtt was given.
22587if test ${enable_mqtt+y}
22588then :
22589  enableval=$enable_mqtt;  case "$enableval" in
22590  no)
22591       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22592printf "%s\n" "no" >&6; }
22593
22594printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
22595
22596       CURL_DISABLE_MQTT=1
22597
22598       ;;
22599  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22600printf "%s\n" "yes" >&6; }
22601       ;;
22602  esac
22603else $as_nop
22604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22605printf "%s\n" "no" >&6; }
22606
22607fi
22608
22609
22610
22611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
22612printf %s "checking whether to provide built-in manual... " >&6; }
22613# Check whether --enable-manual was given.
22614if test ${enable_manual+y}
22615then :
22616  enableval=$enable_manual;  case "$enableval" in
22617  no)
22618       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22619printf "%s\n" "no" >&6; }
22620       ;;
22621  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22622printf "%s\n" "yes" >&6; }
22623       USE_MANUAL="1"
22624       ;;
22625  esac
22626else $as_nop
22627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22628printf "%s\n" "yes" >&6; }
22629       USE_MANUAL="1"
22630
22631fi
22632
22633
22634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
22635printf %s "checking whether to enable generation of C code... " >&6; }
22636# Check whether --enable-libcurl_option was given.
22637if test ${enable_libcurl_option+y}
22638then :
22639  enableval=$enable_libcurl_option;  case "$enableval" in
22640  no)
22641       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22642printf "%s\n" "no" >&6; }
22643
22644printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
22645
22646       curl_libcurl_msg="no"
22647       ;;
22648  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22649printf "%s\n" "yes" >&6; }
22650       ;;
22651  esac
22652else $as_nop
22653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22654printf "%s\n" "yes" >&6; }
22655
22656fi
22657
22658
22659
22660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
22661printf %s "checking whether to use libgcc... " >&6; }
22662# Check whether --enable-libgcc was given.
22663if test ${enable_libgcc+y}
22664then :
22665  enableval=$enable_libgcc;  case "$enableval" in
22666  yes)
22667       LIBS="-lgcc $LIBS"
22668       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22669printf "%s\n" "yes" >&6; }
22670       ;;
22671  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22672printf "%s\n" "no" >&6; }
22673       ;;
22674  esac
22675else $as_nop
22676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22677printf "%s\n" "no" >&6; }
22678
22679fi
22680
22681
22682
22683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22684printf %s "checking if X/Open network library is required... " >&6; }
22685  tst_lib_xnet_required="no"
22686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687/* end confdefs.h.  */
22688
22689
22690int main (void)
22691{
22692#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22693  return 0;
22694#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22695  return 0;
22696#else
22697  force compilation error
22698#endif
22699}
22700
22701
22702_ACEOF
22703if ac_fn_c_try_compile "$LINENO"
22704then :
22705
22706    tst_lib_xnet_required="yes"
22707    LIBS="-lxnet $LIBS"
22708
22709fi
22710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22712printf "%s\n" "$tst_lib_xnet_required" >&6; }
22713
22714
22715ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22716if test "x$ac_cv_func_gethostbyname" = xyes
22717then :
22718  HAVE_GETHOSTBYNAME="1"
22719
22720else $as_nop
22721   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22722printf %s "checking for gethostbyname in -lnsl... " >&6; }
22723if test ${ac_cv_lib_nsl_gethostbyname+y}
22724then :
22725  printf %s "(cached) " >&6
22726else $as_nop
22727  ac_check_lib_save_LIBS=$LIBS
22728LIBS="-lnsl  $LIBS"
22729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730/* end confdefs.h.  */
22731
22732
22733#ifdef __cplusplus
22734extern "C"
22735#endif
22736char gethostbyname ();
22737int main (void)
22738{
22739return gethostbyname ();
22740 ;
22741 return 0;
22742}
22743_ACEOF
22744if ac_fn_c_try_link "$LINENO"
22745then :
22746  ac_cv_lib_nsl_gethostbyname=yes
22747else $as_nop
22748  ac_cv_lib_nsl_gethostbyname=no
22749fi
22750rm -f core conftest.err conftest.$ac_objext conftest.beam \
22751    conftest$ac_exeext conftest.$ac_ext
22752LIBS=$ac_check_lib_save_LIBS
22753fi
22754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22755printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22756if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22757then :
22758  HAVE_GETHOSTBYNAME="1"
22759                             LIBS="-lnsl $LIBS"
22760
22761fi
22762
22763
22764fi
22765
22766
22767if test "$HAVE_GETHOSTBYNAME" != "1"
22768then
22769    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22770printf %s "checking for gethostbyname in -lsocket... " >&6; }
22771if test ${ac_cv_lib_socket_gethostbyname+y}
22772then :
22773  printf %s "(cached) " >&6
22774else $as_nop
22775  ac_check_lib_save_LIBS=$LIBS
22776LIBS="-lsocket  $LIBS"
22777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22778/* end confdefs.h.  */
22779
22780
22781#ifdef __cplusplus
22782extern "C"
22783#endif
22784char gethostbyname ();
22785int main (void)
22786{
22787return gethostbyname ();
22788 ;
22789 return 0;
22790}
22791_ACEOF
22792if ac_fn_c_try_link "$LINENO"
22793then :
22794  ac_cv_lib_socket_gethostbyname=yes
22795else $as_nop
22796  ac_cv_lib_socket_gethostbyname=no
22797fi
22798rm -f core conftest.err conftest.$ac_objext conftest.beam \
22799    conftest$ac_exeext conftest.$ac_ext
22800LIBS=$ac_check_lib_save_LIBS
22801fi
22802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22803printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
22804if test "x$ac_cv_lib_socket_gethostbyname" = xyes
22805then :
22806  HAVE_GETHOSTBYNAME="1"
22807               LIBS="-lsocket $LIBS"
22808
22809fi
22810
22811fi
22812
22813if test "$HAVE_GETHOSTBYNAME" != "1"
22814then
22815    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
22816printf %s "checking for gethostbyname in -lwatt... " >&6; }
22817if test ${ac_cv_lib_watt_gethostbyname+y}
22818then :
22819  printf %s "(cached) " >&6
22820else $as_nop
22821  ac_check_lib_save_LIBS=$LIBS
22822LIBS="-lwatt  $LIBS"
22823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824/* end confdefs.h.  */
22825
22826
22827#ifdef __cplusplus
22828extern "C"
22829#endif
22830char gethostbyname ();
22831int main (void)
22832{
22833return gethostbyname ();
22834 ;
22835 return 0;
22836}
22837_ACEOF
22838if ac_fn_c_try_link "$LINENO"
22839then :
22840  ac_cv_lib_watt_gethostbyname=yes
22841else $as_nop
22842  ac_cv_lib_watt_gethostbyname=no
22843fi
22844rm -f core conftest.err conftest.$ac_objext conftest.beam \
22845    conftest$ac_exeext conftest.$ac_ext
22846LIBS=$ac_check_lib_save_LIBS
22847fi
22848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
22849printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
22850if test "x$ac_cv_lib_watt_gethostbyname" = xyes
22851then :
22852  HAVE_GETHOSTBYNAME="1"
22853               CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
22854               LDFLAGS="-L/dev/env/WATT_ROOT/lib"
22855               LIBS="-lwatt $LIBS"
22856
22857fi
22858
22859fi
22860
22861if test "$HAVE_GETHOSTBYNAME" != "1"
22862then
22863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22864printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
22865  my_ac_save_LIBS=$LIBS
22866  LIBS="-lnsl -lsocket $LIBS"
22867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22868/* end confdefs.h.  */
22869
22870
22871
22872int main (void)
22873{
22874
22875      gethostbyname();
22876
22877 ;
22878 return 0;
22879}
22880
22881_ACEOF
22882if ac_fn_c_try_link "$LINENO"
22883then :
22884
22885    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22886printf "%s\n" "yes" >&6; }
22887    HAVE_GETHOSTBYNAME="1"
22888
22889else $as_nop
22890
22891    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22892printf "%s\n" "no" >&6; }
22893    LIBS=$my_ac_save_LIBS
22894
22895fi
22896rm -f core conftest.err conftest.$ac_objext conftest.beam \
22897    conftest$ac_exeext conftest.$ac_ext
22898fi
22899
22900if test "$HAVE_GETHOSTBYNAME" != "1"
22901then
22902    if test "$curl_cv_native_windows" = "yes"; then
22903    winsock_LIB="-lws2_32"
22904    if test ! -z "$winsock_LIB"; then
22905      my_ac_save_LIBS=$LIBS
22906      LIBS="$winsock_LIB $LIBS"
22907      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22908printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
22909      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22910/* end confdefs.h.  */
22911
22912
22913#ifdef _WIN32
22914#ifndef WIN32_LEAN_AND_MEAN
22915#define WIN32_LEAN_AND_MEAN
22916#endif
22917#include <winsock2.h>
22918#endif
22919
22920int main (void)
22921{
22922
22923          gethostbyname("localhost");
22924
22925 ;
22926 return 0;
22927}
22928
22929_ACEOF
22930if ac_fn_c_try_link "$LINENO"
22931then :
22932
22933        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22934printf "%s\n" "yes" >&6; }
22935        HAVE_GETHOSTBYNAME="1"
22936
22937else $as_nop
22938
22939        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22940printf "%s\n" "no" >&6; }
22941        winsock_LIB=""
22942        LIBS=$my_ac_save_LIBS
22943
22944fi
22945rm -f core conftest.err conftest.$ac_objext conftest.beam \
22946    conftest$ac_exeext conftest.$ac_ext
22947    fi
22948  fi
22949fi
22950
22951if test "$HAVE_GETHOSTBYNAME" != "1"
22952then
22953    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22954printf %s "checking for gethostbyname for Minix 3... " >&6; }
22955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956/* end confdefs.h.  */
22957
22958
22959/* Older Minix versions may need <net/gen/netdb.h> here instead */
22960#include <netdb.h>
22961
22962int main (void)
22963{
22964
22965      gethostbyname("localhost");
22966
22967 ;
22968 return 0;
22969}
22970
22971_ACEOF
22972if ac_fn_c_try_link "$LINENO"
22973then :
22974
22975    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22976printf "%s\n" "yes" >&6; }
22977    HAVE_GETHOSTBYNAME="1"
22978
22979else $as_nop
22980
22981    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22982printf "%s\n" "no" >&6; }
22983
22984fi
22985rm -f core conftest.err conftest.$ac_objext conftest.beam \
22986    conftest$ac_exeext conftest.$ac_ext
22987fi
22988
22989if test "$HAVE_GETHOSTBYNAME" != "1"
22990then
22991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22992printf %s "checking for gethostbyname for eCos... " >&6; }
22993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22994/* end confdefs.h.  */
22995
22996
22997#include <stdio.h>
22998#include <netdb.h>
22999
23000int main (void)
23001{
23002
23003      gethostbyname("localhost");
23004
23005 ;
23006 return 0;
23007}
23008
23009_ACEOF
23010if ac_fn_c_try_link "$LINENO"
23011then :
23012
23013    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23014printf "%s\n" "yes" >&6; }
23015    HAVE_GETHOSTBYNAME="1"
23016
23017else $as_nop
23018
23019    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23020printf "%s\n" "no" >&6; }
23021
23022fi
23023rm -f core conftest.err conftest.$ac_objext conftest.beam \
23024    conftest$ac_exeext conftest.$ac_ext
23025fi
23026
23027if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
23028then
23029    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
23030printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
23031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23032/* end confdefs.h.  */
23033
23034
23035  #define __USE_INLINE__
23036  #include <proto/bsdsocket.h>
23037  #ifdef __amigaos4__
23038  struct SocketIFace *ISocket = NULL;
23039  #else
23040  struct Library *SocketBase = NULL;
23041  #endif
23042
23043int main (void)
23044{
23045
23046      gethostbyname("localhost");
23047
23048 ;
23049 return 0;
23050}
23051
23052_ACEOF
23053if ac_fn_c_try_link "$LINENO"
23054then :
23055
23056    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23057printf "%s\n" "yes" >&6; }
23058    HAVE_GETHOSTBYNAME="1"
23059    HAVE_PROTO_BSDSOCKET_H="1"
23060
23061printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23062
23063    HAVE_PROTO_BSDSOCKET_H=1
23064
23065
23066else $as_nop
23067
23068    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23069printf "%s\n" "no" >&6; }
23070
23071fi
23072rm -f core conftest.err conftest.$ac_objext conftest.beam \
23073    conftest$ac_exeext conftest.$ac_ext
23074fi
23075
23076if test "$HAVE_GETHOSTBYNAME" != "1"
23077then
23078    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
23079printf %s "checking for gethostbyname in -lnetwork... " >&6; }
23080if test ${ac_cv_lib_network_gethostbyname+y}
23081then :
23082  printf %s "(cached) " >&6
23083else $as_nop
23084  ac_check_lib_save_LIBS=$LIBS
23085LIBS="-lnetwork  $LIBS"
23086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23087/* end confdefs.h.  */
23088
23089
23090#ifdef __cplusplus
23091extern "C"
23092#endif
23093char gethostbyname ();
23094int main (void)
23095{
23096return gethostbyname ();
23097 ;
23098 return 0;
23099}
23100_ACEOF
23101if ac_fn_c_try_link "$LINENO"
23102then :
23103  ac_cv_lib_network_gethostbyname=yes
23104else $as_nop
23105  ac_cv_lib_network_gethostbyname=no
23106fi
23107rm -f core conftest.err conftest.$ac_objext conftest.beam \
23108    conftest$ac_exeext conftest.$ac_ext
23109LIBS=$ac_check_lib_save_LIBS
23110fi
23111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
23112printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
23113if test "x$ac_cv_lib_network_gethostbyname" = xyes
23114then :
23115  HAVE_GETHOSTBYNAME="1"
23116               LIBS="-lnetwork $LIBS"
23117
23118fi
23119
23120fi
23121
23122if test "$HAVE_GETHOSTBYNAME" != "1"; then
23123  as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
23124fi
23125
23126
23127curl_includes_winsock2="\
23128/* includes start */
23129#ifdef _WIN32
23130#  ifndef WIN32_LEAN_AND_MEAN
23131#    define WIN32_LEAN_AND_MEAN
23132#  endif
23133#  include <winsock2.h>
23134#endif
23135/* includes end */"
23136
23137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
23138printf %s "checking whether build target is a native Windows one... " >&6; }
23139if test ${curl_cv_native_windows+y}
23140then :
23141  printf %s "(cached) " >&6
23142else $as_nop
23143
23144    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145/* end confdefs.h.  */
23146
23147
23148
23149int main (void)
23150{
23151
23152#ifdef _WIN32
23153        int dummy=1;
23154#else
23155        Not a native Windows build target.
23156#endif
23157
23158 ;
23159 return 0;
23160}
23161
23162_ACEOF
23163if ac_fn_c_try_compile "$LINENO"
23164then :
23165
23166      curl_cv_native_windows="yes"
23167
23168else $as_nop
23169
23170      curl_cv_native_windows="no"
23171
23172fi
23173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23174
23175fi
23176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
23177printf "%s\n" "$curl_cv_native_windows" >&6; }
23178   if test "x$curl_cv_native_windows" = xyes; then
23179  DOING_NATIVE_WINDOWS_TRUE=
23180  DOING_NATIVE_WINDOWS_FALSE='#'
23181else
23182  DOING_NATIVE_WINDOWS_TRUE='#'
23183  DOING_NATIVE_WINDOWS_FALSE=
23184fi
23185
23186
23187
23188
23189curl_includes_bsdsocket="\
23190/* includes start */
23191#if defined(HAVE_PROTO_BSDSOCKET_H)
23192#  define __NO_NET_API
23193#  define __USE_INLINE__
23194#  include <proto/bsdsocket.h>
23195#  ifdef HAVE_SYS_IOCTL_H
23196#    include <sys/ioctl.h>
23197#  endif
23198#  ifdef __amigaos4__
23199struct SocketIFace *ISocket = NULL;
23200#  else
23201struct Library *SocketBase = NULL;
23202#  endif
23203#  define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
23204#endif
23205/* includes end */"
23206  ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
23207"
23208if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
23209then :
23210  printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23211
23212fi
23213
23214
23215
23216      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
23217printf %s "checking for connect in libraries... " >&6; }
23218  tst_connect_save_LIBS="$LIBS"
23219  tst_connect_need_LIBS="unknown"
23220  for tst_lib in '' '-lsocket' ; do
23221    if test "$tst_connect_need_LIBS" = "unknown"; then
23222      LIBS="$tst_lib $tst_connect_save_LIBS"
23223      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23224/* end confdefs.h.  */
23225
23226
23227          $curl_includes_winsock2
23228          $curl_includes_bsdsocket
23229          #if !defined(_WIN32) && !defined(HAVE_PROTO_BSDSOCKET_H)
23230            int connect(int, void*, int);
23231          #endif
23232
23233int main (void)
23234{
23235
23236          if(0 != connect(0, 0, 0))
23237            return 1;
23238
23239 ;
23240 return 0;
23241}
23242
23243_ACEOF
23244if ac_fn_c_try_link "$LINENO"
23245then :
23246
23247        tst_connect_need_LIBS="$tst_lib"
23248
23249fi
23250rm -f core conftest.err conftest.$ac_objext conftest.beam \
23251    conftest$ac_exeext conftest.$ac_ext
23252    fi
23253  done
23254  LIBS="$tst_connect_save_LIBS"
23255  #
23256  case X-"$tst_connect_need_LIBS" in
23257    X-unknown)
23258      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
23259printf "%s\n" "cannot find connect" >&6; }
23260      as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
23261      ;;
23262    X-)
23263      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23264printf "%s\n" "yes" >&6; }
23265      ;;
23266    *)
23267      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
23268printf "%s\n" "$tst_connect_need_LIBS" >&6; }
23269      LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
23270      ;;
23271  esac
23272
23273
23274CURL_NETWORK_LIBS=$LIBS
23275
23276
23277  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23278if test "x$ac_cv_header_sys_types_h" = xyes
23279then :
23280  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23281
23282fi
23283ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23284if test "x$ac_cv_header_sys_time_h" = xyes
23285then :
23286  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23287
23288fi
23289
23290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
23291printf %s "checking for monotonic clock_gettime... " >&6; }
23292  #
23293  if test "x$dontwant_rt" = "xno" ; then
23294    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23295/* end confdefs.h.  */
23296
23297
23298#ifdef HAVE_SYS_TYPES_H
23299#include <sys/types.h>
23300#endif
23301#ifdef HAVE_SYS_TIME_H
23302#include <sys/time.h>
23303#endif
23304#include <time.h>
23305
23306int main (void)
23307{
23308
23309        struct timespec ts;
23310        (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23311
23312 ;
23313 return 0;
23314}
23315
23316_ACEOF
23317if ac_fn_c_try_compile "$LINENO"
23318then :
23319
23320      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23321printf "%s\n" "yes" >&6; }
23322      curl_func_clock_gettime="yes"
23323
23324else $as_nop
23325
23326      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23327printf "%s\n" "no" >&6; }
23328      curl_func_clock_gettime="no"
23329
23330fi
23331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23332  fi
23333
23334
23335    #
23336  if test "$curl_func_clock_gettime" = "yes"; then
23337    #
23338    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
23339printf %s "checking for clock_gettime in libraries... " >&6; }
23340    #
23341    curl_cv_save_LIBS="$LIBS"
23342    curl_cv_gclk_LIBS="unknown"
23343    #
23344    for x_xlibs in '' '-lrt' '-lposix4' ; do
23345      if test "$curl_cv_gclk_LIBS" = "unknown"; then
23346        if test -z "$x_xlibs"; then
23347          LIBS="$curl_cv_save_LIBS"
23348        else
23349          LIBS="$x_xlibs $curl_cv_save_LIBS"
23350        fi
23351        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23352/* end confdefs.h.  */
23353
23354
23355#ifdef HAVE_SYS_TYPES_H
23356#include <sys/types.h>
23357#endif
23358#ifdef HAVE_SYS_TIME_H
23359#include <sys/time.h>
23360#endif
23361#include <time.h>
23362
23363int main (void)
23364{
23365
23366            struct timespec ts;
23367            (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23368
23369 ;
23370 return 0;
23371}
23372
23373_ACEOF
23374if ac_fn_c_try_link "$LINENO"
23375then :
23376
23377          curl_cv_gclk_LIBS="$x_xlibs"
23378
23379fi
23380rm -f core conftest.err conftest.$ac_objext conftest.beam \
23381    conftest$ac_exeext conftest.$ac_ext
23382      fi
23383    done
23384    #
23385    LIBS="$curl_cv_save_LIBS"
23386    #
23387    case X-"$curl_cv_gclk_LIBS" in
23388      X-unknown)
23389        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
23390printf "%s\n" "cannot find clock_gettime" >&6; }
23391        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23392printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23393        curl_func_clock_gettime="no"
23394        ;;
23395      X-)
23396        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23397printf "%s\n" "no additional lib required" >&6; }
23398        curl_func_clock_gettime="yes"
23399        ;;
23400      *)
23401        if test -z "$curl_cv_save_LIBS"; then
23402          LIBS="$curl_cv_gclk_LIBS"
23403        else
23404          LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23405        fi
23406        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23407printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
23408        curl_func_clock_gettime="yes"
23409        ;;
23410    esac
23411    #
23412        if test "x$cross_compiling" != "xyes" &&
23413      test "$curl_func_clock_gettime" = "yes"; then
23414      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23415printf %s "checking if monotonic clock_gettime works... " >&6; }
23416
23417   case $host_os in
23418     darwin*)
23419      if test "$cross_compiling" = yes
23420then :
23421  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23422printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23423as_fn_error $? "cannot run test program while cross compiling
23424See \`config.log' for more details" "$LINENO" 5; }
23425else $as_nop
23426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23427/* end confdefs.h.  */
23428
23429
23430#include <stdlib.h>
23431#ifdef HAVE_SYS_TYPES_H
23432#include <sys/types.h>
23433#endif
23434#ifdef HAVE_SYS_TIME_H
23435#include <sys/time.h>
23436#endif
23437#include <time.h>
23438
23439int main (void)
23440{
23441
23442          struct timespec ts;
23443          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23444            exit(0);
23445          else
23446            exit(1);
23447
23448 ;
23449 return 0;
23450}
23451
23452_ACEOF
23453if ac_fn_c_try_run "$LINENO"
23454then :
23455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23456printf "%s\n" "yes" >&6; }
23457
23458else $as_nop
23459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23460printf "%s\n" "no" >&6; }
23461        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23462printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23463        curl_func_clock_gettime="no"
23464        LIBS="$curl_cv_save_LIBS"
23465
23466fi
23467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23468  conftest.$ac_objext conftest.beam conftest.$ac_ext
23469fi
23470
23471     ;;
23472     *)
23473      oldcc=$CC
23474      old=$LD_LIBRARY_PATH
23475      CC="sh ./run-compiler"
23476      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
23477      export LD_LIBRARY_PATH
23478      if test "$cross_compiling" = yes
23479then :
23480  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23481printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23482as_fn_error $? "cannot run test program while cross compiling
23483See \`config.log' for more details" "$LINENO" 5; }
23484else $as_nop
23485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23486/* end confdefs.h.  */
23487
23488
23489#include <stdlib.h>
23490#ifdef HAVE_SYS_TYPES_H
23491#include <sys/types.h>
23492#endif
23493#ifdef HAVE_SYS_TIME_H
23494#include <sys/time.h>
23495#endif
23496#include <time.h>
23497
23498int main (void)
23499{
23500
23501          struct timespec ts;
23502          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23503            exit(0);
23504          else
23505            exit(1);
23506
23507 ;
23508 return 0;
23509}
23510
23511_ACEOF
23512if ac_fn_c_try_run "$LINENO"
23513then :
23514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23515printf "%s\n" "yes" >&6; }
23516
23517else $as_nop
23518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23519printf "%s\n" "no" >&6; }
23520        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23521printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23522        curl_func_clock_gettime="no"
23523        LIBS="$curl_cv_save_LIBS"
23524
23525fi
23526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23527  conftest.$ac_objext conftest.beam conftest.$ac_ext
23528fi
23529
23530      LD_LIBRARY_PATH=$old # restore
23531      CC=$oldcc
23532     ;;
23533   esac
23534
23535    fi
23536    #
23537    case "$curl_func_clock_gettime" in
23538      yes)
23539
23540printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
23541
23542        ;;
23543    esac
23544    #
23545  fi
23546  #
23547
23548
23549
23550  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23551if test "x$ac_cv_header_sys_types_h" = xyes
23552then :
23553  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23554
23555fi
23556ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23557if test "x$ac_cv_header_sys_time_h" = xyes
23558then :
23559  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23560
23561fi
23562
23563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raw monotonic clock_gettime" >&5
23564printf %s "checking for raw monotonic clock_gettime... " >&6; }
23565  #
23566  if test "x$dontwant_rt" = "xno" ; then
23567    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23568/* end confdefs.h.  */
23569
23570
23571#ifdef HAVE_SYS_TYPES_H
23572#include <sys/types.h>
23573#endif
23574#ifdef HAVE_SYS_TIME_H
23575#include <sys/time.h>
23576#endif
23577#include <time.h>
23578
23579int main (void)
23580{
23581
23582        struct timespec ts;
23583        (void)clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
23584
23585 ;
23586 return 0;
23587}
23588
23589_ACEOF
23590if ac_fn_c_try_compile "$LINENO"
23591then :
23592
23593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23594printf "%s\n" "yes" >&6; }
23595
23596printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC_RAW 1" >>confdefs.h
23597
23598
23599else $as_nop
23600
23601      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23602printf "%s\n" "no" >&6; }
23603
23604fi
23605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23606  fi
23607
23608
23609CURL_NETWORK_AND_TIME_LIBS=$LIBS
23610
23611
23612
23613clean_CPPFLAGS=$CPPFLAGS
23614clean_LDFLAGS=$LDFLAGS
23615clean_LIBS=$LIBS
23616ZLIB_LIBS=""
23617
23618# Check whether --with-zlib was given.
23619if test ${with_zlib+y}
23620then :
23621  withval=$with_zlib; OPT_ZLIB="$withval"
23622fi
23623
23624
23625if test "$OPT_ZLIB" = "no" ; then
23626    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
23627printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
23628else
23629  if test "$OPT_ZLIB" = "yes" ; then
23630    OPT_ZLIB=""
23631  fi
23632
23633  if test -z "$OPT_ZLIB" ; then
23634
23635    if test -n "$PKG_CONFIG"; then
23636      PKGCONFIG="$PKG_CONFIG"
23637    else
23638      if test -n "$ac_tool_prefix"; then
23639  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23640set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23642printf %s "checking for $ac_word... " >&6; }
23643if test ${ac_cv_path_PKGCONFIG+y}
23644then :
23645  printf %s "(cached) " >&6
23646else $as_nop
23647  case $PKGCONFIG in
23648  [\\/]* | ?:[\\/]*)
23649  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23650  ;;
23651  *)
23652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23653as_dummy="$PATH:/usr/bin:/usr/local/bin"
23654for as_dir in $as_dummy
23655do
23656  IFS=$as_save_IFS
23657  case $as_dir in #(((
23658    '') as_dir=./ ;;
23659    */) ;;
23660    *) as_dir=$as_dir/ ;;
23661  esac
23662    for ac_exec_ext in '' $ac_executable_extensions; do
23663  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23664    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23665    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23666    break 2
23667  fi
23668done
23669  done
23670IFS=$as_save_IFS
23671
23672  ;;
23673esac
23674fi
23675PKGCONFIG=$ac_cv_path_PKGCONFIG
23676if test -n "$PKGCONFIG"; then
23677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23678printf "%s\n" "$PKGCONFIG" >&6; }
23679else
23680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23681printf "%s\n" "no" >&6; }
23682fi
23683
23684
23685fi
23686if test -z "$ac_cv_path_PKGCONFIG"; then
23687  ac_pt_PKGCONFIG=$PKGCONFIG
23688  # Extract the first word of "pkg-config", so it can be a program name with args.
23689set dummy pkg-config; ac_word=$2
23690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23691printf %s "checking for $ac_word... " >&6; }
23692if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23693then :
23694  printf %s "(cached) " >&6
23695else $as_nop
23696  case $ac_pt_PKGCONFIG in
23697  [\\/]* | ?:[\\/]*)
23698  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23699  ;;
23700  *)
23701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23702as_dummy="$PATH:/usr/bin:/usr/local/bin"
23703for as_dir in $as_dummy
23704do
23705  IFS=$as_save_IFS
23706  case $as_dir in #(((
23707    '') as_dir=./ ;;
23708    */) ;;
23709    *) as_dir=$as_dir/ ;;
23710  esac
23711    for ac_exec_ext in '' $ac_executable_extensions; do
23712  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23713    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23714    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23715    break 2
23716  fi
23717done
23718  done
23719IFS=$as_save_IFS
23720
23721  ;;
23722esac
23723fi
23724ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23725if test -n "$ac_pt_PKGCONFIG"; then
23726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23727printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23728else
23729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23730printf "%s\n" "no" >&6; }
23731fi
23732
23733  if test "x$ac_pt_PKGCONFIG" = x; then
23734    PKGCONFIG="no"
23735  else
23736    case $cross_compiling:$ac_tool_warned in
23737yes:)
23738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23739printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23740ac_tool_warned=yes ;;
23741esac
23742    PKGCONFIG=$ac_pt_PKGCONFIG
23743  fi
23744else
23745  PKGCONFIG="$ac_cv_path_PKGCONFIG"
23746fi
23747
23748    fi
23749
23750    if test "x$PKGCONFIG" != "xno"; then
23751      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
23752printf %s "checking for zlib options with pkg-config... " >&6; }
23753            itexists=`
23754    if test -n ""; then
23755      PKG_CONFIG_LIBDIR=""
23756      export PKG_CONFIG_LIBDIR
23757    fi
23758         $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
23759
23760      if test -z "$itexists"; then
23761                        PKGCONFIG="no"
23762        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23763printf "%s\n" "no" >&6; }
23764      else
23765        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23766printf "%s\n" "found" >&6; }
23767      fi
23768    fi
23769
23770
23771    if test "$PKGCONFIG" != "no" ; then
23772      ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`"
23773      if test -n "$ZLIB_LIBS"; then
23774        LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
23775      else
23776        ZLIB_LIBS="`$PKGCONFIG --libs zlib`"
23777      fi
23778      LIBS="$ZLIB_LIBS $LIBS"
23779      CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`"
23780      OPT_ZLIB=""
23781      HAVE_LIBZ="1"
23782    fi
23783
23784    if test -z "$HAVE_LIBZ"; then
23785
23786
23787      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
23788printf %s "checking for inflateEnd in -lz... " >&6; }
23789if test ${ac_cv_lib_z_inflateEnd+y}
23790then :
23791  printf %s "(cached) " >&6
23792else $as_nop
23793  ac_check_lib_save_LIBS=$LIBS
23794LIBS="-lz  $LIBS"
23795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23796/* end confdefs.h.  */
23797
23798
23799#ifdef __cplusplus
23800extern "C"
23801#endif
23802char inflateEnd ();
23803int main (void)
23804{
23805return inflateEnd ();
23806 ;
23807 return 0;
23808}
23809_ACEOF
23810if ac_fn_c_try_link "$LINENO"
23811then :
23812  ac_cv_lib_z_inflateEnd=yes
23813else $as_nop
23814  ac_cv_lib_z_inflateEnd=no
23815fi
23816rm -f core conftest.err conftest.$ac_objext conftest.beam \
23817    conftest$ac_exeext conftest.$ac_ext
23818LIBS=$ac_check_lib_save_LIBS
23819fi
23820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
23821printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
23822if test "x$ac_cv_lib_z_inflateEnd" = xyes
23823then :
23824                     HAVE_LIBZ="1"
23825                    ZLIB_LIBS="-lz"
23826                    LIBS="$ZLIB_LIBS $LIBS"
23827else $as_nop
23828                     OPT_ZLIB="/usr/local"
23829fi
23830
23831    fi
23832  fi
23833
23834    if test -n "$OPT_ZLIB"; then
23835     CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
23836     LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
23837  fi
23838
23839  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23840if test "x$ac_cv_header_zlib_h" = xyes
23841then :
23842
23843        HAVE_ZLIB_H="1"
23844        if test "$HAVE_LIBZ" != "1"; then
23845      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
23846printf %s "checking for gzread in -lz... " >&6; }
23847if test ${ac_cv_lib_z_gzread+y}
23848then :
23849  printf %s "(cached) " >&6
23850else $as_nop
23851  ac_check_lib_save_LIBS=$LIBS
23852LIBS="-lz  $LIBS"
23853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23854/* end confdefs.h.  */
23855
23856
23857#ifdef __cplusplus
23858extern "C"
23859#endif
23860char gzread ();
23861int main (void)
23862{
23863return gzread ();
23864 ;
23865 return 0;
23866}
23867_ACEOF
23868if ac_fn_c_try_link "$LINENO"
23869then :
23870  ac_cv_lib_z_gzread=yes
23871else $as_nop
23872  ac_cv_lib_z_gzread=no
23873fi
23874rm -f core conftest.err conftest.$ac_objext conftest.beam \
23875    conftest$ac_exeext conftest.$ac_ext
23876LIBS=$ac_check_lib_save_LIBS
23877fi
23878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
23879printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
23880if test "x$ac_cv_lib_z_gzread" = xyes
23881then :
23882
23883                                      HAVE_LIBZ="1"
23884                   ZLIB_LIBS="-lz"
23885                   LIBS="$ZLIB_LIBS $LIBS"
23886
23887else $as_nop
23888   CPPFLAGS=$clean_CPPFLAGS
23889                   LDFLAGS=$clean_LDFLAGS
23890fi
23891
23892    fi
23893
23894else $as_nop
23895
23896            CPPFLAGS=$clean_CPPFLAGS
23897      LDFLAGS=$clean_LDFLAGS
23898
23899fi
23900
23901
23902  if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
23903  then
23904    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
23905printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
23906    HAVE_LIBZ=""
23907    CPPFLAGS=$clean_CPPFLAGS
23908    LDFLAGS=$clean_LDFLAGS
23909    LIBS=$clean_LIBS
23910    ZLIB_LIBS=""
23911  elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
23912  then
23913    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
23914printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
23915    CPPFLAGS=$clean_CPPFLAGS
23916    LDFLAGS=$clean_LDFLAGS
23917    LIBS=$clean_LIBS
23918    ZLIB_LIBS=""
23919  elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
23920  then
23921
23922
23923printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
23924
23925    LIBS="$ZLIB_LIBS $clean_LIBS"
23926
23927        AMFIXLIB="1"
23928    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
23929printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
23930    curl_zlib_msg="enabled"
23931  fi
23932fi
23933
23934 if test x"$AMFIXLIB" = x1; then
23935  HAVE_LIBZ_TRUE=
23936  HAVE_LIBZ_FALSE='#'
23937else
23938  HAVE_LIBZ_TRUE='#'
23939  HAVE_LIBZ_FALSE=
23940fi
23941
23942
23943
23944
23945
23946OPT_BROTLI=off
23947
23948# Check whether --with-brotli was given.
23949if test ${with_brotli+y}
23950then :
23951  withval=$with_brotli; OPT_BROTLI=$withval
23952fi
23953
23954
23955if test X"$OPT_BROTLI" != Xno; then
23956    CLEANLDFLAGS="$LDFLAGS"
23957  CLEANCPPFLAGS="$CPPFLAGS"
23958  CLEANLIBS="$LIBS"
23959
23960  case "$OPT_BROTLI" in
23961  yes)
23962
23963    if test -n "$PKG_CONFIG"; then
23964      PKGCONFIG="$PKG_CONFIG"
23965    else
23966      if test -n "$ac_tool_prefix"; then
23967  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23968set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23970printf %s "checking for $ac_word... " >&6; }
23971if test ${ac_cv_path_PKGCONFIG+y}
23972then :
23973  printf %s "(cached) " >&6
23974else $as_nop
23975  case $PKGCONFIG in
23976  [\\/]* | ?:[\\/]*)
23977  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23978  ;;
23979  *)
23980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23981as_dummy="$PATH:/usr/bin:/usr/local/bin"
23982for as_dir in $as_dummy
23983do
23984  IFS=$as_save_IFS
23985  case $as_dir in #(((
23986    '') as_dir=./ ;;
23987    */) ;;
23988    *) as_dir=$as_dir/ ;;
23989  esac
23990    for ac_exec_ext in '' $ac_executable_extensions; do
23991  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23992    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23993    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23994    break 2
23995  fi
23996done
23997  done
23998IFS=$as_save_IFS
23999
24000  ;;
24001esac
24002fi
24003PKGCONFIG=$ac_cv_path_PKGCONFIG
24004if test -n "$PKGCONFIG"; then
24005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24006printf "%s\n" "$PKGCONFIG" >&6; }
24007else
24008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24009printf "%s\n" "no" >&6; }
24010fi
24011
24012
24013fi
24014if test -z "$ac_cv_path_PKGCONFIG"; then
24015  ac_pt_PKGCONFIG=$PKGCONFIG
24016  # Extract the first word of "pkg-config", so it can be a program name with args.
24017set dummy pkg-config; ac_word=$2
24018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24019printf %s "checking for $ac_word... " >&6; }
24020if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24021then :
24022  printf %s "(cached) " >&6
24023else $as_nop
24024  case $ac_pt_PKGCONFIG in
24025  [\\/]* | ?:[\\/]*)
24026  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24027  ;;
24028  *)
24029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24030as_dummy="$PATH:/usr/bin:/usr/local/bin"
24031for as_dir in $as_dummy
24032do
24033  IFS=$as_save_IFS
24034  case $as_dir in #(((
24035    '') as_dir=./ ;;
24036    */) ;;
24037    *) as_dir=$as_dir/ ;;
24038  esac
24039    for ac_exec_ext in '' $ac_executable_extensions; do
24040  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24041    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24042    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24043    break 2
24044  fi
24045done
24046  done
24047IFS=$as_save_IFS
24048
24049  ;;
24050esac
24051fi
24052ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24053if test -n "$ac_pt_PKGCONFIG"; then
24054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24055printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24056else
24057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24058printf "%s\n" "no" >&6; }
24059fi
24060
24061  if test "x$ac_pt_PKGCONFIG" = x; then
24062    PKGCONFIG="no"
24063  else
24064    case $cross_compiling:$ac_tool_warned in
24065yes:)
24066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24067printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24068ac_tool_warned=yes ;;
24069esac
24070    PKGCONFIG=$ac_pt_PKGCONFIG
24071  fi
24072else
24073  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24074fi
24075
24076    fi
24077
24078    if test "x$PKGCONFIG" != "xno"; then
24079      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
24080printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
24081            itexists=`
24082    if test -n ""; then
24083      PKG_CONFIG_LIBDIR=""
24084      export PKG_CONFIG_LIBDIR
24085    fi
24086         $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
24087
24088      if test -z "$itexists"; then
24089                        PKGCONFIG="no"
24090        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24091printf "%s\n" "no" >&6; }
24092      else
24093        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24094printf "%s\n" "found" >&6; }
24095      fi
24096    fi
24097
24098
24099    if test "$PKGCONFIG" != "no" ; then
24100      LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
24101      LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
24102      CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
24103      version=`$PKGCONFIG --modversion libbrotlidec`
24104      DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
24105    fi
24106
24107    ;;
24108  off)
24109        ;;
24110  *)
24111        PREFIX_BROTLI=$OPT_BROTLI
24112    ;;
24113  esac
24114
24115    if test -n "$PREFIX_BROTLI"; then
24116    LIB_BROTLI="-lbrotlidec"
24117    LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
24118    CPP_BROTLI=-I${PREFIX_BROTLI}/include
24119    DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
24120  fi
24121
24122  LDFLAGS="$LDFLAGS $LD_BROTLI"
24123  CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
24124  LIBS="$LIB_BROTLI $LIBS"
24125
24126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
24127printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
24128if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
24129then :
24130  printf %s "(cached) " >&6
24131else $as_nop
24132  ac_check_lib_save_LIBS=$LIBS
24133LIBS="-lbrotlidec  $LIBS"
24134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24135/* end confdefs.h.  */
24136
24137
24138#ifdef __cplusplus
24139extern "C"
24140#endif
24141char BrotliDecoderDecompress ();
24142int main (void)
24143{
24144return BrotliDecoderDecompress ();
24145 ;
24146 return 0;
24147}
24148_ACEOF
24149if ac_fn_c_try_link "$LINENO"
24150then :
24151  ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
24152else $as_nop
24153  ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
24154fi
24155rm -f core conftest.err conftest.$ac_objext conftest.beam \
24156    conftest$ac_exeext conftest.$ac_ext
24157LIBS=$ac_check_lib_save_LIBS
24158fi
24159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
24160printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
24161if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
24162then :
24163  printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
24164
24165  LIBS="-lbrotlidec $LIBS"
24166
24167fi
24168
24169
24170         for ac_header in brotli/decode.h
24171do :
24172  ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
24173if test "x$ac_cv_header_brotli_decode_h" = xyes
24174then :
24175  printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
24176 curl_brotli_msg="enabled (libbrotlidec)"
24177    HAVE_BROTLI=1
24178
24179printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
24180
24181    HAVE_BROTLI=1
24182
24183
24184fi
24185
24186done
24187
24188  if test X"$OPT_BROTLI" != Xoff &&
24189     test "$HAVE_BROTLI" != "1"; then
24190    as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
24191  fi
24192
24193  if test "$HAVE_BROTLI" = "1"; then
24194    if test -n "$DIR_BROTLI"; then
24195
24196       if test "x$cross_compiling" != "xyes"; then
24197         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
24198         export CURL_LIBRARY_PATH
24199         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
24200printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
24201       fi
24202    fi
24203  else
24204        LDFLAGS=$CLEANLDFLAGS
24205    CPPFLAGS=$CLEANCPPFLAGS
24206    LIBS=$CLEANLIBS
24207  fi
24208fi
24209
24210
24211OPT_ZSTD=off
24212
24213# Check whether --with-zstd was given.
24214if test ${with_zstd+y}
24215then :
24216  withval=$with_zstd; OPT_ZSTD=$withval
24217fi
24218
24219
24220if test X"$OPT_ZSTD" != Xno; then
24221    CLEANLDFLAGS="$LDFLAGS"
24222  CLEANCPPFLAGS="$CPPFLAGS"
24223  CLEANLIBS="$LIBS"
24224
24225  case "$OPT_ZSTD" in
24226  yes)
24227
24228    if test -n "$PKG_CONFIG"; then
24229      PKGCONFIG="$PKG_CONFIG"
24230    else
24231      if test -n "$ac_tool_prefix"; then
24232  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24233set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24235printf %s "checking for $ac_word... " >&6; }
24236if test ${ac_cv_path_PKGCONFIG+y}
24237then :
24238  printf %s "(cached) " >&6
24239else $as_nop
24240  case $PKGCONFIG in
24241  [\\/]* | ?:[\\/]*)
24242  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24243  ;;
24244  *)
24245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24246as_dummy="$PATH:/usr/bin:/usr/local/bin"
24247for as_dir in $as_dummy
24248do
24249  IFS=$as_save_IFS
24250  case $as_dir in #(((
24251    '') as_dir=./ ;;
24252    */) ;;
24253    *) as_dir=$as_dir/ ;;
24254  esac
24255    for ac_exec_ext in '' $ac_executable_extensions; do
24256  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24257    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24258    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24259    break 2
24260  fi
24261done
24262  done
24263IFS=$as_save_IFS
24264
24265  ;;
24266esac
24267fi
24268PKGCONFIG=$ac_cv_path_PKGCONFIG
24269if test -n "$PKGCONFIG"; then
24270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24271printf "%s\n" "$PKGCONFIG" >&6; }
24272else
24273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24274printf "%s\n" "no" >&6; }
24275fi
24276
24277
24278fi
24279if test -z "$ac_cv_path_PKGCONFIG"; then
24280  ac_pt_PKGCONFIG=$PKGCONFIG
24281  # Extract the first word of "pkg-config", so it can be a program name with args.
24282set dummy pkg-config; ac_word=$2
24283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24284printf %s "checking for $ac_word... " >&6; }
24285if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24286then :
24287  printf %s "(cached) " >&6
24288else $as_nop
24289  case $ac_pt_PKGCONFIG in
24290  [\\/]* | ?:[\\/]*)
24291  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24292  ;;
24293  *)
24294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24295as_dummy="$PATH:/usr/bin:/usr/local/bin"
24296for as_dir in $as_dummy
24297do
24298  IFS=$as_save_IFS
24299  case $as_dir in #(((
24300    '') as_dir=./ ;;
24301    */) ;;
24302    *) as_dir=$as_dir/ ;;
24303  esac
24304    for ac_exec_ext in '' $ac_executable_extensions; do
24305  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24306    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24307    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24308    break 2
24309  fi
24310done
24311  done
24312IFS=$as_save_IFS
24313
24314  ;;
24315esac
24316fi
24317ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24318if test -n "$ac_pt_PKGCONFIG"; then
24319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24320printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24321else
24322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24323printf "%s\n" "no" >&6; }
24324fi
24325
24326  if test "x$ac_pt_PKGCONFIG" = x; then
24327    PKGCONFIG="no"
24328  else
24329    case $cross_compiling:$ac_tool_warned in
24330yes:)
24331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24332printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24333ac_tool_warned=yes ;;
24334esac
24335    PKGCONFIG=$ac_pt_PKGCONFIG
24336  fi
24337else
24338  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24339fi
24340
24341    fi
24342
24343    if test "x$PKGCONFIG" != "xno"; then
24344      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
24345printf %s "checking for libzstd options with pkg-config... " >&6; }
24346            itexists=`
24347    if test -n ""; then
24348      PKG_CONFIG_LIBDIR=""
24349      export PKG_CONFIG_LIBDIR
24350    fi
24351         $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
24352
24353      if test -z "$itexists"; then
24354                        PKGCONFIG="no"
24355        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24356printf "%s\n" "no" >&6; }
24357      else
24358        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24359printf "%s\n" "found" >&6; }
24360      fi
24361    fi
24362
24363
24364    if test "$PKGCONFIG" != "no" ; then
24365      LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
24366      LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
24367      CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
24368      version=`$PKGCONFIG --modversion libzstd`
24369      DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
24370    fi
24371
24372    ;;
24373  off)
24374        ;;
24375  *)
24376        PREFIX_ZSTD=$OPT_ZSTD
24377    ;;
24378  esac
24379
24380    if test -n "$PREFIX_ZSTD"; then
24381    LIB_ZSTD="-lzstd"
24382    LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
24383    CPP_ZSTD=-I${PREFIX_ZSTD}/include
24384    DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
24385  fi
24386
24387  LDFLAGS="$LDFLAGS $LD_ZSTD"
24388  CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
24389  LIBS="$LIB_ZSTD $LIBS"
24390
24391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
24392printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
24393if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
24394then :
24395  printf %s "(cached) " >&6
24396else $as_nop
24397  ac_check_lib_save_LIBS=$LIBS
24398LIBS="-lzstd  $LIBS"
24399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400/* end confdefs.h.  */
24401
24402
24403#ifdef __cplusplus
24404extern "C"
24405#endif
24406char ZSTD_createDStream ();
24407int main (void)
24408{
24409return ZSTD_createDStream ();
24410 ;
24411 return 0;
24412}
24413_ACEOF
24414if ac_fn_c_try_link "$LINENO"
24415then :
24416  ac_cv_lib_zstd_ZSTD_createDStream=yes
24417else $as_nop
24418  ac_cv_lib_zstd_ZSTD_createDStream=no
24419fi
24420rm -f core conftest.err conftest.$ac_objext conftest.beam \
24421    conftest$ac_exeext conftest.$ac_ext
24422LIBS=$ac_check_lib_save_LIBS
24423fi
24424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
24425printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
24426if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
24427then :
24428  printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
24429
24430  LIBS="-lzstd $LIBS"
24431
24432fi
24433
24434
24435         for ac_header in zstd.h
24436do :
24437  ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
24438if test "x$ac_cv_header_zstd_h" = xyes
24439then :
24440  printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
24441 curl_zstd_msg="enabled (libzstd)"
24442    HAVE_ZSTD=1
24443
24444printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
24445
24446    HAVE_ZSTD=1
24447
24448
24449fi
24450
24451done
24452
24453  if test X"$OPT_ZSTD" != Xoff &&
24454     test "$HAVE_ZSTD" != "1"; then
24455    as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
24456  fi
24457
24458  if test "$HAVE_ZSTD" = "1"; then
24459    if test -n "$DIR_ZSTD"; then
24460
24461       if test "x$cross_compiling" != "xyes"; then
24462         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
24463         export CURL_LIBRARY_PATH
24464         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
24465printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
24466       fi
24467    fi
24468  else
24469        LDFLAGS=$CLEANLDFLAGS
24470    CPPFLAGS=$CLEANCPPFLAGS
24471    LIBS=$CLEANLIBS
24472  fi
24473fi
24474
24475
24476LDAPLIBNAME=""
24477
24478# Check whether --with-ldap-lib was given.
24479if test ${with_ldap_lib+y}
24480then :
24481  withval=$with_ldap_lib; LDAPLIBNAME="$withval"
24482fi
24483
24484
24485LBERLIBNAME=""
24486
24487# Check whether --with-lber-lib was given.
24488if test ${with_lber_lib+y}
24489then :
24490  withval=$with_lber_lib; LBERLIBNAME="$withval"
24491fi
24492
24493
24494if test x$CURL_DISABLE_LDAP != x1 ; then
24495
24496
24497    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
24498printf %s "checking for lber.h... " >&6; }
24499if test ${curl_cv_header_lber_h+y}
24500then :
24501  printf %s "(cached) " >&6
24502else $as_nop
24503
24504    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24505/* end confdefs.h.  */
24506
24507
24508#undef inline
24509#ifdef _WIN32
24510#ifndef WIN32_LEAN_AND_MEAN
24511#define WIN32_LEAN_AND_MEAN
24512#endif
24513#include <windows.h>
24514#else
24515#ifdef HAVE_SYS_TYPES_H
24516#include <sys/types.h>
24517#endif
24518#endif
24519#ifndef NULL
24520#define NULL (void *)0
24521#endif
24522#include <lber.h>
24523
24524int main (void)
24525{
24526
24527        BerValue *bvp = NULL;
24528        BerElement *bep = ber_init(bvp);
24529        ber_free(bep, 1);
24530
24531 ;
24532 return 0;
24533}
24534
24535_ACEOF
24536if ac_fn_c_try_compile "$LINENO"
24537then :
24538
24539      curl_cv_header_lber_h="yes"
24540
24541else $as_nop
24542
24543      curl_cv_header_lber_h="no"
24544
24545fi
24546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24547
24548fi
24549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
24550printf "%s\n" "$curl_cv_header_lber_h" >&6; }
24551  if test "$curl_cv_header_lber_h" = "yes"; then
24552
24553printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
24554
24555    #
24556    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24557/* end confdefs.h.  */
24558
24559
24560#undef inline
24561#ifdef _WIN32
24562#ifndef WIN32_LEAN_AND_MEAN
24563#define WIN32_LEAN_AND_MEAN
24564#endif
24565#include <windows.h>
24566#else
24567#ifdef HAVE_SYS_TYPES_H
24568#include <sys/types.h>
24569#endif
24570#endif
24571#ifndef NULL
24572#define NULL (void *)0
24573#endif
24574#ifndef LDAP_DEPRECATED
24575#define LDAP_DEPRECATED 1
24576#endif
24577#include <ldap.h>
24578
24579int main (void)
24580{
24581
24582        BerValue *bvp = NULL;
24583        BerElement *bep = ber_init(bvp);
24584        ber_free(bep, 1);
24585
24586 ;
24587 return 0;
24588}
24589
24590_ACEOF
24591if ac_fn_c_try_compile "$LINENO"
24592then :
24593
24594      curl_cv_need_header_lber_h="no"
24595
24596else $as_nop
24597
24598      curl_cv_need_header_lber_h="yes"
24599
24600fi
24601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24602    #
24603    case "$curl_cv_need_header_lber_h" in
24604      yes)
24605
24606printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
24607
24608        ;;
24609    esac
24610  fi
24611
24612
24613    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
24614printf %s "checking for ldap.h... " >&6; }
24615if test ${curl_cv_header_ldap_h+y}
24616then :
24617  printf %s "(cached) " >&6
24618else $as_nop
24619
24620    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621/* end confdefs.h.  */
24622
24623
24624#undef inline
24625#ifdef _WIN32
24626#ifndef WIN32_LEAN_AND_MEAN
24627#define WIN32_LEAN_AND_MEAN
24628#endif
24629#include <windows.h>
24630#else
24631#ifdef HAVE_SYS_TYPES_H
24632#include <sys/types.h>
24633#endif
24634#endif
24635#ifndef LDAP_DEPRECATED
24636#define LDAP_DEPRECATED 1
24637#endif
24638#ifdef NEED_LBER_H
24639#include <lber.h>
24640#endif
24641#include <ldap.h>
24642
24643int main (void)
24644{
24645
24646        LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
24647        int res = ldap_unbind(ldp);
24648
24649 ;
24650 return 0;
24651}
24652
24653_ACEOF
24654if ac_fn_c_try_compile "$LINENO"
24655then :
24656
24657      curl_cv_header_ldap_h="yes"
24658
24659else $as_nop
24660
24661      curl_cv_header_ldap_h="no"
24662
24663fi
24664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24665
24666fi
24667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
24668printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
24669  case "$curl_cv_header_ldap_h" in
24670    yes)
24671
24672printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
24673
24674      ;;
24675  esac
24676
24677
24678    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
24679printf %s "checking for ldap_ssl.h... " >&6; }
24680if test ${curl_cv_header_ldap_ssl_h+y}
24681then :
24682  printf %s "(cached) " >&6
24683else $as_nop
24684
24685    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24686/* end confdefs.h.  */
24687
24688
24689#undef inline
24690#ifdef _WIN32
24691#ifndef WIN32_LEAN_AND_MEAN
24692#define WIN32_LEAN_AND_MEAN
24693#endif
24694#include <windows.h>
24695#else
24696#ifdef HAVE_SYS_TYPES_H
24697#include <sys/types.h>
24698#endif
24699#endif
24700#ifndef LDAP_DEPRECATED
24701#define LDAP_DEPRECATED 1
24702#endif
24703#ifdef NEED_LBER_H
24704#include <lber.h>
24705#endif
24706#ifdef HAVE_LDAP_H
24707#include <ldap.h>
24708#endif
24709#include <ldap_ssl.h>
24710
24711int main (void)
24712{
24713
24714        LDAP *ldp = ldapssl_init("0.0.0.0", LDAPS_PORT, 1);
24715
24716 ;
24717 return 0;
24718}
24719
24720_ACEOF
24721if ac_fn_c_try_compile "$LINENO"
24722then :
24723
24724      curl_cv_header_ldap_ssl_h="yes"
24725
24726else $as_nop
24727
24728      curl_cv_header_ldap_ssl_h="no"
24729
24730fi
24731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24732
24733fi
24734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
24735printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
24736  case "$curl_cv_header_ldap_ssl_h" in
24737    yes)
24738
24739printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
24740
24741      ;;
24742  esac
24743
24744
24745  if test -z "$LDAPLIBNAME" ; then
24746    if test "$curl_cv_native_windows" = "yes"; then
24747            LDAPLIBNAME="wldap32"
24748      LBERLIBNAME="no"
24749    fi
24750  fi
24751
24752  if test "$LDAPLIBNAME" ; then
24753    as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
24754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
24755printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
24756if eval test \${$as_ac_Lib+y}
24757then :
24758  printf %s "(cached) " >&6
24759else $as_nop
24760  ac_check_lib_save_LIBS=$LIBS
24761LIBS="-l"$LDAPLIBNAME"  $LIBS"
24762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763/* end confdefs.h.  */
24764
24765
24766#ifdef __cplusplus
24767extern "C"
24768#endif
24769char ldap_init ();
24770int main (void)
24771{
24772return ldap_init ();
24773 ;
24774 return 0;
24775}
24776_ACEOF
24777if ac_fn_c_try_link "$LINENO"
24778then :
24779  eval "$as_ac_Lib=yes"
24780else $as_nop
24781  eval "$as_ac_Lib=no"
24782fi
24783rm -f core conftest.err conftest.$ac_objext conftest.beam \
24784    conftest$ac_exeext conftest.$ac_ext
24785LIBS=$ac_check_lib_save_LIBS
24786fi
24787eval ac_res=\$$as_ac_Lib
24788	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24789printf "%s\n" "$ac_res" >&6; }
24790if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24791then :
24792  cat >>confdefs.h <<_ACEOF
24793#define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
24794_ACEOF
24795
24796  LIBS="-l"$LDAPLIBNAME" $LIBS"
24797
24798else $as_nop
24799
24800      if test -n "$ldap_askedfor"; then
24801        as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24802      fi
24803      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
24804printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
24805
24806printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24807
24808      CURL_DISABLE_LDAP=1
24809
24810
24811printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24812
24813      CURL_DISABLE_LDAPS=1
24814
24815fi
24816
24817  else
24818
24819    #
24820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
24821printf %s "checking for LDAP libraries... " >&6; }
24822  #
24823  u_libs=""
24824  #
24825
24826  #
24827  curl_cv_save_LIBS="$LIBS"
24828  curl_cv_ldap_LIBS="unknown"
24829  #
24830  for x_nlibs in '' "$u_libs" \
24831    '-lldap' \
24832    '-lldap -llber' \
24833    '-llber -lldap' \
24834    '-lldapssl -lldapx -lldapsdk' \
24835    '-lldapsdk -lldapx -lldapssl' \
24836    '-lldap -llber -lssl -lcrypto' ; do
24837
24838    if test "$curl_cv_ldap_LIBS" = "unknown"; then
24839      if test -z "$x_nlibs"; then
24840        LIBS="$curl_cv_save_LIBS"
24841      else
24842        LIBS="$x_nlibs $curl_cv_save_LIBS"
24843      fi
24844      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24845/* end confdefs.h.  */
24846
24847
24848#undef inline
24849#ifdef _WIN32
24850#ifndef WIN32_LEAN_AND_MEAN
24851#define WIN32_LEAN_AND_MEAN
24852#endif
24853#include <windows.h>
24854#else
24855#ifdef HAVE_SYS_TYPES_H
24856#include <sys/types.h>
24857#endif
24858#endif
24859#ifndef NULL
24860#define NULL (void *)0
24861#endif
24862#ifndef LDAP_DEPRECATED
24863#define LDAP_DEPRECATED 1
24864#endif
24865#ifdef NEED_LBER_H
24866#include <lber.h>
24867#endif
24868#ifdef HAVE_LDAP_H
24869#include <ldap.h>
24870#endif
24871
24872int main (void)
24873{
24874
24875          BerValue *bvp = NULL;
24876          BerElement *bep = ber_init(bvp);
24877          LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
24878          int res = ldap_unbind(ldp);
24879          ber_free(bep, 1);
24880
24881 ;
24882 return 0;
24883}
24884
24885_ACEOF
24886if ac_fn_c_try_link "$LINENO"
24887then :
24888
24889        curl_cv_ldap_LIBS="$x_nlibs"
24890
24891fi
24892rm -f core conftest.err conftest.$ac_objext conftest.beam \
24893    conftest$ac_exeext conftest.$ac_ext
24894    fi
24895  done
24896  #
24897  LIBS="$curl_cv_save_LIBS"
24898  #
24899  case X-"$curl_cv_ldap_LIBS" in
24900    X-unknown)
24901      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
24902printf "%s\n" "cannot find LDAP libraries" >&6; }
24903      ;;
24904    X-)
24905      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
24906printf "%s\n" "no additional lib required" >&6; }
24907      ;;
24908    *)
24909      if test -z "$curl_cv_save_LIBS"; then
24910        LIBS="$curl_cv_ldap_LIBS"
24911      else
24912        LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
24913      fi
24914      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
24915printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
24916      ;;
24917  esac
24918  #
24919
24920    case X-"$curl_cv_ldap_LIBS" in
24921      X-unknown)
24922        if test -n "$ldap_askedfor"; then
24923          as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24924        fi
24925        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
24926printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
24927
24928printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24929
24930        CURL_DISABLE_LDAP=1
24931
24932
24933printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24934
24935        CURL_DISABLE_LDAPS=1
24936
24937        ;;
24938    esac
24939  fi
24940fi
24941
24942if test x$CURL_DISABLE_LDAP != x1 ; then
24943
24944  if test "$LBERLIBNAME" ; then
24945            if test "$LBERLIBNAME" != "no" ; then
24946      as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
24947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
24948printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
24949if eval test \${$as_ac_Lib+y}
24950then :
24951  printf %s "(cached) " >&6
24952else $as_nop
24953  ac_check_lib_save_LIBS=$LIBS
24954LIBS="-l"$LBERLIBNAME"  $LIBS"
24955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956/* end confdefs.h.  */
24957
24958
24959#ifdef __cplusplus
24960extern "C"
24961#endif
24962char ber_free ();
24963int main (void)
24964{
24965return ber_free ();
24966 ;
24967 return 0;
24968}
24969_ACEOF
24970if ac_fn_c_try_link "$LINENO"
24971then :
24972  eval "$as_ac_Lib=yes"
24973else $as_nop
24974  eval "$as_ac_Lib=no"
24975fi
24976rm -f core conftest.err conftest.$ac_objext conftest.beam \
24977    conftest$ac_exeext conftest.$ac_ext
24978LIBS=$ac_check_lib_save_LIBS
24979fi
24980eval ac_res=\$$as_ac_Lib
24981	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24982printf "%s\n" "$ac_res" >&6; }
24983if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24984then :
24985  cat >>confdefs.h <<_ACEOF
24986#define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
24987_ACEOF
24988
24989  LIBS="-l"$LBERLIBNAME" $LIBS"
24990
24991else $as_nop
24992
24993        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
24994printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
24995
24996printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24997
24998        CURL_DISABLE_LDAP=1
24999
25000
25001printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
25002
25003        CURL_DISABLE_LDAPS=1
25004
25005fi
25006
25007    fi
25008  fi
25009fi
25010
25011if test x$CURL_DISABLE_LDAP != x1 ; then
25012  ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
25013if test "x$ac_cv_func_ldap_url_parse" = xyes
25014then :
25015  printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
25016
25017fi
25018ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd"
25019if test "x$ac_cv_func_ldap_init_fd" = xyes
25020then :
25021  printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h
25022
25023fi
25024
25025
25026  if test "$LDAPLIBNAME" = "wldap32"; then
25027    curl_ldap_msg="enabled (winldap)"
25028
25029printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
25030
25031  else
25032    if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
25033      curl_ldap_msg="enabled (OpenLDAP)"
25034
25035printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
25036
25037      USE_OPENLDAP=1
25038
25039    else
25040      curl_ldap_msg="enabled (ancient OpenLDAP)"
25041    fi
25042  fi
25043fi
25044
25045if test x$CURL_DISABLE_LDAPS != x1 ; then
25046    curl_ldaps_msg="enabled"
25047fi
25048
25049
25050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
25051printf %s "checking whether to enable IPv6... " >&6; }
25052# Check whether --enable-ipv6 was given.
25053if test ${enable_ipv6+y}
25054then :
25055  enableval=$enable_ipv6;  case "$enableval" in
25056  no)
25057       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25058printf "%s\n" "no" >&6; }
25059       ipv6=no
25060       ;;
25061  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25062printf "%s\n" "yes" >&6; }
25063       ipv6=yes
25064       ;;
25065  esac
25066else $as_nop
25067  if test "$cross_compiling" = yes
25068then :
25069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25070printf "%s\n" "yes" >&6; }
25071  ipv6=yes
25072
25073else $as_nop
25074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25075/* end confdefs.h.  */
25076
25077/* are AF_INET6 and sockaddr_in6 available? */
25078#include <sys/types.h>
25079#ifdef _WIN32
25080#include <winsock2.h>
25081#include <ws2tcpip.h>
25082#else
25083#include <sys/socket.h>
25084#include <netinet/in.h>
25085#if defined (__TANDEM)
25086# include <netinet/in6.h>
25087#endif
25088#endif
25089
25090int main(void)
25091{
25092 struct sockaddr_in6 s;
25093 (void)s;
25094 return socket(AF_INET6, SOCK_STREAM, 0) < 0;
25095}
25096
25097
25098_ACEOF
25099if ac_fn_c_try_run "$LINENO"
25100then :
25101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25102printf "%s\n" "yes" >&6; }
25103  ipv6=yes
25104else $as_nop
25105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25106printf "%s\n" "no" >&6; }
25107  ipv6=no
25108fi
25109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25110  conftest.$ac_objext conftest.beam conftest.$ac_ext
25111fi
25112
25113fi
25114
25115
25116if test "$ipv6" = yes; then
25117  curl_ipv6_msg="enabled"
25118
25119printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
25120
25121  IPV6_ENABLED=1
25122
25123
25124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
25125printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
25126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25127/* end confdefs.h.  */
25128
25129#include <sys/types.h>
25130#ifdef _WIN32
25131#include <winsock2.h>
25132#include <ws2tcpip.h>
25133#else
25134#include <netinet/in.h>
25135#if defined (__TANDEM)
25136# include <netinet/in6.h>
25137#endif
25138#endif
25139
25140int main (void)
25141{
25142
25143  struct sockaddr_in6 s;
25144  s.sin6_scope_id = 0;
25145
25146 ;
25147 return 0;
25148}
25149_ACEOF
25150if ac_fn_c_try_compile "$LINENO"
25151then :
25152
25153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25154printf "%s\n" "yes" >&6; }
25155
25156printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
25157
25158
25159else $as_nop
25160
25161    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25162printf "%s\n" "no" >&6; }
25163
25164fi
25165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25166fi
25167
25168
25169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
25170printf %s "checking if argv can be written to... " >&6; }
25171
25172   case $host_os in
25173     darwin*)
25174      if test "$cross_compiling" = yes
25175then :
25176  curl_cv_writable_argv=cross
25177
25178else $as_nop
25179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25180/* end confdefs.h.  */
25181
25182int main(int argc, char **argv)
25183{
25184#ifdef _WIN32
25185  /* on Windows, writing to the argv does not hide the argument in
25186     process lists so it can just be skipped */
25187  (void)argc;
25188  (void)argv;
25189  return 1;
25190#else
25191  (void)argc;
25192  argv[0][0] = ' ';
25193  return (argv[0][0] == ' ')?0:1;
25194#endif
25195}
25196
25197_ACEOF
25198if ac_fn_c_try_run "$LINENO"
25199then :
25200  curl_cv_writable_argv=yes
25201
25202else $as_nop
25203  curl_cv_writable_argv=no
25204
25205fi
25206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25207  conftest.$ac_objext conftest.beam conftest.$ac_ext
25208fi
25209
25210     ;;
25211     *)
25212      oldcc=$CC
25213      old=$LD_LIBRARY_PATH
25214      CC="sh ./run-compiler"
25215      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
25216      export LD_LIBRARY_PATH
25217      if test "$cross_compiling" = yes
25218then :
25219  curl_cv_writable_argv=cross
25220
25221else $as_nop
25222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25223/* end confdefs.h.  */
25224
25225int main(int argc, char **argv)
25226{
25227#ifdef _WIN32
25228  /* on Windows, writing to the argv does not hide the argument in
25229     process lists so it can just be skipped */
25230  (void)argc;
25231  (void)argv;
25232  return 1;
25233#else
25234  (void)argc;
25235  argv[0][0] = ' ';
25236  return (argv[0][0] == ' ')?0:1;
25237#endif
25238}
25239
25240_ACEOF
25241if ac_fn_c_try_run "$LINENO"
25242then :
25243  curl_cv_writable_argv=yes
25244
25245else $as_nop
25246  curl_cv_writable_argv=no
25247
25248fi
25249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25250  conftest.$ac_objext conftest.beam conftest.$ac_ext
25251fi
25252
25253      LD_LIBRARY_PATH=$old # restore
25254      CC=$oldcc
25255     ;;
25256   esac
25257
25258case $curl_cv_writable_argv in
25259yes)
25260
25261printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
25262
25263        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25264printf "%s\n" "yes" >&6; }
25265        ;;
25266no)
25267        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25268printf "%s\n" "no" >&6; }
25269        ;;
25270*)
25271        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25272printf "%s\n" "no" >&6; }
25273        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
25274printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
25275        ;;
25276esac
25277
25278
25279
25280GSSAPI_ROOT="/usr"
25281
25282# Check whether --with-gssapi-includes was given.
25283if test ${with_gssapi_includes+y}
25284then :
25285  withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
25286    want_gss="yes"
25287
25288fi
25289
25290
25291
25292# Check whether --with-gssapi-libs was given.
25293if test ${with_gssapi_libs+y}
25294then :
25295  withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
25296    want_gss="yes"
25297
25298fi
25299
25300
25301
25302# Check whether --with-gssapi was given.
25303if test ${with_gssapi+y}
25304then :
25305  withval=$with_gssapi;
25306  GSSAPI_ROOT="$withval"
25307  if test x"$GSSAPI_ROOT" != xno; then
25308    want_gss="yes"
25309    if test x"$GSSAPI_ROOT" = xyes; then
25310            GSSAPI_ROOT="/usr"
25311    fi
25312  fi
25313
25314fi
25315
25316
25317: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
25318
25319save_CPPFLAGS="$CPPFLAGS"
25320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
25321printf %s "checking if GSS-API support is requested... " >&6; }
25322if test x"$want_gss" = xyes; then
25323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25324printf "%s\n" "yes" >&6; }
25325
25326  if test $GSSAPI_ROOT != "/usr"; then
25327
25328    if test -n "$PKG_CONFIG"; then
25329      PKGCONFIG="$PKG_CONFIG"
25330    else
25331      if test -n "$ac_tool_prefix"; then
25332  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25333set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25335printf %s "checking for $ac_word... " >&6; }
25336if test ${ac_cv_path_PKGCONFIG+y}
25337then :
25338  printf %s "(cached) " >&6
25339else $as_nop
25340  case $PKGCONFIG in
25341  [\\/]* | ?:[\\/]*)
25342  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25343  ;;
25344  *)
25345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25346as_dummy="$PATH:/usr/bin:/usr/local/bin"
25347for as_dir in $as_dummy
25348do
25349  IFS=$as_save_IFS
25350  case $as_dir in #(((
25351    '') as_dir=./ ;;
25352    */) ;;
25353    *) as_dir=$as_dir/ ;;
25354  esac
25355    for ac_exec_ext in '' $ac_executable_extensions; do
25356  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25357    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25358    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25359    break 2
25360  fi
25361done
25362  done
25363IFS=$as_save_IFS
25364
25365  ;;
25366esac
25367fi
25368PKGCONFIG=$ac_cv_path_PKGCONFIG
25369if test -n "$PKGCONFIG"; then
25370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25371printf "%s\n" "$PKGCONFIG" >&6; }
25372else
25373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25374printf "%s\n" "no" >&6; }
25375fi
25376
25377
25378fi
25379if test -z "$ac_cv_path_PKGCONFIG"; then
25380  ac_pt_PKGCONFIG=$PKGCONFIG
25381  # Extract the first word of "pkg-config", so it can be a program name with args.
25382set dummy pkg-config; ac_word=$2
25383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25384printf %s "checking for $ac_word... " >&6; }
25385if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25386then :
25387  printf %s "(cached) " >&6
25388else $as_nop
25389  case $ac_pt_PKGCONFIG in
25390  [\\/]* | ?:[\\/]*)
25391  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25392  ;;
25393  *)
25394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25395as_dummy="$PATH:/usr/bin:/usr/local/bin"
25396for as_dir in $as_dummy
25397do
25398  IFS=$as_save_IFS
25399  case $as_dir in #(((
25400    '') as_dir=./ ;;
25401    */) ;;
25402    *) as_dir=$as_dir/ ;;
25403  esac
25404    for ac_exec_ext in '' $ac_executable_extensions; do
25405  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25406    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25407    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25408    break 2
25409  fi
25410done
25411  done
25412IFS=$as_save_IFS
25413
25414  ;;
25415esac
25416fi
25417ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25418if test -n "$ac_pt_PKGCONFIG"; then
25419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25420printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25421else
25422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25423printf "%s\n" "no" >&6; }
25424fi
25425
25426  if test "x$ac_pt_PKGCONFIG" = x; then
25427    PKGCONFIG="no"
25428  else
25429    case $cross_compiling:$ac_tool_warned in
25430yes:)
25431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25432printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25433ac_tool_warned=yes ;;
25434esac
25435    PKGCONFIG=$ac_pt_PKGCONFIG
25436  fi
25437else
25438  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25439fi
25440
25441    fi
25442
25443    if test "x$PKGCONFIG" != "xno"; then
25444      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25445printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25446            itexists=`
25447    if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25448      PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25449      export PKG_CONFIG_LIBDIR
25450    fi
25451         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25452
25453      if test -z "$itexists"; then
25454                        PKGCONFIG="no"
25455        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25456printf "%s\n" "no" >&6; }
25457      else
25458        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25459printf "%s\n" "found" >&6; }
25460      fi
25461    fi
25462
25463  else
25464
25465    if test -n "$PKG_CONFIG"; then
25466      PKGCONFIG="$PKG_CONFIG"
25467    else
25468      if test -n "$ac_tool_prefix"; then
25469  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25470set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25472printf %s "checking for $ac_word... " >&6; }
25473if test ${ac_cv_path_PKGCONFIG+y}
25474then :
25475  printf %s "(cached) " >&6
25476else $as_nop
25477  case $PKGCONFIG in
25478  [\\/]* | ?:[\\/]*)
25479  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25480  ;;
25481  *)
25482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25483as_dummy="$PATH:/usr/bin:/usr/local/bin"
25484for as_dir in $as_dummy
25485do
25486  IFS=$as_save_IFS
25487  case $as_dir in #(((
25488    '') as_dir=./ ;;
25489    */) ;;
25490    *) as_dir=$as_dir/ ;;
25491  esac
25492    for ac_exec_ext in '' $ac_executable_extensions; do
25493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25494    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25495    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25496    break 2
25497  fi
25498done
25499  done
25500IFS=$as_save_IFS
25501
25502  ;;
25503esac
25504fi
25505PKGCONFIG=$ac_cv_path_PKGCONFIG
25506if test -n "$PKGCONFIG"; then
25507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25508printf "%s\n" "$PKGCONFIG" >&6; }
25509else
25510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25511printf "%s\n" "no" >&6; }
25512fi
25513
25514
25515fi
25516if test -z "$ac_cv_path_PKGCONFIG"; then
25517  ac_pt_PKGCONFIG=$PKGCONFIG
25518  # Extract the first word of "pkg-config", so it can be a program name with args.
25519set dummy pkg-config; ac_word=$2
25520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25521printf %s "checking for $ac_word... " >&6; }
25522if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25523then :
25524  printf %s "(cached) " >&6
25525else $as_nop
25526  case $ac_pt_PKGCONFIG in
25527  [\\/]* | ?:[\\/]*)
25528  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25529  ;;
25530  *)
25531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25532as_dummy="$PATH:/usr/bin:/usr/local/bin"
25533for as_dir in $as_dummy
25534do
25535  IFS=$as_save_IFS
25536  case $as_dir in #(((
25537    '') as_dir=./ ;;
25538    */) ;;
25539    *) as_dir=$as_dir/ ;;
25540  esac
25541    for ac_exec_ext in '' $ac_executable_extensions; do
25542  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25543    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25544    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25545    break 2
25546  fi
25547done
25548  done
25549IFS=$as_save_IFS
25550
25551  ;;
25552esac
25553fi
25554ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25555if test -n "$ac_pt_PKGCONFIG"; then
25556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25557printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25558else
25559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25560printf "%s\n" "no" >&6; }
25561fi
25562
25563  if test "x$ac_pt_PKGCONFIG" = x; then
25564    PKGCONFIG="no"
25565  else
25566    case $cross_compiling:$ac_tool_warned in
25567yes:)
25568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25569printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25570ac_tool_warned=yes ;;
25571esac
25572    PKGCONFIG=$ac_pt_PKGCONFIG
25573  fi
25574else
25575  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25576fi
25577
25578    fi
25579
25580    if test "x$PKGCONFIG" != "xno"; then
25581      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25582printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25583            itexists=`
25584    if test -n ""; then
25585      PKG_CONFIG_LIBDIR=""
25586      export PKG_CONFIG_LIBDIR
25587    fi
25588         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25589
25590      if test -z "$itexists"; then
25591                        PKGCONFIG="no"
25592        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25593printf "%s\n" "no" >&6; }
25594      else
25595        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25596printf "%s\n" "found" >&6; }
25597      fi
25598    fi
25599
25600  fi
25601  if test -z "$GSSAPI_INCS"; then
25602     if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25603        GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
25604     elif test "$PKGCONFIG" != "no" ; then
25605        GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
25606     elif test -f "$KRB5CONFIG"; then
25607        GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
25608     elif test "$GSSAPI_ROOT" != "yes"; then
25609        GSSAPI_INCS="-I$GSSAPI_ROOT/include"
25610     fi
25611  fi
25612
25613  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
25614
25615  ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
25616if test "x$ac_cv_header_gss_h" = xyes
25617then :
25618
25619
25620printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
25621
25622      gnu_gss=yes
25623
25624else $as_nop
25625
25626                   for ac_header in gssapi/gssapi.h
25627do :
25628  ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
25629if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
25630then :
25631  printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
25632
25633else $as_nop
25634  not_mit=1
25635fi
25636
25637done
25638             for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
25639do :
25640  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25641ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
25642$ac_includes_default
25643#ifdef HAVE_GSSAPI_GSSAPI_H
25644#include <gssapi/gssapi.h>
25645#endif
25646
25647"
25648if eval test \"x\$"$as_ac_Header"\" = x"yes"
25649then :
25650  cat >>confdefs.h <<_ACEOF
25651#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25652_ACEOF
25653
25654else $as_nop
25655  not_mit=1
25656fi
25657
25658done
25659      if test "x$not_mit" = "x1"; then
25660                ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25661if test "x$ac_cv_header_gssapi_h" = xyes
25662then :
25663
25664else $as_nop
25665
25666                            want_gss=no
25667              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
25668printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
25669
25670
25671fi
25672
25673      else
25674                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
25675printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
25676        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25677/* end confdefs.h.  */
25678
25679
25680#include <gssapi/gssapi.h>
25681#include <gssapi/gssapi_generic.h>
25682#include <gssapi/gssapi_krb5.h>
25683
25684int main (void)
25685{
25686
25687            gss_import_name(
25688                            (OM_uint32 *)0,
25689                            (gss_buffer_t)0,
25690                            GSS_C_NT_HOSTBASED_SERVICE,
25691                            (gss_name_t *)0);
25692
25693 ;
25694 return 0;
25695}
25696
25697_ACEOF
25698if ac_fn_c_try_compile "$LINENO"
25699then :
25700
25701          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25702printf "%s\n" "yes" >&6; }
25703
25704else $as_nop
25705
25706          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25707printf "%s\n" "no" >&6; }
25708
25709printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
25710
25711
25712fi
25713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25714      fi
25715
25716
25717fi
25718
25719else
25720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25721printf "%s\n" "no" >&6; }
25722fi
25723if test x"$want_gss" = xyes; then
25724
25725printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
25726
25727  HAVE_GSSAPI=1
25728  curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
25729
25730  if test -n "$gnu_gss"; then
25731    curl_gss_msg="enabled (GNU GSS)"
25732    LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25733    LIBS="-lgss $LIBS"
25734  elif test -z "$GSSAPI_LIB_DIR"; then
25735     case $host in
25736     *-*-darwin*)
25737        LIBS="-lgssapi_krb5 -lresolv $LIBS"
25738        ;;
25739     *)
25740        if test $GSSAPI_ROOT != "/usr"; then
25741
25742    if test -n "$PKG_CONFIG"; then
25743      PKGCONFIG="$PKG_CONFIG"
25744    else
25745      if test -n "$ac_tool_prefix"; then
25746  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25747set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25749printf %s "checking for $ac_word... " >&6; }
25750if test ${ac_cv_path_PKGCONFIG+y}
25751then :
25752  printf %s "(cached) " >&6
25753else $as_nop
25754  case $PKGCONFIG in
25755  [\\/]* | ?:[\\/]*)
25756  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25757  ;;
25758  *)
25759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25760as_dummy="$PATH:/usr/bin:/usr/local/bin"
25761for as_dir in $as_dummy
25762do
25763  IFS=$as_save_IFS
25764  case $as_dir in #(((
25765    '') as_dir=./ ;;
25766    */) ;;
25767    *) as_dir=$as_dir/ ;;
25768  esac
25769    for ac_exec_ext in '' $ac_executable_extensions; do
25770  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25771    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25772    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25773    break 2
25774  fi
25775done
25776  done
25777IFS=$as_save_IFS
25778
25779  ;;
25780esac
25781fi
25782PKGCONFIG=$ac_cv_path_PKGCONFIG
25783if test -n "$PKGCONFIG"; then
25784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25785printf "%s\n" "$PKGCONFIG" >&6; }
25786else
25787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25788printf "%s\n" "no" >&6; }
25789fi
25790
25791
25792fi
25793if test -z "$ac_cv_path_PKGCONFIG"; then
25794  ac_pt_PKGCONFIG=$PKGCONFIG
25795  # Extract the first word of "pkg-config", so it can be a program name with args.
25796set dummy pkg-config; ac_word=$2
25797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25798printf %s "checking for $ac_word... " >&6; }
25799if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25800then :
25801  printf %s "(cached) " >&6
25802else $as_nop
25803  case $ac_pt_PKGCONFIG in
25804  [\\/]* | ?:[\\/]*)
25805  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25806  ;;
25807  *)
25808  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25809as_dummy="$PATH:/usr/bin:/usr/local/bin"
25810for as_dir in $as_dummy
25811do
25812  IFS=$as_save_IFS
25813  case $as_dir in #(((
25814    '') as_dir=./ ;;
25815    */) ;;
25816    *) as_dir=$as_dir/ ;;
25817  esac
25818    for ac_exec_ext in '' $ac_executable_extensions; do
25819  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25820    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25821    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25822    break 2
25823  fi
25824done
25825  done
25826IFS=$as_save_IFS
25827
25828  ;;
25829esac
25830fi
25831ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25832if test -n "$ac_pt_PKGCONFIG"; then
25833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25834printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25835else
25836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25837printf "%s\n" "no" >&6; }
25838fi
25839
25840  if test "x$ac_pt_PKGCONFIG" = x; then
25841    PKGCONFIG="no"
25842  else
25843    case $cross_compiling:$ac_tool_warned in
25844yes:)
25845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25846printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25847ac_tool_warned=yes ;;
25848esac
25849    PKGCONFIG=$ac_pt_PKGCONFIG
25850  fi
25851else
25852  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25853fi
25854
25855    fi
25856
25857    if test "x$PKGCONFIG" != "xno"; then
25858      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25859printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25860            itexists=`
25861    if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25862      PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25863      export PKG_CONFIG_LIBDIR
25864    fi
25865         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25866
25867      if test -z "$itexists"; then
25868                        PKGCONFIG="no"
25869        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25870printf "%s\n" "no" >&6; }
25871      else
25872        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25873printf "%s\n" "found" >&6; }
25874      fi
25875    fi
25876
25877        else
25878
25879    if test -n "$PKG_CONFIG"; then
25880      PKGCONFIG="$PKG_CONFIG"
25881    else
25882      if test -n "$ac_tool_prefix"; then
25883  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25884set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25886printf %s "checking for $ac_word... " >&6; }
25887if test ${ac_cv_path_PKGCONFIG+y}
25888then :
25889  printf %s "(cached) " >&6
25890else $as_nop
25891  case $PKGCONFIG in
25892  [\\/]* | ?:[\\/]*)
25893  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25894  ;;
25895  *)
25896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25897as_dummy="$PATH:/usr/bin:/usr/local/bin"
25898for as_dir in $as_dummy
25899do
25900  IFS=$as_save_IFS
25901  case $as_dir in #(((
25902    '') as_dir=./ ;;
25903    */) ;;
25904    *) as_dir=$as_dir/ ;;
25905  esac
25906    for ac_exec_ext in '' $ac_executable_extensions; do
25907  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25908    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25909    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25910    break 2
25911  fi
25912done
25913  done
25914IFS=$as_save_IFS
25915
25916  ;;
25917esac
25918fi
25919PKGCONFIG=$ac_cv_path_PKGCONFIG
25920if test -n "$PKGCONFIG"; then
25921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25922printf "%s\n" "$PKGCONFIG" >&6; }
25923else
25924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25925printf "%s\n" "no" >&6; }
25926fi
25927
25928
25929fi
25930if test -z "$ac_cv_path_PKGCONFIG"; then
25931  ac_pt_PKGCONFIG=$PKGCONFIG
25932  # Extract the first word of "pkg-config", so it can be a program name with args.
25933set dummy pkg-config; ac_word=$2
25934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25935printf %s "checking for $ac_word... " >&6; }
25936if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25937then :
25938  printf %s "(cached) " >&6
25939else $as_nop
25940  case $ac_pt_PKGCONFIG in
25941  [\\/]* | ?:[\\/]*)
25942  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25943  ;;
25944  *)
25945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25946as_dummy="$PATH:/usr/bin:/usr/local/bin"
25947for as_dir in $as_dummy
25948do
25949  IFS=$as_save_IFS
25950  case $as_dir in #(((
25951    '') as_dir=./ ;;
25952    */) ;;
25953    *) as_dir=$as_dir/ ;;
25954  esac
25955    for ac_exec_ext in '' $ac_executable_extensions; do
25956  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25957    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25958    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25959    break 2
25960  fi
25961done
25962  done
25963IFS=$as_save_IFS
25964
25965  ;;
25966esac
25967fi
25968ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25969if test -n "$ac_pt_PKGCONFIG"; then
25970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25971printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25972else
25973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25974printf "%s\n" "no" >&6; }
25975fi
25976
25977  if test "x$ac_pt_PKGCONFIG" = x; then
25978    PKGCONFIG="no"
25979  else
25980    case $cross_compiling:$ac_tool_warned in
25981yes:)
25982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25983printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25984ac_tool_warned=yes ;;
25985esac
25986    PKGCONFIG=$ac_pt_PKGCONFIG
25987  fi
25988else
25989  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25990fi
25991
25992    fi
25993
25994    if test "x$PKGCONFIG" != "xno"; then
25995      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25996printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25997            itexists=`
25998    if test -n ""; then
25999      PKG_CONFIG_LIBDIR=""
26000      export PKG_CONFIG_LIBDIR
26001    fi
26002         $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
26003
26004      if test -z "$itexists"; then
26005                        PKGCONFIG="no"
26006        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26007printf "%s\n" "no" >&6; }
26008      else
26009        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26010printf "%s\n" "found" >&6; }
26011      fi
26012    fi
26013
26014        fi
26015        if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
26016                                 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
26017           LIBS="$gss_libs $LIBS"
26018        elif test "$PKGCONFIG" != "no" ; then
26019           gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
26020           LIBS="$gss_libs $LIBS"
26021        elif test -f "$KRB5CONFIG"; then
26022                                 gss_libs=`$KRB5CONFIG --libs gssapi`
26023           LIBS="$gss_libs $LIBS"
26024        else
26025           case $host in
26026           *-hp-hpux*)
26027              gss_libname="gss"
26028              ;;
26029           *)
26030              gss_libname="gssapi"
26031              ;;
26032           esac
26033
26034           if test "$GSSAPI_ROOT" != "yes"; then
26035              LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
26036              LIBS="-l$gss_libname $LIBS"
26037           else
26038              LIBS="-l$gss_libname $LIBS"
26039           fi
26040        fi
26041        ;;
26042     esac
26043  else
26044     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
26045     case $host in
26046     *-hp-hpux*)
26047        LIBS="-lgss $LIBS"
26048        ;;
26049     *)
26050        LIBS="-lgssapi $LIBS"
26051        ;;
26052     esac
26053  fi
26054else
26055  CPPFLAGS="$save_CPPFLAGS"
26056fi
26057
26058if test x"$want_gss" = xyes; then
26059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
26060printf %s "checking if we can link against GSS-API library... " >&6; }
26061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26062/* end confdefs.h.  */
26063
26064
26065#define gss_init_sec_context innocuous_gss_init_sec_context
26066#ifdef __STDC__
26067# include <limits.h>
26068#else
26069# include <assert.h>
26070#endif
26071#undef gss_init_sec_context
26072#ifdef __cplusplus
26073extern "C"
26074#endif
26075char gss_init_sec_context ();
26076#if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
26077choke me
26078#endif
26079
26080int main (void)
26081{
26082return gss_init_sec_context ();
26083 ;
26084 return 0;
26085}
26086
26087_ACEOF
26088if ac_fn_c_try_link "$LINENO"
26089then :
26090
26091    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26092printf "%s\n" "yes" >&6; }
26093
26094else $as_nop
26095
26096    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26097printf "%s\n" "no" >&6; }
26098    as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
26099
26100fi
26101rm -f core conftest.err conftest.$ac_objext conftest.beam \
26102    conftest$ac_exeext conftest.$ac_ext
26103fi
26104
26105build_libstubgss=no
26106if test x"$want_gss" = "xyes"; then
26107  build_libstubgss=yes
26108fi
26109
26110 if test "x$build_libstubgss" = "xyes"; then
26111  BUILD_STUB_GSS_TRUE=
26112  BUILD_STUB_GSS_FALSE='#'
26113else
26114  BUILD_STUB_GSS_TRUE='#'
26115  BUILD_STUB_GSS_FALSE=
26116fi
26117
26118
26119
26120DEFAULT_SSL_BACKEND=no
26121VALID_DEFAULT_SSL_BACKEND=
26122
26123# Check whether --with-default-ssl-backend was given.
26124if test ${with_default_ssl_backend+y}
26125then :
26126  withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
26127fi
26128
26129case "$DEFAULT_SSL_BACKEND" in
26130  no)
26131        ;;
26132  default|yes)
26133        as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
26134    ;;
26135  *)
26136
26137        VALID_DEFAULT_SSL_BACKEND=no
26138    ;;
26139esac
26140
26141
26142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
26143printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
26144if test "x$OPT_SCHANNEL" != xno; then
26145  ssl_msg=
26146  if test "x$OPT_SCHANNEL" != "xno"  &&
26147     test "x$curl_cv_native_windows" = "xyes"; then
26148    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26149printf "%s\n" "yes" >&6; }
26150
26151printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
26152
26153    USE_SCHANNEL=1
26154
26155    ssl_msg="Schannel"
26156    test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26157    SCHANNEL_ENABLED=1
26158    # --with-schannel implies --enable-sspi
26159
26160printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
26161
26162    USE_WINDOWS_SSPI=1
26163
26164    curl_sspi_msg="enabled"
26165  else
26166    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26167printf "%s\n" "no" >&6; }
26168  fi
26169  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26170else
26171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26172printf "%s\n" "no" >&6; }
26173fi
26174
26175
26176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
26177printf %s "checking whether to enable Secure Transport... " >&6; }
26178if test "x$OPT_SECURETRANSPORT" != xno; then
26179  if test "x$OPT_SECURETRANSPORT" != "xno" &&
26180     (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
26181    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26182printf "%s\n" "yes" >&6; }
26183
26184printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
26185
26186    USE_SECTRANSP=1
26187
26188    ssl_msg="Secure Transport"
26189    test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26190    SECURETRANSPORT_ENABLED=1
26191    LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Security"
26192  else
26193    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26194printf "%s\n" "no" >&6; }
26195  fi
26196  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26197else
26198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26199printf "%s\n" "no" >&6; }
26200fi
26201
26202
26203
26204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
26205printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
26206if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
26207  if test "x$OPT_AMISSL" != xno; then
26208    ssl_msg=
26209    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26210/* end confdefs.h.  */
26211
26212
26213        #include <libraries/amisslmaster.h>
26214        #include <openssl/opensslv.h>
26215
26216int main (void)
26217{
26218
26219        #if defined(AMISSL_CURRENT_VERSION) && defined(AMISSL_V3xx) && \
26220            (OPENSSL_VERSION_NUMBER >= 0x30000000L) && \
26221            defined(PROTO_AMISSL_H)
26222        return 0;
26223        #else
26224        #error not AmiSSL v5 / OpenSSL 3
26225        #endif
26226
26227 ;
26228 return 0;
26229}
26230
26231_ACEOF
26232if ac_fn_c_try_compile "$LINENO"
26233then :
26234
26235      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26236printf "%s\n" "yes" >&6; }
26237      ssl_msg="AmiSSL"
26238      test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26239      AMISSL_ENABLED=1
26240      OPENSSL_ENABLED=1
26241      # Use AmiSSL's built-in ca bundle
26242      check_for_ca_bundle=1
26243      with_ca_fallback=yes
26244      LIBS="-lamisslstubs -lamisslauto $LIBS"
26245
26246printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
26247
26248
26249printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26250
26251
26252printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26253
26254      ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
26255if test "x$ac_cv_header_openssl_x509_h" = xyes
26256then :
26257  printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
26258
26259fi
26260ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
26261if test "x$ac_cv_header_openssl_rsa_h" = xyes
26262then :
26263  printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
26264
26265fi
26266ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
26267if test "x$ac_cv_header_openssl_crypto_h" = xyes
26268then :
26269  printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
26270
26271fi
26272ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
26273if test "x$ac_cv_header_openssl_pem_h" = xyes
26274then :
26275  printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
26276
26277fi
26278ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
26279if test "x$ac_cv_header_openssl_ssl_h" = xyes
26280then :
26281  printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
26282
26283fi
26284ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
26285if test "x$ac_cv_header_openssl_err_h" = xyes
26286then :
26287  printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
26288
26289fi
26290
26291
26292else $as_nop
26293
26294      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26295printf "%s\n" "no" >&6; }
26296
26297fi
26298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26299    test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26300  else
26301    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26302printf "%s\n" "no" >&6; }
26303  fi
26304else
26305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26306printf "%s\n" "no" >&6; }
26307fi
26308
26309
26310
26311if test "x$OPT_OPENSSL" != xno; then
26312  ssl_msg=
26313
26314    CLEANLDFLAGS="$LDFLAGS"
26315  CLEANCPPFLAGS="$CPPFLAGS"
26316  CLEANLIBS="$LIBS"
26317
26318    case $host in
26319    *-*-msys* | *-*-mingw*)
26320      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
26321printf %s "checking for gdi32... " >&6; }
26322      my_ac_save_LIBS=$LIBS
26323      LIBS="-lgdi32 $LIBS"
26324      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26325/* end confdefs.h.  */
26326
26327        #include <windef.h>
26328        #include <wingdi.h>
26329
26330int main (void)
26331{
26332
26333          GdiFlush();
26334
26335 ;
26336 return 0;
26337}
26338_ACEOF
26339if ac_fn_c_try_link "$LINENO"
26340then :
26341           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26342printf "%s\n" "yes" >&6; }
26343else $as_nop
26344           LIBS=$my_ac_save_LIBS
26345        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26346printf "%s\n" "no" >&6; }
26347
26348fi
26349rm -f core conftest.err conftest.$ac_objext conftest.beam \
26350    conftest$ac_exeext conftest.$ac_ext
26351      ;;
26352  esac
26353
26354  case "$OPT_OPENSSL" in
26355  yes)
26356        PKGTEST="yes"
26357    PREFIX_OPENSSL=
26358    ;;
26359  *)
26360        PKGTEST="no"
26361    PREFIX_OPENSSL=$OPT_OPENSSL
26362
26363                OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
26364    if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26365      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26366printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26367      PKGTEST="yes"
26368    fi
26369
26370    if test "$PKGTEST" != "yes"; then
26371      # try lib64 instead
26372      OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
26373      if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26374        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26375printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26376        PKGTEST="yes"
26377      fi
26378    fi
26379
26380    if test "$PKGTEST" != "yes"; then
26381      if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
26382        as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
26383      fi
26384    fi
26385
26386            LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
26387    if test "$PREFIX_OPENSSL" != "/usr" ; then
26388      SSL_LDFLAGS="-L$LIB_OPENSSL"
26389      SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
26390    fi
26391    ;;
26392  esac
26393
26394  if test "$PKGTEST" = "yes"; then
26395
26396
26397    if test -n "$PKG_CONFIG"; then
26398      PKGCONFIG="$PKG_CONFIG"
26399    else
26400      if test -n "$ac_tool_prefix"; then
26401  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26402set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26404printf %s "checking for $ac_word... " >&6; }
26405if test ${ac_cv_path_PKGCONFIG+y}
26406then :
26407  printf %s "(cached) " >&6
26408else $as_nop
26409  case $PKGCONFIG in
26410  [\\/]* | ?:[\\/]*)
26411  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26412  ;;
26413  *)
26414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26415as_dummy="$PATH:/usr/bin:/usr/local/bin"
26416for as_dir in $as_dummy
26417do
26418  IFS=$as_save_IFS
26419  case $as_dir in #(((
26420    '') as_dir=./ ;;
26421    */) ;;
26422    *) as_dir=$as_dir/ ;;
26423  esac
26424    for ac_exec_ext in '' $ac_executable_extensions; do
26425  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26426    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26428    break 2
26429  fi
26430done
26431  done
26432IFS=$as_save_IFS
26433
26434  ;;
26435esac
26436fi
26437PKGCONFIG=$ac_cv_path_PKGCONFIG
26438if test -n "$PKGCONFIG"; then
26439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26440printf "%s\n" "$PKGCONFIG" >&6; }
26441else
26442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26443printf "%s\n" "no" >&6; }
26444fi
26445
26446
26447fi
26448if test -z "$ac_cv_path_PKGCONFIG"; then
26449  ac_pt_PKGCONFIG=$PKGCONFIG
26450  # Extract the first word of "pkg-config", so it can be a program name with args.
26451set dummy pkg-config; ac_word=$2
26452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26453printf %s "checking for $ac_word... " >&6; }
26454if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26455then :
26456  printf %s "(cached) " >&6
26457else $as_nop
26458  case $ac_pt_PKGCONFIG in
26459  [\\/]* | ?:[\\/]*)
26460  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26461  ;;
26462  *)
26463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26464as_dummy="$PATH:/usr/bin:/usr/local/bin"
26465for as_dir in $as_dummy
26466do
26467  IFS=$as_save_IFS
26468  case $as_dir in #(((
26469    '') as_dir=./ ;;
26470    */) ;;
26471    *) as_dir=$as_dir/ ;;
26472  esac
26473    for ac_exec_ext in '' $ac_executable_extensions; do
26474  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26475    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26476    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26477    break 2
26478  fi
26479done
26480  done
26481IFS=$as_save_IFS
26482
26483  ;;
26484esac
26485fi
26486ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26487if test -n "$ac_pt_PKGCONFIG"; then
26488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26489printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26490else
26491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26492printf "%s\n" "no" >&6; }
26493fi
26494
26495  if test "x$ac_pt_PKGCONFIG" = x; then
26496    PKGCONFIG="no"
26497  else
26498    case $cross_compiling:$ac_tool_warned in
26499yes:)
26500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26501printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26502ac_tool_warned=yes ;;
26503esac
26504    PKGCONFIG=$ac_pt_PKGCONFIG
26505  fi
26506else
26507  PKGCONFIG="$ac_cv_path_PKGCONFIG"
26508fi
26509
26510    fi
26511
26512    if test "x$PKGCONFIG" != "xno"; then
26513      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
26514printf %s "checking for openssl options with pkg-config... " >&6; }
26515            itexists=`
26516    if test -n "$OPENSSL_PCDIR"; then
26517      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26518      export PKG_CONFIG_LIBDIR
26519    fi
26520         $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
26521
26522      if test -z "$itexists"; then
26523                        PKGCONFIG="no"
26524        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26525printf "%s\n" "no" >&6; }
26526      else
26527        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26528printf "%s\n" "found" >&6; }
26529      fi
26530    fi
26531
26532
26533    if test "$PKGCONFIG" != "no" ; then
26534      SSL_LIBS=`
26535    if test -n "$OPENSSL_PCDIR"; then
26536      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26537      export PKG_CONFIG_LIBDIR
26538    fi
26539         $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
26540
26541      SSL_LDFLAGS=`
26542    if test -n "$OPENSSL_PCDIR"; then
26543      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26544      export PKG_CONFIG_LIBDIR
26545    fi
26546         $PKGCONFIG --libs-only-L openssl 2>/dev/null`
26547
26548      SSL_CPPFLAGS=`
26549    if test -n "$OPENSSL_PCDIR"; then
26550      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26551      export PKG_CONFIG_LIBDIR
26552    fi
26553         $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
26554
26555
26556      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
26557printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
26558      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
26559printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
26560      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
26561printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
26562
26563      LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
26564
26565                                          LIBS="$SSL_LIBS $LIBS"
26566    fi
26567  fi
26568
26569    CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
26570  LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
26571
26572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
26573printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
26574if test ${ac_cv_lib_crypto_HMAC_Update+y}
26575then :
26576  printf %s "(cached) " >&6
26577else $as_nop
26578  ac_check_lib_save_LIBS=$LIBS
26579LIBS="-lcrypto  $LIBS"
26580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26581/* end confdefs.h.  */
26582
26583
26584#ifdef __cplusplus
26585extern "C"
26586#endif
26587char HMAC_Update ();
26588int main (void)
26589{
26590return HMAC_Update ();
26591 ;
26592 return 0;
26593}
26594_ACEOF
26595if ac_fn_c_try_link "$LINENO"
26596then :
26597  ac_cv_lib_crypto_HMAC_Update=yes
26598else $as_nop
26599  ac_cv_lib_crypto_HMAC_Update=no
26600fi
26601rm -f core conftest.err conftest.$ac_objext conftest.beam \
26602    conftest$ac_exeext conftest.$ac_ext
26603LIBS=$ac_check_lib_save_LIBS
26604fi
26605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
26606printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
26607if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
26608then :
26609
26610     HAVECRYPTO="yes"
26611     LIBS="-lcrypto $LIBS"
26612
26613else $as_nop
26614
26615     if test -n "$LIB_OPENSSL" ; then
26616       LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
26617     fi
26618     if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
26619       # only set this if pkg-config wasn't used
26620       CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
26621     fi
26622     # Linking previously failed, try extra paths from --with-openssl or
26623     # pkg-config.  Use a different function name to avoid reusing the earlier
26624     # cached result.
26625     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
26626printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
26627if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
26628then :
26629  printf %s "(cached) " >&6
26630else $as_nop
26631  ac_check_lib_save_LIBS=$LIBS
26632LIBS="-lcrypto  $LIBS"
26633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26634/* end confdefs.h.  */
26635
26636
26637#ifdef __cplusplus
26638extern "C"
26639#endif
26640char HMAC_Init_ex ();
26641int main (void)
26642{
26643return HMAC_Init_ex ();
26644 ;
26645 return 0;
26646}
26647_ACEOF
26648if ac_fn_c_try_link "$LINENO"
26649then :
26650  ac_cv_lib_crypto_HMAC_Init_ex=yes
26651else $as_nop
26652  ac_cv_lib_crypto_HMAC_Init_ex=no
26653fi
26654rm -f core conftest.err conftest.$ac_objext conftest.beam \
26655    conftest$ac_exeext conftest.$ac_ext
26656LIBS=$ac_check_lib_save_LIBS
26657fi
26658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
26659printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
26660if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
26661then :
26662
26663       HAVECRYPTO="yes"
26664       LIBS="-lcrypto $LIBS"
26665else $as_nop
26666
26667
26668              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
26669printf %s "checking OpenSSL linking with -ldl... " >&6; }
26670       LIBS="-lcrypto $CLEANLIBS -ldl"
26671       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26672/* end confdefs.h.  */
26673
26674         #include <openssl/err.h>
26675
26676int main (void)
26677{
26678
26679         ERR_clear_error();
26680
26681 ;
26682 return 0;
26683}
26684_ACEOF
26685if ac_fn_c_try_link "$LINENO"
26686then :
26687
26688         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26689printf "%s\n" "yes" >&6; }
26690         HAVECRYPTO="yes"
26691
26692else $as_nop
26693
26694         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26695printf "%s\n" "no" >&6; }
26696
26697         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
26698printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
26699         LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
26700         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26701/* end confdefs.h.  */
26702
26703
26704           #include <openssl/err.h>
26705
26706int main (void)
26707{
26708
26709           ERR_clear_error();
26710
26711 ;
26712 return 0;
26713}
26714_ACEOF
26715if ac_fn_c_try_link "$LINENO"
26716then :
26717
26718           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26719printf "%s\n" "yes" >&6; }
26720           HAVECRYPTO="yes"
26721
26722else $as_nop
26723
26724           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26725printf "%s\n" "no" >&6; }
26726           LDFLAGS="$CLEANLDFLAGS"
26727           CPPFLAGS="$CLEANCPPFLAGS"
26728           LIBS="$CLEANLIBS"
26729
26730
26731fi
26732rm -f core conftest.err conftest.$ac_objext conftest.beam \
26733    conftest$ac_exeext conftest.$ac_ext
26734
26735
26736fi
26737rm -f core conftest.err conftest.$ac_objext conftest.beam \
26738    conftest$ac_exeext conftest.$ac_ext
26739
26740
26741fi
26742
26743
26744fi
26745
26746
26747  if test X"$HAVECRYPTO" = X"yes"; then
26748
26749    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26750printf %s "checking for SSL_connect in -lssl... " >&6; }
26751if test ${ac_cv_lib_ssl_SSL_connect+y}
26752then :
26753  printf %s "(cached) " >&6
26754else $as_nop
26755  ac_check_lib_save_LIBS=$LIBS
26756LIBS="-lssl  $LIBS"
26757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26758/* end confdefs.h.  */
26759
26760
26761#ifdef __cplusplus
26762extern "C"
26763#endif
26764char SSL_connect ();
26765int main (void)
26766{
26767return SSL_connect ();
26768 ;
26769 return 0;
26770}
26771_ACEOF
26772if ac_fn_c_try_link "$LINENO"
26773then :
26774  ac_cv_lib_ssl_SSL_connect=yes
26775else $as_nop
26776  ac_cv_lib_ssl_SSL_connect=no
26777fi
26778rm -f core conftest.err conftest.$ac_objext conftest.beam \
26779    conftest$ac_exeext conftest.$ac_ext
26780LIBS=$ac_check_lib_save_LIBS
26781fi
26782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26783printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26784if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26785then :
26786  printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26787
26788  LIBS="-lssl $LIBS"
26789
26790fi
26791
26792
26793    if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26794                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
26795printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
26796        OLIBS=$LIBS
26797        LIBS="-lRSAglue -lrsaref $LIBS"
26798        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26799printf %s "checking for SSL_connect in -lssl... " >&6; }
26800if test ${ac_cv_lib_ssl_SSL_connect+y}
26801then :
26802  printf %s "(cached) " >&6
26803else $as_nop
26804  ac_check_lib_save_LIBS=$LIBS
26805LIBS="-lssl  $LIBS"
26806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26807/* end confdefs.h.  */
26808
26809
26810#ifdef __cplusplus
26811extern "C"
26812#endif
26813char SSL_connect ();
26814int main (void)
26815{
26816return SSL_connect ();
26817 ;
26818 return 0;
26819}
26820_ACEOF
26821if ac_fn_c_try_link "$LINENO"
26822then :
26823  ac_cv_lib_ssl_SSL_connect=yes
26824else $as_nop
26825  ac_cv_lib_ssl_SSL_connect=no
26826fi
26827rm -f core conftest.err conftest.$ac_objext conftest.beam \
26828    conftest$ac_exeext conftest.$ac_ext
26829LIBS=$ac_check_lib_save_LIBS
26830fi
26831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26832printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26833if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26834then :
26835  printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26836
26837  LIBS="-lssl $LIBS"
26838
26839fi
26840
26841        if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26842                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26843printf "%s\n" "no" >&6; }
26844            LIBS=$OLIBS
26845        else
26846            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26847printf "%s\n" "yes" >&6; }
26848        fi
26849
26850    else
26851
26852                   for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
26853do :
26854  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
26855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26856if eval test \"x\$"$as_ac_Header"\" = x"yes"
26857then :
26858  cat >>confdefs.h <<_ACEOF
26859#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
26860_ACEOF
26861 ssl_msg="OpenSSL"
26862        test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26863        OPENSSL_ENABLED=1
26864
26865printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26866
26867fi
26868
26869done
26870
26871      if test $ac_cv_header_openssl_x509_h = no; then
26872                                ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
26873if test "x$ac_cv_header_x509_h" = xyes
26874then :
26875  printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
26876
26877fi
26878ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
26879if test "x$ac_cv_header_rsa_h" = xyes
26880then :
26881  printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
26882
26883fi
26884ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
26885if test "x$ac_cv_header_crypto_h" = xyes
26886then :
26887  printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
26888
26889fi
26890ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
26891if test "x$ac_cv_header_pem_h" = xyes
26892then :
26893  printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
26894
26895fi
26896ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
26897if test "x$ac_cv_header_ssl_h" = xyes
26898then :
26899  printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
26900
26901fi
26902ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
26903if test "x$ac_cv_header_err_h" = xyes
26904then :
26905  printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
26906
26907fi
26908
26909
26910        if test $ac_cv_header_x509_h = yes &&
26911           test $ac_cv_header_crypto_h = yes &&
26912           test $ac_cv_header_ssl_h = yes; then
26913                    ssl_msg="OpenSSL"
26914          OPENSSL_ENABLED=1
26915        fi
26916      fi
26917    fi
26918
26919    if test X"$OPENSSL_ENABLED" != X"1"; then
26920       LIBS="$CLEANLIBS"
26921    fi
26922
26923    if test X"$OPT_OPENSSL" != Xoff &&
26924       test "$OPENSSL_ENABLED" != "1"; then
26925      as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
26926    fi
26927  fi
26928
26929  if test X"$OPENSSL_ENABLED" = X"1"; then
26930
26931    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
26932printf %s "checking for BoringSSL... " >&6; }
26933    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26934/* end confdefs.h.  */
26935
26936
26937                #include <openssl/base.h>
26938
26939int main (void)
26940{
26941
26942                #ifndef OPENSSL_IS_BORINGSSL
26943                #error not boringssl
26944                #endif
26945
26946 ;
26947 return 0;
26948}
26949
26950_ACEOF
26951if ac_fn_c_try_compile "$LINENO"
26952then :
26953
26954        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26955printf "%s\n" "yes" >&6; }
26956        ssl_msg="BoringSSL"
26957        OPENSSL_IS_BORINGSSL=1
26958
26959else $as_nop
26960
26961        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26962printf "%s\n" "no" >&6; }
26963
26964fi
26965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26966
26967    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AWS-LC" >&5
26968printf %s "checking for AWS-LC... " >&6; }
26969    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26970/* end confdefs.h.  */
26971
26972
26973                #include <openssl/base.h>
26974
26975int main (void)
26976{
26977
26978                #ifndef OPENSSL_IS_AWSLC
26979                #error not AWS-LC
26980                #endif
26981
26982 ;
26983 return 0;
26984}
26985
26986_ACEOF
26987if ac_fn_c_try_compile "$LINENO"
26988then :
26989
26990        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26991printf "%s\n" "yes" >&6; }
26992        ssl_msg="AWS-LC"
26993        OPENSSL_IS_BORINGSSL=1
26994
26995else $as_nop
26996
26997        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26998printf "%s\n" "no" >&6; }
26999
27000fi
27001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27002
27003    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
27004printf %s "checking for libressl... " >&6; }
27005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27006/* end confdefs.h.  */
27007
27008
27009#include <openssl/opensslv.h>
27010
27011int main (void)
27012{
27013
27014        int dummy = LIBRESSL_VERSION_NUMBER;
27015
27016 ;
27017 return 0;
27018}
27019
27020_ACEOF
27021if ac_fn_c_try_compile "$LINENO"
27022then :
27023
27024      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27025printf "%s\n" "yes" >&6; }
27026
27027printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
27028
27029      ssl_msg="libressl"
27030
27031else $as_nop
27032
27033      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27034printf "%s\n" "no" >&6; }
27035
27036fi
27037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27038
27039    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
27040printf %s "checking for OpenSSL >= v3... " >&6; }
27041    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27042/* end confdefs.h.  */
27043
27044
27045#include <openssl/opensslv.h>
27046
27047int main (void)
27048{
27049
27050        #if (OPENSSL_VERSION_NUMBER >= 0x30000000L)
27051        return 0;
27052        #else
27053        #error older than 3
27054        #endif
27055
27056 ;
27057 return 0;
27058}
27059
27060_ACEOF
27061if ac_fn_c_try_compile "$LINENO"
27062then :
27063
27064      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27065printf "%s\n" "yes" >&6; }
27066
27067printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
27068
27069      ssl_msg="OpenSSL v3+"
27070
27071else $as_nop
27072
27073      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27074printf "%s\n" "no" >&6; }
27075
27076fi
27077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27078  fi
27079
27080
27081  for ac_func in SSL_set_quic_use_legacy_codepoint
27082do :
27083  ac_fn_c_check_func "$LINENO" "SSL_set_quic_use_legacy_codepoint" "ac_cv_func_SSL_set_quic_use_legacy_codepoint"
27084if test "x$ac_cv_func_SSL_set_quic_use_legacy_codepoint" = xyes
27085then :
27086  printf "%s\n" "#define HAVE_SSL_SET_QUIC_USE_LEGACY_CODEPOINT 1" >>confdefs.h
27087 QUIC_ENABLED=yes
27088fi
27089
27090done
27091  if test "$QUIC_ENABLED" = "yes"; then
27092    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL fork speaks QUIC API" >&5
27093printf "%s\n" "$as_me: OpenSSL fork speaks QUIC API" >&6;}
27094  else
27095    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL version does not speak QUIC API" >&5
27096printf "%s\n" "$as_me: OpenSSL version does not speak QUIC API" >&6;}
27097  fi
27098
27099  if test "$OPENSSL_ENABLED" = "1"; then
27100    if test -n "$LIB_OPENSSL"; then
27101                            if test "x$cross_compiling" != "xyes"; then
27102         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
27103         export CURL_LIBRARY_PATH
27104         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
27105printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
27106       fi
27107    fi
27108    check_for_ca_bundle=1
27109  fi
27110
27111  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27112fi
27113
27114if test X"$OPT_OPENSSL" != Xno &&
27115  test "$OPENSSL_ENABLED" != "1"; then
27116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
27117printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
27118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
27119printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
27120  as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
27121fi
27122
27123
27124if test X"$OPENSSL_ENABLED" = X"1"; then
27125
27126# Check whether --with-random was given.
27127if test ${with_random+y}
27128then :
27129  withval=$with_random;  RANDOM_FILE="$withval"
27130else $as_nop
27131
27132          if test x$cross_compiling != xyes; then
27133                        as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
27134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
27135printf %s "checking for \"/dev/urandom\"... " >&6; }
27136if eval test \${$as_ac_File+y}
27137then :
27138  printf %s "(cached) " >&6
27139else $as_nop
27140  test "$cross_compiling" = yes &&
27141  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27142if test -r ""/dev/urandom""; then
27143  eval "$as_ac_File=yes"
27144else
27145  eval "$as_ac_File=no"
27146fi
27147fi
27148eval ac_res=\$$as_ac_File
27149	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27150printf "%s\n" "$ac_res" >&6; }
27151if eval test \"x\$"$as_ac_File"\" = x"yes"
27152then :
27153   RANDOM_FILE="/dev/urandom"
27154fi
27155
27156          else
27157            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
27158printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
27159          fi
27160
27161
27162fi
27163
27164  if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
27165
27166
27167printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
27168
27169  fi
27170fi
27171
27172if test "$OPENSSL_ENABLED" = "1"; then
27173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
27174printf %s "checking for SRP support in OpenSSL... " >&6; }
27175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27176/* end confdefs.h.  */
27177
27178
27179#include <openssl/ssl.h>
27180
27181int main (void)
27182{
27183
27184      SSL_CTX_set_srp_username(NULL, "");
27185      SSL_CTX_set_srp_password(NULL, "");
27186
27187 ;
27188 return 0;
27189}
27190
27191_ACEOF
27192if ac_fn_c_try_link "$LINENO"
27193then :
27194
27195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27196printf "%s\n" "yes" >&6; }
27197
27198printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
27199
27200    HAVE_OPENSSL_SRP=1
27201
27202
27203else $as_nop
27204
27205    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27206printf "%s\n" "no" >&6; }
27207
27208fi
27209rm -f core conftest.err conftest.$ac_objext conftest.beam \
27210    conftest$ac_exeext conftest.$ac_ext
27211fi
27212
27213if test X"$OPENSSL_ENABLED" = X"1"; then
27214# Check whether --enable-openssl-auto-load-config was given.
27215if test ${enable_openssl_auto_load_config+y}
27216then :
27217  enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
27218    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
27219printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
27220
27221printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
27222
27223  fi
27224
27225fi
27226
27227fi
27228
27229if test "$OPENSSL_ENABLED" = "1"; then
27230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for QUIC support in OpenSSL" >&5
27231printf %s "checking for QUIC support in OpenSSL... " >&6; }
27232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27233/* end confdefs.h.  */
27234
27235
27236#include <openssl/ssl.h>
27237
27238int main (void)
27239{
27240
27241      OSSL_QUIC_client_method();
27242
27243 ;
27244 return 0;
27245}
27246
27247_ACEOF
27248if ac_fn_c_try_link "$LINENO"
27249then :
27250
27251    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27252printf "%s\n" "yes" >&6; }
27253
27254printf "%s\n" "#define HAVE_OPENSSL_QUIC 1" >>confdefs.h
27255
27256    HAVE_OPENSSL_QUIC=1
27257
27258
27259else $as_nop
27260
27261    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27262printf "%s\n" "no" >&6; }
27263
27264fi
27265rm -f core conftest.err conftest.$ac_objext conftest.beam \
27266    conftest$ac_exeext conftest.$ac_ext
27267fi
27268
27269
27270if test "x$OPT_GNUTLS" != xno; then
27271  ssl_msg=
27272
27273  if test X"$OPT_GNUTLS" != Xno; then
27274
27275    addld=""
27276    addlib=""
27277    gtlslib=""
27278    version=""
27279    addcflags=""
27280
27281    if test "x$OPT_GNUTLS" = "xyes"; then
27282
27283    if test -n "$PKG_CONFIG"; then
27284      PKGCONFIG="$PKG_CONFIG"
27285    else
27286      if test -n "$ac_tool_prefix"; then
27287  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27288set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27290printf %s "checking for $ac_word... " >&6; }
27291if test ${ac_cv_path_PKGCONFIG+y}
27292then :
27293  printf %s "(cached) " >&6
27294else $as_nop
27295  case $PKGCONFIG in
27296  [\\/]* | ?:[\\/]*)
27297  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27298  ;;
27299  *)
27300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27301as_dummy="$PATH:/usr/bin:/usr/local/bin"
27302for as_dir in $as_dummy
27303do
27304  IFS=$as_save_IFS
27305  case $as_dir in #(((
27306    '') as_dir=./ ;;
27307    */) ;;
27308    *) as_dir=$as_dir/ ;;
27309  esac
27310    for ac_exec_ext in '' $ac_executable_extensions; do
27311  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27312    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27313    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27314    break 2
27315  fi
27316done
27317  done
27318IFS=$as_save_IFS
27319
27320  ;;
27321esac
27322fi
27323PKGCONFIG=$ac_cv_path_PKGCONFIG
27324if test -n "$PKGCONFIG"; then
27325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27326printf "%s\n" "$PKGCONFIG" >&6; }
27327else
27328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27329printf "%s\n" "no" >&6; }
27330fi
27331
27332
27333fi
27334if test -z "$ac_cv_path_PKGCONFIG"; then
27335  ac_pt_PKGCONFIG=$PKGCONFIG
27336  # Extract the first word of "pkg-config", so it can be a program name with args.
27337set dummy pkg-config; ac_word=$2
27338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27339printf %s "checking for $ac_word... " >&6; }
27340if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27341then :
27342  printf %s "(cached) " >&6
27343else $as_nop
27344  case $ac_pt_PKGCONFIG in
27345  [\\/]* | ?:[\\/]*)
27346  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27347  ;;
27348  *)
27349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27350as_dummy="$PATH:/usr/bin:/usr/local/bin"
27351for as_dir in $as_dummy
27352do
27353  IFS=$as_save_IFS
27354  case $as_dir in #(((
27355    '') as_dir=./ ;;
27356    */) ;;
27357    *) as_dir=$as_dir/ ;;
27358  esac
27359    for ac_exec_ext in '' $ac_executable_extensions; do
27360  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27361    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27362    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27363    break 2
27364  fi
27365done
27366  done
27367IFS=$as_save_IFS
27368
27369  ;;
27370esac
27371fi
27372ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27373if test -n "$ac_pt_PKGCONFIG"; then
27374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27375printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27376else
27377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27378printf "%s\n" "no" >&6; }
27379fi
27380
27381  if test "x$ac_pt_PKGCONFIG" = x; then
27382    PKGCONFIG="no"
27383  else
27384    case $cross_compiling:$ac_tool_warned in
27385yes:)
27386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27387printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27388ac_tool_warned=yes ;;
27389esac
27390    PKGCONFIG=$ac_pt_PKGCONFIG
27391  fi
27392else
27393  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27394fi
27395
27396    fi
27397
27398    if test "x$PKGCONFIG" != "xno"; then
27399      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
27400printf %s "checking for gnutls options with pkg-config... " >&6; }
27401            itexists=`
27402    if test -n ""; then
27403      PKG_CONFIG_LIBDIR=""
27404      export PKG_CONFIG_LIBDIR
27405    fi
27406         $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
27407
27408      if test -z "$itexists"; then
27409                        PKGCONFIG="no"
27410        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27411printf "%s\n" "no" >&6; }
27412      else
27413        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27414printf "%s\n" "found" >&6; }
27415      fi
27416    fi
27417
27418
27419      if test "$PKGCONFIG" != "no" ; then
27420        addlib=`$PKGCONFIG --libs-only-l gnutls`
27421        addld=`$PKGCONFIG --libs-only-L gnutls`
27422        addcflags=`$PKGCONFIG --cflags-only-I gnutls`
27423        version=`$PKGCONFIG --modversion gnutls`
27424        gtlslib=`echo $addld | $SED -e 's/^-L//'`
27425      else
27426                        check=`libgnutls-config --version 2>/dev/null`
27427        if test -n "$check"; then
27428          addlib=`libgnutls-config --libs`
27429          addcflags=`libgnutls-config --cflags`
27430          version=`libgnutls-config --version`
27431          gtlslib=`libgnutls-config --prefix`/lib$libsuff
27432        fi
27433      fi
27434    else
27435                  cfg=$OPT_GNUTLS/bin/libgnutls-config
27436      check=`$cfg --version 2>/dev/null`
27437      if test -n "$check"; then
27438        addlib=`$cfg --libs`
27439        addcflags=`$cfg --cflags`
27440        version=`$cfg --version`
27441        gtlslib=`$cfg --prefix`/lib$libsuff
27442      else
27443                addlib=-lgnutls
27444        addld=-L$OPT_GNUTLS/lib$libsuff
27445        addcflags=-I$OPT_GNUTLS/include
27446        version="" # we just don't know
27447        gtlslib=$OPT_GNUTLS/lib$libsuff
27448      fi
27449    fi
27450
27451    if test -z "$version"; then
27452            version="unknown"
27453    fi
27454
27455    if test -n "$addlib"; then
27456
27457      CLEANLIBS="$LIBS"
27458      CLEANCPPFLAGS="$CPPFLAGS"
27459      CLEANLDFLAGS="$LDFLAGS"
27460
27461      LIBS="$addlib $LIBS"
27462      LDFLAGS="$LDFLAGS $addld"
27463      if test "$addcflags" != "-I/usr/include"; then
27464         CPPFLAGS="$CPPFLAGS $addcflags"
27465      fi
27466
27467            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
27468printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
27469if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
27470then :
27471  printf %s "(cached) " >&6
27472else $as_nop
27473  ac_check_lib_save_LIBS=$LIBS
27474LIBS="-lgnutls  $LIBS"
27475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27476/* end confdefs.h.  */
27477
27478
27479#ifdef __cplusplus
27480extern "C"
27481#endif
27482char gnutls_x509_crt_get_dn2 ();
27483int main (void)
27484{
27485return gnutls_x509_crt_get_dn2 ();
27486 ;
27487 return 0;
27488}
27489_ACEOF
27490if ac_fn_c_try_link "$LINENO"
27491then :
27492  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
27493else $as_nop
27494  ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
27495fi
27496rm -f core conftest.err conftest.$ac_objext conftest.beam \
27497    conftest$ac_exeext conftest.$ac_ext
27498LIBS=$ac_check_lib_save_LIBS
27499fi
27500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
27501printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
27502if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
27503then :
27504
27505
27506printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
27507
27508       USE_GNUTLS=1
27509
27510       GNUTLS_ENABLED=1
27511       USE_GNUTLS="yes"
27512       ssl_msg="GnuTLS"
27513       QUIC_ENABLED=yes
27514       test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27515
27516else $as_nop
27517
27518         LIBS="$CLEANLIBS"
27519         CPPFLAGS="$CLEANCPPFLAGS"
27520
27521fi
27522
27523
27524      if test "x$USE_GNUTLS" = "xyes"; then
27525        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
27526printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
27527        check_for_ca_bundle=1
27528        if test -n "$gtlslib"; then
27529                                                  if test "x$cross_compiling" != "xyes"; then
27530            CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
27531            export CURL_LIBRARY_PATH
27532            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
27533printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
27534          fi
27535        fi
27536      fi
27537
27538    fi
27539
27540  fi
27541  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27542fi
27543
27544
27545if test "$GNUTLS_ENABLED" = "1"; then
27546  USE_GNUTLS_NETTLE=
27547  # First check if we can detect either crypto library via transitive linking
27548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
27549printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
27550if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
27551then :
27552  printf %s "(cached) " >&6
27553else $as_nop
27554  ac_check_lib_save_LIBS=$LIBS
27555LIBS="-lgnutls  $LIBS"
27556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27557/* end confdefs.h.  */
27558
27559
27560#ifdef __cplusplus
27561extern "C"
27562#endif
27563char nettle_MD5Init ();
27564int main (void)
27565{
27566return nettle_MD5Init ();
27567 ;
27568 return 0;
27569}
27570_ACEOF
27571if ac_fn_c_try_link "$LINENO"
27572then :
27573  ac_cv_lib_gnutls_nettle_MD5Init=yes
27574else $as_nop
27575  ac_cv_lib_gnutls_nettle_MD5Init=no
27576fi
27577rm -f core conftest.err conftest.$ac_objext conftest.beam \
27578    conftest$ac_exeext conftest.$ac_ext
27579LIBS=$ac_check_lib_save_LIBS
27580fi
27581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
27582printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
27583if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
27584then :
27585   USE_GNUTLS_NETTLE=1
27586fi
27587
27588
27589  # If not, try linking directly to both of them to see if they are available
27590  if test "$USE_GNUTLS_NETTLE" = ""; then
27591    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
27592printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
27593if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
27594then :
27595  printf %s "(cached) " >&6
27596else $as_nop
27597  ac_check_lib_save_LIBS=$LIBS
27598LIBS="-lnettle  $LIBS"
27599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27600/* end confdefs.h.  */
27601
27602
27603#ifdef __cplusplus
27604extern "C"
27605#endif
27606char nettle_MD5Init ();
27607int main (void)
27608{
27609return nettle_MD5Init ();
27610 ;
27611 return 0;
27612}
27613_ACEOF
27614if ac_fn_c_try_link "$LINENO"
27615then :
27616  ac_cv_lib_nettle_nettle_MD5Init=yes
27617else $as_nop
27618  ac_cv_lib_nettle_nettle_MD5Init=no
27619fi
27620rm -f core conftest.err conftest.$ac_objext conftest.beam \
27621    conftest$ac_exeext conftest.$ac_ext
27622LIBS=$ac_check_lib_save_LIBS
27623fi
27624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
27625printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
27626if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
27627then :
27628   USE_GNUTLS_NETTLE=1
27629fi
27630
27631  fi
27632  if test "$USE_GNUTLS_NETTLE" = ""; then
27633    as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
27634  fi
27635  LIBS="-lnettle $LIBS"
27636fi
27637
27638if test "$GNUTLS_ENABLED" = "1"; then
27639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
27640printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
27641if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
27642then :
27643  printf %s "(cached) " >&6
27644else $as_nop
27645  ac_check_lib_save_LIBS=$LIBS
27646LIBS="-lgnutls  $LIBS"
27647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27648/* end confdefs.h.  */
27649
27650
27651#ifdef __cplusplus
27652extern "C"
27653#endif
27654char gnutls_srp_verifier ();
27655int main (void)
27656{
27657return gnutls_srp_verifier ();
27658 ;
27659 return 0;
27660}
27661_ACEOF
27662if ac_fn_c_try_link "$LINENO"
27663then :
27664  ac_cv_lib_gnutls_gnutls_srp_verifier=yes
27665else $as_nop
27666  ac_cv_lib_gnutls_gnutls_srp_verifier=no
27667fi
27668rm -f core conftest.err conftest.$ac_objext conftest.beam \
27669    conftest$ac_exeext conftest.$ac_ext
27670LIBS=$ac_check_lib_save_LIBS
27671fi
27672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
27673printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
27674if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
27675then :
27676
27677
27678printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
27679
27680     HAVE_GNUTLS_SRP=1
27681
27682
27683fi
27684
27685fi
27686
27687
27688
27689
27690if test "x$OPT_MBEDTLS" != xno; then
27691  _cppflags=$CPPFLAGS
27692  _ldflags=$LDFLAGS
27693  ssl_msg=
27694
27695  if test X"$OPT_MBEDTLS" != Xno; then
27696
27697    if test "$OPT_MBEDTLS" = "yes"; then
27698      OPT_MBEDTLS=""
27699    fi
27700
27701    if test -z "$OPT_MBEDTLS" ; then
27702
27703      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27704printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27705if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27706then :
27707  printf %s "(cached) " >&6
27708else $as_nop
27709  ac_check_lib_save_LIBS=$LIBS
27710LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27712/* end confdefs.h.  */
27713
27714
27715#ifdef __cplusplus
27716extern "C"
27717#endif
27718char mbedtls_havege_init ();
27719int main (void)
27720{
27721return mbedtls_havege_init ();
27722 ;
27723 return 0;
27724}
27725_ACEOF
27726if ac_fn_c_try_link "$LINENO"
27727then :
27728  ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27729else $as_nop
27730  ac_cv_lib_mbedtls_mbedtls_havege_init=no
27731fi
27732rm -f core conftest.err conftest.$ac_objext conftest.beam \
27733    conftest$ac_exeext conftest.$ac_ext
27734LIBS=$ac_check_lib_save_LIBS
27735fi
27736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27737printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27738if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27739then :
27740
27741
27742printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27743
27744         USE_MBEDTLS=1
27745
27746         MBEDTLS_ENABLED=1
27747         USE_MBEDTLS="yes"
27748         ssl_msg="mbedTLS"
27749         test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27750
27751fi
27752
27753    fi
27754
27755    addld=""
27756    addlib=""
27757    addcflags=""
27758    mbedtlslib=""
27759
27760    if test "x$USE_MBEDTLS" != "xyes"; then
27761            addld=-L$OPT_MBEDTLS/lib$libsuff
27762      addcflags=-I$OPT_MBEDTLS/include
27763      mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27764
27765      LDFLAGS="$LDFLAGS $addld"
27766      if test "$addcflags" != "-I/usr/include"; then
27767         CPPFLAGS="$CPPFLAGS $addcflags"
27768      fi
27769
27770      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27771printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27772if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27773then :
27774  printf %s "(cached) " >&6
27775else $as_nop
27776  ac_check_lib_save_LIBS=$LIBS
27777LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27779/* end confdefs.h.  */
27780
27781
27782#ifdef __cplusplus
27783extern "C"
27784#endif
27785char mbedtls_ssl_init ();
27786int main (void)
27787{
27788return mbedtls_ssl_init ();
27789 ;
27790 return 0;
27791}
27792_ACEOF
27793if ac_fn_c_try_link "$LINENO"
27794then :
27795  ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27796else $as_nop
27797  ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27798fi
27799rm -f core conftest.err conftest.$ac_objext conftest.beam \
27800    conftest$ac_exeext conftest.$ac_ext
27801LIBS=$ac_check_lib_save_LIBS
27802fi
27803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
27804printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
27805if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
27806then :
27807
27808
27809printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27810
27811       USE_MBEDTLS=1
27812
27813       MBEDTLS_ENABLED=1
27814       USE_MBEDTLS="yes"
27815       ssl_msg="mbedTLS"
27816       test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27817
27818else $as_nop
27819
27820         CPPFLAGS=$_cppflags
27821         LDFLAGS=$_ldflags
27822
27823fi
27824
27825    fi
27826
27827    if test "x$USE_MBEDTLS" = "xyes"; then
27828      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
27829printf "%s\n" "$as_me: detected mbedTLS" >&6;}
27830      check_for_ca_bundle=1
27831
27832      LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27833
27834      if test -n "$mbedtlslib"; then
27835                                        if test "x$cross_compiling" != "xyes"; then
27836          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
27837          export CURL_LIBRARY_PATH
27838          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
27839printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
27840        fi
27841      fi
27842    fi
27843
27844  fi
27845  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27846fi
27847
27848
27849
27850
27851case "$OPT_WOLFSSL" in
27852  yes|no)
27853    wolfpkg=""
27854    ;;
27855  *)
27856    wolfpkg="$withval/lib/pkgconfig"
27857    ;;
27858esac
27859
27860if test "x$OPT_WOLFSSL" != xno; then
27861  _cppflags=$CPPFLAGS
27862  _ldflags=$LDFLAGS
27863
27864  ssl_msg=
27865
27866  if test X"$OPT_WOLFSSL" != Xno; then
27867
27868    if test "$OPT_WOLFSSL" = "yes"; then
27869      OPT_WOLFSSL=""
27870    fi
27871
27872
27873    if test -n "$PKG_CONFIG"; then
27874      PKGCONFIG="$PKG_CONFIG"
27875    else
27876      if test -n "$ac_tool_prefix"; then
27877  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27878set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27880printf %s "checking for $ac_word... " >&6; }
27881if test ${ac_cv_path_PKGCONFIG+y}
27882then :
27883  printf %s "(cached) " >&6
27884else $as_nop
27885  case $PKGCONFIG in
27886  [\\/]* | ?:[\\/]*)
27887  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27888  ;;
27889  *)
27890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27891as_dummy="$PATH:/usr/bin:/usr/local/bin"
27892for as_dir in $as_dummy
27893do
27894  IFS=$as_save_IFS
27895  case $as_dir in #(((
27896    '') as_dir=./ ;;
27897    */) ;;
27898    *) as_dir=$as_dir/ ;;
27899  esac
27900    for ac_exec_ext in '' $ac_executable_extensions; do
27901  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27902    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27903    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27904    break 2
27905  fi
27906done
27907  done
27908IFS=$as_save_IFS
27909
27910  ;;
27911esac
27912fi
27913PKGCONFIG=$ac_cv_path_PKGCONFIG
27914if test -n "$PKGCONFIG"; then
27915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27916printf "%s\n" "$PKGCONFIG" >&6; }
27917else
27918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27919printf "%s\n" "no" >&6; }
27920fi
27921
27922
27923fi
27924if test -z "$ac_cv_path_PKGCONFIG"; then
27925  ac_pt_PKGCONFIG=$PKGCONFIG
27926  # Extract the first word of "pkg-config", so it can be a program name with args.
27927set dummy pkg-config; ac_word=$2
27928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27929printf %s "checking for $ac_word... " >&6; }
27930if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27931then :
27932  printf %s "(cached) " >&6
27933else $as_nop
27934  case $ac_pt_PKGCONFIG in
27935  [\\/]* | ?:[\\/]*)
27936  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27937  ;;
27938  *)
27939  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27940as_dummy="$PATH:/usr/bin:/usr/local/bin"
27941for as_dir in $as_dummy
27942do
27943  IFS=$as_save_IFS
27944  case $as_dir in #(((
27945    '') as_dir=./ ;;
27946    */) ;;
27947    *) as_dir=$as_dir/ ;;
27948  esac
27949    for ac_exec_ext in '' $ac_executable_extensions; do
27950  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27951    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27952    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27953    break 2
27954  fi
27955done
27956  done
27957IFS=$as_save_IFS
27958
27959  ;;
27960esac
27961fi
27962ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27963if test -n "$ac_pt_PKGCONFIG"; then
27964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27965printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27966else
27967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27968printf "%s\n" "no" >&6; }
27969fi
27970
27971  if test "x$ac_pt_PKGCONFIG" = x; then
27972    PKGCONFIG="no"
27973  else
27974    case $cross_compiling:$ac_tool_warned in
27975yes:)
27976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27977printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27978ac_tool_warned=yes ;;
27979esac
27980    PKGCONFIG=$ac_pt_PKGCONFIG
27981  fi
27982else
27983  PKGCONFIG="$ac_cv_path_PKGCONFIG"
27984fi
27985
27986    fi
27987
27988    if test "x$PKGCONFIG" != "xno"; then
27989      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
27990printf %s "checking for wolfssl options with pkg-config... " >&6; }
27991            itexists=`
27992    if test -n "$wolfpkg"; then
27993      PKG_CONFIG_LIBDIR="$wolfpkg"
27994      export PKG_CONFIG_LIBDIR
27995    fi
27996         $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
27997
27998      if test -z "$itexists"; then
27999                        PKGCONFIG="no"
28000        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28001printf "%s\n" "no" >&6; }
28002      else
28003        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28004printf "%s\n" "found" >&6; }
28005      fi
28006    fi
28007
28008    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
28009printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
28010
28011    addld=""
28012    addlib=""
28013    addcflags=""
28014    if test "$PKGCONFIG" != "no" ; then
28015      addlib=`
28016    if test -n "$wolfpkg"; then
28017      PKG_CONFIG_LIBDIR="$wolfpkg"
28018      export PKG_CONFIG_LIBDIR
28019    fi
28020
28021        $PKGCONFIG --libs-only-l wolfssl`
28022      addld=`
28023    if test -n "$wolfpkg"; then
28024      PKG_CONFIG_LIBDIR="$wolfpkg"
28025      export PKG_CONFIG_LIBDIR
28026    fi
28027
28028        $PKGCONFIG --libs-only-L wolfssl`
28029      addcflags=`
28030    if test -n "$wolfpkg"; then
28031      PKG_CONFIG_LIBDIR="$wolfpkg"
28032      export PKG_CONFIG_LIBDIR
28033    fi
28034
28035        $PKGCONFIG --cflags-only-I wolfssl`
28036      version=`
28037    if test -n "$wolfpkg"; then
28038      PKG_CONFIG_LIBDIR="$wolfpkg"
28039      export PKG_CONFIG_LIBDIR
28040    fi
28041
28042        $PKGCONFIG --modversion wolfssl`
28043      wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
28044    else
28045      addlib=-lwolfssl
28046            if test -n "$OPT_WOLFSSL"; then
28047        addld=-L$OPT_WOLFSSL/lib$libsuff
28048        addcflags=-I$OPT_WOLFSSL/include
28049        wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
28050      fi
28051    fi
28052
28053    if test "x$USE_WOLFSSL" != "xyes"; then
28054
28055      LDFLAGS="$LDFLAGS $addld"
28056      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
28057printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
28058      if test "$addcflags" != "-I/usr/include"; then
28059         CPPFLAGS="$CPPFLAGS $addcflags"
28060         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
28061printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
28062      fi
28063
28064      my_ac_save_LIBS="$LIBS"
28065      LIBS="$addlib $LIBS"
28066      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
28067printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
28068
28069      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
28070printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
28071      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28072/* end confdefs.h.  */
28073
28074
28075/* These aren't needed for detection and confuse WolfSSL.
28076   They are set up properly later if it is detected.  */
28077#undef SIZEOF_LONG
28078#undef SIZEOF_LONG_LONG
28079#include <wolfssl/options.h>
28080#include <wolfssl/ssl.h>
28081
28082int main (void)
28083{
28084
28085          return wolfSSL_Init();
28086
28087 ;
28088 return 0;
28089}
28090
28091_ACEOF
28092if ac_fn_c_try_link "$LINENO"
28093then :
28094
28095         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28096printf "%s\n" "yes" >&6; }
28097
28098printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
28099
28100         USE_WOLFSSL=1
28101
28102         WOLFSSL_ENABLED=1
28103         USE_WOLFSSL="yes"
28104         ssl_msg="WolfSSL"
28105         QUIC_ENABLED=yes
28106         test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28107
28108else $as_nop
28109
28110         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28111printf "%s\n" "no" >&6; }
28112         CPPFLAGS=$_cppflags
28113         LDFLAGS=$_ldflags
28114         wolfssllibpath=""
28115
28116fi
28117rm -f core conftest.err conftest.$ac_objext conftest.beam \
28118    conftest$ac_exeext conftest.$ac_ext
28119      LIBS="$my_ac_save_LIBS"
28120    fi
28121
28122    if test "x$USE_WOLFSSL" = "xyes"; then
28123      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
28124printf "%s\n" "$as_me: detected wolfSSL" >&6;}
28125      check_for_ca_bundle=1
28126
28127
28128
28129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
28130printf %s "checking size of long long... " >&6; }
28131  r=0
28132    for typesize in 8 4 2 16 1; do
28133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28134/* end confdefs.h.  */
28135
28136#include <sys/types.h>
28137
28138
28139int main (void)
28140{
28141switch(0) {
28142       case 0:
28143       case (sizeof(long long) == $typesize):;
28144     }
28145
28146 ;
28147 return 0;
28148}
28149_ACEOF
28150if ac_fn_c_try_compile "$LINENO"
28151then :
28152
28153       r=$typesize
28154else $as_nop
28155
28156       r=0
28157fi
28158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28159        if test $r -gt 0; then
28160      break;
28161    fi
28162  done
28163  if test $r -eq 0; then
28164    as_fn_error $? "Failed to find size of long long" "$LINENO" 5
28165  fi
28166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
28167printf "%s\n" "$r" >&6; }
28168    tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
28169  eval "$tname=$r"
28170
28171
28172printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
28173
28174
28175
28176
28177      LIBS="$addlib -lm $LIBS"
28178
28179                        ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
28180if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
28181then :
28182  printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
28183
28184fi
28185ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
28186if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
28187then :
28188  printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
28189
28190fi
28191
28192
28193                  ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
28194if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
28195then :
28196
28197
28198printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
28199
28200            WOLFSSL_NTLM=1
28201
28202
28203fi
28204
28205
28206            ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_set_shutdown" "ac_cv_func_wolfSSL_BIO_set_shutdown"
28207if test "x$ac_cv_func_wolfSSL_BIO_set_shutdown" = xyes
28208then :
28209
28210
28211printf "%s\n" "#define HAVE_WOLFSSL_FULL_BIO 1" >>confdefs.h
28212
28213            WOLFSSL_FULL_BIO=1
28214
28215
28216fi
28217
28218
28219      if test -n "$wolfssllibpath"; then
28220                                        if test "x$cross_compiling" != "xyes"; then
28221          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
28222          export CURL_LIBRARY_PATH
28223          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
28224printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
28225        fi
28226      fi
28227    else
28228        as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5
28229    fi
28230
28231  fi
28232  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28233fi
28234
28235
28236
28237
28238if test "x$OPT_BEARSSL" != xno; then
28239  _cppflags=$CPPFLAGS
28240  _ldflags=$LDFLAGS
28241  ssl_msg=
28242
28243  if test X"$OPT_BEARSSL" != Xno; then
28244
28245    if test "$OPT_BEARSSL" = "yes"; then
28246      OPT_BEARSSL=""
28247    fi
28248
28249    if test -z "$OPT_BEARSSL" ; then
28250
28251      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28252printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28253if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28254then :
28255  printf %s "(cached) " >&6
28256else $as_nop
28257  ac_check_lib_save_LIBS=$LIBS
28258LIBS="-lbearssl -lbearssl $LIBS"
28259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28260/* end confdefs.h.  */
28261
28262
28263#ifdef __cplusplus
28264extern "C"
28265#endif
28266char br_ssl_client_init_full ();
28267int main (void)
28268{
28269return br_ssl_client_init_full ();
28270 ;
28271 return 0;
28272}
28273_ACEOF
28274if ac_fn_c_try_link "$LINENO"
28275then :
28276  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28277else $as_nop
28278  ac_cv_lib_bearssl_br_ssl_client_init_full=no
28279fi
28280rm -f core conftest.err conftest.$ac_objext conftest.beam \
28281    conftest$ac_exeext conftest.$ac_ext
28282LIBS=$ac_check_lib_save_LIBS
28283fi
28284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28285printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28286if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28287then :
28288
28289
28290printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28291
28292         USE_BEARSSL=1
28293
28294         BEARSSL_ENABLED=1
28295         USE_BEARSSL="yes"
28296         ssl_msg="BearSSL"
28297         test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28298
28299fi
28300
28301    fi
28302
28303    addld=""
28304    addlib=""
28305    addcflags=""
28306    bearssllib=""
28307
28308    if test "x$USE_BEARSSL" != "xyes"; then
28309            addld=-L$OPT_BEARSSL/lib$libsuff
28310      addcflags=-I$OPT_BEARSSL/include
28311      bearssllib=$OPT_BEARSSL/lib$libsuff
28312
28313      LDFLAGS="$LDFLAGS $addld"
28314      if test "$addcflags" != "-I/usr/include"; then
28315         CPPFLAGS="$CPPFLAGS $addcflags"
28316      fi
28317
28318      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28319printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28320if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28321then :
28322  printf %s "(cached) " >&6
28323else $as_nop
28324  ac_check_lib_save_LIBS=$LIBS
28325LIBS="-lbearssl -lbearssl $LIBS"
28326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28327/* end confdefs.h.  */
28328
28329
28330#ifdef __cplusplus
28331extern "C"
28332#endif
28333char br_ssl_client_init_full ();
28334int main (void)
28335{
28336return br_ssl_client_init_full ();
28337 ;
28338 return 0;
28339}
28340_ACEOF
28341if ac_fn_c_try_link "$LINENO"
28342then :
28343  ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28344else $as_nop
28345  ac_cv_lib_bearssl_br_ssl_client_init_full=no
28346fi
28347rm -f core conftest.err conftest.$ac_objext conftest.beam \
28348    conftest$ac_exeext conftest.$ac_ext
28349LIBS=$ac_check_lib_save_LIBS
28350fi
28351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28352printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28353if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28354then :
28355
28356
28357printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28358
28359       USE_BEARSSL=1
28360
28361       BEARSSL_ENABLED=1
28362       USE_BEARSSL="yes"
28363       ssl_msg="BearSSL"
28364       test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28365
28366else $as_nop
28367
28368         CPPFLAGS=$_cppflags
28369         LDFLAGS=$_ldflags
28370
28371fi
28372
28373    fi
28374
28375    if test "x$USE_BEARSSL" = "xyes"; then
28376      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
28377printf "%s\n" "$as_me: detected BearSSL" >&6;}
28378      check_for_ca_bundle=1
28379
28380      LIBS="-lbearssl $LIBS"
28381
28382      if test -n "$bearssllib"; then
28383                                        if test "x$cross_compiling" != "xyes"; then
28384          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
28385          export CURL_LIBRARY_PATH
28386          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
28387printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
28388        fi
28389      fi
28390    fi
28391
28392  fi
28393  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28394fi
28395
28396
28397
28398if test "x$OPT_RUSTLS" != xno; then
28399  _cppflags=$CPPFLAGS
28400  _ldflags=$LDFLAGS
28401  ssl_msg=
28402
28403  if test X"$OPT_RUSTLS" != Xno; then
28404
28405    if test "$OPT_RUSTLS" = "yes"; then
28406      OPT_RUSTLS=""
28407    fi
28408
28409    case $host_os in
28410      darwin*)
28411        LDFLAGS="$LDFLAGS -framework Security"
28412        ;;
28413      *)
28414        ;;
28415    esac
28416
28417    if test -z "$OPT_RUSTLS" ; then
28418
28419      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
28420printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
28421if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
28422then :
28423  printf %s "(cached) " >&6
28424else $as_nop
28425  ac_check_lib_save_LIBS=$LIBS
28426LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28428/* end confdefs.h.  */
28429
28430
28431#ifdef __cplusplus
28432extern "C"
28433#endif
28434char rustls_client_session_read ();
28435int main (void)
28436{
28437return rustls_client_session_read ();
28438 ;
28439 return 0;
28440}
28441_ACEOF
28442if ac_fn_c_try_link "$LINENO"
28443then :
28444  ac_cv_lib_rustls_rustls_client_session_read=yes
28445else $as_nop
28446  ac_cv_lib_rustls_rustls_client_session_read=no
28447fi
28448rm -f core conftest.err conftest.$ac_objext conftest.beam \
28449    conftest$ac_exeext conftest.$ac_ext
28450LIBS=$ac_check_lib_save_LIBS
28451fi
28452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
28453printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
28454if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
28455then :
28456
28457
28458printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28459
28460         USE_RUSTLS=1
28461
28462         RUSTLS_ENABLED=1
28463         USE_RUSTLS="yes"
28464         ssl_msg="rustls"
28465         test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28466
28467fi
28468
28469    fi
28470
28471    if test "x$USE_RUSTLS" != "xyes"; then
28472            addld=-L$OPT_RUSTLS/lib$libsuff
28473      addcflags=-I$OPT_RUSTLS/include
28474      rustlslib=$OPT_RUSTLS/lib$libsuff
28475
28476      LDFLAGS="$LDFLAGS $addld"
28477      if test "$addcflags" != "-I/usr/include"; then
28478         CPPFLAGS="$CPPFLAGS $addcflags"
28479      fi
28480
28481      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
28482printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
28483if test ${ac_cv_lib_rustls_rustls_connection_read+y}
28484then :
28485  printf %s "(cached) " >&6
28486else $as_nop
28487  ac_check_lib_save_LIBS=$LIBS
28488LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28490/* end confdefs.h.  */
28491
28492
28493#ifdef __cplusplus
28494extern "C"
28495#endif
28496char rustls_connection_read ();
28497int main (void)
28498{
28499return rustls_connection_read ();
28500 ;
28501 return 0;
28502}
28503_ACEOF
28504if ac_fn_c_try_link "$LINENO"
28505then :
28506  ac_cv_lib_rustls_rustls_connection_read=yes
28507else $as_nop
28508  ac_cv_lib_rustls_rustls_connection_read=no
28509fi
28510rm -f core conftest.err conftest.$ac_objext conftest.beam \
28511    conftest$ac_exeext conftest.$ac_ext
28512LIBS=$ac_check_lib_save_LIBS
28513fi
28514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
28515printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
28516if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
28517then :
28518
28519
28520printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28521
28522       USE_RUSTLS=1
28523
28524       RUSTLS_ENABLED=1
28525       USE_RUSTLS="yes"
28526       ssl_msg="rustls"
28527       test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28528
28529else $as_nop
28530  as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
28531fi
28532
28533    fi
28534
28535    if test "x$USE_RUSTLS" = "xyes"; then
28536      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
28537printf "%s\n" "$as_me: detected rustls" >&6;}
28538      check_for_ca_bundle=1
28539
28540      LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28541
28542      if test -n "$rustlslib"; then
28543                                        if test "x$cross_compiling" != "xyes"; then
28544          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
28545          export CURL_LIBRARY_PATH
28546          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
28547printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
28548        fi
28549      fi
28550    fi
28551
28552  fi
28553  test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28554fi
28555
28556
28557if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28558  LIBS="-ladvapi32 -lcrypt32 $LIBS"
28559fi
28560
28561if test "x$curl_cv_native_windows" = "xyes"; then
28562  LIBS="-lbcrypt $LIBS"
28563fi
28564
28565case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED"
28566in
28567x)
28568  as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
28569Use --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
28570  ;;
28571x1)
28572  # one SSL backend is enabled
28573
28574  SSL_ENABLED="1"
28575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28576printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28577  ;;
28578xD)
28579  # explicitly built without TLS
28580  ;;
28581xD*)
28582  as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library
28583(e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
28584Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5
28585  ;;
28586*)
28587  # more than one SSL backend is enabled
28588
28589  SSL_ENABLED="1"
28590
28591  CURL_WITH_MULTI_SSL="1"
28592
28593printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28594
28595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28596printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28597  ;;
28598esac
28599
28600if test -n "$ssl_backends"; then
28601  curl_ssl_msg="enabled ($ssl_backends)"
28602fi
28603
28604if test no = "$VALID_DEFAULT_SSL_BACKEND"
28605then
28606  if test -n "$SSL_ENABLED"
28607  then
28608    as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28609  else
28610    as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28611  fi
28612elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28613then
28614
28615printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28616
28617fi
28618
28619
28620if test -n "$check_for_ca_bundle"; then
28621
28622
28623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28624printf %s "checking default CA cert bundle/path... " >&6; }
28625
28626
28627# Check whether --with-ca-bundle was given.
28628if test ${with_ca_bundle+y}
28629then :
28630  withval=$with_ca_bundle;
28631    want_ca="$withval"
28632    if test "x$want_ca" = "xyes"; then
28633      as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28634    fi
28635
28636else $as_nop
28637   want_ca="unset"
28638fi
28639
28640
28641# Check whether --with-ca-path was given.
28642if test ${with_ca_path+y}
28643then :
28644  withval=$with_ca_path;
28645    want_capath="$withval"
28646    if test "x$want_capath" = "xyes"; then
28647      as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28648    fi
28649
28650else $as_nop
28651   want_capath="unset"
28652fi
28653
28654
28655  ca_warning="   (warning: certs not found)"
28656  capath_warning="   (warning: certs not found)"
28657  check_capath=""
28658
28659  if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28660          "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28661        ca="$want_ca"
28662    capath="$want_capath"
28663  elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28664        ca="$want_ca"
28665    capath="no"
28666  elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28667        if test "x$OPENSSL_ENABLED" != "x1" -a \
28668            "x$GNUTLS_ENABLED" != "x1" -a \
28669            "x$MBEDTLS_ENABLED" != "x1" -a \
28670            "x$WOLFSSL_ENABLED" != "x1"; then
28671      as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS, mbedTLS or wolfSSL" "$LINENO" 5
28672    fi
28673    capath="$want_capath"
28674    ca="no"
28675  else
28676            ca="no"
28677    capath="no"
28678    if test "x$cross_compiling" != "xyes"; then
28679                  if test "x$want_ca" = "xunset"; then
28680                                if test "x$prefix" != xNONE; then
28681          cac="${prefix}/share/curl/curl-ca-bundle.crt"
28682        else
28683          cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28684        fi
28685
28686        for a in /etc/ssl/certs/ca-certificates.crt \
28687                 /etc/pki/tls/certs/ca-bundle.crt \
28688                 /usr/share/ssl/certs/ca-bundle.crt \
28689                 /usr/local/share/certs/ca-root-nss.crt \
28690                 /etc/ssl/cert.pem \
28691                 "$cac"; do
28692          if test -f "$a"; then
28693            ca="$a"
28694            break
28695          fi
28696        done
28697      fi
28698      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: want $want_capath ca $ca" >&5
28699printf "%s\n" "$as_me: want $want_capath ca $ca" >&6;}
28700      if test "x$want_capath" = "xunset"; then
28701        if test "x$OPENSSL_ENABLED" = "x1" -o \
28702                "x$GNUTLS_ENABLED" = "x1" -o \
28703                "x$MBEDTLS_ENABLED" = "x1" -o \
28704                "x$WOLFSSL_ENABLED" = "x1"; then
28705          check_capath="/etc/ssl/certs"
28706        fi
28707      fi
28708    else
28709            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28710printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28711    fi
28712  fi
28713
28714  if test "x$ca" = "xno" || test -f "$ca"; then
28715    ca_warning=""
28716  fi
28717
28718  if test "x$capath" != "xno"; then
28719    check_capath="$capath"
28720  fi
28721
28722  if test ! -z "$check_capath"; then
28723    for a in "$check_capath"; do
28724      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
28725        if test "x$capath" = "xno"; then
28726          capath="$a"
28727        fi
28728        capath_warning=""
28729        break
28730      fi
28731    done
28732  fi
28733
28734  if test "x$capath" = "xno"; then
28735    capath_warning=""
28736  fi
28737
28738  if test "x$ca" != "xno"; then
28739    CURL_CA_BUNDLE='"'$ca'"'
28740
28741printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28742
28743
28744    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28745printf "%s\n" "$ca" >&6; }
28746  fi
28747  if test "x$capath" != "xno"; then
28748    CURL_CA_PATH="\"$capath\""
28749
28750printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28751
28752    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28753printf "%s\n" "$capath (capath)" >&6; }
28754  fi
28755  if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28756    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28757printf "%s\n" "no" >&6; }
28758  fi
28759
28760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28761printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28762
28763# Check whether --with-ca-fallback was given.
28764if test ${with_ca_fallback+y}
28765then :
28766  withval=$with_ca_fallback;
28767    if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28768      as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28769    fi
28770
28771else $as_nop
28772   with_ca_fallback="no"
28773fi
28774
28775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28776printf "%s\n" "$with_ca_fallback" >&6; }
28777  if test "x$with_ca_fallback" = "xyes"; then
28778    if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28779      as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28780    fi
28781
28782printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28783
28784  fi
28785
28786fi
28787
28788
28789
28790# Check whether --with-libpsl was given.
28791if test ${with_libpsl+y}
28792then :
28793  withval=$with_libpsl; with_libpsl=$withval
28794else $as_nop
28795  with_libpsl=yes
28796fi
28797
28798curl_psl_msg="no      (libpsl disabled)"
28799if test $with_libpsl != "no"; then
28800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28801printf %s "checking for library containing psl_builtin... " >&6; }
28802if test ${ac_cv_search_psl_builtin+y}
28803then :
28804  printf %s "(cached) " >&6
28805else $as_nop
28806  ac_func_search_save_LIBS=$LIBS
28807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28808/* end confdefs.h.  */
28809
28810
28811#ifdef __cplusplus
28812extern "C"
28813#endif
28814char psl_builtin ();
28815int main (void)
28816{
28817return psl_builtin ();
28818 ;
28819 return 0;
28820}
28821_ACEOF
28822for ac_lib in '' psl
28823do
28824  if test -z "$ac_lib"; then
28825    ac_res="none required"
28826  else
28827    ac_res=-l$ac_lib
28828    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28829  fi
28830  if ac_fn_c_try_link "$LINENO"
28831then :
28832  ac_cv_search_psl_builtin=$ac_res
28833fi
28834rm -f core conftest.err conftest.$ac_objext conftest.beam \
28835    conftest$ac_exeext
28836  if test ${ac_cv_search_psl_builtin+y}
28837then :
28838  break
28839fi
28840done
28841if test ${ac_cv_search_psl_builtin+y}
28842then :
28843
28844else $as_nop
28845  ac_cv_search_psl_builtin=no
28846fi
28847rm conftest.$ac_ext
28848LIBS=$ac_func_search_save_LIBS
28849fi
28850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
28851printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
28852ac_res=$ac_cv_search_psl_builtin
28853if test "$ac_res" != no
28854then :
28855  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28856  curl_psl_msg="enabled";
28857
28858printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
28859
28860
28861else $as_nop
28862  as_fn_error $? "libpsl was not found" "$LINENO" 5
28863
28864fi
28865
28866fi
28867 if test "$curl_psl_msg" = "enabled"; then
28868  USE_LIBPSL_TRUE=
28869  USE_LIBPSL_FALSE='#'
28870else
28871  USE_LIBPSL_TRUE='#'
28872  USE_LIBPSL_FALSE=
28873fi
28874
28875
28876
28877
28878
28879# Check whether --with-libgsasl was given.
28880if test ${with_libgsasl+y}
28881then :
28882  withval=$with_libgsasl; with_libgsasl=$withval
28883else $as_nop
28884  with_libgsasl=yes
28885fi
28886
28887if test $with_libgsasl != "no"; then
28888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
28889printf %s "checking for library containing gsasl_init... " >&6; }
28890if test ${ac_cv_search_gsasl_init+y}
28891then :
28892  printf %s "(cached) " >&6
28893else $as_nop
28894  ac_func_search_save_LIBS=$LIBS
28895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28896/* end confdefs.h.  */
28897
28898
28899#ifdef __cplusplus
28900extern "C"
28901#endif
28902char gsasl_init ();
28903int main (void)
28904{
28905return gsasl_init ();
28906 ;
28907 return 0;
28908}
28909_ACEOF
28910for ac_lib in '' gsasl
28911do
28912  if test -z "$ac_lib"; then
28913    ac_res="none required"
28914  else
28915    ac_res=-l$ac_lib
28916    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28917  fi
28918  if ac_fn_c_try_link "$LINENO"
28919then :
28920  ac_cv_search_gsasl_init=$ac_res
28921fi
28922rm -f core conftest.err conftest.$ac_objext conftest.beam \
28923    conftest$ac_exeext
28924  if test ${ac_cv_search_gsasl_init+y}
28925then :
28926  break
28927fi
28928done
28929if test ${ac_cv_search_gsasl_init+y}
28930then :
28931
28932else $as_nop
28933  ac_cv_search_gsasl_init=no
28934fi
28935rm conftest.$ac_ext
28936LIBS=$ac_func_search_save_LIBS
28937fi
28938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
28939printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
28940ac_res=$ac_cv_search_gsasl_init
28941if test "$ac_res" != no
28942then :
28943  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28944  curl_gsasl_msg="enabled";
28945
28946printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
28947
28948
28949else $as_nop
28950  curl_gsasl_msg="no      (libgsasl not found)";
28951     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
28952printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
28953
28954
28955fi
28956
28957fi
28958 if test "$curl_gsasl_msg" = "enabled"; then
28959  USE_GSASL_TRUE=
28960  USE_GSASL_FALSE='#'
28961else
28962  USE_GSASL_TRUE='#'
28963  USE_GSASL_FALSE=
28964fi
28965
28966
28967
28968# Check whether --with-libmetalink was given.
28969if test ${with_libmetalink+y}
28970then :
28971  withval=$with_libmetalink; as_fn_error $? "--with-libmetalink and --without-libmetalink no longer work!" "$LINENO" 5
28972fi
28973
28974
28975
28976OPT_LIBSSH2=off
28977
28978# Check whether --with-libssh2 was given.
28979if test ${with_libssh2+y}
28980then :
28981  withval=$with_libssh2; OPT_LIBSSH2=$withval
28982else $as_nop
28983  OPT_LIBSSH2=no
28984fi
28985
28986
28987
28988OPT_LIBSSH=off
28989
28990# Check whether --with-libssh was given.
28991if test ${with_libssh+y}
28992then :
28993  withval=$with_libssh; OPT_LIBSSH=$withval
28994else $as_nop
28995  OPT_LIBSSH=no
28996fi
28997
28998
28999OPT_WOLFSSH=off
29000
29001# Check whether --with-wolfssh was given.
29002if test ${with_wolfssh+y}
29003then :
29004  withval=$with_wolfssh; OPT_WOLFSSH=$withval
29005else $as_nop
29006  OPT_WOLFSSH=no
29007fi
29008
29009
29010if test X"$OPT_LIBSSH2" != Xno; then
29011    CLEANLDFLAGS="$LDFLAGS"
29012  CLEANCPPFLAGS="$CPPFLAGS"
29013  CLEANLIBS="$LIBS"
29014
29015  case "$OPT_LIBSSH2" in
29016  yes)
29017
29018    if test -n "$PKG_CONFIG"; then
29019      PKGCONFIG="$PKG_CONFIG"
29020    else
29021      if test -n "$ac_tool_prefix"; then
29022  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29023set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29025printf %s "checking for $ac_word... " >&6; }
29026if test ${ac_cv_path_PKGCONFIG+y}
29027then :
29028  printf %s "(cached) " >&6
29029else $as_nop
29030  case $PKGCONFIG in
29031  [\\/]* | ?:[\\/]*)
29032  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29033  ;;
29034  *)
29035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29036as_dummy="$PATH:/usr/bin:/usr/local/bin"
29037for as_dir in $as_dummy
29038do
29039  IFS=$as_save_IFS
29040  case $as_dir in #(((
29041    '') as_dir=./ ;;
29042    */) ;;
29043    *) as_dir=$as_dir/ ;;
29044  esac
29045    for ac_exec_ext in '' $ac_executable_extensions; do
29046  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29047    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29048    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29049    break 2
29050  fi
29051done
29052  done
29053IFS=$as_save_IFS
29054
29055  ;;
29056esac
29057fi
29058PKGCONFIG=$ac_cv_path_PKGCONFIG
29059if test -n "$PKGCONFIG"; then
29060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29061printf "%s\n" "$PKGCONFIG" >&6; }
29062else
29063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29064printf "%s\n" "no" >&6; }
29065fi
29066
29067
29068fi
29069if test -z "$ac_cv_path_PKGCONFIG"; then
29070  ac_pt_PKGCONFIG=$PKGCONFIG
29071  # Extract the first word of "pkg-config", so it can be a program name with args.
29072set dummy pkg-config; ac_word=$2
29073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29074printf %s "checking for $ac_word... " >&6; }
29075if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29076then :
29077  printf %s "(cached) " >&6
29078else $as_nop
29079  case $ac_pt_PKGCONFIG in
29080  [\\/]* | ?:[\\/]*)
29081  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29082  ;;
29083  *)
29084  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29085as_dummy="$PATH:/usr/bin:/usr/local/bin"
29086for as_dir in $as_dummy
29087do
29088  IFS=$as_save_IFS
29089  case $as_dir in #(((
29090    '') as_dir=./ ;;
29091    */) ;;
29092    *) as_dir=$as_dir/ ;;
29093  esac
29094    for ac_exec_ext in '' $ac_executable_extensions; do
29095  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29096    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29097    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29098    break 2
29099  fi
29100done
29101  done
29102IFS=$as_save_IFS
29103
29104  ;;
29105esac
29106fi
29107ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29108if test -n "$ac_pt_PKGCONFIG"; then
29109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29110printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29111else
29112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29113printf "%s\n" "no" >&6; }
29114fi
29115
29116  if test "x$ac_pt_PKGCONFIG" = x; then
29117    PKGCONFIG="no"
29118  else
29119    case $cross_compiling:$ac_tool_warned in
29120yes:)
29121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29122printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29123ac_tool_warned=yes ;;
29124esac
29125    PKGCONFIG=$ac_pt_PKGCONFIG
29126  fi
29127else
29128  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29129fi
29130
29131    fi
29132
29133    if test "x$PKGCONFIG" != "xno"; then
29134      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
29135printf %s "checking for libssh2 options with pkg-config... " >&6; }
29136            itexists=`
29137    if test -n ""; then
29138      PKG_CONFIG_LIBDIR=""
29139      export PKG_CONFIG_LIBDIR
29140    fi
29141         $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
29142
29143      if test -z "$itexists"; then
29144                        PKGCONFIG="no"
29145        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29146printf "%s\n" "no" >&6; }
29147      else
29148        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29149printf "%s\n" "found" >&6; }
29150      fi
29151    fi
29152
29153
29154    if test "$PKGCONFIG" != "no" ; then
29155      LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
29156      LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
29157      CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
29158      version=`$PKGCONFIG --modversion libssh2`
29159      DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
29160    fi
29161
29162    ;;
29163  off)
29164        ;;
29165  *)
29166        PREFIX_SSH2=$OPT_LIBSSH2
29167    ;;
29168  esac
29169
29170    if test -n "$PREFIX_SSH2"; then
29171    LIB_SSH2="-lssh2"
29172    LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
29173    CPP_SSH2=-I${PREFIX_SSH2}/include
29174    DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
29175  fi
29176
29177  LDFLAGS="$LDFLAGS $LD_SSH2"
29178  CPPFLAGS="$CPPFLAGS $CPP_SSH2"
29179  LIBS="$LIB_SSH2 $LIBS"
29180
29181    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
29182printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
29183if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
29184then :
29185  printf %s "(cached) " >&6
29186else $as_nop
29187  ac_check_lib_save_LIBS=$LIBS
29188LIBS="-lssh2  $LIBS"
29189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29190/* end confdefs.h.  */
29191
29192
29193#ifdef __cplusplus
29194extern "C"
29195#endif
29196char libssh2_session_block_directions ();
29197int main (void)
29198{
29199return libssh2_session_block_directions ();
29200 ;
29201 return 0;
29202}
29203_ACEOF
29204if ac_fn_c_try_link "$LINENO"
29205then :
29206  ac_cv_lib_ssh2_libssh2_session_block_directions=yes
29207else $as_nop
29208  ac_cv_lib_ssh2_libssh2_session_block_directions=no
29209fi
29210rm -f core conftest.err conftest.$ac_objext conftest.beam \
29211    conftest$ac_exeext conftest.$ac_ext
29212LIBS=$ac_check_lib_save_LIBS
29213fi
29214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
29215printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
29216if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
29217then :
29218  printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
29219
29220  LIBS="-lssh2 $LIBS"
29221
29222fi
29223
29224
29225  ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
29226if test "x$ac_cv_header_libssh2_h" = xyes
29227then :
29228  curl_ssh_msg="enabled (libSSH2)"
29229    LIBSSH2_ENABLED=1
29230
29231printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
29232
29233    USE_LIBSSH2=1
29234
29235
29236fi
29237
29238
29239  if test X"$OPT_LIBSSH2" != Xoff &&
29240     test "$LIBSSH2_ENABLED" != "1"; then
29241    as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
29242  fi
29243
29244  if test "$LIBSSH2_ENABLED" = "1"; then
29245    if test -n "$DIR_SSH2"; then
29246
29247       if test "x$cross_compiling" != "xyes"; then
29248         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
29249         export CURL_LIBRARY_PATH
29250         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
29251printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
29252       fi
29253    fi
29254  else
29255        LDFLAGS=$CLEANLDFLAGS
29256    CPPFLAGS=$CLEANCPPFLAGS
29257    LIBS=$CLEANLIBS
29258  fi
29259elif test X"$OPT_LIBSSH" != Xno; then
29260    CLEANLDFLAGS="$LDFLAGS"
29261  CLEANCPPFLAGS="$CPPFLAGS"
29262  CLEANLIBS="$LIBS"
29263
29264  case "$OPT_LIBSSH" in
29265  yes)
29266
29267    if test -n "$PKG_CONFIG"; then
29268      PKGCONFIG="$PKG_CONFIG"
29269    else
29270      if test -n "$ac_tool_prefix"; then
29271  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29272set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29274printf %s "checking for $ac_word... " >&6; }
29275if test ${ac_cv_path_PKGCONFIG+y}
29276then :
29277  printf %s "(cached) " >&6
29278else $as_nop
29279  case $PKGCONFIG in
29280  [\\/]* | ?:[\\/]*)
29281  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29282  ;;
29283  *)
29284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29285as_dummy="$PATH:/usr/bin:/usr/local/bin"
29286for as_dir in $as_dummy
29287do
29288  IFS=$as_save_IFS
29289  case $as_dir in #(((
29290    '') as_dir=./ ;;
29291    */) ;;
29292    *) as_dir=$as_dir/ ;;
29293  esac
29294    for ac_exec_ext in '' $ac_executable_extensions; do
29295  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29296    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29297    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29298    break 2
29299  fi
29300done
29301  done
29302IFS=$as_save_IFS
29303
29304  ;;
29305esac
29306fi
29307PKGCONFIG=$ac_cv_path_PKGCONFIG
29308if test -n "$PKGCONFIG"; then
29309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29310printf "%s\n" "$PKGCONFIG" >&6; }
29311else
29312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29313printf "%s\n" "no" >&6; }
29314fi
29315
29316
29317fi
29318if test -z "$ac_cv_path_PKGCONFIG"; then
29319  ac_pt_PKGCONFIG=$PKGCONFIG
29320  # Extract the first word of "pkg-config", so it can be a program name with args.
29321set dummy pkg-config; ac_word=$2
29322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29323printf %s "checking for $ac_word... " >&6; }
29324if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29325then :
29326  printf %s "(cached) " >&6
29327else $as_nop
29328  case $ac_pt_PKGCONFIG in
29329  [\\/]* | ?:[\\/]*)
29330  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29331  ;;
29332  *)
29333  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29334as_dummy="$PATH:/usr/bin:/usr/local/bin"
29335for as_dir in $as_dummy
29336do
29337  IFS=$as_save_IFS
29338  case $as_dir in #(((
29339    '') as_dir=./ ;;
29340    */) ;;
29341    *) as_dir=$as_dir/ ;;
29342  esac
29343    for ac_exec_ext in '' $ac_executable_extensions; do
29344  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29345    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29346    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29347    break 2
29348  fi
29349done
29350  done
29351IFS=$as_save_IFS
29352
29353  ;;
29354esac
29355fi
29356ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29357if test -n "$ac_pt_PKGCONFIG"; then
29358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29359printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29360else
29361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29362printf "%s\n" "no" >&6; }
29363fi
29364
29365  if test "x$ac_pt_PKGCONFIG" = x; then
29366    PKGCONFIG="no"
29367  else
29368    case $cross_compiling:$ac_tool_warned in
29369yes:)
29370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29371printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29372ac_tool_warned=yes ;;
29373esac
29374    PKGCONFIG=$ac_pt_PKGCONFIG
29375  fi
29376else
29377  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29378fi
29379
29380    fi
29381
29382    if test "x$PKGCONFIG" != "xno"; then
29383      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29384printf %s "checking for libssh options with pkg-config... " >&6; }
29385            itexists=`
29386    if test -n ""; then
29387      PKG_CONFIG_LIBDIR=""
29388      export PKG_CONFIG_LIBDIR
29389    fi
29390         $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29391
29392      if test -z "$itexists"; then
29393                        PKGCONFIG="no"
29394        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29395printf "%s\n" "no" >&6; }
29396      else
29397        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29398printf "%s\n" "found" >&6; }
29399      fi
29400    fi
29401
29402
29403    if test "$PKGCONFIG" != "no" ; then
29404      LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29405      LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29406      CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29407      version=`$PKGCONFIG --modversion libssh`
29408      DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29409    fi
29410
29411    ;;
29412  off)
29413        ;;
29414  *)
29415        PREFIX_SSH=$OPT_LIBSSH
29416    ;;
29417  esac
29418
29419    if test -n "$PREFIX_SSH"; then
29420    LIB_SSH="-lssh"
29421    LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29422    CPP_SSH=-I${PREFIX_SSH}/include
29423    DIR_SSH=${PREFIX_SSH}/lib$libsuff
29424  fi
29425
29426  LDFLAGS="$LDFLAGS $LD_SSH"
29427  CPPFLAGS="$CPPFLAGS $CPP_SSH"
29428  LIBS="$LIB_SSH $LIBS"
29429
29430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29431printf %s "checking for ssh_new in -lssh... " >&6; }
29432if test ${ac_cv_lib_ssh_ssh_new+y}
29433then :
29434  printf %s "(cached) " >&6
29435else $as_nop
29436  ac_check_lib_save_LIBS=$LIBS
29437LIBS="-lssh  $LIBS"
29438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29439/* end confdefs.h.  */
29440
29441
29442#ifdef __cplusplus
29443extern "C"
29444#endif
29445char ssh_new ();
29446int main (void)
29447{
29448return ssh_new ();
29449 ;
29450 return 0;
29451}
29452_ACEOF
29453if ac_fn_c_try_link "$LINENO"
29454then :
29455  ac_cv_lib_ssh_ssh_new=yes
29456else $as_nop
29457  ac_cv_lib_ssh_ssh_new=no
29458fi
29459rm -f core conftest.err conftest.$ac_objext conftest.beam \
29460    conftest$ac_exeext conftest.$ac_ext
29461LIBS=$ac_check_lib_save_LIBS
29462fi
29463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29464printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29465if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29466then :
29467  printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29468
29469  LIBS="-lssh $LIBS"
29470
29471fi
29472
29473
29474  ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29475if test "x$ac_cv_header_libssh_libssh_h" = xyes
29476then :
29477  curl_ssh_msg="enabled (libSSH)"
29478    LIBSSH_ENABLED=1
29479
29480printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29481
29482    USE_LIBSSH=1
29483
29484
29485fi
29486
29487
29488  if test X"$OPT_LIBSSH" != Xoff &&
29489     test "$LIBSSH_ENABLED" != "1"; then
29490    as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29491  fi
29492
29493  if test "$LIBSSH_ENABLED" = "1"; then
29494    if test -n "$DIR_SSH"; then
29495
29496       if test "x$cross_compiling" != "xyes"; then
29497         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29498         export CURL_LIBRARY_PATH
29499         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29500printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29501       fi
29502    fi
29503  else
29504        LDFLAGS=$CLEANLDFLAGS
29505    CPPFLAGS=$CLEANCPPFLAGS
29506    LIBS=$CLEANLIBS
29507  fi
29508elif test X"$OPT_WOLFSSH" != Xno; then
29509    CLEANLDFLAGS="$LDFLAGS"
29510  CLEANCPPFLAGS="$CPPFLAGS"
29511  CLEANLIBS="$LIBS"
29512
29513
29514  if test "$OPT_WOLFSSH" != yes; then
29515     WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29516     LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29517     CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29518  fi
29519
29520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29521printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29522if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29523then :
29524  printf %s "(cached) " >&6
29525else $as_nop
29526  ac_check_lib_save_LIBS=$LIBS
29527LIBS="-lwolfssh  $LIBS"
29528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29529/* end confdefs.h.  */
29530
29531
29532#ifdef __cplusplus
29533extern "C"
29534#endif
29535char wolfSSH_Init ();
29536int main (void)
29537{
29538return wolfSSH_Init ();
29539 ;
29540 return 0;
29541}
29542_ACEOF
29543if ac_fn_c_try_link "$LINENO"
29544then :
29545  ac_cv_lib_wolfssh_wolfSSH_Init=yes
29546else $as_nop
29547  ac_cv_lib_wolfssh_wolfSSH_Init=no
29548fi
29549rm -f core conftest.err conftest.$ac_objext conftest.beam \
29550    conftest$ac_exeext conftest.$ac_ext
29551LIBS=$ac_check_lib_save_LIBS
29552fi
29553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29554printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29555if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29556then :
29557  printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29558
29559  LIBS="-lwolfssh $LIBS"
29560
29561fi
29562
29563
29564         for ac_header in wolfssh/ssh.h
29565do :
29566  ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29567if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29568then :
29569  printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29570 curl_ssh_msg="enabled (wolfSSH)"
29571    WOLFSSH_ENABLED=1
29572
29573printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29574
29575    USE_WOLFSSH=1
29576
29577
29578fi
29579
29580done
29581
29582fi
29583
29584
29585OPT_LIBRTMP=off
29586
29587# Check whether --with-librtmp was given.
29588if test ${with_librtmp+y}
29589then :
29590  withval=$with_librtmp; OPT_LIBRTMP=$withval
29591fi
29592
29593
29594if test X"$OPT_LIBRTMP" != Xno; then
29595    CLEANLDFLAGS="$LDFLAGS"
29596  CLEANCPPFLAGS="$CPPFLAGS"
29597  CLEANLIBS="$LIBS"
29598
29599  case "$OPT_LIBRTMP" in
29600  yes)
29601
29602    if test -n "$PKG_CONFIG"; then
29603      PKGCONFIG="$PKG_CONFIG"
29604    else
29605      if test -n "$ac_tool_prefix"; then
29606  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29607set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29609printf %s "checking for $ac_word... " >&6; }
29610if test ${ac_cv_path_PKGCONFIG+y}
29611then :
29612  printf %s "(cached) " >&6
29613else $as_nop
29614  case $PKGCONFIG in
29615  [\\/]* | ?:[\\/]*)
29616  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29617  ;;
29618  *)
29619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29620as_dummy="$PATH:/usr/bin:/usr/local/bin"
29621for as_dir in $as_dummy
29622do
29623  IFS=$as_save_IFS
29624  case $as_dir in #(((
29625    '') as_dir=./ ;;
29626    */) ;;
29627    *) as_dir=$as_dir/ ;;
29628  esac
29629    for ac_exec_ext in '' $ac_executable_extensions; do
29630  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29631    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29632    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29633    break 2
29634  fi
29635done
29636  done
29637IFS=$as_save_IFS
29638
29639  ;;
29640esac
29641fi
29642PKGCONFIG=$ac_cv_path_PKGCONFIG
29643if test -n "$PKGCONFIG"; then
29644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29645printf "%s\n" "$PKGCONFIG" >&6; }
29646else
29647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29648printf "%s\n" "no" >&6; }
29649fi
29650
29651
29652fi
29653if test -z "$ac_cv_path_PKGCONFIG"; then
29654  ac_pt_PKGCONFIG=$PKGCONFIG
29655  # Extract the first word of "pkg-config", so it can be a program name with args.
29656set dummy pkg-config; ac_word=$2
29657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29658printf %s "checking for $ac_word... " >&6; }
29659if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29660then :
29661  printf %s "(cached) " >&6
29662else $as_nop
29663  case $ac_pt_PKGCONFIG in
29664  [\\/]* | ?:[\\/]*)
29665  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29666  ;;
29667  *)
29668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29669as_dummy="$PATH:/usr/bin:/usr/local/bin"
29670for as_dir in $as_dummy
29671do
29672  IFS=$as_save_IFS
29673  case $as_dir in #(((
29674    '') as_dir=./ ;;
29675    */) ;;
29676    *) as_dir=$as_dir/ ;;
29677  esac
29678    for ac_exec_ext in '' $ac_executable_extensions; do
29679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29680    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29682    break 2
29683  fi
29684done
29685  done
29686IFS=$as_save_IFS
29687
29688  ;;
29689esac
29690fi
29691ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29692if test -n "$ac_pt_PKGCONFIG"; then
29693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29694printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29695else
29696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29697printf "%s\n" "no" >&6; }
29698fi
29699
29700  if test "x$ac_pt_PKGCONFIG" = x; then
29701    PKGCONFIG="no"
29702  else
29703    case $cross_compiling:$ac_tool_warned in
29704yes:)
29705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29706printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29707ac_tool_warned=yes ;;
29708esac
29709    PKGCONFIG=$ac_pt_PKGCONFIG
29710  fi
29711else
29712  PKGCONFIG="$ac_cv_path_PKGCONFIG"
29713fi
29714
29715    fi
29716
29717    if test "x$PKGCONFIG" != "xno"; then
29718      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29719printf %s "checking for librtmp options with pkg-config... " >&6; }
29720            itexists=`
29721    if test -n ""; then
29722      PKG_CONFIG_LIBDIR=""
29723      export PKG_CONFIG_LIBDIR
29724    fi
29725         $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29726
29727      if test -z "$itexists"; then
29728                        PKGCONFIG="no"
29729        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29730printf "%s\n" "no" >&6; }
29731      else
29732        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29733printf "%s\n" "found" >&6; }
29734      fi
29735    fi
29736
29737
29738    if test "$PKGCONFIG" != "no" ; then
29739      LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29740      LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29741      CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29742      version=`$PKGCONFIG --modversion librtmp`
29743      DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29744    else
29745                  as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29746    fi
29747
29748    ;;
29749  off)
29750        LIB_RTMP="-lrtmp"
29751    ;;
29752  *)
29753        LIB_RTMP="-lrtmp"
29754    PREFIX_RTMP=$OPT_LIBRTMP
29755    ;;
29756  esac
29757
29758    if test -n "$PREFIX_RTMP"; then
29759    LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29760    CPP_RTMP=-I${PREFIX_RTMP}/include
29761    DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29762  fi
29763
29764  LDFLAGS="$LDFLAGS $LD_RTMP"
29765  CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29766  LIBS="$LIB_RTMP $LIBS"
29767
29768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29769printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29770if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29771then :
29772  printf %s "(cached) " >&6
29773else $as_nop
29774  ac_check_lib_save_LIBS=$LIBS
29775LIBS="-lrtmp  $LIBS"
29776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29777/* end confdefs.h.  */
29778
29779
29780#ifdef __cplusplus
29781extern "C"
29782#endif
29783char RTMP_Init ();
29784int main (void)
29785{
29786return RTMP_Init ();
29787 ;
29788 return 0;
29789}
29790_ACEOF
29791if ac_fn_c_try_link "$LINENO"
29792then :
29793  ac_cv_lib_rtmp_RTMP_Init=yes
29794else $as_nop
29795  ac_cv_lib_rtmp_RTMP_Init=no
29796fi
29797rm -f core conftest.err conftest.$ac_objext conftest.beam \
29798    conftest$ac_exeext conftest.$ac_ext
29799LIBS=$ac_check_lib_save_LIBS
29800fi
29801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29802printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
29803if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
29804then :
29805
29806            for ac_header in librtmp/rtmp.h
29807do :
29808  ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
29809if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
29810then :
29811  printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
29812 curl_rtmp_msg="enabled (librtmp)"
29813        LIBRTMP_ENABLED=1
29814
29815printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
29816
29817        USE_LIBRTMP=1
29818
29819
29820fi
29821
29822done
29823
29824else $as_nop
29825        LDFLAGS=$CLEANLDFLAGS
29826      CPPFLAGS=$CLEANCPPFLAGS
29827      LIBS=$CLEANLIBS
29828
29829fi
29830
29831
29832  if test X"$OPT_LIBRTMP" != Xoff &&
29833     test "$LIBRTMP_ENABLED" != "1"; then
29834    as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
29835  fi
29836
29837fi
29838
29839
29840versioned_symbols_flavour=
29841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
29842printf %s "checking whether versioned symbols are wanted... " >&6; }
29843# Check whether --enable-versioned-symbols was given.
29844if test ${enable_versioned_symbols+y}
29845then :
29846  enableval=$enable_versioned_symbols;  case "$enableval" in
29847  yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29848printf "%s\n" "yes" >&6; }
29849    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
29850printf %s "checking if libraries can be versioned... " >&6; }
29851    GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
29852    if test -z "$GLD"; then
29853        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29854printf "%s\n" "no" >&6; }
29855        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
29856printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
29857    else
29858        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29859printf "%s\n" "yes" >&6; }
29860        if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
29861          versioned_symbols_flavour="MULTISSL_"
29862        elif test "x$OPENSSL_ENABLED" = "x1"; then
29863          versioned_symbols_flavour="OPENSSL_"
29864        elif test "x$GNUTLS_ENABLED" = "x1"; then
29865          versioned_symbols_flavour="GNUTLS_"
29866        elif test "x$WOLFSSL_ENABLED" = "x1"; then
29867          versioned_symbols_flavour="WOLFSSL_"
29868        elif test "x$SCHANNEL_ENABLED" = "x1"; then
29869          versioned_symbols_flavour="SCHANNEL_"
29870        elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
29871          versioned_symbols_flavour="SECURE_TRANSPORT_"
29872        else
29873          versioned_symbols_flavour=""
29874        fi
29875        versioned_symbols="yes"
29876    fi
29877    ;;
29878
29879  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29880printf "%s\n" "no" >&6; }
29881    ;;
29882  esac
29883
29884else $as_nop
29885
29886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29887printf "%s\n" "no" >&6; }
29888
29889
29890fi
29891
29892
29893CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
29894
29895 if test "x$versioned_symbols" = 'xyes'; then
29896  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
29897  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
29898else
29899  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
29900  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
29901fi
29902
29903
29904CURL_PLIST_VERSION="$CURLVERSION"
29905
29906
29907
29908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
29909printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
29910OPT_WINIDN="default"
29911
29912# Check whether --with-winidn was given.
29913if test ${with_winidn+y}
29914then :
29915  withval=$with_winidn; OPT_WINIDN=$withval
29916fi
29917
29918case "$OPT_WINIDN" in
29919  no|default)
29920        want_winidn="no"
29921    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29922printf "%s\n" "no" >&6; }
29923    ;;
29924  yes)
29925        want_winidn="yes"
29926    want_winidn_path="default"
29927    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29928printf "%s\n" "yes" >&6; }
29929    ;;
29930  *)
29931        want_winidn="yes"
29932    want_winidn_path="$withval"
29933    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29934printf "%s\n" "yes ($withval)" >&6; }
29935    ;;
29936esac
29937
29938if test "$want_winidn" = "yes"; then
29939    clean_CFLAGS="$CFLAGS"
29940  clean_CPPFLAGS="$CPPFLAGS"
29941  clean_LDFLAGS="$LDFLAGS"
29942  clean_LIBS="$LIBS"
29943  WINIDN_LIBS="-lnormaliz"
29944  WINIDN_CPPFLAGS=""
29945  #
29946  if test "$want_winidn_path" != "default"; then
29947            WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
29948    WINIDN_CPPFLAGS="-I$want_winidn_path/include"
29949    WINIDN_DIR="$want_winidn_path/lib$libsuff"
29950  fi
29951  #
29952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29953/* end confdefs.h.  */
29954
29955
29956      #include <windows.h>
29957
29958int main (void)
29959{
29960
29961      #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
29962      #error
29963      #endif
29964
29965 ;
29966 return 0;
29967}
29968
29969_ACEOF
29970if ac_fn_c_try_compile "$LINENO"
29971then :
29972
29973
29974else $as_nop
29975
29976     CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29977     CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29978     CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29979     CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29980     WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
29981
29982fi
29983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29984  #
29985  CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
29986  LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
29987  LIBS="$WINIDN_LIBS $LIBS"
29988  #
29989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
29990printf %s "checking if IdnToUnicode can be linked... " >&6; }
29991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29992/* end confdefs.h.  */
29993
29994
29995      #include <windows.h>
29996
29997int main (void)
29998{
29999
30000      IdnToUnicode(0, NULL, 0, NULL, 0);
30001
30002 ;
30003 return 0;
30004}
30005
30006_ACEOF
30007if ac_fn_c_try_link "$LINENO"
30008then :
30009
30010    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30011printf "%s\n" "yes" >&6; }
30012    tst_links_winidn="yes"
30013
30014else $as_nop
30015
30016    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30017printf "%s\n" "no" >&6; }
30018    tst_links_winidn="no"
30019
30020fi
30021rm -f core conftest.err conftest.$ac_objext conftest.beam \
30022    conftest$ac_exeext conftest.$ac_ext
30023  #
30024  if test "$tst_links_winidn" = "yes"; then
30025
30026printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
30027
30028    IDN_ENABLED=1
30029
30030    curl_idn_msg="enabled (Windows-native)"
30031  else
30032    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30033printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30034    CFLAGS="$clean_CFLAGS"
30035    CPPFLAGS="$clean_CPPFLAGS"
30036    LDFLAGS="$clean_LDFLAGS"
30037    LIBS="$clean_LIBS"
30038  fi
30039fi
30040
30041
30042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
30043printf %s "checking whether to build with libidn2... " >&6; }
30044OPT_IDN="default"
30045
30046# Check whether --with-libidn2 was given.
30047if test ${with_libidn2+y}
30048then :
30049  withval=$with_libidn2; OPT_IDN=$withval
30050fi
30051
30052if test "x$tst_links_winidn" = "xyes"; then
30053  want_idn="no"
30054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
30055printf "%s\n" "no (using winidn instead)" >&6; }
30056else
30057  case "$OPT_IDN" in
30058    no)
30059            want_idn="no"
30060      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30061printf "%s\n" "no" >&6; }
30062      ;;
30063    default)
30064            want_idn="yes"
30065      want_idn_path="default"
30066      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
30067printf "%s\n" "(assumed) yes" >&6; }
30068      ;;
30069    yes)
30070            want_idn="yes"
30071      want_idn_path="default"
30072      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30073printf "%s\n" "yes" >&6; }
30074      ;;
30075    *)
30076            want_idn="yes"
30077      want_idn_path="$withval"
30078      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
30079printf "%s\n" "yes ($withval)" >&6; }
30080      ;;
30081  esac
30082fi
30083
30084if test "$want_idn" = "yes"; then
30085    clean_CPPFLAGS="$CPPFLAGS"
30086  clean_LDFLAGS="$LDFLAGS"
30087  clean_LIBS="$LIBS"
30088  PKGCONFIG="no"
30089  #
30090  if test "$want_idn_path" != "default"; then
30091        IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
30092
30093    if test -n "$PKG_CONFIG"; then
30094      PKGCONFIG="$PKG_CONFIG"
30095    else
30096      if test -n "$ac_tool_prefix"; then
30097  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30098set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30100printf %s "checking for $ac_word... " >&6; }
30101if test ${ac_cv_path_PKGCONFIG+y}
30102then :
30103  printf %s "(cached) " >&6
30104else $as_nop
30105  case $PKGCONFIG in
30106  [\\/]* | ?:[\\/]*)
30107  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30108  ;;
30109  *)
30110  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30111as_dummy="$PATH:/usr/bin:/usr/local/bin"
30112for as_dir in $as_dummy
30113do
30114  IFS=$as_save_IFS
30115  case $as_dir in #(((
30116    '') as_dir=./ ;;
30117    */) ;;
30118    *) as_dir=$as_dir/ ;;
30119  esac
30120    for ac_exec_ext in '' $ac_executable_extensions; do
30121  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30122    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30123    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30124    break 2
30125  fi
30126done
30127  done
30128IFS=$as_save_IFS
30129
30130  ;;
30131esac
30132fi
30133PKGCONFIG=$ac_cv_path_PKGCONFIG
30134if test -n "$PKGCONFIG"; then
30135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30136printf "%s\n" "$PKGCONFIG" >&6; }
30137else
30138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30139printf "%s\n" "no" >&6; }
30140fi
30141
30142
30143fi
30144if test -z "$ac_cv_path_PKGCONFIG"; then
30145  ac_pt_PKGCONFIG=$PKGCONFIG
30146  # Extract the first word of "pkg-config", so it can be a program name with args.
30147set dummy pkg-config; ac_word=$2
30148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30149printf %s "checking for $ac_word... " >&6; }
30150if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30151then :
30152  printf %s "(cached) " >&6
30153else $as_nop
30154  case $ac_pt_PKGCONFIG in
30155  [\\/]* | ?:[\\/]*)
30156  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30157  ;;
30158  *)
30159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30160as_dummy="$PATH:/usr/bin:/usr/local/bin"
30161for as_dir in $as_dummy
30162do
30163  IFS=$as_save_IFS
30164  case $as_dir in #(((
30165    '') as_dir=./ ;;
30166    */) ;;
30167    *) as_dir=$as_dir/ ;;
30168  esac
30169    for ac_exec_ext in '' $ac_executable_extensions; do
30170  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30171    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30172    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30173    break 2
30174  fi
30175done
30176  done
30177IFS=$as_save_IFS
30178
30179  ;;
30180esac
30181fi
30182ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30183if test -n "$ac_pt_PKGCONFIG"; then
30184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30185printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30186else
30187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30188printf "%s\n" "no" >&6; }
30189fi
30190
30191  if test "x$ac_pt_PKGCONFIG" = x; then
30192    PKGCONFIG="no"
30193  else
30194    case $cross_compiling:$ac_tool_warned in
30195yes:)
30196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30197printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30198ac_tool_warned=yes ;;
30199esac
30200    PKGCONFIG=$ac_pt_PKGCONFIG
30201  fi
30202else
30203  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30204fi
30205
30206    fi
30207
30208    if test "x$PKGCONFIG" != "xno"; then
30209      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30210printf %s "checking for libidn2 options with pkg-config... " >&6; }
30211            itexists=`
30212    if test -n "$IDN_PCDIR"; then
30213      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30214      export PKG_CONFIG_LIBDIR
30215    fi
30216         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30217
30218      if test -z "$itexists"; then
30219                        PKGCONFIG="no"
30220        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30221printf "%s\n" "no" >&6; }
30222      else
30223        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30224printf "%s\n" "found" >&6; }
30225      fi
30226    fi
30227
30228    if test "$PKGCONFIG" != "no"; then
30229      IDN_LIBS=`
30230    if test -n "$IDN_PCDIR"; then
30231      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30232      export PKG_CONFIG_LIBDIR
30233    fi
30234         $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30235      IDN_LDFLAGS=`
30236    if test -n "$IDN_PCDIR"; then
30237      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30238      export PKG_CONFIG_LIBDIR
30239    fi
30240         $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30241      IDN_CPPFLAGS=`
30242    if test -n "$IDN_PCDIR"; then
30243      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30244      export PKG_CONFIG_LIBDIR
30245    fi
30246         $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30247      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30248    else
30249            IDN_LIBS="-lidn2"
30250      IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
30251      IDN_CPPFLAGS="-I$want_idn_path/include"
30252      IDN_DIR="$want_idn_path/lib$libsuff"
30253    fi
30254  else
30255
30256    if test -n "$PKG_CONFIG"; then
30257      PKGCONFIG="$PKG_CONFIG"
30258    else
30259      if test -n "$ac_tool_prefix"; then
30260  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30261set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30263printf %s "checking for $ac_word... " >&6; }
30264if test ${ac_cv_path_PKGCONFIG+y}
30265then :
30266  printf %s "(cached) " >&6
30267else $as_nop
30268  case $PKGCONFIG in
30269  [\\/]* | ?:[\\/]*)
30270  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30271  ;;
30272  *)
30273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30274as_dummy="$PATH:/usr/bin:/usr/local/bin"
30275for as_dir in $as_dummy
30276do
30277  IFS=$as_save_IFS
30278  case $as_dir in #(((
30279    '') as_dir=./ ;;
30280    */) ;;
30281    *) as_dir=$as_dir/ ;;
30282  esac
30283    for ac_exec_ext in '' $ac_executable_extensions; do
30284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30285    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30287    break 2
30288  fi
30289done
30290  done
30291IFS=$as_save_IFS
30292
30293  ;;
30294esac
30295fi
30296PKGCONFIG=$ac_cv_path_PKGCONFIG
30297if test -n "$PKGCONFIG"; then
30298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30299printf "%s\n" "$PKGCONFIG" >&6; }
30300else
30301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30302printf "%s\n" "no" >&6; }
30303fi
30304
30305
30306fi
30307if test -z "$ac_cv_path_PKGCONFIG"; then
30308  ac_pt_PKGCONFIG=$PKGCONFIG
30309  # Extract the first word of "pkg-config", so it can be a program name with args.
30310set dummy pkg-config; ac_word=$2
30311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30312printf %s "checking for $ac_word... " >&6; }
30313if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30314then :
30315  printf %s "(cached) " >&6
30316else $as_nop
30317  case $ac_pt_PKGCONFIG in
30318  [\\/]* | ?:[\\/]*)
30319  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30320  ;;
30321  *)
30322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30323as_dummy="$PATH:/usr/bin:/usr/local/bin"
30324for as_dir in $as_dummy
30325do
30326  IFS=$as_save_IFS
30327  case $as_dir in #(((
30328    '') as_dir=./ ;;
30329    */) ;;
30330    *) as_dir=$as_dir/ ;;
30331  esac
30332    for ac_exec_ext in '' $ac_executable_extensions; do
30333  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30334    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30335    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30336    break 2
30337  fi
30338done
30339  done
30340IFS=$as_save_IFS
30341
30342  ;;
30343esac
30344fi
30345ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30346if test -n "$ac_pt_PKGCONFIG"; then
30347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30348printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30349else
30350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30351printf "%s\n" "no" >&6; }
30352fi
30353
30354  if test "x$ac_pt_PKGCONFIG" = x; then
30355    PKGCONFIG="no"
30356  else
30357    case $cross_compiling:$ac_tool_warned in
30358yes:)
30359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30360printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30361ac_tool_warned=yes ;;
30362esac
30363    PKGCONFIG=$ac_pt_PKGCONFIG
30364  fi
30365else
30366  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30367fi
30368
30369    fi
30370
30371    if test "x$PKGCONFIG" != "xno"; then
30372      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30373printf %s "checking for libidn2 options with pkg-config... " >&6; }
30374            itexists=`
30375    if test -n ""; then
30376      PKG_CONFIG_LIBDIR=""
30377      export PKG_CONFIG_LIBDIR
30378    fi
30379         $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30380
30381      if test -z "$itexists"; then
30382                        PKGCONFIG="no"
30383        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30384printf "%s\n" "no" >&6; }
30385      else
30386        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30387printf "%s\n" "found" >&6; }
30388      fi
30389    fi
30390
30391    if test "$PKGCONFIG" != "no"; then
30392      IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30393      IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30394      IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30395      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30396    else
30397            IDN_LIBS="-lidn2"
30398    fi
30399  fi
30400  #
30401  if test "$PKGCONFIG" != "no"; then
30402    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30403printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30404    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30405printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30406    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30407printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30408    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30409printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30410  else
30411    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30412printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30413    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30414printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30415    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30416printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30417    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30418printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30419  fi
30420  #
30421  CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30422  LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30423  LIBS="$IDN_LIBS $LIBS"
30424  #
30425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30426printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30428/* end confdefs.h.  */
30429
30430
30431#define idn2_lookup_ul innocuous_idn2_lookup_ul
30432#ifdef __STDC__
30433# include <limits.h>
30434#else
30435# include <assert.h>
30436#endif
30437#undef idn2_lookup_ul
30438#ifdef __cplusplus
30439extern "C"
30440#endif
30441char idn2_lookup_ul ();
30442#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30443choke me
30444#endif
30445
30446int main (void)
30447{
30448return idn2_lookup_ul ();
30449 ;
30450 return 0;
30451}
30452
30453_ACEOF
30454if ac_fn_c_try_link "$LINENO"
30455then :
30456
30457    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30458printf "%s\n" "yes" >&6; }
30459    tst_links_libidn="yes"
30460
30461else $as_nop
30462
30463    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30464printf "%s\n" "no" >&6; }
30465    tst_links_libidn="no"
30466
30467fi
30468rm -f core conftest.err conftest.$ac_objext conftest.beam \
30469    conftest$ac_exeext conftest.$ac_ext
30470  #
30471  ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30472if test "x$ac_cv_header_idn2_h" = xyes
30473then :
30474  printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30475
30476fi
30477
30478
30479  if test "$tst_links_libidn" = "yes"; then
30480
30481printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30482
30483
30484    IDN_ENABLED=1
30485
30486    curl_idn_msg="enabled (libidn2)"
30487    if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30488      CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30489      export CURL_LIBRARY_PATH
30490      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30491printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30492    fi
30493  else
30494    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30495printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30496    CPPFLAGS="$clean_CPPFLAGS"
30497    LDFLAGS="$clean_LDFLAGS"
30498    LIBS="$clean_LIBS"
30499  fi
30500fi
30501
30502
30503OPT_H2="yes"
30504
30505if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30506  # without HTTP or with Hyper, nghttp2 is no use
30507  OPT_H2="no"
30508fi
30509
30510
30511# Check whether --with-nghttp2 was given.
30512if test ${with_nghttp2+y}
30513then :
30514  withval=$with_nghttp2; OPT_H2=$withval
30515fi
30516
30517case "$OPT_H2" in
30518  no)
30519        want_nghttp2="no"
30520    ;;
30521  yes)
30522        want_nghttp2="default"
30523    want_nghttp2_path=""
30524    want_nghttp2_pkg_config_path=""
30525    ;;
30526  *)
30527        want_nghttp2="yes"
30528    want_nghttp2_path="$withval"
30529    want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
30530    ;;
30531esac
30532
30533if test X"$want_nghttp2" != Xno; then
30534    CLEANLDFLAGS="$LDFLAGS"
30535  CLEANCPPFLAGS="$CPPFLAGS"
30536  CLEANLIBS="$LIBS"
30537
30538
30539    if test -n "$PKG_CONFIG"; then
30540      PKGCONFIG="$PKG_CONFIG"
30541    else
30542      if test -n "$ac_tool_prefix"; then
30543  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30544set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30546printf %s "checking for $ac_word... " >&6; }
30547if test ${ac_cv_path_PKGCONFIG+y}
30548then :
30549  printf %s "(cached) " >&6
30550else $as_nop
30551  case $PKGCONFIG in
30552  [\\/]* | ?:[\\/]*)
30553  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30554  ;;
30555  *)
30556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30557as_dummy="$PATH:/usr/bin:/usr/local/bin"
30558for as_dir in $as_dummy
30559do
30560  IFS=$as_save_IFS
30561  case $as_dir in #(((
30562    '') as_dir=./ ;;
30563    */) ;;
30564    *) as_dir=$as_dir/ ;;
30565  esac
30566    for ac_exec_ext in '' $ac_executable_extensions; do
30567  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30568    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30569    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30570    break 2
30571  fi
30572done
30573  done
30574IFS=$as_save_IFS
30575
30576  ;;
30577esac
30578fi
30579PKGCONFIG=$ac_cv_path_PKGCONFIG
30580if test -n "$PKGCONFIG"; then
30581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30582printf "%s\n" "$PKGCONFIG" >&6; }
30583else
30584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30585printf "%s\n" "no" >&6; }
30586fi
30587
30588
30589fi
30590if test -z "$ac_cv_path_PKGCONFIG"; then
30591  ac_pt_PKGCONFIG=$PKGCONFIG
30592  # Extract the first word of "pkg-config", so it can be a program name with args.
30593set dummy pkg-config; ac_word=$2
30594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30595printf %s "checking for $ac_word... " >&6; }
30596if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30597then :
30598  printf %s "(cached) " >&6
30599else $as_nop
30600  case $ac_pt_PKGCONFIG in
30601  [\\/]* | ?:[\\/]*)
30602  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30603  ;;
30604  *)
30605  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30606as_dummy="$PATH:/usr/bin:/usr/local/bin"
30607for as_dir in $as_dummy
30608do
30609  IFS=$as_save_IFS
30610  case $as_dir in #(((
30611    '') as_dir=./ ;;
30612    */) ;;
30613    *) as_dir=$as_dir/ ;;
30614  esac
30615    for ac_exec_ext in '' $ac_executable_extensions; do
30616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30617    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30619    break 2
30620  fi
30621done
30622  done
30623IFS=$as_save_IFS
30624
30625  ;;
30626esac
30627fi
30628ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30629if test -n "$ac_pt_PKGCONFIG"; then
30630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30631printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30632else
30633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30634printf "%s\n" "no" >&6; }
30635fi
30636
30637  if test "x$ac_pt_PKGCONFIG" = x; then
30638    PKGCONFIG="no"
30639  else
30640    case $cross_compiling:$ac_tool_warned in
30641yes:)
30642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30643printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30644ac_tool_warned=yes ;;
30645esac
30646    PKGCONFIG=$ac_pt_PKGCONFIG
30647  fi
30648else
30649  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30650fi
30651
30652    fi
30653
30654    if test "x$PKGCONFIG" != "xno"; then
30655      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30656printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30657            itexists=`
30658    if test -n "$want_nghttp2_pkg_config_path"; then
30659      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30660      export PKG_CONFIG_LIBDIR
30661    fi
30662         $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30663
30664      if test -z "$itexists"; then
30665                        PKGCONFIG="no"
30666        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30667printf "%s\n" "no" >&6; }
30668      else
30669        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30670printf "%s\n" "found" >&6; }
30671      fi
30672    fi
30673
30674
30675  if test "$PKGCONFIG" != "no" ; then
30676    LIB_H2=`
30677    if test -n "$want_nghttp2_pkg_config_path"; then
30678      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30679      export PKG_CONFIG_LIBDIR
30680    fi
30681
30682      $PKGCONFIG --libs-only-l libnghttp2`
30683    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30684printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30685
30686    CPP_H2=`
30687    if test -n "$want_nghttp2_pkg_config_path"; then
30688      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30689      export PKG_CONFIG_LIBDIR
30690    fi
30691       $PKGCONFIG --cflags-only-I libnghttp2`
30692    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30693printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30694
30695    LD_H2=`
30696    if test -n "$want_nghttp2_pkg_config_path"; then
30697      PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30698      export PKG_CONFIG_LIBDIR
30699    fi
30700
30701      $PKGCONFIG --libs-only-L libnghttp2`
30702    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30703printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30704
30705    DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
30706  elif test x"$want_nghttp2_path" != x; then
30707    LIB_H2="-lnghttp2"
30708    LD_H2=-L${want_nghttp2_path}/lib$libsuff
30709    CPP_H2=-I${want_nghttp2_path}/include
30710    DIR_H2=${want_nghttp2_path}/lib$libsuff
30711  elif test X"$want_nghttp2" != Xdefault; then
30712            as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30713  else
30714    LIB_H2="-lnghttp2"
30715  fi
30716
30717  LDFLAGS="$LDFLAGS $LD_H2"
30718  CPPFLAGS="$CPPFLAGS $CPP_H2"
30719  LIBS="$LIB_H2 $LIBS"
30720
30721  # use nghttp2_session_get_stream_local_window_size to require nghttp2
30722  # >= 1.15.0
30723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_get_stream_local_window_size in -lnghttp2" >&5
30724printf %s "checking for nghttp2_session_get_stream_local_window_size in -lnghttp2... " >&6; }
30725if test ${ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size+y}
30726then :
30727  printf %s "(cached) " >&6
30728else $as_nop
30729  ac_check_lib_save_LIBS=$LIBS
30730LIBS="-lnghttp2  $LIBS"
30731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30732/* end confdefs.h.  */
30733
30734
30735#ifdef __cplusplus
30736extern "C"
30737#endif
30738char nghttp2_session_get_stream_local_window_size ();
30739int main (void)
30740{
30741return nghttp2_session_get_stream_local_window_size ();
30742 ;
30743 return 0;
30744}
30745_ACEOF
30746if ac_fn_c_try_link "$LINENO"
30747then :
30748  ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=yes
30749else $as_nop
30750  ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=no
30751fi
30752rm -f core conftest.err conftest.$ac_objext conftest.beam \
30753    conftest$ac_exeext conftest.$ac_ext
30754LIBS=$ac_check_lib_save_LIBS
30755fi
30756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&5
30757printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&6; }
30758if test "x$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" = xyes
30759then :
30760
30761            for ac_header in nghttp2/nghttp2.h
30762do :
30763  ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30764if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30765then :
30766  printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30767 curl_h2_msg="enabled (nghttp2)"
30768        NGHTTP2_ENABLED=1
30769
30770printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30771
30772        USE_NGHTTP2=1
30773
30774
30775fi
30776
30777done
30778
30779     CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
30780     export CURL_LIBRARY_PATH
30781     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
30782printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
30783
30784else $as_nop
30785        LDFLAGS=$CLEANLDFLAGS
30786      CPPFLAGS=$CLEANCPPFLAGS
30787      LIBS=$CLEANLIBS
30788
30789fi
30790
30791fi
30792
30793
30794OPT_TCP2="no"
30795
30796if test "x$disable_http" = "xyes"; then
30797  # without HTTP, ngtcp2 is no use
30798  OPT_TCP2="no"
30799fi
30800
30801
30802# Check whether --with-ngtcp2 was given.
30803if test ${with_ngtcp2+y}
30804then :
30805  withval=$with_ngtcp2; OPT_TCP2=$withval
30806fi
30807
30808case "$OPT_TCP2" in
30809  no)
30810        want_tcp2="no"
30811    ;;
30812  yes)
30813        want_tcp2="default"
30814    want_tcp2_path=""
30815    ;;
30816  *)
30817        want_tcp2="yes"
30818    want_tcp2_path="$withval/lib/pkgconfig"
30819    ;;
30820esac
30821
30822curl_tcp2_msg="no      (--with-ngtcp2)"
30823if test X"$want_tcp2" != Xno; then
30824
30825  if test "$QUIC_ENABLED" != "yes"; then
30826    as_fn_error $? "the detected TLS library does not support QUIC, making --with-ngtcp2 a no-no" "$LINENO" 5
30827  fi
30828
30829    CLEANLDFLAGS="$LDFLAGS"
30830  CLEANCPPFLAGS="$CPPFLAGS"
30831  CLEANLIBS="$LIBS"
30832
30833
30834    if test -n "$PKG_CONFIG"; then
30835      PKGCONFIG="$PKG_CONFIG"
30836    else
30837      if test -n "$ac_tool_prefix"; then
30838  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30839set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30841printf %s "checking for $ac_word... " >&6; }
30842if test ${ac_cv_path_PKGCONFIG+y}
30843then :
30844  printf %s "(cached) " >&6
30845else $as_nop
30846  case $PKGCONFIG in
30847  [\\/]* | ?:[\\/]*)
30848  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30849  ;;
30850  *)
30851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30852as_dummy="$PATH:/usr/bin:/usr/local/bin"
30853for as_dir in $as_dummy
30854do
30855  IFS=$as_save_IFS
30856  case $as_dir in #(((
30857    '') as_dir=./ ;;
30858    */) ;;
30859    *) as_dir=$as_dir/ ;;
30860  esac
30861    for ac_exec_ext in '' $ac_executable_extensions; do
30862  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30863    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30864    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30865    break 2
30866  fi
30867done
30868  done
30869IFS=$as_save_IFS
30870
30871  ;;
30872esac
30873fi
30874PKGCONFIG=$ac_cv_path_PKGCONFIG
30875if test -n "$PKGCONFIG"; then
30876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30877printf "%s\n" "$PKGCONFIG" >&6; }
30878else
30879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30880printf "%s\n" "no" >&6; }
30881fi
30882
30883
30884fi
30885if test -z "$ac_cv_path_PKGCONFIG"; then
30886  ac_pt_PKGCONFIG=$PKGCONFIG
30887  # Extract the first word of "pkg-config", so it can be a program name with args.
30888set dummy pkg-config; ac_word=$2
30889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30890printf %s "checking for $ac_word... " >&6; }
30891if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30892then :
30893  printf %s "(cached) " >&6
30894else $as_nop
30895  case $ac_pt_PKGCONFIG in
30896  [\\/]* | ?:[\\/]*)
30897  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30898  ;;
30899  *)
30900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30901as_dummy="$PATH:/usr/bin:/usr/local/bin"
30902for as_dir in $as_dummy
30903do
30904  IFS=$as_save_IFS
30905  case $as_dir in #(((
30906    '') as_dir=./ ;;
30907    */) ;;
30908    *) as_dir=$as_dir/ ;;
30909  esac
30910    for ac_exec_ext in '' $ac_executable_extensions; do
30911  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30912    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30913    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30914    break 2
30915  fi
30916done
30917  done
30918IFS=$as_save_IFS
30919
30920  ;;
30921esac
30922fi
30923ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30924if test -n "$ac_pt_PKGCONFIG"; then
30925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30926printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30927else
30928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30929printf "%s\n" "no" >&6; }
30930fi
30931
30932  if test "x$ac_pt_PKGCONFIG" = x; then
30933    PKGCONFIG="no"
30934  else
30935    case $cross_compiling:$ac_tool_warned in
30936yes:)
30937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30938printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30939ac_tool_warned=yes ;;
30940esac
30941    PKGCONFIG=$ac_pt_PKGCONFIG
30942  fi
30943else
30944  PKGCONFIG="$ac_cv_path_PKGCONFIG"
30945fi
30946
30947    fi
30948
30949    if test "x$PKGCONFIG" != "xno"; then
30950      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
30951printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
30952            itexists=`
30953    if test -n "$want_tcp2_path"; then
30954      PKG_CONFIG_LIBDIR="$want_tcp2_path"
30955      export PKG_CONFIG_LIBDIR
30956    fi
30957         $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
30958
30959      if test -z "$itexists"; then
30960                        PKGCONFIG="no"
30961        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30962printf "%s\n" "no" >&6; }
30963      else
30964        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30965printf "%s\n" "found" >&6; }
30966      fi
30967    fi
30968
30969
30970  if test "$PKGCONFIG" != "no" ; then
30971    LIB_TCP2=`
30972    if test -n "$want_tcp2_path"; then
30973      PKG_CONFIG_LIBDIR="$want_tcp2_path"
30974      export PKG_CONFIG_LIBDIR
30975    fi
30976
30977      $PKGCONFIG --libs-only-l libngtcp2`
30978    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
30979printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
30980
30981    CPP_TCP2=`
30982    if test -n "$want_tcp2_path"; then
30983      PKG_CONFIG_LIBDIR="$want_tcp2_path"
30984      export PKG_CONFIG_LIBDIR
30985    fi
30986       $PKGCONFIG --cflags-only-I libngtcp2`
30987    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
30988printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
30989
30990    LD_TCP2=`
30991    if test -n "$want_tcp2_path"; then
30992      PKG_CONFIG_LIBDIR="$want_tcp2_path"
30993      export PKG_CONFIG_LIBDIR
30994    fi
30995
30996      $PKGCONFIG --libs-only-L libngtcp2`
30997    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
30998printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
30999
31000    LDFLAGS="$LDFLAGS $LD_TCP2"
31001    CPPFLAGS="$CPPFLAGS $CPP_TCP2"
31002    LIBS="$LIB_TCP2 $LIBS"
31003
31004    if test "x$cross_compiling" != "xyes"; then
31005      DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
31006    fi
31007    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
31008printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
31009if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
31010then :
31011  printf %s "(cached) " >&6
31012else $as_nop
31013  ac_check_lib_save_LIBS=$LIBS
31014LIBS="-lngtcp2  $LIBS"
31015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31016/* end confdefs.h.  */
31017
31018
31019#ifdef __cplusplus
31020extern "C"
31021#endif
31022char ngtcp2_conn_client_new_versioned ();
31023int main (void)
31024{
31025return ngtcp2_conn_client_new_versioned ();
31026 ;
31027 return 0;
31028}
31029_ACEOF
31030if ac_fn_c_try_link "$LINENO"
31031then :
31032  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
31033else $as_nop
31034  ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
31035fi
31036rm -f core conftest.err conftest.$ac_objext conftest.beam \
31037    conftest$ac_exeext conftest.$ac_ext
31038LIBS=$ac_check_lib_save_LIBS
31039fi
31040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
31041printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
31042if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
31043then :
31044
31045              for ac_header in ngtcp2/ngtcp2.h
31046do :
31047  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
31048if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
31049then :
31050  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
31051 NGTCP2_ENABLED=1
31052
31053printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
31054
31055          USE_NGTCP2=1
31056
31057          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
31058          export CURL_LIBRARY_PATH
31059          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
31060printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
31061
31062fi
31063
31064done
31065
31066else $as_nop
31067          LDFLAGS=$CLEANLDFLAGS
31068        CPPFLAGS=$CLEANCPPFLAGS
31069        LIBS=$CLEANLIBS
31070
31071fi
31072
31073
31074  else
31075        if test X"$want_tcp2" != Xdefault; then
31076                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
31077    fi
31078  fi
31079
31080fi
31081
31082if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" != "x1"; then
31083    CLEANLDFLAGS="$LDFLAGS"
31084  CLEANCPPFLAGS="$CPPFLAGS"
31085  CLEANLIBS="$LIBS"
31086
31087
31088    if test -n "$PKG_CONFIG"; then
31089      PKGCONFIG="$PKG_CONFIG"
31090    else
31091      if test -n "$ac_tool_prefix"; then
31092  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31093set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31095printf %s "checking for $ac_word... " >&6; }
31096if test ${ac_cv_path_PKGCONFIG+y}
31097then :
31098  printf %s "(cached) " >&6
31099else $as_nop
31100  case $PKGCONFIG in
31101  [\\/]* | ?:[\\/]*)
31102  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31103  ;;
31104  *)
31105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31106as_dummy="$PATH:/usr/bin:/usr/local/bin"
31107for as_dir in $as_dummy
31108do
31109  IFS=$as_save_IFS
31110  case $as_dir in #(((
31111    '') as_dir=./ ;;
31112    */) ;;
31113    *) as_dir=$as_dir/ ;;
31114  esac
31115    for ac_exec_ext in '' $ac_executable_extensions; do
31116  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31117    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31118    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31119    break 2
31120  fi
31121done
31122  done
31123IFS=$as_save_IFS
31124
31125  ;;
31126esac
31127fi
31128PKGCONFIG=$ac_cv_path_PKGCONFIG
31129if test -n "$PKGCONFIG"; then
31130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31131printf "%s\n" "$PKGCONFIG" >&6; }
31132else
31133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31134printf "%s\n" "no" >&6; }
31135fi
31136
31137
31138fi
31139if test -z "$ac_cv_path_PKGCONFIG"; then
31140  ac_pt_PKGCONFIG=$PKGCONFIG
31141  # Extract the first word of "pkg-config", so it can be a program name with args.
31142set dummy pkg-config; ac_word=$2
31143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31144printf %s "checking for $ac_word... " >&6; }
31145if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31146then :
31147  printf %s "(cached) " >&6
31148else $as_nop
31149  case $ac_pt_PKGCONFIG in
31150  [\\/]* | ?:[\\/]*)
31151  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31152  ;;
31153  *)
31154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31155as_dummy="$PATH:/usr/bin:/usr/local/bin"
31156for as_dir in $as_dummy
31157do
31158  IFS=$as_save_IFS
31159  case $as_dir in #(((
31160    '') as_dir=./ ;;
31161    */) ;;
31162    *) as_dir=$as_dir/ ;;
31163  esac
31164    for ac_exec_ext in '' $ac_executable_extensions; do
31165  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31166    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31167    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31168    break 2
31169  fi
31170done
31171  done
31172IFS=$as_save_IFS
31173
31174  ;;
31175esac
31176fi
31177ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31178if test -n "$ac_pt_PKGCONFIG"; then
31179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31180printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31181else
31182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31183printf "%s\n" "no" >&6; }
31184fi
31185
31186  if test "x$ac_pt_PKGCONFIG" = x; then
31187    PKGCONFIG="no"
31188  else
31189    case $cross_compiling:$ac_tool_warned in
31190yes:)
31191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31192printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31193ac_tool_warned=yes ;;
31194esac
31195    PKGCONFIG=$ac_pt_PKGCONFIG
31196  fi
31197else
31198  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31199fi
31200
31201    fi
31202
31203    if test "x$PKGCONFIG" != "xno"; then
31204      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_quictls options with pkg-config" >&5
31205printf %s "checking for libngtcp2_crypto_quictls options with pkg-config... " >&6; }
31206            itexists=`
31207    if test -n "$want_tcp2_path"; then
31208      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31209      export PKG_CONFIG_LIBDIR
31210    fi
31211         $PKGCONFIG --exists libngtcp2_crypto_quictls >/dev/null 2>&1 && echo 1`
31212
31213      if test -z "$itexists"; then
31214                        PKGCONFIG="no"
31215        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31216printf "%s\n" "no" >&6; }
31217      else
31218        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31219printf "%s\n" "found" >&6; }
31220      fi
31221    fi
31222
31223
31224  if test "$PKGCONFIG" != "no" ; then
31225    LIB_NGTCP2_CRYPTO_QUICTLS=`
31226    if test -n "$want_tcp2_path"; then
31227      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31228      export PKG_CONFIG_LIBDIR
31229    fi
31230
31231      $PKGCONFIG --libs-only-l libngtcp2_crypto_quictls`
31232    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&5
31233printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&6;}
31234
31235    CPP_NGTCP2_CRYPTO_QUICTLS=`
31236    if test -n "$want_tcp2_path"; then
31237      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31238      export PKG_CONFIG_LIBDIR
31239    fi
31240       $PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls`
31241    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&5
31242printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&6;}
31243
31244    LD_NGTCP2_CRYPTO_QUICTLS=`
31245    if test -n "$want_tcp2_path"; then
31246      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31247      export PKG_CONFIG_LIBDIR
31248    fi
31249
31250      $PKGCONFIG --libs-only-L libngtcp2_crypto_quictls`
31251    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&5
31252printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&6;}
31253
31254    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_QUICTLS"
31255    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_QUICTLS"
31256    LIBS="$LIB_NGTCP2_CRYPTO_QUICTLS $LIBS"
31257
31258    if test "x$cross_compiling" != "xyes"; then
31259      DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'`
31260    fi
31261    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls" >&5
31262printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls... " >&6; }
31263if test ${ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb+y}
31264then :
31265  printf %s "(cached) " >&6
31266else $as_nop
31267  ac_check_lib_save_LIBS=$LIBS
31268LIBS="-lngtcp2_crypto_quictls  $LIBS"
31269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31270/* end confdefs.h.  */
31271
31272
31273#ifdef __cplusplus
31274extern "C"
31275#endif
31276char ngtcp2_crypto_recv_client_initial_cb ();
31277int main (void)
31278{
31279return ngtcp2_crypto_recv_client_initial_cb ();
31280 ;
31281 return 0;
31282}
31283_ACEOF
31284if ac_fn_c_try_link "$LINENO"
31285then :
31286  ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=yes
31287else $as_nop
31288  ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=no
31289fi
31290rm -f core conftest.err conftest.$ac_objext conftest.beam \
31291    conftest$ac_exeext conftest.$ac_ext
31292LIBS=$ac_check_lib_save_LIBS
31293fi
31294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&5
31295printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31296if test "x$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31297then :
31298
31299              for ac_header in ngtcp2/ngtcp2_crypto.h
31300do :
31301  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31302if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31303then :
31304  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31305 NGTCP2_ENABLED=1
31306
31307printf "%s\n" "#define USE_NGTCP2_CRYPTO_QUICTLS 1" >>confdefs.h
31308
31309          USE_NGTCP2_CRYPTO_QUICTLS=1
31310
31311          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_QUICTLS"
31312          export CURL_LIBRARY_PATH
31313          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&5
31314printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&6;}
31315
31316fi
31317
31318done
31319
31320else $as_nop
31321          LDFLAGS=$CLEANLDFLAGS
31322        CPPFLAGS=$CLEANCPPFLAGS
31323        LIBS=$CLEANLIBS
31324
31325fi
31326
31327
31328  else
31329        if test X"$want_tcp2" != Xdefault; then
31330                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_quictls pkg-config file." "$LINENO" 5
31331    fi
31332  fi
31333fi
31334
31335if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" = "x1"; then
31336    CLEANLDFLAGS="$LDFLAGS"
31337  CLEANCPPFLAGS="$CPPFLAGS"
31338  CLEANLIBS="$LIBS"
31339
31340
31341    if test -n "$PKG_CONFIG"; then
31342      PKGCONFIG="$PKG_CONFIG"
31343    else
31344      if test -n "$ac_tool_prefix"; then
31345  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31346set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31348printf %s "checking for $ac_word... " >&6; }
31349if test ${ac_cv_path_PKGCONFIG+y}
31350then :
31351  printf %s "(cached) " >&6
31352else $as_nop
31353  case $PKGCONFIG in
31354  [\\/]* | ?:[\\/]*)
31355  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31356  ;;
31357  *)
31358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31359as_dummy="$PATH:/usr/bin:/usr/local/bin"
31360for as_dir in $as_dummy
31361do
31362  IFS=$as_save_IFS
31363  case $as_dir in #(((
31364    '') as_dir=./ ;;
31365    */) ;;
31366    *) as_dir=$as_dir/ ;;
31367  esac
31368    for ac_exec_ext in '' $ac_executable_extensions; do
31369  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31370    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31371    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31372    break 2
31373  fi
31374done
31375  done
31376IFS=$as_save_IFS
31377
31378  ;;
31379esac
31380fi
31381PKGCONFIG=$ac_cv_path_PKGCONFIG
31382if test -n "$PKGCONFIG"; then
31383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31384printf "%s\n" "$PKGCONFIG" >&6; }
31385else
31386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31387printf "%s\n" "no" >&6; }
31388fi
31389
31390
31391fi
31392if test -z "$ac_cv_path_PKGCONFIG"; then
31393  ac_pt_PKGCONFIG=$PKGCONFIG
31394  # Extract the first word of "pkg-config", so it can be a program name with args.
31395set dummy pkg-config; ac_word=$2
31396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31397printf %s "checking for $ac_word... " >&6; }
31398if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31399then :
31400  printf %s "(cached) " >&6
31401else $as_nop
31402  case $ac_pt_PKGCONFIG in
31403  [\\/]* | ?:[\\/]*)
31404  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31405  ;;
31406  *)
31407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31408as_dummy="$PATH:/usr/bin:/usr/local/bin"
31409for as_dir in $as_dummy
31410do
31411  IFS=$as_save_IFS
31412  case $as_dir in #(((
31413    '') as_dir=./ ;;
31414    */) ;;
31415    *) as_dir=$as_dir/ ;;
31416  esac
31417    for ac_exec_ext in '' $ac_executable_extensions; do
31418  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31419    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31420    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31421    break 2
31422  fi
31423done
31424  done
31425IFS=$as_save_IFS
31426
31427  ;;
31428esac
31429fi
31430ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31431if test -n "$ac_pt_PKGCONFIG"; then
31432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31433printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31434else
31435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31436printf "%s\n" "no" >&6; }
31437fi
31438
31439  if test "x$ac_pt_PKGCONFIG" = x; then
31440    PKGCONFIG="no"
31441  else
31442    case $cross_compiling:$ac_tool_warned in
31443yes:)
31444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31445printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31446ac_tool_warned=yes ;;
31447esac
31448    PKGCONFIG=$ac_pt_PKGCONFIG
31449  fi
31450else
31451  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31452fi
31453
31454    fi
31455
31456    if test "x$PKGCONFIG" != "xno"; then
31457      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_boringssl options with pkg-config" >&5
31458printf %s "checking for libngtcp2_crypto_boringssl options with pkg-config... " >&6; }
31459            itexists=`
31460    if test -n "$want_tcp2_path"; then
31461      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31462      export PKG_CONFIG_LIBDIR
31463    fi
31464         $PKGCONFIG --exists libngtcp2_crypto_boringssl >/dev/null 2>&1 && echo 1`
31465
31466      if test -z "$itexists"; then
31467                        PKGCONFIG="no"
31468        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31469printf "%s\n" "no" >&6; }
31470      else
31471        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31472printf "%s\n" "found" >&6; }
31473      fi
31474    fi
31475
31476
31477  if test "$PKGCONFIG" != "no" ; then
31478    LIB_NGTCP2_CRYPTO_BORINGSSL=`
31479    if test -n "$want_tcp2_path"; then
31480      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31481      export PKG_CONFIG_LIBDIR
31482    fi
31483
31484      $PKGCONFIG --libs-only-l libngtcp2_crypto_boringssl`
31485    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_BORINGSSL" >&5
31486printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_BORINGSSL" >&6;}
31487
31488    CPP_NGTCP2_CRYPTO_BORINGSSL=`
31489    if test -n "$want_tcp2_path"; then
31490      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31491      export PKG_CONFIG_LIBDIR
31492    fi
31493       $PKGCONFIG --cflags-only-I libngtcp2_crypto_boringssl`
31494    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_BORINGSSL" >&5
31495printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_BORINGSSL" >&6;}
31496
31497    LD_NGTCP2_CRYPTO_BORINGSSL=`
31498    if test -n "$want_tcp2_path"; then
31499      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31500      export PKG_CONFIG_LIBDIR
31501    fi
31502
31503      $PKGCONFIG --libs-only-L libngtcp2_crypto_boringssl`
31504    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_BORINGSSL" >&5
31505printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_BORINGSSL" >&6;}
31506
31507    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_BORINGSSL"
31508    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_BORINGSSL"
31509    LIBS="$LIB_NGTCP2_CRYPTO_BORINGSSL $LIBS"
31510
31511    if test "x$cross_compiling" != "xyes"; then
31512      DIR_NGTCP2_CRYPTO_BORINGSSL=`echo $LD_NGTCP2_CRYPTO_BORINGSSL | $SED -e 's/^-L//'`
31513    fi
31514    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_boringssl" >&5
31515printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_boringssl... " >&6; }
31516if test ${ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb+y}
31517then :
31518  printf %s "(cached) " >&6
31519else $as_nop
31520  ac_check_lib_save_LIBS=$LIBS
31521LIBS="-lngtcp2_crypto_boringssl  $LIBS"
31522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31523/* end confdefs.h.  */
31524
31525
31526#ifdef __cplusplus
31527extern "C"
31528#endif
31529char ngtcp2_crypto_recv_client_initial_cb ();
31530int main (void)
31531{
31532return ngtcp2_crypto_recv_client_initial_cb ();
31533 ;
31534 return 0;
31535}
31536_ACEOF
31537if ac_fn_c_try_link "$LINENO"
31538then :
31539  ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb=yes
31540else $as_nop
31541  ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb=no
31542fi
31543rm -f core conftest.err conftest.$ac_objext conftest.beam \
31544    conftest$ac_exeext conftest.$ac_ext
31545LIBS=$ac_check_lib_save_LIBS
31546fi
31547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31548printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31549if test "x$ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31550then :
31551
31552              for ac_header in ngtcp2/ngtcp2_crypto.h
31553do :
31554  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31555if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31556then :
31557  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31558 NGTCP2_ENABLED=1
31559
31560printf "%s\n" "#define USE_NGTCP2_CRYPTO_BORINGSSL 1" >>confdefs.h
31561
31562          USE_NGTCP2_CRYPTO_BORINGSSL=1
31563
31564          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_BORINGSSL"
31565          export CURL_LIBRARY_PATH
31566          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_BORINGSSL to CURL_LIBRARY_PATH" >&5
31567printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_BORINGSSL to CURL_LIBRARY_PATH" >&6;}
31568
31569fi
31570
31571done
31572
31573else $as_nop
31574          LDFLAGS=$CLEANLDFLAGS
31575        CPPFLAGS=$CLEANCPPFLAGS
31576        LIBS=$CLEANLIBS
31577
31578fi
31579
31580
31581  else
31582        if test X"$want_tcp2" != Xdefault; then
31583                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_boringssl pkg-config file." "$LINENO" 5
31584    fi
31585  fi
31586fi
31587
31588if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31589    CLEANLDFLAGS="$LDFLAGS"
31590  CLEANCPPFLAGS="$CPPFLAGS"
31591  CLEANLIBS="$LIBS"
31592
31593
31594    if test -n "$PKG_CONFIG"; then
31595      PKGCONFIG="$PKG_CONFIG"
31596    else
31597      if test -n "$ac_tool_prefix"; then
31598  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31599set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31601printf %s "checking for $ac_word... " >&6; }
31602if test ${ac_cv_path_PKGCONFIG+y}
31603then :
31604  printf %s "(cached) " >&6
31605else $as_nop
31606  case $PKGCONFIG in
31607  [\\/]* | ?:[\\/]*)
31608  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31609  ;;
31610  *)
31611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31612as_dummy="$PATH:/usr/bin:/usr/local/bin"
31613for as_dir in $as_dummy
31614do
31615  IFS=$as_save_IFS
31616  case $as_dir in #(((
31617    '') as_dir=./ ;;
31618    */) ;;
31619    *) as_dir=$as_dir/ ;;
31620  esac
31621    for ac_exec_ext in '' $ac_executable_extensions; do
31622  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31623    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31624    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31625    break 2
31626  fi
31627done
31628  done
31629IFS=$as_save_IFS
31630
31631  ;;
31632esac
31633fi
31634PKGCONFIG=$ac_cv_path_PKGCONFIG
31635if test -n "$PKGCONFIG"; then
31636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31637printf "%s\n" "$PKGCONFIG" >&6; }
31638else
31639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31640printf "%s\n" "no" >&6; }
31641fi
31642
31643
31644fi
31645if test -z "$ac_cv_path_PKGCONFIG"; then
31646  ac_pt_PKGCONFIG=$PKGCONFIG
31647  # Extract the first word of "pkg-config", so it can be a program name with args.
31648set dummy pkg-config; ac_word=$2
31649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31650printf %s "checking for $ac_word... " >&6; }
31651if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31652then :
31653  printf %s "(cached) " >&6
31654else $as_nop
31655  case $ac_pt_PKGCONFIG in
31656  [\\/]* | ?:[\\/]*)
31657  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31658  ;;
31659  *)
31660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31661as_dummy="$PATH:/usr/bin:/usr/local/bin"
31662for as_dir in $as_dummy
31663do
31664  IFS=$as_save_IFS
31665  case $as_dir in #(((
31666    '') as_dir=./ ;;
31667    */) ;;
31668    *) as_dir=$as_dir/ ;;
31669  esac
31670    for ac_exec_ext in '' $ac_executable_extensions; do
31671  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31672    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31673    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31674    break 2
31675  fi
31676done
31677  done
31678IFS=$as_save_IFS
31679
31680  ;;
31681esac
31682fi
31683ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31684if test -n "$ac_pt_PKGCONFIG"; then
31685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31686printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31687else
31688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31689printf "%s\n" "no" >&6; }
31690fi
31691
31692  if test "x$ac_pt_PKGCONFIG" = x; then
31693    PKGCONFIG="no"
31694  else
31695    case $cross_compiling:$ac_tool_warned in
31696yes:)
31697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31698printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31699ac_tool_warned=yes ;;
31700esac
31701    PKGCONFIG=$ac_pt_PKGCONFIG
31702  fi
31703else
31704  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31705fi
31706
31707    fi
31708
31709    if test "x$PKGCONFIG" != "xno"; then
31710      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31711printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31712            itexists=`
31713    if test -n "$want_tcp2_path"; then
31714      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31715      export PKG_CONFIG_LIBDIR
31716    fi
31717         $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31718
31719      if test -z "$itexists"; then
31720                        PKGCONFIG="no"
31721        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31722printf "%s\n" "no" >&6; }
31723      else
31724        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31725printf "%s\n" "found" >&6; }
31726      fi
31727    fi
31728
31729
31730  if test "$PKGCONFIG" != "no" ; then
31731    LIB_NGTCP2_CRYPTO_GNUTLS=`
31732    if test -n "$want_tcp2_path"; then
31733      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31734      export PKG_CONFIG_LIBDIR
31735    fi
31736
31737      $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31738    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31739printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31740
31741    CPP_NGTCP2_CRYPTO_GNUTLS=`
31742    if test -n "$want_tcp2_path"; then
31743      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31744      export PKG_CONFIG_LIBDIR
31745    fi
31746       $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31748printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31749
31750    LD_NGTCP2_CRYPTO_GNUTLS=`
31751    if test -n "$want_tcp2_path"; then
31752      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31753      export PKG_CONFIG_LIBDIR
31754    fi
31755
31756      $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31757    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31758printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31759
31760    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31761    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31762    LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31763
31764    if test "x$cross_compiling" != "xyes"; then
31765      DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31766    fi
31767    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
31768printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
31769if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
31770then :
31771  printf %s "(cached) " >&6
31772else $as_nop
31773  ac_check_lib_save_LIBS=$LIBS
31774LIBS="-lngtcp2_crypto_gnutls  $LIBS"
31775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31776/* end confdefs.h.  */
31777
31778
31779#ifdef __cplusplus
31780extern "C"
31781#endif
31782char ngtcp2_crypto_recv_client_initial_cb ();
31783int main (void)
31784{
31785return ngtcp2_crypto_recv_client_initial_cb ();
31786 ;
31787 return 0;
31788}
31789_ACEOF
31790if ac_fn_c_try_link "$LINENO"
31791then :
31792  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
31793else $as_nop
31794  ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
31795fi
31796rm -f core conftest.err conftest.$ac_objext conftest.beam \
31797    conftest$ac_exeext conftest.$ac_ext
31798LIBS=$ac_check_lib_save_LIBS
31799fi
31800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
31801printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31802if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31803then :
31804
31805              for ac_header in ngtcp2/ngtcp2_crypto.h
31806do :
31807  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31808if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31809then :
31810  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31811 NGTCP2_ENABLED=1
31812
31813printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31814
31815          USE_NGTCP2_CRYPTO_GNUTLS=1
31816
31817          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31818          export CURL_LIBRARY_PATH
31819          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31820printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31821
31822fi
31823
31824done
31825
31826else $as_nop
31827          LDFLAGS=$CLEANLDFLAGS
31828        CPPFLAGS=$CLEANCPPFLAGS
31829        LIBS=$CLEANLIBS
31830
31831fi
31832
31833
31834  else
31835        if test X"$want_tcp2" != Xdefault; then
31836                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31837    fi
31838  fi
31839fi
31840
31841if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
31842    CLEANLDFLAGS="$LDFLAGS"
31843  CLEANCPPFLAGS="$CPPFLAGS"
31844  CLEANLIBS="$LIBS"
31845
31846
31847    if test -n "$PKG_CONFIG"; then
31848      PKGCONFIG="$PKG_CONFIG"
31849    else
31850      if test -n "$ac_tool_prefix"; then
31851  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31852set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31854printf %s "checking for $ac_word... " >&6; }
31855if test ${ac_cv_path_PKGCONFIG+y}
31856then :
31857  printf %s "(cached) " >&6
31858else $as_nop
31859  case $PKGCONFIG in
31860  [\\/]* | ?:[\\/]*)
31861  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31862  ;;
31863  *)
31864  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31865as_dummy="$PATH:/usr/bin:/usr/local/bin"
31866for as_dir in $as_dummy
31867do
31868  IFS=$as_save_IFS
31869  case $as_dir in #(((
31870    '') as_dir=./ ;;
31871    */) ;;
31872    *) as_dir=$as_dir/ ;;
31873  esac
31874    for ac_exec_ext in '' $ac_executable_extensions; do
31875  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31876    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31877    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31878    break 2
31879  fi
31880done
31881  done
31882IFS=$as_save_IFS
31883
31884  ;;
31885esac
31886fi
31887PKGCONFIG=$ac_cv_path_PKGCONFIG
31888if test -n "$PKGCONFIG"; then
31889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31890printf "%s\n" "$PKGCONFIG" >&6; }
31891else
31892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31893printf "%s\n" "no" >&6; }
31894fi
31895
31896
31897fi
31898if test -z "$ac_cv_path_PKGCONFIG"; then
31899  ac_pt_PKGCONFIG=$PKGCONFIG
31900  # Extract the first word of "pkg-config", so it can be a program name with args.
31901set dummy pkg-config; ac_word=$2
31902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31903printf %s "checking for $ac_word... " >&6; }
31904if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31905then :
31906  printf %s "(cached) " >&6
31907else $as_nop
31908  case $ac_pt_PKGCONFIG in
31909  [\\/]* | ?:[\\/]*)
31910  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31911  ;;
31912  *)
31913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31914as_dummy="$PATH:/usr/bin:/usr/local/bin"
31915for as_dir in $as_dummy
31916do
31917  IFS=$as_save_IFS
31918  case $as_dir in #(((
31919    '') as_dir=./ ;;
31920    */) ;;
31921    *) as_dir=$as_dir/ ;;
31922  esac
31923    for ac_exec_ext in '' $ac_executable_extensions; do
31924  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31925    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31926    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31927    break 2
31928  fi
31929done
31930  done
31931IFS=$as_save_IFS
31932
31933  ;;
31934esac
31935fi
31936ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31937if test -n "$ac_pt_PKGCONFIG"; then
31938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31939printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31940else
31941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31942printf "%s\n" "no" >&6; }
31943fi
31944
31945  if test "x$ac_pt_PKGCONFIG" = x; then
31946    PKGCONFIG="no"
31947  else
31948    case $cross_compiling:$ac_tool_warned in
31949yes:)
31950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31951printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31952ac_tool_warned=yes ;;
31953esac
31954    PKGCONFIG=$ac_pt_PKGCONFIG
31955  fi
31956else
31957  PKGCONFIG="$ac_cv_path_PKGCONFIG"
31958fi
31959
31960    fi
31961
31962    if test "x$PKGCONFIG" != "xno"; then
31963      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
31964printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
31965            itexists=`
31966    if test -n "$want_tcp2_path"; then
31967      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31968      export PKG_CONFIG_LIBDIR
31969    fi
31970         $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
31971
31972      if test -z "$itexists"; then
31973                        PKGCONFIG="no"
31974        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31975printf "%s\n" "no" >&6; }
31976      else
31977        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31978printf "%s\n" "found" >&6; }
31979      fi
31980    fi
31981
31982
31983  if test "$PKGCONFIG" != "no" ; then
31984    LIB_NGTCP2_CRYPTO_WOLFSSL=`
31985    if test -n "$want_tcp2_path"; then
31986      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31987      export PKG_CONFIG_LIBDIR
31988    fi
31989
31990      $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
31991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
31992printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31993
31994    CPP_NGTCP2_CRYPTO_WOLFSSL=`
31995    if test -n "$want_tcp2_path"; then
31996      PKG_CONFIG_LIBDIR="$want_tcp2_path"
31997      export PKG_CONFIG_LIBDIR
31998    fi
31999       $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
32000    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
32001printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
32002
32003    LD_NGTCP2_CRYPTO_WOLFSSL=`
32004    if test -n "$want_tcp2_path"; then
32005      PKG_CONFIG_LIBDIR="$want_tcp2_path"
32006      export PKG_CONFIG_LIBDIR
32007    fi
32008
32009      $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
32010    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
32011printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
32012
32013    LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
32014    CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
32015    LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
32016
32017    if test "x$cross_compiling" != "xyes"; then
32018      DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
32019    fi
32020    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
32021printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
32022if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
32023then :
32024  printf %s "(cached) " >&6
32025else $as_nop
32026  ac_check_lib_save_LIBS=$LIBS
32027LIBS="-lngtcp2_crypto_wolfssl  $LIBS"
32028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32029/* end confdefs.h.  */
32030
32031
32032#ifdef __cplusplus
32033extern "C"
32034#endif
32035char ngtcp2_crypto_recv_client_initial_cb ();
32036int main (void)
32037{
32038return ngtcp2_crypto_recv_client_initial_cb ();
32039 ;
32040 return 0;
32041}
32042_ACEOF
32043if ac_fn_c_try_link "$LINENO"
32044then :
32045  ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
32046else $as_nop
32047  ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
32048fi
32049rm -f core conftest.err conftest.$ac_objext conftest.beam \
32050    conftest$ac_exeext conftest.$ac_ext
32051LIBS=$ac_check_lib_save_LIBS
32052fi
32053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
32054printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
32055if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
32056then :
32057
32058              for ac_header in ngtcp2/ngtcp2_crypto.h
32059do :
32060  ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
32061if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
32062then :
32063  printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
32064 NGTCP2_ENABLED=1
32065
32066printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
32067
32068          USE_NGTCP2_CRYPTO_WOLFSSL=1
32069
32070          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
32071          export CURL_LIBRARY_PATH
32072          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
32073printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
32074
32075fi
32076
32077done
32078
32079else $as_nop
32080          LDFLAGS=$CLEANLDFLAGS
32081        CPPFLAGS=$CLEANCPPFLAGS
32082        LIBS=$CLEANLIBS
32083
32084fi
32085
32086
32087  else
32088        if test X"$want_tcp2" != Xdefault; then
32089                  as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
32090    fi
32091  fi
32092fi
32093
32094
32095OPT_OPENSSL_QUIC="no"
32096
32097if test "x$disable_http" = "xyes" -o "x$OPENSSL_ENABLED" != "x1"; then
32098  # without HTTP or without openssl, no use
32099  OPT_OPENSSL_QUIC="no"
32100fi
32101
32102
32103# Check whether --with-openssl-quic was given.
32104if test ${with_openssl_quic+y}
32105then :
32106  withval=$with_openssl_quic; OPT_OPENSSL_QUIC=$withval
32107fi
32108
32109case "$OPT_OPENSSL_QUIC" in
32110  no)
32111        want_openssl_quic="no"
32112    ;;
32113  yes)
32114        want_openssl_quic="yes"
32115    ;;
32116esac
32117
32118curl_openssl_quic_msg="no      (--with-openssl-quic)"
32119if test "x$want_openssl_quic" = "xyes"; then
32120
32121  if test "$NGTCP2_ENABLED" = 1; then
32122    as_fn_error $? "--with-openssl-quic and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32123  fi
32124  if test "$HAVE_OPENSSL_QUIC" != 1; then
32125    as_fn_error $? "--with-openssl-quic requires quic support in OpenSSL" "$LINENO" 5
32126  fi
32127
32128printf "%s\n" "#define USE_OPENSSL_QUIC 1" >>confdefs.h
32129
32130  USE_OPENSSL_QUIC=1
32131
32132fi
32133
32134
32135OPT_NGHTTP3="yes"
32136
32137if test "x$USE_NGTCP2" = "x" -a "$USE_OPENSSL_QUIC" = "x"; then
32138  # without ngtcp2 or openssl quic, nghttp3 is of no use for us
32139  OPT_NGHTTP3="no"
32140fi
32141
32142
32143# Check whether --with-nghttp3 was given.
32144if test ${with_nghttp3+y}
32145then :
32146  withval=$with_nghttp3; OPT_NGHTTP3=$withval
32147fi
32148
32149case "$OPT_NGHTTP3" in
32150  no)
32151        want_nghttp3="no"
32152    ;;
32153  yes)
32154        want_nghttp3="default"
32155    want_nghttp3_path=""
32156    ;;
32157  *)
32158        want_nghttp3="yes"
32159    want_nghttp3_path="$withval/lib/pkgconfig"
32160    ;;
32161esac
32162
32163curl_http3_msg="no      (--with-nghttp3)"
32164if test X"$want_nghttp3" != Xno; then
32165
32166    CLEANLDFLAGS="$LDFLAGS"
32167  CLEANCPPFLAGS="$CPPFLAGS"
32168  CLEANLIBS="$LIBS"
32169
32170
32171    if test -n "$PKG_CONFIG"; then
32172      PKGCONFIG="$PKG_CONFIG"
32173    else
32174      if test -n "$ac_tool_prefix"; then
32175  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32176set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32178printf %s "checking for $ac_word... " >&6; }
32179if test ${ac_cv_path_PKGCONFIG+y}
32180then :
32181  printf %s "(cached) " >&6
32182else $as_nop
32183  case $PKGCONFIG in
32184  [\\/]* | ?:[\\/]*)
32185  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32186  ;;
32187  *)
32188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32189as_dummy="$PATH:/usr/bin:/usr/local/bin"
32190for as_dir in $as_dummy
32191do
32192  IFS=$as_save_IFS
32193  case $as_dir in #(((
32194    '') as_dir=./ ;;
32195    */) ;;
32196    *) as_dir=$as_dir/ ;;
32197  esac
32198    for ac_exec_ext in '' $ac_executable_extensions; do
32199  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32200    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32201    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32202    break 2
32203  fi
32204done
32205  done
32206IFS=$as_save_IFS
32207
32208  ;;
32209esac
32210fi
32211PKGCONFIG=$ac_cv_path_PKGCONFIG
32212if test -n "$PKGCONFIG"; then
32213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32214printf "%s\n" "$PKGCONFIG" >&6; }
32215else
32216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32217printf "%s\n" "no" >&6; }
32218fi
32219
32220
32221fi
32222if test -z "$ac_cv_path_PKGCONFIG"; then
32223  ac_pt_PKGCONFIG=$PKGCONFIG
32224  # Extract the first word of "pkg-config", so it can be a program name with args.
32225set dummy pkg-config; ac_word=$2
32226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32227printf %s "checking for $ac_word... " >&6; }
32228if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32229then :
32230  printf %s "(cached) " >&6
32231else $as_nop
32232  case $ac_pt_PKGCONFIG in
32233  [\\/]* | ?:[\\/]*)
32234  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32235  ;;
32236  *)
32237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32238as_dummy="$PATH:/usr/bin:/usr/local/bin"
32239for as_dir in $as_dummy
32240do
32241  IFS=$as_save_IFS
32242  case $as_dir in #(((
32243    '') as_dir=./ ;;
32244    */) ;;
32245    *) as_dir=$as_dir/ ;;
32246  esac
32247    for ac_exec_ext in '' $ac_executable_extensions; do
32248  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32249    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32250    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32251    break 2
32252  fi
32253done
32254  done
32255IFS=$as_save_IFS
32256
32257  ;;
32258esac
32259fi
32260ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32261if test -n "$ac_pt_PKGCONFIG"; then
32262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32263printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32264else
32265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32266printf "%s\n" "no" >&6; }
32267fi
32268
32269  if test "x$ac_pt_PKGCONFIG" = x; then
32270    PKGCONFIG="no"
32271  else
32272    case $cross_compiling:$ac_tool_warned in
32273yes:)
32274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32275printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32276ac_tool_warned=yes ;;
32277esac
32278    PKGCONFIG=$ac_pt_PKGCONFIG
32279  fi
32280else
32281  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32282fi
32283
32284    fi
32285
32286    if test "x$PKGCONFIG" != "xno"; then
32287      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
32288printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
32289            itexists=`
32290    if test -n "$want_nghttp3_path"; then
32291      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32292      export PKG_CONFIG_LIBDIR
32293    fi
32294         $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
32295
32296      if test -z "$itexists"; then
32297                        PKGCONFIG="no"
32298        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32299printf "%s\n" "no" >&6; }
32300      else
32301        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32302printf "%s\n" "found" >&6; }
32303      fi
32304    fi
32305
32306
32307  if test "$PKGCONFIG" != "no" ; then
32308    LIB_NGHTTP3=`
32309    if test -n "$want_nghttp3_path"; then
32310      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32311      export PKG_CONFIG_LIBDIR
32312    fi
32313
32314      $PKGCONFIG --libs-only-l libnghttp3`
32315    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
32316printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
32317
32318    CPP_NGHTTP3=`
32319    if test -n "$want_nghttp3_path"; then
32320      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32321      export PKG_CONFIG_LIBDIR
32322    fi
32323       $PKGCONFIG --cflags-only-I libnghttp3`
32324    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
32325printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
32326
32327    LD_NGHTTP3=`
32328    if test -n "$want_nghttp3_path"; then
32329      PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32330      export PKG_CONFIG_LIBDIR
32331    fi
32332
32333      $PKGCONFIG --libs-only-L libnghttp3`
32334    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
32335printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
32336
32337    LDFLAGS="$LDFLAGS $LD_NGHTTP3"
32338    CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
32339    LIBS="$LIB_NGHTTP3 $LIBS"
32340
32341    if test "x$cross_compiling" != "xyes"; then
32342      DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
32343    fi
32344    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
32345printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
32346if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
32347then :
32348  printf %s "(cached) " >&6
32349else $as_nop
32350  ac_check_lib_save_LIBS=$LIBS
32351LIBS="-lnghttp3  $LIBS"
32352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32353/* end confdefs.h.  */
32354
32355
32356#ifdef __cplusplus
32357extern "C"
32358#endif
32359char nghttp3_conn_client_new_versioned ();
32360int main (void)
32361{
32362return nghttp3_conn_client_new_versioned ();
32363 ;
32364 return 0;
32365}
32366_ACEOF
32367if ac_fn_c_try_link "$LINENO"
32368then :
32369  ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
32370else $as_nop
32371  ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
32372fi
32373rm -f core conftest.err conftest.$ac_objext conftest.beam \
32374    conftest$ac_exeext conftest.$ac_ext
32375LIBS=$ac_check_lib_save_LIBS
32376fi
32377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
32378printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
32379if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
32380then :
32381
32382              for ac_header in nghttp3/nghttp3.h
32383do :
32384  ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
32385if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
32386then :
32387  printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
32388
32389printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
32390
32391          USE_NGHTTP3=1
32392
32393          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
32394          export CURL_LIBRARY_PATH
32395          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
32396printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
32397
32398fi
32399
32400done
32401
32402else $as_nop
32403          LDFLAGS=$CLEANLDFLAGS
32404        CPPFLAGS=$CLEANCPPFLAGS
32405        LIBS=$CLEANLIBS
32406
32407fi
32408
32409
32410  else
32411        if test X"$want_nghttp3" != Xdefault; then
32412                  as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
32413    fi
32414  fi
32415
32416fi
32417
32418
32419if test "x$NGTCP2_ENABLED" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
32420
32421printf "%s\n" "#define USE_NGTCP2_H3 1" >>confdefs.h
32422
32423  USE_NGTCP2_H3=1
32424
32425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32426printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32427  curl_h3_msg="enabled (ngtcp2 + nghttp3)"
32428fi
32429
32430
32431if test "x$USE_OPENSSL_QUIC" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
32432  experimental="$experimental HTTP3"
32433
32434printf "%s\n" "#define USE_OPENSSL_H3 1" >>confdefs.h
32435
32436  USE_OPENSSL_H3=1
32437
32438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32439printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32440  curl_h3_msg="enabled (openssl + nghttp3)"
32441fi
32442
32443
32444OPT_QUICHE="no"
32445
32446if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32447  # without HTTP or with ngtcp2, quiche is no use
32448  OPT_QUICHE="no"
32449fi
32450
32451
32452# Check whether --with-quiche was given.
32453if test ${with_quiche+y}
32454then :
32455  withval=$with_quiche; OPT_QUICHE=$withval
32456fi
32457
32458case "$OPT_QUICHE" in
32459  no)
32460        want_quiche="no"
32461    ;;
32462  yes)
32463        want_quiche="default"
32464    want_quiche_path=""
32465    ;;
32466  *)
32467        want_quiche="yes"
32468    want_quiche_path="$withval"
32469    ;;
32470esac
32471
32472if test X"$want_quiche" != Xno; then
32473
32474  if test "$QUIC_ENABLED" != "yes"; then
32475    as_fn_error $? "the detected TLS library does not support QUIC, making --with-quiche a no-no" "$LINENO" 5
32476  fi
32477
32478  if test "$NGHTTP3_ENABLED" = 1; then
32479    as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32480  fi
32481
32482    CLEANLDFLAGS="$LDFLAGS"
32483  CLEANCPPFLAGS="$CPPFLAGS"
32484  CLEANLIBS="$LIBS"
32485
32486
32487    if test -n "$PKG_CONFIG"; then
32488      PKGCONFIG="$PKG_CONFIG"
32489    else
32490      if test -n "$ac_tool_prefix"; then
32491  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32492set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32494printf %s "checking for $ac_word... " >&6; }
32495if test ${ac_cv_path_PKGCONFIG+y}
32496then :
32497  printf %s "(cached) " >&6
32498else $as_nop
32499  case $PKGCONFIG in
32500  [\\/]* | ?:[\\/]*)
32501  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32502  ;;
32503  *)
32504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32505as_dummy="$PATH:/usr/bin:/usr/local/bin"
32506for as_dir in $as_dummy
32507do
32508  IFS=$as_save_IFS
32509  case $as_dir in #(((
32510    '') as_dir=./ ;;
32511    */) ;;
32512    *) as_dir=$as_dir/ ;;
32513  esac
32514    for ac_exec_ext in '' $ac_executable_extensions; do
32515  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32516    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32517    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32518    break 2
32519  fi
32520done
32521  done
32522IFS=$as_save_IFS
32523
32524  ;;
32525esac
32526fi
32527PKGCONFIG=$ac_cv_path_PKGCONFIG
32528if test -n "$PKGCONFIG"; then
32529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32530printf "%s\n" "$PKGCONFIG" >&6; }
32531else
32532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32533printf "%s\n" "no" >&6; }
32534fi
32535
32536
32537fi
32538if test -z "$ac_cv_path_PKGCONFIG"; then
32539  ac_pt_PKGCONFIG=$PKGCONFIG
32540  # Extract the first word of "pkg-config", so it can be a program name with args.
32541set dummy pkg-config; ac_word=$2
32542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32543printf %s "checking for $ac_word... " >&6; }
32544if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32545then :
32546  printf %s "(cached) " >&6
32547else $as_nop
32548  case $ac_pt_PKGCONFIG in
32549  [\\/]* | ?:[\\/]*)
32550  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32551  ;;
32552  *)
32553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32554as_dummy="$PATH:/usr/bin:/usr/local/bin"
32555for as_dir in $as_dummy
32556do
32557  IFS=$as_save_IFS
32558  case $as_dir in #(((
32559    '') as_dir=./ ;;
32560    */) ;;
32561    *) as_dir=$as_dir/ ;;
32562  esac
32563    for ac_exec_ext in '' $ac_executable_extensions; do
32564  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32565    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32566    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32567    break 2
32568  fi
32569done
32570  done
32571IFS=$as_save_IFS
32572
32573  ;;
32574esac
32575fi
32576ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32577if test -n "$ac_pt_PKGCONFIG"; then
32578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32579printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32580else
32581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32582printf "%s\n" "no" >&6; }
32583fi
32584
32585  if test "x$ac_pt_PKGCONFIG" = x; then
32586    PKGCONFIG="no"
32587  else
32588    case $cross_compiling:$ac_tool_warned in
32589yes:)
32590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32591printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32592ac_tool_warned=yes ;;
32593esac
32594    PKGCONFIG=$ac_pt_PKGCONFIG
32595  fi
32596else
32597  PKGCONFIG="$ac_cv_path_PKGCONFIG"
32598fi
32599
32600    fi
32601
32602    if test "x$PKGCONFIG" != "xno"; then
32603      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
32604printf %s "checking for quiche options with pkg-config... " >&6; }
32605            itexists=`
32606    if test -n "$want_quiche_path"; then
32607      PKG_CONFIG_LIBDIR="$want_quiche_path"
32608      export PKG_CONFIG_LIBDIR
32609    fi
32610         $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
32611
32612      if test -z "$itexists"; then
32613                        PKGCONFIG="no"
32614        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32615printf "%s\n" "no" >&6; }
32616      else
32617        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32618printf "%s\n" "found" >&6; }
32619      fi
32620    fi
32621
32622
32623  if test "$PKGCONFIG" != "no" ; then
32624    LIB_QUICHE=`
32625    if test -n "$want_quiche_path"; then
32626      PKG_CONFIG_LIBDIR="$want_quiche_path"
32627      export PKG_CONFIG_LIBDIR
32628    fi
32629
32630      $PKGCONFIG --libs-only-l quiche`
32631    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
32632printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
32633
32634    CPP_QUICHE=`
32635    if test -n "$want_quiche_path"; then
32636      PKG_CONFIG_LIBDIR="$want_quiche_path"
32637      export PKG_CONFIG_LIBDIR
32638    fi
32639       $PKGCONFIG --cflags-only-I quiche`
32640    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
32641printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
32642
32643    LD_QUICHE=`
32644    if test -n "$want_quiche_path"; then
32645      PKG_CONFIG_LIBDIR="$want_quiche_path"
32646      export PKG_CONFIG_LIBDIR
32647    fi
32648
32649      $PKGCONFIG --libs-only-L quiche`
32650    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
32651printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
32652
32653    LDFLAGS="$LDFLAGS $LD_QUICHE"
32654    CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
32655    LIBS="$LIB_QUICHE $LIBS"
32656
32657    if test "x$cross_compiling" != "xyes"; then
32658      DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
32659    fi
32660    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_conn_send_ack_eliciting in -lquiche" >&5
32661printf %s "checking for quiche_conn_send_ack_eliciting in -lquiche... " >&6; }
32662if test ${ac_cv_lib_quiche_quiche_conn_send_ack_eliciting+y}
32663then :
32664  printf %s "(cached) " >&6
32665else $as_nop
32666  ac_check_lib_save_LIBS=$LIBS
32667LIBS="-lquiche  $LIBS"
32668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32669/* end confdefs.h.  */
32670
32671
32672#ifdef __cplusplus
32673extern "C"
32674#endif
32675char quiche_conn_send_ack_eliciting ();
32676int main (void)
32677{
32678return quiche_conn_send_ack_eliciting ();
32679 ;
32680 return 0;
32681}
32682_ACEOF
32683if ac_fn_c_try_link "$LINENO"
32684then :
32685  ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=yes
32686else $as_nop
32687  ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=no
32688fi
32689rm -f core conftest.err conftest.$ac_objext conftest.beam \
32690    conftest$ac_exeext conftest.$ac_ext
32691LIBS=$ac_check_lib_save_LIBS
32692fi
32693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&5
32694printf "%s\n" "$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&6; }
32695if test "x$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" = xyes
32696then :
32697
32698              for ac_header in quiche.h
32699do :
32700  ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32701$ac_includes_default
32702#include <sys/socket.h>
32703
32704
32705"
32706if test "x$ac_cv_header_quiche_h" = xyes
32707then :
32708  printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32709 experimental="$experimental HTTP3"
32710          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32711printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32712          curl_h3_msg="enabled (quiche)"
32713          QUICHE_ENABLED=1
32714
32715printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32716
32717          USE_QUICHE=1
32718
32719          ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32720if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32721then :
32722  printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32723
32724fi
32725
32726          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32727          export CURL_LIBRARY_PATH
32728          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32729printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32730fi
32731
32732done
32733
32734else $as_nop
32735          as_fn_error $? "couldn't use quiche" "$LINENO" 5
32736
32737fi
32738
32739  else
32740        if test X"$want_quiche" != Xdefault; then
32741                  as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32742    fi
32743  fi
32744fi
32745
32746
32747OPT_MSH3="no"
32748
32749if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32750  # without HTTP or with ngtcp2, msh3 is no use
32751  OPT_MSH3="no"
32752fi
32753
32754
32755# Check whether --with-msh3 was given.
32756if test ${with_msh3+y}
32757then :
32758  withval=$with_msh3; OPT_MSH3=$withval
32759fi
32760
32761case "$OPT_MSH3" in
32762  no)
32763        want_msh3="no"
32764    ;;
32765  yes)
32766        want_msh3="default"
32767    want_msh3_path=""
32768    ;;
32769  *)
32770        want_msh3="yes"
32771    want_msh3_path="$withval"
32772    ;;
32773esac
32774
32775if test X"$want_msh3" != Xno; then
32776
32777    if test "$curl_cv_native_windows" != "yes"; then
32778    if test "$QUIC_ENABLED" != "yes"; then
32779      as_fn_error $? "the detected TLS library does not support QUIC, making --with-msh3 a no-no" "$LINENO" 5
32780    fi
32781    if test "$OPENSSL_ENABLED" != "1"; then
32782      as_fn_error $? "msh3 requires OpenSSL" "$LINENO" 5
32783    fi
32784  fi
32785
32786  if test "$NGHTTP3_ENABLED" = 1; then
32787    as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32788  fi
32789  if test "$QUICHE_ENABLED" = 1; then
32790    as_fn_error $? "--with-msh3 and --with-quiche are mutually exclusive" "$LINENO" 5
32791  fi
32792
32793    CLEANLDFLAGS="$LDFLAGS"
32794  CLEANCPPFLAGS="$CPPFLAGS"
32795  CLEANLIBS="$LIBS"
32796
32797  if test -n "$want_msh3_path"; then
32798    LD_MSH3="-L$want_msh3_path/lib"
32799    CPP_MSH3="-I$want_msh3_path/include"
32800    DIR_MSH3="$want_msh3_path/lib"
32801    LDFLAGS="$LDFLAGS $LD_MSH3"
32802    CPPFLAGS="$CPPFLAGS $CPP_MSH3"
32803  fi
32804  LIBS="-lmsh3 $LIBS"
32805
32806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
32807printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
32808if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
32809then :
32810  printf %s "(cached) " >&6
32811else $as_nop
32812  ac_check_lib_save_LIBS=$LIBS
32813LIBS="-lmsh3  $LIBS"
32814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32815/* end confdefs.h.  */
32816
32817
32818#ifdef __cplusplus
32819extern "C"
32820#endif
32821char MsH3ApiOpen ();
32822int main (void)
32823{
32824return MsH3ApiOpen ();
32825 ;
32826 return 0;
32827}
32828_ACEOF
32829if ac_fn_c_try_link "$LINENO"
32830then :
32831  ac_cv_lib_msh3_MsH3ApiOpen=yes
32832else $as_nop
32833  ac_cv_lib_msh3_MsH3ApiOpen=no
32834fi
32835rm -f core conftest.err conftest.$ac_objext conftest.beam \
32836    conftest$ac_exeext conftest.$ac_ext
32837LIBS=$ac_check_lib_save_LIBS
32838fi
32839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
32840printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
32841if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
32842then :
32843
32844           for ac_header in msh3.h
32845do :
32846  ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
32847if test "x$ac_cv_header_msh3_h" = xyes
32848then :
32849  printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
32850 curl_h3_msg="enabled (msh3)"
32851        MSH3_ENABLED=1
32852
32853printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
32854
32855        USE_MSH3=1
32856
32857        CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
32858        export CURL_LIBRARY_PATH
32859        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
32860printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
32861else $as_nop
32862  experimental="$experimental HTTP3"
32863
32864fi
32865
32866done
32867
32868else $as_nop
32869        LDFLAGS=$CLEANLDFLAGS
32870      CPPFLAGS=$CLEANCPPFLAGS
32871      LIBS=$CLEANLIBS
32872
32873fi
32874
32875fi
32876
32877
32878OPT_ZSH_FPATH=default
32879
32880# Check whether --with-zsh-functions-dir was given.
32881if test ${with_zsh_functions_dir+y}
32882then :
32883  withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32884fi
32885
32886case "$OPT_ZSH_FPATH" in
32887  no)
32888        ;;
32889  default|yes)
32890        ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32891
32892    ;;
32893  *)
32894        ZSH_FUNCTIONS_DIR="$withval"
32895
32896    ;;
32897esac
32898
32899
32900OPT_FISH_FPATH=default
32901
32902# Check whether --with-fish-functions-dir was given.
32903if test ${with_fish_functions_dir+y}
32904then :
32905  withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32906fi
32907
32908case "$OPT_FISH_FPATH" in
32909  no)
32910        ;;
32911  default|yes)
32912
32913    if test -n "$PKG_CONFIG"; then
32914      PKGCONFIG="$PKG_CONFIG"
32915    else
32916      if test -n "$ac_tool_prefix"; then
32917  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32918set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32920printf %s "checking for $ac_word... " >&6; }
32921if test ${ac_cv_path_PKGCONFIG+y}
32922then :
32923  printf %s "(cached) " >&6
32924else $as_nop
32925  case $PKGCONFIG in
32926  [\\/]* | ?:[\\/]*)
32927  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32928  ;;
32929  *)
32930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32931as_dummy="$PATH:/usr/bin:/usr/local/bin"
32932for as_dir in $as_dummy
32933do
32934  IFS=$as_save_IFS
32935  case $as_dir in #(((
32936    '') as_dir=./ ;;
32937    */) ;;
32938    *) as_dir=$as_dir/ ;;
32939  esac
32940    for ac_exec_ext in '' $ac_executable_extensions; do
32941  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32942    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32943    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32944    break 2
32945  fi
32946done
32947  done
32948IFS=$as_save_IFS
32949
32950  ;;
32951esac
32952fi
32953PKGCONFIG=$ac_cv_path_PKGCONFIG
32954if test -n "$PKGCONFIG"; then
32955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32956printf "%s\n" "$PKGCONFIG" >&6; }
32957else
32958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32959printf "%s\n" "no" >&6; }
32960fi
32961
32962
32963fi
32964if test -z "$ac_cv_path_PKGCONFIG"; then
32965  ac_pt_PKGCONFIG=$PKGCONFIG
32966  # Extract the first word of "pkg-config", so it can be a program name with args.
32967set dummy pkg-config; ac_word=$2
32968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32969printf %s "checking for $ac_word... " >&6; }
32970if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32971then :
32972  printf %s "(cached) " >&6
32973else $as_nop
32974  case $ac_pt_PKGCONFIG in
32975  [\\/]* | ?:[\\/]*)
32976  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32977  ;;
32978  *)
32979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32980as_dummy="$PATH:/usr/bin:/usr/local/bin"
32981for as_dir in $as_dummy
32982do
32983  IFS=$as_save_IFS
32984  case $as_dir in #(((
32985    '') as_dir=./ ;;
32986    */) ;;
32987    *) as_dir=$as_dir/ ;;
32988  esac
32989    for ac_exec_ext in '' $ac_executable_extensions; do
32990  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32991    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32993    break 2
32994  fi
32995done
32996  done
32997IFS=$as_save_IFS
32998
32999  ;;
33000esac
33001fi
33002ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
33003if test -n "$ac_pt_PKGCONFIG"; then
33004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
33005printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
33006else
33007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33008printf "%s\n" "no" >&6; }
33009fi
33010
33011  if test "x$ac_pt_PKGCONFIG" = x; then
33012    PKGCONFIG="no"
33013  else
33014    case $cross_compiling:$ac_tool_warned in
33015yes:)
33016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33017printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33018ac_tool_warned=yes ;;
33019esac
33020    PKGCONFIG=$ac_pt_PKGCONFIG
33021  fi
33022else
33023  PKGCONFIG="$ac_cv_path_PKGCONFIG"
33024fi
33025
33026    fi
33027
33028    if test "x$PKGCONFIG" != "xno"; then
33029      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
33030printf %s "checking for fish options with pkg-config... " >&6; }
33031            itexists=`
33032    if test -n ""; then
33033      PKG_CONFIG_LIBDIR=""
33034      export PKG_CONFIG_LIBDIR
33035    fi
33036         $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
33037
33038      if test -z "$itexists"; then
33039                        PKGCONFIG="no"
33040        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33041printf "%s\n" "no" >&6; }
33042      else
33043        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
33044printf "%s\n" "found" >&6; }
33045      fi
33046    fi
33047
33048    if test "$PKGCONFIG" != "no" ; then
33049      FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
33050    else
33051      FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
33052    fi
33053
33054    ;;
33055  *)
33056        FISH_FUNCTIONS_DIR="$withval"
33057
33058    ;;
33059esac
33060
33061ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
33062#ifdef HAVE_SYS_TYPES_H
33063#include <sys/types.h>
33064#endif
33065#ifdef HAVE_SYS_TIME_H
33066#include <sys/time.h>
33067#endif
33068#ifdef HAVE_SYS_SELECT_H
33069#include <sys/select.h>
33070#elif defined(HAVE_UNISTD_H)
33071#include <unistd.h>
33072#endif
33073#ifdef HAVE_SYS_SOCKET_H
33074#include <sys/socket.h>
33075#endif
33076#ifdef HAVE_NETINET_IN_H
33077#include <netinet/in.h>
33078#endif
33079#ifdef HAVE_NETINET_IN6_H
33080#include <netinet/in6.h>
33081#endif
33082#ifdef HAVE_SYS_UN_H
33083#include <sys/un.h>
33084#endif
33085
33086
33087"
33088if test "x$ac_cv_header_sys_types_h" = xyes
33089then :
33090  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33091
33092fi
33093ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
33094#ifdef HAVE_SYS_TYPES_H
33095#include <sys/types.h>
33096#endif
33097#ifdef HAVE_SYS_TIME_H
33098#include <sys/time.h>
33099#endif
33100#ifdef HAVE_SYS_SELECT_H
33101#include <sys/select.h>
33102#elif defined(HAVE_UNISTD_H)
33103#include <unistd.h>
33104#endif
33105#ifdef HAVE_SYS_SOCKET_H
33106#include <sys/socket.h>
33107#endif
33108#ifdef HAVE_NETINET_IN_H
33109#include <netinet/in.h>
33110#endif
33111#ifdef HAVE_NETINET_IN6_H
33112#include <netinet/in6.h>
33113#endif
33114#ifdef HAVE_SYS_UN_H
33115#include <sys/un.h>
33116#endif
33117
33118
33119"
33120if test "x$ac_cv_header_sys_time_h" = xyes
33121then :
33122  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
33123
33124fi
33125ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
33126#ifdef HAVE_SYS_TYPES_H
33127#include <sys/types.h>
33128#endif
33129#ifdef HAVE_SYS_TIME_H
33130#include <sys/time.h>
33131#endif
33132#ifdef HAVE_SYS_SELECT_H
33133#include <sys/select.h>
33134#elif defined(HAVE_UNISTD_H)
33135#include <unistd.h>
33136#endif
33137#ifdef HAVE_SYS_SOCKET_H
33138#include <sys/socket.h>
33139#endif
33140#ifdef HAVE_NETINET_IN_H
33141#include <netinet/in.h>
33142#endif
33143#ifdef HAVE_NETINET_IN6_H
33144#include <netinet/in6.h>
33145#endif
33146#ifdef HAVE_SYS_UN_H
33147#include <sys/un.h>
33148#endif
33149
33150
33151"
33152if test "x$ac_cv_header_sys_select_h" = xyes
33153then :
33154  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
33155
33156fi
33157ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
33158#ifdef HAVE_SYS_TYPES_H
33159#include <sys/types.h>
33160#endif
33161#ifdef HAVE_SYS_TIME_H
33162#include <sys/time.h>
33163#endif
33164#ifdef HAVE_SYS_SELECT_H
33165#include <sys/select.h>
33166#elif defined(HAVE_UNISTD_H)
33167#include <unistd.h>
33168#endif
33169#ifdef HAVE_SYS_SOCKET_H
33170#include <sys/socket.h>
33171#endif
33172#ifdef HAVE_NETINET_IN_H
33173#include <netinet/in.h>
33174#endif
33175#ifdef HAVE_NETINET_IN6_H
33176#include <netinet/in6.h>
33177#endif
33178#ifdef HAVE_SYS_UN_H
33179#include <sys/un.h>
33180#endif
33181
33182
33183"
33184if test "x$ac_cv_header_sys_socket_h" = xyes
33185then :
33186  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33187
33188fi
33189ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
33190#ifdef HAVE_SYS_TYPES_H
33191#include <sys/types.h>
33192#endif
33193#ifdef HAVE_SYS_TIME_H
33194#include <sys/time.h>
33195#endif
33196#ifdef HAVE_SYS_SELECT_H
33197#include <sys/select.h>
33198#elif defined(HAVE_UNISTD_H)
33199#include <unistd.h>
33200#endif
33201#ifdef HAVE_SYS_SOCKET_H
33202#include <sys/socket.h>
33203#endif
33204#ifdef HAVE_NETINET_IN_H
33205#include <netinet/in.h>
33206#endif
33207#ifdef HAVE_NETINET_IN6_H
33208#include <netinet/in6.h>
33209#endif
33210#ifdef HAVE_SYS_UN_H
33211#include <sys/un.h>
33212#endif
33213
33214
33215"
33216if test "x$ac_cv_header_sys_ioctl_h" = xyes
33217then :
33218  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
33219
33220fi
33221ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
33222#ifdef HAVE_SYS_TYPES_H
33223#include <sys/types.h>
33224#endif
33225#ifdef HAVE_SYS_TIME_H
33226#include <sys/time.h>
33227#endif
33228#ifdef HAVE_SYS_SELECT_H
33229#include <sys/select.h>
33230#elif defined(HAVE_UNISTD_H)
33231#include <unistd.h>
33232#endif
33233#ifdef HAVE_SYS_SOCKET_H
33234#include <sys/socket.h>
33235#endif
33236#ifdef HAVE_NETINET_IN_H
33237#include <netinet/in.h>
33238#endif
33239#ifdef HAVE_NETINET_IN6_H
33240#include <netinet/in6.h>
33241#endif
33242#ifdef HAVE_SYS_UN_H
33243#include <sys/un.h>
33244#endif
33245
33246
33247"
33248if test "x$ac_cv_header_unistd_h" = xyes
33249then :
33250  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
33251
33252fi
33253ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
33254#ifdef HAVE_SYS_TYPES_H
33255#include <sys/types.h>
33256#endif
33257#ifdef HAVE_SYS_TIME_H
33258#include <sys/time.h>
33259#endif
33260#ifdef HAVE_SYS_SELECT_H
33261#include <sys/select.h>
33262#elif defined(HAVE_UNISTD_H)
33263#include <unistd.h>
33264#endif
33265#ifdef HAVE_SYS_SOCKET_H
33266#include <sys/socket.h>
33267#endif
33268#ifdef HAVE_NETINET_IN_H
33269#include <netinet/in.h>
33270#endif
33271#ifdef HAVE_NETINET_IN6_H
33272#include <netinet/in6.h>
33273#endif
33274#ifdef HAVE_SYS_UN_H
33275#include <sys/un.h>
33276#endif
33277
33278
33279"
33280if test "x$ac_cv_header_stdlib_h" = xyes
33281then :
33282  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
33283
33284fi
33285ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
33286#ifdef HAVE_SYS_TYPES_H
33287#include <sys/types.h>
33288#endif
33289#ifdef HAVE_SYS_TIME_H
33290#include <sys/time.h>
33291#endif
33292#ifdef HAVE_SYS_SELECT_H
33293#include <sys/select.h>
33294#elif defined(HAVE_UNISTD_H)
33295#include <unistd.h>
33296#endif
33297#ifdef HAVE_SYS_SOCKET_H
33298#include <sys/socket.h>
33299#endif
33300#ifdef HAVE_NETINET_IN_H
33301#include <netinet/in.h>
33302#endif
33303#ifdef HAVE_NETINET_IN6_H
33304#include <netinet/in6.h>
33305#endif
33306#ifdef HAVE_SYS_UN_H
33307#include <sys/un.h>
33308#endif
33309
33310
33311"
33312if test "x$ac_cv_header_arpa_inet_h" = xyes
33313then :
33314  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
33315
33316fi
33317ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
33318#ifdef HAVE_SYS_TYPES_H
33319#include <sys/types.h>
33320#endif
33321#ifdef HAVE_SYS_TIME_H
33322#include <sys/time.h>
33323#endif
33324#ifdef HAVE_SYS_SELECT_H
33325#include <sys/select.h>
33326#elif defined(HAVE_UNISTD_H)
33327#include <unistd.h>
33328#endif
33329#ifdef HAVE_SYS_SOCKET_H
33330#include <sys/socket.h>
33331#endif
33332#ifdef HAVE_NETINET_IN_H
33333#include <netinet/in.h>
33334#endif
33335#ifdef HAVE_NETINET_IN6_H
33336#include <netinet/in6.h>
33337#endif
33338#ifdef HAVE_SYS_UN_H
33339#include <sys/un.h>
33340#endif
33341
33342
33343"
33344if test "x$ac_cv_header_net_if_h" = xyes
33345then :
33346  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
33347
33348fi
33349ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
33350#ifdef HAVE_SYS_TYPES_H
33351#include <sys/types.h>
33352#endif
33353#ifdef HAVE_SYS_TIME_H
33354#include <sys/time.h>
33355#endif
33356#ifdef HAVE_SYS_SELECT_H
33357#include <sys/select.h>
33358#elif defined(HAVE_UNISTD_H)
33359#include <unistd.h>
33360#endif
33361#ifdef HAVE_SYS_SOCKET_H
33362#include <sys/socket.h>
33363#endif
33364#ifdef HAVE_NETINET_IN_H
33365#include <netinet/in.h>
33366#endif
33367#ifdef HAVE_NETINET_IN6_H
33368#include <netinet/in6.h>
33369#endif
33370#ifdef HAVE_SYS_UN_H
33371#include <sys/un.h>
33372#endif
33373
33374
33375"
33376if test "x$ac_cv_header_netinet_in_h" = xyes
33377then :
33378  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
33379
33380fi
33381ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
33382#ifdef HAVE_SYS_TYPES_H
33383#include <sys/types.h>
33384#endif
33385#ifdef HAVE_SYS_TIME_H
33386#include <sys/time.h>
33387#endif
33388#ifdef HAVE_SYS_SELECT_H
33389#include <sys/select.h>
33390#elif defined(HAVE_UNISTD_H)
33391#include <unistd.h>
33392#endif
33393#ifdef HAVE_SYS_SOCKET_H
33394#include <sys/socket.h>
33395#endif
33396#ifdef HAVE_NETINET_IN_H
33397#include <netinet/in.h>
33398#endif
33399#ifdef HAVE_NETINET_IN6_H
33400#include <netinet/in6.h>
33401#endif
33402#ifdef HAVE_SYS_UN_H
33403#include <sys/un.h>
33404#endif
33405
33406
33407"
33408if test "x$ac_cv_header_netinet_in6_h" = xyes
33409then :
33410  printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
33411
33412fi
33413ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
33414#ifdef HAVE_SYS_TYPES_H
33415#include <sys/types.h>
33416#endif
33417#ifdef HAVE_SYS_TIME_H
33418#include <sys/time.h>
33419#endif
33420#ifdef HAVE_SYS_SELECT_H
33421#include <sys/select.h>
33422#elif defined(HAVE_UNISTD_H)
33423#include <unistd.h>
33424#endif
33425#ifdef HAVE_SYS_SOCKET_H
33426#include <sys/socket.h>
33427#endif
33428#ifdef HAVE_NETINET_IN_H
33429#include <netinet/in.h>
33430#endif
33431#ifdef HAVE_NETINET_IN6_H
33432#include <netinet/in6.h>
33433#endif
33434#ifdef HAVE_SYS_UN_H
33435#include <sys/un.h>
33436#endif
33437
33438
33439"
33440if test "x$ac_cv_header_sys_un_h" = xyes
33441then :
33442  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
33443
33444fi
33445ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
33446#ifdef HAVE_SYS_TYPES_H
33447#include <sys/types.h>
33448#endif
33449#ifdef HAVE_SYS_TIME_H
33450#include <sys/time.h>
33451#endif
33452#ifdef HAVE_SYS_SELECT_H
33453#include <sys/select.h>
33454#elif defined(HAVE_UNISTD_H)
33455#include <unistd.h>
33456#endif
33457#ifdef HAVE_SYS_SOCKET_H
33458#include <sys/socket.h>
33459#endif
33460#ifdef HAVE_NETINET_IN_H
33461#include <netinet/in.h>
33462#endif
33463#ifdef HAVE_NETINET_IN6_H
33464#include <netinet/in6.h>
33465#endif
33466#ifdef HAVE_SYS_UN_H
33467#include <sys/un.h>
33468#endif
33469
33470
33471"
33472if test "x$ac_cv_header_linux_tcp_h" = xyes
33473then :
33474  printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
33475
33476fi
33477ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
33478#ifdef HAVE_SYS_TYPES_H
33479#include <sys/types.h>
33480#endif
33481#ifdef HAVE_SYS_TIME_H
33482#include <sys/time.h>
33483#endif
33484#ifdef HAVE_SYS_SELECT_H
33485#include <sys/select.h>
33486#elif defined(HAVE_UNISTD_H)
33487#include <unistd.h>
33488#endif
33489#ifdef HAVE_SYS_SOCKET_H
33490#include <sys/socket.h>
33491#endif
33492#ifdef HAVE_NETINET_IN_H
33493#include <netinet/in.h>
33494#endif
33495#ifdef HAVE_NETINET_IN6_H
33496#include <netinet/in6.h>
33497#endif
33498#ifdef HAVE_SYS_UN_H
33499#include <sys/un.h>
33500#endif
33501
33502
33503"
33504if test "x$ac_cv_header_netinet_tcp_h" = xyes
33505then :
33506  printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
33507
33508fi
33509ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
33510#ifdef HAVE_SYS_TYPES_H
33511#include <sys/types.h>
33512#endif
33513#ifdef HAVE_SYS_TIME_H
33514#include <sys/time.h>
33515#endif
33516#ifdef HAVE_SYS_SELECT_H
33517#include <sys/select.h>
33518#elif defined(HAVE_UNISTD_H)
33519#include <unistd.h>
33520#endif
33521#ifdef HAVE_SYS_SOCKET_H
33522#include <sys/socket.h>
33523#endif
33524#ifdef HAVE_NETINET_IN_H
33525#include <netinet/in.h>
33526#endif
33527#ifdef HAVE_NETINET_IN6_H
33528#include <netinet/in6.h>
33529#endif
33530#ifdef HAVE_SYS_UN_H
33531#include <sys/un.h>
33532#endif
33533
33534
33535"
33536if test "x$ac_cv_header_netinet_udp_h" = xyes
33537then :
33538  printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
33539
33540fi
33541ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
33542#ifdef HAVE_SYS_TYPES_H
33543#include <sys/types.h>
33544#endif
33545#ifdef HAVE_SYS_TIME_H
33546#include <sys/time.h>
33547#endif
33548#ifdef HAVE_SYS_SELECT_H
33549#include <sys/select.h>
33550#elif defined(HAVE_UNISTD_H)
33551#include <unistd.h>
33552#endif
33553#ifdef HAVE_SYS_SOCKET_H
33554#include <sys/socket.h>
33555#endif
33556#ifdef HAVE_NETINET_IN_H
33557#include <netinet/in.h>
33558#endif
33559#ifdef HAVE_NETINET_IN6_H
33560#include <netinet/in6.h>
33561#endif
33562#ifdef HAVE_SYS_UN_H
33563#include <sys/un.h>
33564#endif
33565
33566
33567"
33568if test "x$ac_cv_header_netdb_h" = xyes
33569then :
33570  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33571
33572fi
33573ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
33574#ifdef HAVE_SYS_TYPES_H
33575#include <sys/types.h>
33576#endif
33577#ifdef HAVE_SYS_TIME_H
33578#include <sys/time.h>
33579#endif
33580#ifdef HAVE_SYS_SELECT_H
33581#include <sys/select.h>
33582#elif defined(HAVE_UNISTD_H)
33583#include <unistd.h>
33584#endif
33585#ifdef HAVE_SYS_SOCKET_H
33586#include <sys/socket.h>
33587#endif
33588#ifdef HAVE_NETINET_IN_H
33589#include <netinet/in.h>
33590#endif
33591#ifdef HAVE_NETINET_IN6_H
33592#include <netinet/in6.h>
33593#endif
33594#ifdef HAVE_SYS_UN_H
33595#include <sys/un.h>
33596#endif
33597
33598
33599"
33600if test "x$ac_cv_header_sys_sockio_h" = xyes
33601then :
33602  printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
33603
33604fi
33605ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
33606#ifdef HAVE_SYS_TYPES_H
33607#include <sys/types.h>
33608#endif
33609#ifdef HAVE_SYS_TIME_H
33610#include <sys/time.h>
33611#endif
33612#ifdef HAVE_SYS_SELECT_H
33613#include <sys/select.h>
33614#elif defined(HAVE_UNISTD_H)
33615#include <unistd.h>
33616#endif
33617#ifdef HAVE_SYS_SOCKET_H
33618#include <sys/socket.h>
33619#endif
33620#ifdef HAVE_NETINET_IN_H
33621#include <netinet/in.h>
33622#endif
33623#ifdef HAVE_NETINET_IN6_H
33624#include <netinet/in6.h>
33625#endif
33626#ifdef HAVE_SYS_UN_H
33627#include <sys/un.h>
33628#endif
33629
33630
33631"
33632if test "x$ac_cv_header_sys_stat_h" = xyes
33633then :
33634  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33635
33636fi
33637ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33638#ifdef HAVE_SYS_TYPES_H
33639#include <sys/types.h>
33640#endif
33641#ifdef HAVE_SYS_TIME_H
33642#include <sys/time.h>
33643#endif
33644#ifdef HAVE_SYS_SELECT_H
33645#include <sys/select.h>
33646#elif defined(HAVE_UNISTD_H)
33647#include <unistd.h>
33648#endif
33649#ifdef HAVE_SYS_SOCKET_H
33650#include <sys/socket.h>
33651#endif
33652#ifdef HAVE_NETINET_IN_H
33653#include <netinet/in.h>
33654#endif
33655#ifdef HAVE_NETINET_IN6_H
33656#include <netinet/in6.h>
33657#endif
33658#ifdef HAVE_SYS_UN_H
33659#include <sys/un.h>
33660#endif
33661
33662
33663"
33664if test "x$ac_cv_header_sys_param_h" = xyes
33665then :
33666  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33667
33668fi
33669ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33670#ifdef HAVE_SYS_TYPES_H
33671#include <sys/types.h>
33672#endif
33673#ifdef HAVE_SYS_TIME_H
33674#include <sys/time.h>
33675#endif
33676#ifdef HAVE_SYS_SELECT_H
33677#include <sys/select.h>
33678#elif defined(HAVE_UNISTD_H)
33679#include <unistd.h>
33680#endif
33681#ifdef HAVE_SYS_SOCKET_H
33682#include <sys/socket.h>
33683#endif
33684#ifdef HAVE_NETINET_IN_H
33685#include <netinet/in.h>
33686#endif
33687#ifdef HAVE_NETINET_IN6_H
33688#include <netinet/in6.h>
33689#endif
33690#ifdef HAVE_SYS_UN_H
33691#include <sys/un.h>
33692#endif
33693
33694
33695"
33696if test "x$ac_cv_header_termios_h" = xyes
33697then :
33698  printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33699
33700fi
33701ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33702#ifdef HAVE_SYS_TYPES_H
33703#include <sys/types.h>
33704#endif
33705#ifdef HAVE_SYS_TIME_H
33706#include <sys/time.h>
33707#endif
33708#ifdef HAVE_SYS_SELECT_H
33709#include <sys/select.h>
33710#elif defined(HAVE_UNISTD_H)
33711#include <unistd.h>
33712#endif
33713#ifdef HAVE_SYS_SOCKET_H
33714#include <sys/socket.h>
33715#endif
33716#ifdef HAVE_NETINET_IN_H
33717#include <netinet/in.h>
33718#endif
33719#ifdef HAVE_NETINET_IN6_H
33720#include <netinet/in6.h>
33721#endif
33722#ifdef HAVE_SYS_UN_H
33723#include <sys/un.h>
33724#endif
33725
33726
33727"
33728if test "x$ac_cv_header_termio_h" = xyes
33729then :
33730  printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33731
33732fi
33733ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33734#ifdef HAVE_SYS_TYPES_H
33735#include <sys/types.h>
33736#endif
33737#ifdef HAVE_SYS_TIME_H
33738#include <sys/time.h>
33739#endif
33740#ifdef HAVE_SYS_SELECT_H
33741#include <sys/select.h>
33742#elif defined(HAVE_UNISTD_H)
33743#include <unistd.h>
33744#endif
33745#ifdef HAVE_SYS_SOCKET_H
33746#include <sys/socket.h>
33747#endif
33748#ifdef HAVE_NETINET_IN_H
33749#include <netinet/in.h>
33750#endif
33751#ifdef HAVE_NETINET_IN6_H
33752#include <netinet/in6.h>
33753#endif
33754#ifdef HAVE_SYS_UN_H
33755#include <sys/un.h>
33756#endif
33757
33758
33759"
33760if test "x$ac_cv_header_fcntl_h" = xyes
33761then :
33762  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33763
33764fi
33765ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33766#ifdef HAVE_SYS_TYPES_H
33767#include <sys/types.h>
33768#endif
33769#ifdef HAVE_SYS_TIME_H
33770#include <sys/time.h>
33771#endif
33772#ifdef HAVE_SYS_SELECT_H
33773#include <sys/select.h>
33774#elif defined(HAVE_UNISTD_H)
33775#include <unistd.h>
33776#endif
33777#ifdef HAVE_SYS_SOCKET_H
33778#include <sys/socket.h>
33779#endif
33780#ifdef HAVE_NETINET_IN_H
33781#include <netinet/in.h>
33782#endif
33783#ifdef HAVE_NETINET_IN6_H
33784#include <netinet/in6.h>
33785#endif
33786#ifdef HAVE_SYS_UN_H
33787#include <sys/un.h>
33788#endif
33789
33790
33791"
33792if test "x$ac_cv_header_io_h" = xyes
33793then :
33794  printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33795
33796fi
33797ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33798#ifdef HAVE_SYS_TYPES_H
33799#include <sys/types.h>
33800#endif
33801#ifdef HAVE_SYS_TIME_H
33802#include <sys/time.h>
33803#endif
33804#ifdef HAVE_SYS_SELECT_H
33805#include <sys/select.h>
33806#elif defined(HAVE_UNISTD_H)
33807#include <unistd.h>
33808#endif
33809#ifdef HAVE_SYS_SOCKET_H
33810#include <sys/socket.h>
33811#endif
33812#ifdef HAVE_NETINET_IN_H
33813#include <netinet/in.h>
33814#endif
33815#ifdef HAVE_NETINET_IN6_H
33816#include <netinet/in6.h>
33817#endif
33818#ifdef HAVE_SYS_UN_H
33819#include <sys/un.h>
33820#endif
33821
33822
33823"
33824if test "x$ac_cv_header_pwd_h" = xyes
33825then :
33826  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33827
33828fi
33829ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33830#ifdef HAVE_SYS_TYPES_H
33831#include <sys/types.h>
33832#endif
33833#ifdef HAVE_SYS_TIME_H
33834#include <sys/time.h>
33835#endif
33836#ifdef HAVE_SYS_SELECT_H
33837#include <sys/select.h>
33838#elif defined(HAVE_UNISTD_H)
33839#include <unistd.h>
33840#endif
33841#ifdef HAVE_SYS_SOCKET_H
33842#include <sys/socket.h>
33843#endif
33844#ifdef HAVE_NETINET_IN_H
33845#include <netinet/in.h>
33846#endif
33847#ifdef HAVE_NETINET_IN6_H
33848#include <netinet/in6.h>
33849#endif
33850#ifdef HAVE_SYS_UN_H
33851#include <sys/un.h>
33852#endif
33853
33854
33855"
33856if test "x$ac_cv_header_utime_h" = xyes
33857then :
33858  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33859
33860fi
33861ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33862#ifdef HAVE_SYS_TYPES_H
33863#include <sys/types.h>
33864#endif
33865#ifdef HAVE_SYS_TIME_H
33866#include <sys/time.h>
33867#endif
33868#ifdef HAVE_SYS_SELECT_H
33869#include <sys/select.h>
33870#elif defined(HAVE_UNISTD_H)
33871#include <unistd.h>
33872#endif
33873#ifdef HAVE_SYS_SOCKET_H
33874#include <sys/socket.h>
33875#endif
33876#ifdef HAVE_NETINET_IN_H
33877#include <netinet/in.h>
33878#endif
33879#ifdef HAVE_NETINET_IN6_H
33880#include <netinet/in6.h>
33881#endif
33882#ifdef HAVE_SYS_UN_H
33883#include <sys/un.h>
33884#endif
33885
33886
33887"
33888if test "x$ac_cv_header_sys_utime_h" = xyes
33889then :
33890  printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33891
33892fi
33893ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33894#ifdef HAVE_SYS_TYPES_H
33895#include <sys/types.h>
33896#endif
33897#ifdef HAVE_SYS_TIME_H
33898#include <sys/time.h>
33899#endif
33900#ifdef HAVE_SYS_SELECT_H
33901#include <sys/select.h>
33902#elif defined(HAVE_UNISTD_H)
33903#include <unistd.h>
33904#endif
33905#ifdef HAVE_SYS_SOCKET_H
33906#include <sys/socket.h>
33907#endif
33908#ifdef HAVE_NETINET_IN_H
33909#include <netinet/in.h>
33910#endif
33911#ifdef HAVE_NETINET_IN6_H
33912#include <netinet/in6.h>
33913#endif
33914#ifdef HAVE_SYS_UN_H
33915#include <sys/un.h>
33916#endif
33917
33918
33919"
33920if test "x$ac_cv_header_sys_poll_h" = xyes
33921then :
33922  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33923
33924fi
33925ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33926#ifdef HAVE_SYS_TYPES_H
33927#include <sys/types.h>
33928#endif
33929#ifdef HAVE_SYS_TIME_H
33930#include <sys/time.h>
33931#endif
33932#ifdef HAVE_SYS_SELECT_H
33933#include <sys/select.h>
33934#elif defined(HAVE_UNISTD_H)
33935#include <unistd.h>
33936#endif
33937#ifdef HAVE_SYS_SOCKET_H
33938#include <sys/socket.h>
33939#endif
33940#ifdef HAVE_NETINET_IN_H
33941#include <netinet/in.h>
33942#endif
33943#ifdef HAVE_NETINET_IN6_H
33944#include <netinet/in6.h>
33945#endif
33946#ifdef HAVE_SYS_UN_H
33947#include <sys/un.h>
33948#endif
33949
33950
33951"
33952if test "x$ac_cv_header_poll_h" = xyes
33953then :
33954  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33955
33956fi
33957ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33958#ifdef HAVE_SYS_TYPES_H
33959#include <sys/types.h>
33960#endif
33961#ifdef HAVE_SYS_TIME_H
33962#include <sys/time.h>
33963#endif
33964#ifdef HAVE_SYS_SELECT_H
33965#include <sys/select.h>
33966#elif defined(HAVE_UNISTD_H)
33967#include <unistd.h>
33968#endif
33969#ifdef HAVE_SYS_SOCKET_H
33970#include <sys/socket.h>
33971#endif
33972#ifdef HAVE_NETINET_IN_H
33973#include <netinet/in.h>
33974#endif
33975#ifdef HAVE_NETINET_IN6_H
33976#include <netinet/in6.h>
33977#endif
33978#ifdef HAVE_SYS_UN_H
33979#include <sys/un.h>
33980#endif
33981
33982
33983"
33984if test "x$ac_cv_header_socket_h" = xyes
33985then :
33986  printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33987
33988fi
33989ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33990#ifdef HAVE_SYS_TYPES_H
33991#include <sys/types.h>
33992#endif
33993#ifdef HAVE_SYS_TIME_H
33994#include <sys/time.h>
33995#endif
33996#ifdef HAVE_SYS_SELECT_H
33997#include <sys/select.h>
33998#elif defined(HAVE_UNISTD_H)
33999#include <unistd.h>
34000#endif
34001#ifdef HAVE_SYS_SOCKET_H
34002#include <sys/socket.h>
34003#endif
34004#ifdef HAVE_NETINET_IN_H
34005#include <netinet/in.h>
34006#endif
34007#ifdef HAVE_NETINET_IN6_H
34008#include <netinet/in6.h>
34009#endif
34010#ifdef HAVE_SYS_UN_H
34011#include <sys/un.h>
34012#endif
34013
34014
34015"
34016if test "x$ac_cv_header_sys_resource_h" = xyes
34017then :
34018  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
34019
34020fi
34021ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
34022#ifdef HAVE_SYS_TYPES_H
34023#include <sys/types.h>
34024#endif
34025#ifdef HAVE_SYS_TIME_H
34026#include <sys/time.h>
34027#endif
34028#ifdef HAVE_SYS_SELECT_H
34029#include <sys/select.h>
34030#elif defined(HAVE_UNISTD_H)
34031#include <unistd.h>
34032#endif
34033#ifdef HAVE_SYS_SOCKET_H
34034#include <sys/socket.h>
34035#endif
34036#ifdef HAVE_NETINET_IN_H
34037#include <netinet/in.h>
34038#endif
34039#ifdef HAVE_NETINET_IN6_H
34040#include <netinet/in6.h>
34041#endif
34042#ifdef HAVE_SYS_UN_H
34043#include <sys/un.h>
34044#endif
34045
34046
34047"
34048if test "x$ac_cv_header_libgen_h" = xyes
34049then :
34050  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
34051
34052fi
34053ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
34054#ifdef HAVE_SYS_TYPES_H
34055#include <sys/types.h>
34056#endif
34057#ifdef HAVE_SYS_TIME_H
34058#include <sys/time.h>
34059#endif
34060#ifdef HAVE_SYS_SELECT_H
34061#include <sys/select.h>
34062#elif defined(HAVE_UNISTD_H)
34063#include <unistd.h>
34064#endif
34065#ifdef HAVE_SYS_SOCKET_H
34066#include <sys/socket.h>
34067#endif
34068#ifdef HAVE_NETINET_IN_H
34069#include <netinet/in.h>
34070#endif
34071#ifdef HAVE_NETINET_IN6_H
34072#include <netinet/in6.h>
34073#endif
34074#ifdef HAVE_SYS_UN_H
34075#include <sys/un.h>
34076#endif
34077
34078
34079"
34080if test "x$ac_cv_header_locale_h" = xyes
34081then :
34082  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
34083
34084fi
34085ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
34086#ifdef HAVE_SYS_TYPES_H
34087#include <sys/types.h>
34088#endif
34089#ifdef HAVE_SYS_TIME_H
34090#include <sys/time.h>
34091#endif
34092#ifdef HAVE_SYS_SELECT_H
34093#include <sys/select.h>
34094#elif defined(HAVE_UNISTD_H)
34095#include <unistd.h>
34096#endif
34097#ifdef HAVE_SYS_SOCKET_H
34098#include <sys/socket.h>
34099#endif
34100#ifdef HAVE_NETINET_IN_H
34101#include <netinet/in.h>
34102#endif
34103#ifdef HAVE_NETINET_IN6_H
34104#include <netinet/in6.h>
34105#endif
34106#ifdef HAVE_SYS_UN_H
34107#include <sys/un.h>
34108#endif
34109
34110
34111"
34112if test "x$ac_cv_header_stdbool_h" = xyes
34113then :
34114  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
34115
34116fi
34117ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
34118#ifdef HAVE_SYS_TYPES_H
34119#include <sys/types.h>
34120#endif
34121#ifdef HAVE_SYS_TIME_H
34122#include <sys/time.h>
34123#endif
34124#ifdef HAVE_SYS_SELECT_H
34125#include <sys/select.h>
34126#elif defined(HAVE_UNISTD_H)
34127#include <unistd.h>
34128#endif
34129#ifdef HAVE_SYS_SOCKET_H
34130#include <sys/socket.h>
34131#endif
34132#ifdef HAVE_NETINET_IN_H
34133#include <netinet/in.h>
34134#endif
34135#ifdef HAVE_NETINET_IN6_H
34136#include <netinet/in6.h>
34137#endif
34138#ifdef HAVE_SYS_UN_H
34139#include <sys/un.h>
34140#endif
34141
34142
34143"
34144if test "x$ac_cv_header_sys_filio_h" = xyes
34145then :
34146  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
34147
34148fi
34149ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
34150#ifdef HAVE_SYS_TYPES_H
34151#include <sys/types.h>
34152#endif
34153#ifdef HAVE_SYS_TIME_H
34154#include <sys/time.h>
34155#endif
34156#ifdef HAVE_SYS_SELECT_H
34157#include <sys/select.h>
34158#elif defined(HAVE_UNISTD_H)
34159#include <unistd.h>
34160#endif
34161#ifdef HAVE_SYS_SOCKET_H
34162#include <sys/socket.h>
34163#endif
34164#ifdef HAVE_NETINET_IN_H
34165#include <netinet/in.h>
34166#endif
34167#ifdef HAVE_NETINET_IN6_H
34168#include <netinet/in6.h>
34169#endif
34170#ifdef HAVE_SYS_UN_H
34171#include <sys/un.h>
34172#endif
34173
34174
34175"
34176if test "x$ac_cv_header_sys_wait_h" = xyes
34177then :
34178  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
34179
34180fi
34181ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
34182#ifdef HAVE_SYS_TYPES_H
34183#include <sys/types.h>
34184#endif
34185#ifdef HAVE_SYS_TIME_H
34186#include <sys/time.h>
34187#endif
34188#ifdef HAVE_SYS_SELECT_H
34189#include <sys/select.h>
34190#elif defined(HAVE_UNISTD_H)
34191#include <unistd.h>
34192#endif
34193#ifdef HAVE_SYS_SOCKET_H
34194#include <sys/socket.h>
34195#endif
34196#ifdef HAVE_NETINET_IN_H
34197#include <netinet/in.h>
34198#endif
34199#ifdef HAVE_NETINET_IN6_H
34200#include <netinet/in6.h>
34201#endif
34202#ifdef HAVE_SYS_UN_H
34203#include <sys/un.h>
34204#endif
34205
34206
34207"
34208if test "x$ac_cv_header_setjmp_h" = xyes
34209then :
34210  printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
34211
34212fi
34213
34214
34215
34216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
34217printf %s "checking for an ANSI C-conforming const... " >&6; }
34218if test ${ac_cv_c_const+y}
34219then :
34220  printf %s "(cached) " >&6
34221else $as_nop
34222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34223/* end confdefs.h.  */
34224
34225int main (void)
34226{
34227
34228#ifndef __cplusplus
34229  /* Ultrix mips cc rejects this sort of thing.  */
34230  typedef int charset[2];
34231  const charset cs = { 0, 0 };
34232  /* SunOS 4.1.1 cc rejects this.  */
34233  char const *const *pcpcc;
34234  char **ppc;
34235  /* NEC SVR4.0.2 mips cc rejects this.  */
34236  struct point {int x, y;};
34237  static struct point const zero = {0,0};
34238  /* IBM XL C 1.02.0.0 rejects this.
34239     It does not let you subtract one const X* pointer from another in
34240     an arm of an if-expression whose if-part is not a constant
34241     expression */
34242  const char *g = "string";
34243  pcpcc = &g + (g ? g-g : 0);
34244  /* HPUX 7.0 cc rejects these. */
34245  ++pcpcc;
34246  ppc = (char**) pcpcc;
34247  pcpcc = (char const *const *) ppc;
34248  { /* SCO 3.2v4 cc rejects this sort of thing.  */
34249    char tx;
34250    char *t = &tx;
34251    char const *s = 0 ? (char *) 0 : (char const *) 0;
34252
34253    *t++ = 0;
34254    if (s) return 0;
34255  }
34256  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34257    int x[] = {25, 17};
34258    const int *foo = &x[0];
34259    ++foo;
34260  }
34261  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34262    typedef const int *iptr;
34263    iptr p = 0;
34264    ++p;
34265  }
34266  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
34267       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34268    struct s { int j; const int *ap[3]; } bx;
34269    struct s *b = &bx; b->j = 5;
34270  }
34271  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34272    const int foo = 10;
34273    if (!foo) return 0;
34274  }
34275  return !cs[0] && !zero.x;
34276#endif
34277
34278 ;
34279 return 0;
34280}
34281_ACEOF
34282if ac_fn_c_try_compile "$LINENO"
34283then :
34284  ac_cv_c_const=yes
34285else $as_nop
34286  ac_cv_c_const=no
34287fi
34288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34289fi
34290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
34291printf "%s\n" "$ac_cv_c_const" >&6; }
34292if test $ac_cv_c_const = no; then
34293
34294printf "%s\n" "#define const /**/" >>confdefs.h
34295
34296fi
34297
34298ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
34299if test "x$ac_cv_type_size_t" = xyes
34300then :
34301
34302else $as_nop
34303
34304printf "%s\n" "#define size_t unsigned int" >>confdefs.h
34305
34306fi
34307
34308
34309
34310    ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34311if test "x$ac_cv_header_sys_types_h" = xyes
34312then :
34313  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34314
34315fi
34316ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
34317if test "x$ac_cv_header_sys_time_h" = xyes
34318then :
34319  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
34320
34321fi
34322ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34323if test "x$ac_cv_header_sys_socket_h" = xyes
34324then :
34325  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34326
34327fi
34328
34329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
34330printf %s "checking for struct timeval... " >&6; }
34331if test ${curl_cv_struct_timeval+y}
34332then :
34333  printf %s "(cached) " >&6
34334else $as_nop
34335
34336    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34337/* end confdefs.h.  */
34338
34339
34340#undef inline
34341#ifdef _WIN32
34342#ifndef WIN32_LEAN_AND_MEAN
34343#define WIN32_LEAN_AND_MEAN
34344#endif
34345#include <winsock2.h>
34346#endif
34347#ifdef HAVE_SYS_TYPES_H
34348#include <sys/types.h>
34349#endif
34350#ifdef HAVE_SYS_TIME_H
34351#include <sys/time.h>
34352#endif
34353#include <time.h>
34354#ifdef HAVE_SYS_SOCKET_H
34355#include <sys/socket.h>
34356#endif
34357
34358int main (void)
34359{
34360
34361        struct timeval ts;
34362        ts.tv_sec  = 0;
34363        ts.tv_usec = 0;
34364
34365 ;
34366 return 0;
34367}
34368
34369_ACEOF
34370if ac_fn_c_try_compile "$LINENO"
34371then :
34372
34373      curl_cv_struct_timeval="yes"
34374
34375else $as_nop
34376
34377      curl_cv_struct_timeval="no"
34378
34379fi
34380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34381
34382fi
34383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
34384printf "%s\n" "$curl_cv_struct_timeval" >&6; }
34385  case "$curl_cv_struct_timeval" in
34386    yes)
34387
34388printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
34389
34390      ;;
34391  esac
34392
34393
34394
34395    if test "x$cross_compiling" != xyes; then
34396
34397            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
34398printf %s "checking run-time libs availability... " >&6; }
34399
34400   case $host_os in
34401     darwin*)
34402      if test "$cross_compiling" = yes
34403then :
34404  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34405printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34406as_fn_error $? "cannot run test program while cross compiling
34407See \`config.log' for more details" "$LINENO" 5; }
34408else $as_nop
34409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34410/* end confdefs.h.  */
34411
34412int main()
34413{
34414  return 0;
34415}
34416
34417_ACEOF
34418if ac_fn_c_try_run "$LINENO"
34419then :
34420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34421printf "%s\n" "fine" >&6; }
34422else $as_nop
34423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34424printf "%s\n" "failed" >&6; }
34425    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34426
34427fi
34428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34429  conftest.$ac_objext conftest.beam conftest.$ac_ext
34430fi
34431
34432     ;;
34433     *)
34434      oldcc=$CC
34435      old=$LD_LIBRARY_PATH
34436      CC="sh ./run-compiler"
34437      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34438      export LD_LIBRARY_PATH
34439      if test "$cross_compiling" = yes
34440then :
34441  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34442printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34443as_fn_error $? "cannot run test program while cross compiling
34444See \`config.log' for more details" "$LINENO" 5; }
34445else $as_nop
34446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34447/* end confdefs.h.  */
34448
34449int main()
34450{
34451  return 0;
34452}
34453
34454_ACEOF
34455if ac_fn_c_try_run "$LINENO"
34456then :
34457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34458printf "%s\n" "fine" >&6; }
34459else $as_nop
34460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34461printf "%s\n" "failed" >&6; }
34462    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34463
34464fi
34465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34466  conftest.$ac_objext conftest.beam conftest.$ac_ext
34467fi
34468
34469      LD_LIBRARY_PATH=$old # restore
34470      CC=$oldcc
34471     ;;
34472   esac
34473
34474
34475      fi
34476
34477
34478
34479
34480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34481printf %s "checking size of size_t... " >&6; }
34482  r=0
34483    for typesize in 8 4 2 16 1; do
34484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34485/* end confdefs.h.  */
34486
34487#include <sys/types.h>
34488
34489
34490int main (void)
34491{
34492switch(0) {
34493       case 0:
34494       case (sizeof(size_t) == $typesize):;
34495     }
34496
34497 ;
34498 return 0;
34499}
34500_ACEOF
34501if ac_fn_c_try_compile "$LINENO"
34502then :
34503
34504       r=$typesize
34505else $as_nop
34506
34507       r=0
34508fi
34509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34510        if test $r -gt 0; then
34511      break;
34512    fi
34513  done
34514  if test $r -eq 0; then
34515    as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
34516  fi
34517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34518printf "%s\n" "$r" >&6; }
34519    tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
34520  eval "$tname=$r"
34521
34522
34523printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
34524
34525
34526
34527
34528
34529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34530printf %s "checking size of long... " >&6; }
34531  r=0
34532    for typesize in 8 4 2 16 1; do
34533     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34534/* end confdefs.h.  */
34535
34536#include <sys/types.h>
34537
34538
34539int main (void)
34540{
34541switch(0) {
34542       case 0:
34543       case (sizeof(long) == $typesize):;
34544     }
34545
34546 ;
34547 return 0;
34548}
34549_ACEOF
34550if ac_fn_c_try_compile "$LINENO"
34551then :
34552
34553       r=$typesize
34554else $as_nop
34555
34556       r=0
34557fi
34558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34559        if test $r -gt 0; then
34560      break;
34561    fi
34562  done
34563  if test $r -eq 0; then
34564    as_fn_error $? "Failed to find size of long" "$LINENO" 5
34565  fi
34566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34567printf "%s\n" "$r" >&6; }
34568    tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
34569  eval "$tname=$r"
34570
34571
34572printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
34573
34574
34575
34576
34577
34578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34579printf %s "checking size of int... " >&6; }
34580  r=0
34581    for typesize in 8 4 2 16 1; do
34582     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34583/* end confdefs.h.  */
34584
34585#include <sys/types.h>
34586
34587
34588int main (void)
34589{
34590switch(0) {
34591       case 0:
34592       case (sizeof(int) == $typesize):;
34593     }
34594
34595 ;
34596 return 0;
34597}
34598_ACEOF
34599if ac_fn_c_try_compile "$LINENO"
34600then :
34601
34602       r=$typesize
34603else $as_nop
34604
34605       r=0
34606fi
34607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34608        if test $r -gt 0; then
34609      break;
34610    fi
34611  done
34612  if test $r -eq 0; then
34613    as_fn_error $? "Failed to find size of int" "$LINENO" 5
34614  fi
34615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34616printf "%s\n" "$r" >&6; }
34617    tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
34618  eval "$tname=$r"
34619
34620
34621printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
34622
34623
34624
34625
34626
34627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34628printf %s "checking size of time_t... " >&6; }
34629  r=0
34630    for typesize in 8 4 2 16 1; do
34631     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34632/* end confdefs.h.  */
34633
34634#include <sys/types.h>
34635
34636
34637int main (void)
34638{
34639switch(0) {
34640       case 0:
34641       case (sizeof(time_t) == $typesize):;
34642     }
34643
34644 ;
34645 return 0;
34646}
34647_ACEOF
34648if ac_fn_c_try_compile "$LINENO"
34649then :
34650
34651       r=$typesize
34652else $as_nop
34653
34654       r=0
34655fi
34656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34657        if test $r -gt 0; then
34658      break;
34659    fi
34660  done
34661  if test $r -eq 0; then
34662    as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
34663  fi
34664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34665printf "%s\n" "$r" >&6; }
34666    tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
34667  eval "$tname=$r"
34668
34669
34670printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
34671
34672
34673
34674
34675
34676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34677printf %s "checking size of off_t... " >&6; }
34678  r=0
34679    for typesize in 8 4 2 16 1; do
34680     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34681/* end confdefs.h.  */
34682
34683#include <sys/types.h>
34684
34685
34686int main (void)
34687{
34688switch(0) {
34689       case 0:
34690       case (sizeof(off_t) == $typesize):;
34691     }
34692
34693 ;
34694 return 0;
34695}
34696_ACEOF
34697if ac_fn_c_try_compile "$LINENO"
34698then :
34699
34700       r=$typesize
34701else $as_nop
34702
34703       r=0
34704fi
34705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34706        if test $r -gt 0; then
34707      break;
34708    fi
34709  done
34710  if test $r -eq 0; then
34711    as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
34712  fi
34713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34714printf "%s\n" "$r" >&6; }
34715    tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
34716  eval "$tname=$r"
34717
34718
34719printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
34720
34721
34722
34723
34724o=$CPPFLAGS
34725CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34726
34727
34728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34729printf %s "checking size of curl_off_t... " >&6; }
34730  r=0
34731    for typesize in 8 4 2 16 1; do
34732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34733/* end confdefs.h.  */
34734
34735#include <sys/types.h>
34736
34737#include <curl/system.h>
34738
34739
34740int main (void)
34741{
34742switch(0) {
34743       case 0:
34744       case (sizeof(curl_off_t) == $typesize):;
34745     }
34746
34747 ;
34748 return 0;
34749}
34750_ACEOF
34751if ac_fn_c_try_compile "$LINENO"
34752then :
34753
34754       r=$typesize
34755else $as_nop
34756
34757       r=0
34758fi
34759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34760        if test $r -gt 0; then
34761      break;
34762    fi
34763  done
34764  if test $r -eq 0; then
34765    as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
34766  fi
34767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34768printf "%s\n" "$r" >&6; }
34769    tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
34770  eval "$tname=$r"
34771
34772
34773printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
34774
34775
34776
34777
34778
34779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_socket_t" >&5
34780printf %s "checking size of curl_socket_t... " >&6; }
34781  r=0
34782    for typesize in 8 4 2 16 1; do
34783     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34784/* end confdefs.h.  */
34785
34786#include <sys/types.h>
34787
34788#include <curl/curl.h>
34789
34790
34791int main (void)
34792{
34793switch(0) {
34794       case 0:
34795       case (sizeof(curl_socket_t) == $typesize):;
34796     }
34797
34798 ;
34799 return 0;
34800}
34801_ACEOF
34802if ac_fn_c_try_compile "$LINENO"
34803then :
34804
34805       r=$typesize
34806else $as_nop
34807
34808       r=0
34809fi
34810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34811        if test $r -gt 0; then
34812      break;
34813    fi
34814  done
34815  if test $r -eq 0; then
34816    as_fn_error $? "Failed to find size of curl_socket_t" "$LINENO" 5
34817  fi
34818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34819printf "%s\n" "$r" >&6; }
34820    tname=$(echo "ac_cv_sizeof_curl_socket_t" | tr A-Z a-z | tr " " "_")
34821  eval "$tname=$r"
34822
34823
34824printf "%s\n" "#define SIZEOF_CURL_SOCKET_T $r" >>confdefs.h
34825
34826
34827
34828CPPFLAGS=$o
34829
34830ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34831if test "x$ac_cv_type_long_long" = xyes
34832then :
34833
34834printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34835
34836   longlong="yes"
34837
34838fi
34839
34840
34841if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
34842  as_fn_error $? "64 bit curl_off_t is required" "$LINENO" 5
34843fi
34844
34845# check for ssize_t
34846ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34847if test "x$ac_cv_type_ssize_t" = xyes
34848then :
34849
34850else $as_nop
34851
34852printf "%s\n" "#define ssize_t int" >>confdefs.h
34853
34854fi
34855
34856
34857# check for bool type
34858ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34859#ifdef HAVE_SYS_TYPES_H
34860#include <sys/types.h>
34861#endif
34862#ifdef HAVE_STDBOOL_H
34863#include <stdbool.h>
34864#endif
34865
34866"
34867if test "x$ac_cv_type_bool" = xyes
34868then :
34869
34870
34871printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34872
34873
34874fi
34875
34876
34877# check for sa_family_t
34878ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34879#ifdef HAVE_SYS_SOCKET_H
34880#include <sys/socket.h>
34881#endif
34882
34883"
34884if test "x$ac_cv_type_sa_family_t" = xyes
34885then :
34886
34887printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34888
34889else $as_nop
34890
34891   # The windows name?
34892   ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34893#ifdef _WIN32
34894#ifndef WIN32_LEAN_AND_MEAN
34895#define WIN32_LEAN_AND_MEAN
34896#endif
34897#include <winsock2.h>
34898#endif
34899#ifdef HAVE_SYS_SOCKET_H
34900#include <sys/socket.h>
34901#endif
34902
34903"
34904if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34905then :
34906
34907printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34908
34909else $as_nop
34910
34911printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34912
34913fi
34914
34915
34916fi
34917
34918
34919# check for suseconds_t
34920ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34921#ifdef HAVE_SYS_TYPES_H
34922#include <sys/types.h>
34923#endif
34924#ifdef HAVE_SYS_TIME_H
34925#include <sys/time.h>
34926#endif
34927
34928"
34929if test "x$ac_cv_type_suseconds_t" = xyes
34930then :
34931
34932
34933printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34934
34935
34936fi
34937
34938
34939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34940printf %s "checking if time_t is unsigned... " >&6; }
34941
34942   case $host_os in
34943     darwin*)
34944      if test "$cross_compiling" = yes
34945then :
34946    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34947printf "%s\n" "no" >&6; }
34948
34949else $as_nop
34950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34951/* end confdefs.h.  */
34952
34953  #include <time.h>
34954  #include <limits.h>
34955  int main(void) {
34956    time_t t = -1;
34957    return (t < 0);
34958  }
34959
34960_ACEOF
34961if ac_fn_c_try_run "$LINENO"
34962then :
34963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34964printf "%s\n" "yes" >&6; }
34965
34966printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34967
34968
34969else $as_nop
34970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34971printf "%s\n" "no" >&6; }
34972
34973fi
34974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34975  conftest.$ac_objext conftest.beam conftest.$ac_ext
34976fi
34977
34978     ;;
34979     *)
34980      oldcc=$CC
34981      old=$LD_LIBRARY_PATH
34982      CC="sh ./run-compiler"
34983      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34984      export LD_LIBRARY_PATH
34985      if test "$cross_compiling" = yes
34986then :
34987    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34988printf "%s\n" "no" >&6; }
34989
34990else $as_nop
34991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34992/* end confdefs.h.  */
34993
34994  #include <time.h>
34995  #include <limits.h>
34996  int main(void) {
34997    time_t t = -1;
34998    return (t < 0);
34999  }
35000
35001_ACEOF
35002if ac_fn_c_try_run "$LINENO"
35003then :
35004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35005printf "%s\n" "yes" >&6; }
35006
35007printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
35008
35009
35010else $as_nop
35011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35012printf "%s\n" "no" >&6; }
35013
35014fi
35015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35016  conftest.$ac_objext conftest.beam conftest.$ac_ext
35017fi
35018
35019      LD_LIBRARY_PATH=$old # restore
35020      CC=$oldcc
35021     ;;
35022   esac
35023
35024
35025
35026  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
35027#undef inline
35028#ifdef _WIN32
35029#ifndef WIN32_LEAN_AND_MEAN
35030#define WIN32_LEAN_AND_MEAN
35031#endif
35032#include <winsock2.h>
35033#else
35034#ifdef HAVE_SYS_TYPES_H
35035#include <sys/types.h>
35036#endif
35037#ifdef HAVE_SYS_SOCKET_H
35038#include <sys/socket.h>
35039#endif
35040#ifdef HAVE_NETINET_IN_H
35041#include <netinet/in.h>
35042#endif
35043#ifdef HAVE_ARPA_INET_H
35044#include <arpa/inet.h>
35045#endif
35046#endif
35047
35048"
35049if test "x$ac_cv_type_in_addr_t" = xyes
35050then :
35051
35052else $as_nop
35053
35054        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
35055printf %s "checking for in_addr_t equivalent... " >&6; }
35056if test ${curl_cv_in_addr_t_equiv+y}
35057then :
35058  printf %s "(cached) " >&6
35059else $as_nop
35060
35061      curl_cv_in_addr_t_equiv="unknown"
35062      for t in "unsigned long" int size_t unsigned long; do
35063        if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
35064          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35065/* end confdefs.h.  */
35066
35067
35068#undef inline
35069#ifdef _WIN32
35070#ifndef WIN32_LEAN_AND_MEAN
35071#define WIN32_LEAN_AND_MEAN
35072#endif
35073#include <winsock2.h>
35074#else
35075#ifdef HAVE_SYS_TYPES_H
35076#include <sys/types.h>
35077#endif
35078#ifdef HAVE_SYS_SOCKET_H
35079#include <sys/socket.h>
35080#endif
35081#ifdef HAVE_NETINET_IN_H
35082#include <netinet/in.h>
35083#endif
35084#ifdef HAVE_ARPA_INET_H
35085#include <arpa/inet.h>
35086#endif
35087#endif
35088
35089int main (void)
35090{
35091
35092              $t data = inet_addr ("1.2.3.4");
35093
35094 ;
35095 return 0;
35096}
35097
35098_ACEOF
35099if ac_fn_c_try_link "$LINENO"
35100then :
35101
35102            curl_cv_in_addr_t_equiv="$t"
35103
35104fi
35105rm -f core conftest.err conftest.$ac_objext conftest.beam \
35106    conftest$ac_exeext conftest.$ac_ext
35107        fi
35108      done
35109
35110fi
35111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
35112printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
35113    case "$curl_cv_in_addr_t_equiv" in
35114      unknown)
35115        as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
35116        ;;
35117      *)
35118
35119printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
35120
35121        ;;
35122    esac
35123
35124fi
35125
35126
35127
35128
35129   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
35130#undef inline
35131#ifdef _WIN32
35132#ifndef WIN32_LEAN_AND_MEAN
35133#define WIN32_LEAN_AND_MEAN
35134#endif
35135#include <winsock2.h>
35136#else
35137#ifdef HAVE_SYS_TYPES_H
35138#include <sys/types.h>
35139#endif
35140#ifdef HAVE_SYS_SOCKET_H
35141#include <sys/socket.h>
35142#endif
35143#ifdef HAVE_NETINET_IN_H
35144#include <netinet/in.h>
35145#endif
35146#ifdef HAVE_ARPA_INET_H
35147#include <arpa/inet.h>
35148#endif
35149#endif
35150
35151"
35152if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
35153then :
35154
35155printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35156
35157fi
35158
35159
35160
35161
35162      ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
35163if test "x$ac_cv_header_sys_select_h" = xyes
35164then :
35165  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
35166
35167fi
35168ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35169if test "x$ac_cv_header_sys_socket_h" = xyes
35170then :
35171  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35172
35173fi
35174
35175  #
35176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
35177printf %s "checking for select... " >&6; }
35178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35179/* end confdefs.h.  */
35180
35181
35182#undef inline
35183#ifdef _WIN32
35184#ifndef WIN32_LEAN_AND_MEAN
35185#define WIN32_LEAN_AND_MEAN
35186#endif
35187#include <winsock2.h>
35188#endif
35189#ifdef HAVE_SYS_TYPES_H
35190#include <sys/types.h>
35191#endif
35192#ifdef HAVE_SYS_TIME_H
35193#include <sys/time.h>
35194#endif
35195#include <time.h>
35196#ifndef _WIN32
35197#ifdef HAVE_SYS_SELECT_H
35198#include <sys/select.h>
35199#elif defined(HAVE_UNISTD_H)
35200#include <unistd.h>
35201#endif
35202#ifdef HAVE_SYS_SOCKET_H
35203#include <sys/socket.h>
35204#endif
35205$curl_includes_bsdsocket
35206#endif
35207
35208int main (void)
35209{
35210
35211      select(0, 0, 0, 0, 0);
35212
35213 ;
35214 return 0;
35215}
35216
35217_ACEOF
35218if ac_fn_c_try_link "$LINENO"
35219then :
35220
35221    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35222printf "%s\n" "yes" >&6; }
35223    curl_cv_select="yes"
35224
35225else $as_nop
35226
35227    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35228printf "%s\n" "no" >&6; }
35229    curl_cv_select="no"
35230
35231fi
35232rm -f core conftest.err conftest.$ac_objext conftest.beam \
35233    conftest$ac_exeext conftest.$ac_ext
35234  #
35235  if test "$curl_cv_select" = "yes"; then
35236
35237printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
35238
35239    curl_cv_func_select="yes"
35240  fi
35241
35242
35243
35244      ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35245if test "x$ac_cv_header_sys_types_h" = xyes
35246then :
35247  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35248
35249fi
35250ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35251if test "x$ac_cv_header_sys_socket_h" = xyes
35252then :
35253  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35254
35255fi
35256
35257  #
35258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
35259printf %s "checking for recv... " >&6; }
35260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35261/* end confdefs.h.  */
35262
35263
35264#undef inline
35265#ifdef _WIN32
35266#ifndef WIN32_LEAN_AND_MEAN
35267#define WIN32_LEAN_AND_MEAN
35268#endif
35269#include <winsock2.h>
35270#else
35271$curl_includes_bsdsocket
35272#ifdef HAVE_SYS_TYPES_H
35273#include <sys/types.h>
35274#endif
35275#ifdef HAVE_SYS_SOCKET_H
35276#include <sys/socket.h>
35277#endif
35278#endif
35279
35280int main (void)
35281{
35282
35283      recv(0, 0, 0, 0);
35284
35285 ;
35286 return 0;
35287}
35288
35289_ACEOF
35290if ac_fn_c_try_link "$LINENO"
35291then :
35292
35293    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35294printf "%s\n" "yes" >&6; }
35295    curl_cv_recv="yes"
35296
35297else $as_nop
35298
35299    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35300printf "%s\n" "no" >&6; }
35301    curl_cv_recv="no"
35302
35303fi
35304rm -f core conftest.err conftest.$ac_objext conftest.beam \
35305    conftest$ac_exeext conftest.$ac_ext
35306  #
35307  if test "$curl_cv_recv" = "yes"; then
35308
35309printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
35310
35311      curl_cv_func_recv="yes"
35312  else
35313    as_fn_error $? "Unable to link function recv" "$LINENO" 5
35314  fi
35315
35316
35317      ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35318if test "x$ac_cv_header_sys_types_h" = xyes
35319then :
35320  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35321
35322fi
35323ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35324if test "x$ac_cv_header_sys_socket_h" = xyes
35325then :
35326  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35327
35328fi
35329
35330  #
35331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35332printf %s "checking for send... " >&6; }
35333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35334/* end confdefs.h.  */
35335
35336
35337#undef inline
35338#ifdef _WIN32
35339#ifndef WIN32_LEAN_AND_MEAN
35340#define WIN32_LEAN_AND_MEAN
35341#endif
35342#include <winsock2.h>
35343#else
35344$curl_includes_bsdsocket
35345#ifdef HAVE_SYS_TYPES_H
35346#include <sys/types.h>
35347#endif
35348#ifdef HAVE_SYS_SOCKET_H
35349#include <sys/socket.h>
35350#endif
35351#endif
35352
35353int main (void)
35354{
35355
35356      send(0, 0, 0, 0);
35357
35358 ;
35359 return 0;
35360}
35361
35362_ACEOF
35363if ac_fn_c_try_link "$LINENO"
35364then :
35365
35366    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35367printf "%s\n" "yes" >&6; }
35368    curl_cv_send="yes"
35369
35370else $as_nop
35371
35372    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35373printf "%s\n" "no" >&6; }
35374    curl_cv_send="no"
35375
35376fi
35377rm -f core conftest.err conftest.$ac_objext conftest.beam \
35378    conftest$ac_exeext conftest.$ac_ext
35379  #
35380  if test "$curl_cv_send" = "yes"; then
35381
35382printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35383
35384    curl_cv_func_send="yes"
35385  else
35386    as_fn_error $? "Unable to link function send" "$LINENO" 5
35387  fi
35388
35389
35390  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35391if test "x$ac_cv_header_sys_types_h" = xyes
35392then :
35393  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35394
35395fi
35396ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35397if test "x$ac_cv_header_sys_socket_h" = xyes
35398then :
35399  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35400
35401fi
35402
35403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35404printf %s "checking for MSG_NOSIGNAL... " >&6; }
35405if test ${curl_cv_msg_nosignal+y}
35406then :
35407  printf %s "(cached) " >&6
35408else $as_nop
35409
35410    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35411/* end confdefs.h.  */
35412
35413
35414#undef inline
35415#ifdef _WIN32
35416#ifndef WIN32_LEAN_AND_MEAN
35417#define WIN32_LEAN_AND_MEAN
35418#endif
35419#include <winsock2.h>
35420#else
35421#ifdef HAVE_SYS_TYPES_H
35422#include <sys/types.h>
35423#endif
35424#ifdef HAVE_SYS_SOCKET_H
35425#include <sys/socket.h>
35426#endif
35427#endif
35428
35429int main (void)
35430{
35431
35432        int flag=MSG_NOSIGNAL;
35433
35434 ;
35435 return 0;
35436}
35437
35438_ACEOF
35439if ac_fn_c_try_compile "$LINENO"
35440then :
35441
35442      curl_cv_msg_nosignal="yes"
35443
35444else $as_nop
35445
35446      curl_cv_msg_nosignal="no"
35447
35448fi
35449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35450
35451fi
35452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35453printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35454  case "$curl_cv_msg_nosignal" in
35455    yes)
35456
35457printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35458
35459      ;;
35460  esac
35461
35462
35463
35464curl_includes_unistd="\
35465/* includes start */
35466#ifdef HAVE_SYS_TYPES_H
35467#  include <sys/types.h>
35468#endif
35469#ifdef HAVE_UNISTD_H
35470#  include <unistd.h>
35471#endif
35472/* includes end */"
35473  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35474"
35475if test "x$ac_cv_header_sys_types_h" = xyes
35476then :
35477  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35478
35479fi
35480ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35481"
35482if test "x$ac_cv_header_unistd_h" = xyes
35483then :
35484  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35485
35486fi
35487
35488
35489
35490    #
35491  tst_links_alarm="unknown"
35492  tst_proto_alarm="unknown"
35493  tst_compi_alarm="unknown"
35494  tst_allow_alarm="unknown"
35495  #
35496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35497printf %s "checking if alarm can be linked... " >&6; }
35498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35499/* end confdefs.h.  */
35500
35501
35502#define alarm innocuous_alarm
35503#ifdef __STDC__
35504# include <limits.h>
35505#else
35506# include <assert.h>
35507#endif
35508#undef alarm
35509#ifdef __cplusplus
35510extern "C"
35511#endif
35512char alarm ();
35513#if defined __stub_alarm || defined __stub___alarm
35514choke me
35515#endif
35516
35517int main (void)
35518{
35519return alarm ();
35520 ;
35521 return 0;
35522}
35523
35524_ACEOF
35525if ac_fn_c_try_link "$LINENO"
35526then :
35527
35528    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35529printf "%s\n" "yes" >&6; }
35530    tst_links_alarm="yes"
35531
35532else $as_nop
35533
35534    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35535printf "%s\n" "no" >&6; }
35536    tst_links_alarm="no"
35537
35538fi
35539rm -f core conftest.err conftest.$ac_objext conftest.beam \
35540    conftest$ac_exeext conftest.$ac_ext
35541  #
35542  if test "$tst_links_alarm" = "yes"; then
35543    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35544printf %s "checking if alarm is prototyped... " >&6; }
35545    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35546/* end confdefs.h.  */
35547
35548      $curl_includes_unistd
35549
35550_ACEOF
35551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35552  $EGREP "alarm" >/dev/null 2>&1
35553then :
35554
35555      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35556printf "%s\n" "yes" >&6; }
35557      tst_proto_alarm="yes"
35558
35559else $as_nop
35560
35561      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35562printf "%s\n" "no" >&6; }
35563      tst_proto_alarm="no"
35564
35565fi
35566rm -rf conftest*
35567
35568  fi
35569  #
35570  if test "$tst_proto_alarm" = "yes"; then
35571    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35572printf %s "checking if alarm is compilable... " >&6; }
35573    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35574/* end confdefs.h.  */
35575
35576
35577        $curl_includes_unistd
35578
35579int main (void)
35580{
35581
35582        if(0 != alarm(0))
35583          return 1;
35584
35585 ;
35586 return 0;
35587}
35588
35589_ACEOF
35590if ac_fn_c_try_compile "$LINENO"
35591then :
35592
35593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35594printf "%s\n" "yes" >&6; }
35595      tst_compi_alarm="yes"
35596
35597else $as_nop
35598
35599      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35600printf "%s\n" "no" >&6; }
35601      tst_compi_alarm="no"
35602
35603fi
35604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35605  fi
35606  #
35607  if test "$tst_compi_alarm" = "yes"; then
35608    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35609printf %s "checking if alarm usage allowed... " >&6; }
35610    if test "x$curl_disallow_alarm" != "xyes"; then
35611      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35612printf "%s\n" "yes" >&6; }
35613      tst_allow_alarm="yes"
35614    else
35615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35616printf "%s\n" "no" >&6; }
35617      tst_allow_alarm="no"
35618    fi
35619  fi
35620  #
35621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35622printf %s "checking if alarm might be used... " >&6; }
35623  if test "$tst_links_alarm" = "yes" &&
35624     test "$tst_proto_alarm" = "yes" &&
35625     test "$tst_compi_alarm" = "yes" &&
35626     test "$tst_allow_alarm" = "yes"; then
35627    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35628printf "%s\n" "yes" >&6; }
35629
35630printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35631
35632    curl_cv_func_alarm="yes"
35633  else
35634    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35635printf "%s\n" "no" >&6; }
35636    curl_cv_func_alarm="no"
35637  fi
35638
35639
35640curl_includes_string="\
35641/* includes start */
35642#ifdef HAVE_SYS_TYPES_H
35643#  include <sys/types.h>
35644#endif
35645#include <string.h>
35646#ifdef HAVE_STRINGS_H
35647#  include <strings.h>
35648#endif
35649/* includes end */"
35650  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35651"
35652if test "x$ac_cv_header_sys_types_h" = xyes
35653then :
35654  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35655
35656fi
35657ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35658"
35659if test "x$ac_cv_header_strings_h" = xyes
35660then :
35661  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35662
35663fi
35664
35665
35666
35667curl_includes_libgen="\
35668/* includes start */
35669#ifdef HAVE_SYS_TYPES_H
35670#  include <sys/types.h>
35671#endif
35672#ifdef HAVE_LIBGEN_H
35673#  include <libgen.h>
35674#endif
35675/* includes end */"
35676  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35677"
35678if test "x$ac_cv_header_sys_types_h" = xyes
35679then :
35680  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35681
35682fi
35683ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35684"
35685if test "x$ac_cv_header_libgen_h" = xyes
35686then :
35687  printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35688
35689fi
35690
35691
35692
35693        #
35694  tst_links_basename="unknown"
35695  tst_proto_basename="unknown"
35696  tst_compi_basename="unknown"
35697  tst_allow_basename="unknown"
35698  #
35699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35700printf %s "checking if basename can be linked... " >&6; }
35701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35702/* end confdefs.h.  */
35703
35704
35705#define basename innocuous_basename
35706#ifdef __STDC__
35707# include <limits.h>
35708#else
35709# include <assert.h>
35710#endif
35711#undef basename
35712#ifdef __cplusplus
35713extern "C"
35714#endif
35715char basename ();
35716#if defined __stub_basename || defined __stub___basename
35717choke me
35718#endif
35719
35720int main (void)
35721{
35722return basename ();
35723 ;
35724 return 0;
35725}
35726
35727_ACEOF
35728if ac_fn_c_try_link "$LINENO"
35729then :
35730
35731    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35732printf "%s\n" "yes" >&6; }
35733    tst_links_basename="yes"
35734
35735else $as_nop
35736
35737    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35738printf "%s\n" "no" >&6; }
35739    tst_links_basename="no"
35740
35741fi
35742rm -f core conftest.err conftest.$ac_objext conftest.beam \
35743    conftest$ac_exeext conftest.$ac_ext
35744  #
35745  if test "$tst_links_basename" = "yes"; then
35746    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35747printf %s "checking if basename is prototyped... " >&6; }
35748    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35749/* end confdefs.h.  */
35750
35751      $curl_includes_string
35752      $curl_includes_libgen
35753      $curl_includes_unistd
35754
35755_ACEOF
35756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35757  $EGREP "basename" >/dev/null 2>&1
35758then :
35759
35760      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35761printf "%s\n" "yes" >&6; }
35762      tst_proto_basename="yes"
35763
35764else $as_nop
35765
35766      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35767printf "%s\n" "no" >&6; }
35768      tst_proto_basename="no"
35769
35770fi
35771rm -rf conftest*
35772
35773  fi
35774  #
35775  if test "$tst_proto_basename" = "yes"; then
35776    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35777printf %s "checking if basename is compilable... " >&6; }
35778    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35779/* end confdefs.h.  */
35780
35781
35782        $curl_includes_string
35783        $curl_includes_libgen
35784        $curl_includes_unistd
35785
35786int main (void)
35787{
35788
35789        if(0 != basename(0))
35790          return 1;
35791
35792 ;
35793 return 0;
35794}
35795
35796_ACEOF
35797if ac_fn_c_try_compile "$LINENO"
35798then :
35799
35800      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35801printf "%s\n" "yes" >&6; }
35802      tst_compi_basename="yes"
35803
35804else $as_nop
35805
35806      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35807printf "%s\n" "no" >&6; }
35808      tst_compi_basename="no"
35809
35810fi
35811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35812  fi
35813  #
35814  if test "$tst_compi_basename" = "yes"; then
35815    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35816printf %s "checking if basename usage allowed... " >&6; }
35817    if test "x$curl_disallow_basename" != "xyes"; then
35818      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35819printf "%s\n" "yes" >&6; }
35820      tst_allow_basename="yes"
35821    else
35822      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35823printf "%s\n" "no" >&6; }
35824      tst_allow_basename="no"
35825    fi
35826  fi
35827  #
35828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35829printf %s "checking if basename might be used... " >&6; }
35830  if test "$tst_links_basename" = "yes" &&
35831     test "$tst_proto_basename" = "yes" &&
35832     test "$tst_compi_basename" = "yes" &&
35833     test "$tst_allow_basename" = "yes"; then
35834    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35835printf "%s\n" "yes" >&6; }
35836
35837printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35838
35839    curl_cv_func_basename="yes"
35840  else
35841    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35842printf "%s\n" "no" >&6; }
35843    curl_cv_func_basename="no"
35844  fi
35845
35846
35847curl_includes_socket="\
35848/* includes start */
35849#ifdef HAVE_SYS_TYPES_H
35850#  include <sys/types.h>
35851#endif
35852#ifdef HAVE_SOCKET_H
35853#  include <socket.h>
35854#endif
35855/* includes end */"
35856  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35857"
35858if test "x$ac_cv_header_sys_types_h" = xyes
35859then :
35860  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35861
35862fi
35863ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35864"
35865if test "x$ac_cv_header_socket_h" = xyes
35866then :
35867  printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35868
35869fi
35870
35871
35872
35873      #
35874  tst_links_closesocket="unknown"
35875  tst_proto_closesocket="unknown"
35876  tst_compi_closesocket="unknown"
35877  tst_allow_closesocket="unknown"
35878  #
35879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35880printf %s "checking if closesocket can be linked... " >&6; }
35881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35882/* end confdefs.h.  */
35883
35884
35885      $curl_includes_winsock2
35886      $curl_includes_socket
35887
35888int main (void)
35889{
35890
35891      if(0 != closesocket(0))
35892        return 1;
35893
35894 ;
35895 return 0;
35896}
35897
35898_ACEOF
35899if ac_fn_c_try_link "$LINENO"
35900then :
35901
35902    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35903printf "%s\n" "yes" >&6; }
35904    tst_links_closesocket="yes"
35905
35906else $as_nop
35907
35908    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35909printf "%s\n" "no" >&6; }
35910    tst_links_closesocket="no"
35911
35912fi
35913rm -f core conftest.err conftest.$ac_objext conftest.beam \
35914    conftest$ac_exeext conftest.$ac_ext
35915  #
35916  if test "$tst_links_closesocket" = "yes"; then
35917    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35918printf %s "checking if closesocket is prototyped... " >&6; }
35919    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35920/* end confdefs.h.  */
35921
35922      $curl_includes_winsock2
35923      $curl_includes_socket
35924
35925_ACEOF
35926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35927  $EGREP "closesocket" >/dev/null 2>&1
35928then :
35929
35930      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35931printf "%s\n" "yes" >&6; }
35932      tst_proto_closesocket="yes"
35933
35934else $as_nop
35935
35936      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35937printf "%s\n" "no" >&6; }
35938      tst_proto_closesocket="no"
35939
35940fi
35941rm -rf conftest*
35942
35943  fi
35944  #
35945  if test "$tst_proto_closesocket" = "yes"; then
35946    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
35947printf %s "checking if closesocket is compilable... " >&6; }
35948    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35949/* end confdefs.h.  */
35950
35951
35952        $curl_includes_winsock2
35953        $curl_includes_socket
35954
35955int main (void)
35956{
35957
35958        if(0 != closesocket(0))
35959          return 1;
35960
35961 ;
35962 return 0;
35963}
35964
35965_ACEOF
35966if ac_fn_c_try_compile "$LINENO"
35967then :
35968
35969      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35970printf "%s\n" "yes" >&6; }
35971      tst_compi_closesocket="yes"
35972
35973else $as_nop
35974
35975      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35976printf "%s\n" "no" >&6; }
35977      tst_compi_closesocket="no"
35978
35979fi
35980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35981  fi
35982  #
35983  if test "$tst_compi_closesocket" = "yes"; then
35984    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
35985printf %s "checking if closesocket usage allowed... " >&6; }
35986    if test "x$curl_disallow_closesocket" != "xyes"; then
35987      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35988printf "%s\n" "yes" >&6; }
35989      tst_allow_closesocket="yes"
35990    else
35991      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35992printf "%s\n" "no" >&6; }
35993      tst_allow_closesocket="no"
35994    fi
35995  fi
35996  #
35997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
35998printf %s "checking if closesocket might be used... " >&6; }
35999  if test "$tst_links_closesocket" = "yes" &&
36000     test "$tst_proto_closesocket" = "yes" &&
36001     test "$tst_compi_closesocket" = "yes" &&
36002     test "$tst_allow_closesocket" = "yes"; then
36003    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36004printf "%s\n" "yes" >&6; }
36005
36006printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
36007
36008    curl_cv_func_closesocket="yes"
36009  else
36010    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36011printf "%s\n" "no" >&6; }
36012    curl_cv_func_closesocket="no"
36013  fi
36014
36015
36016curl_includes_sys_socket="\
36017/* includes start */
36018#ifdef HAVE_SYS_TYPES_H
36019#  include <sys/types.h>
36020#endif
36021#ifdef HAVE_SYS_SOCKET_H
36022#  include <sys/socket.h>
36023#endif
36024/* includes end */"
36025  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
36026"
36027if test "x$ac_cv_header_sys_types_h" = xyes
36028then :
36029  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36030
36031fi
36032ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
36033"
36034if test "x$ac_cv_header_sys_socket_h" = xyes
36035then :
36036  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
36037
36038fi
36039
36040
36041
36042      #
36043  tst_links_closesocket_camel="unknown"
36044  tst_proto_closesocket_camel="unknown"
36045  tst_compi_closesocket_camel="unknown"
36046  tst_allow_closesocket_camel="unknown"
36047  #
36048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
36049printf %s "checking if CloseSocket can be linked... " >&6; }
36050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36051/* end confdefs.h.  */
36052
36053
36054      $curl_includes_bsdsocket
36055      $curl_includes_sys_socket
36056
36057int main (void)
36058{
36059
36060      if(0 != CloseSocket(0))
36061        return 1;
36062
36063 ;
36064 return 0;
36065}
36066
36067_ACEOF
36068if ac_fn_c_try_link "$LINENO"
36069then :
36070
36071    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36072printf "%s\n" "yes" >&6; }
36073    tst_links_closesocket_camel="yes"
36074
36075else $as_nop
36076
36077    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36078printf "%s\n" "no" >&6; }
36079    tst_links_closesocket_camel="no"
36080
36081fi
36082rm -f core conftest.err conftest.$ac_objext conftest.beam \
36083    conftest$ac_exeext conftest.$ac_ext
36084  #
36085  if test "$tst_links_closesocket_camel" = "yes"; then
36086    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
36087printf %s "checking if CloseSocket is prototyped... " >&6; }
36088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36089/* end confdefs.h.  */
36090
36091      $curl_includes_bsdsocket
36092      $curl_includes_sys_socket
36093
36094_ACEOF
36095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36096  $EGREP "CloseSocket" >/dev/null 2>&1
36097then :
36098
36099      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36100printf "%s\n" "yes" >&6; }
36101      tst_proto_closesocket_camel="yes"
36102
36103else $as_nop
36104
36105      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36106printf "%s\n" "no" >&6; }
36107      tst_proto_closesocket_camel="no"
36108
36109fi
36110rm -rf conftest*
36111
36112  fi
36113  #
36114  if test "$tst_proto_closesocket_camel" = "yes"; then
36115    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
36116printf %s "checking if CloseSocket is compilable... " >&6; }
36117    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36118/* end confdefs.h.  */
36119
36120
36121        $curl_includes_bsdsocket
36122        $curl_includes_sys_socket
36123
36124int main (void)
36125{
36126
36127        if(0 != CloseSocket(0))
36128          return 1;
36129
36130 ;
36131 return 0;
36132}
36133
36134_ACEOF
36135if ac_fn_c_try_compile "$LINENO"
36136then :
36137
36138      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36139printf "%s\n" "yes" >&6; }
36140      tst_compi_closesocket_camel="yes"
36141
36142else $as_nop
36143
36144      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36145printf "%s\n" "no" >&6; }
36146      tst_compi_closesocket_camel="no"
36147
36148fi
36149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36150  fi
36151  #
36152  if test "$tst_compi_closesocket_camel" = "yes"; then
36153    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
36154printf %s "checking if CloseSocket usage allowed... " >&6; }
36155    if test "x$curl_disallow_closesocket_camel" != "xyes"; then
36156      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36157printf "%s\n" "yes" >&6; }
36158      tst_allow_closesocket_camel="yes"
36159    else
36160      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36161printf "%s\n" "no" >&6; }
36162      tst_allow_closesocket_camel="no"
36163    fi
36164  fi
36165  #
36166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
36167printf %s "checking if CloseSocket might be used... " >&6; }
36168  if test "$tst_links_closesocket_camel" = "yes" &&
36169     test "$tst_proto_closesocket_camel" = "yes" &&
36170     test "$tst_compi_closesocket_camel" = "yes" &&
36171     test "$tst_allow_closesocket_camel" = "yes"; then
36172    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36173printf "%s\n" "yes" >&6; }
36174
36175printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
36176
36177    curl_cv_func_closesocket_camel="yes"
36178  else
36179    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36180printf "%s\n" "no" >&6; }
36181    curl_cv_func_closesocket_camel="no"
36182  fi
36183
36184
36185curl_includes_fcntl="\
36186/* includes start */
36187#ifdef HAVE_SYS_TYPES_H
36188#  include <sys/types.h>
36189#endif
36190#ifdef HAVE_UNISTD_H
36191#  include <unistd.h>
36192#endif
36193#ifdef HAVE_FCNTL_H
36194#  include <fcntl.h>
36195#endif
36196/* includes end */"
36197  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36198"
36199if test "x$ac_cv_header_sys_types_h" = xyes
36200then :
36201  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36202
36203fi
36204ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36205"
36206if test "x$ac_cv_header_unistd_h" = xyes
36207then :
36208  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36209
36210fi
36211ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36212"
36213if test "x$ac_cv_header_fcntl_h" = xyes
36214then :
36215  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36216
36217fi
36218
36219
36220
36221    #
36222  tst_links_fcntl="unknown"
36223  tst_proto_fcntl="unknown"
36224  tst_compi_fcntl="unknown"
36225  tst_allow_fcntl="unknown"
36226  #
36227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36228printf %s "checking if fcntl can be linked... " >&6; }
36229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36230/* end confdefs.h.  */
36231
36232
36233#define fcntl innocuous_fcntl
36234#ifdef __STDC__
36235# include <limits.h>
36236#else
36237# include <assert.h>
36238#endif
36239#undef fcntl
36240#ifdef __cplusplus
36241extern "C"
36242#endif
36243char fcntl ();
36244#if defined __stub_fcntl || defined __stub___fcntl
36245choke me
36246#endif
36247
36248int main (void)
36249{
36250return fcntl ();
36251 ;
36252 return 0;
36253}
36254
36255_ACEOF
36256if ac_fn_c_try_link "$LINENO"
36257then :
36258
36259    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36260printf "%s\n" "yes" >&6; }
36261    tst_links_fcntl="yes"
36262
36263else $as_nop
36264
36265    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36266printf "%s\n" "no" >&6; }
36267    tst_links_fcntl="no"
36268
36269fi
36270rm -f core conftest.err conftest.$ac_objext conftest.beam \
36271    conftest$ac_exeext conftest.$ac_ext
36272  #
36273  if test "$tst_links_fcntl" = "yes"; then
36274    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36275printf %s "checking if fcntl is prototyped... " >&6; }
36276    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36277/* end confdefs.h.  */
36278
36279      $curl_includes_fcntl
36280
36281_ACEOF
36282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36283  $EGREP "fcntl" >/dev/null 2>&1
36284then :
36285
36286      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36287printf "%s\n" "yes" >&6; }
36288      tst_proto_fcntl="yes"
36289
36290else $as_nop
36291
36292      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36293printf "%s\n" "no" >&6; }
36294      tst_proto_fcntl="no"
36295
36296fi
36297rm -rf conftest*
36298
36299  fi
36300  #
36301  if test "$tst_proto_fcntl" = "yes"; then
36302    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36303printf %s "checking if fcntl is compilable... " >&6; }
36304    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36305/* end confdefs.h.  */
36306
36307
36308        $curl_includes_fcntl
36309
36310int main (void)
36311{
36312
36313        if(0 != fcntl(0, 0, 0))
36314          return 1;
36315
36316 ;
36317 return 0;
36318}
36319
36320_ACEOF
36321if ac_fn_c_try_compile "$LINENO"
36322then :
36323
36324      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36325printf "%s\n" "yes" >&6; }
36326      tst_compi_fcntl="yes"
36327
36328else $as_nop
36329
36330      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36331printf "%s\n" "no" >&6; }
36332      tst_compi_fcntl="no"
36333
36334fi
36335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36336  fi
36337  #
36338  if test "$tst_compi_fcntl" = "yes"; then
36339    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36340printf %s "checking if fcntl usage allowed... " >&6; }
36341    if test "x$curl_disallow_fcntl" != "xyes"; then
36342      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36343printf "%s\n" "yes" >&6; }
36344      tst_allow_fcntl="yes"
36345    else
36346      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36347printf "%s\n" "no" >&6; }
36348      tst_allow_fcntl="no"
36349    fi
36350  fi
36351  #
36352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36353printf %s "checking if fcntl might be used... " >&6; }
36354  if test "$tst_links_fcntl" = "yes" &&
36355     test "$tst_proto_fcntl" = "yes" &&
36356     test "$tst_compi_fcntl" = "yes" &&
36357     test "$tst_allow_fcntl" = "yes"; then
36358    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36359printf "%s\n" "yes" >&6; }
36360
36361printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36362
36363    curl_cv_func_fcntl="yes"
36364
36365  #
36366  tst_compi_fcntl_o_nonblock="unknown"
36367  tst_allow_fcntl_o_nonblock="unknown"
36368  #
36369  case $host_os in
36370    sunos4* | aix3*)
36371            curl_disallow_fcntl_o_nonblock="yes"
36372      ;;
36373  esac
36374  #
36375  if test "$curl_cv_func_fcntl" = "yes"; then
36376    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36377printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36378    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36379/* end confdefs.h.  */
36380
36381
36382        $curl_includes_fcntl
36383
36384int main (void)
36385{
36386
36387        int flags = 0;
36388        if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36389          return 1;
36390
36391 ;
36392 return 0;
36393}
36394
36395_ACEOF
36396if ac_fn_c_try_compile "$LINENO"
36397then :
36398
36399      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36400printf "%s\n" "yes" >&6; }
36401      tst_compi_fcntl_o_nonblock="yes"
36402
36403else $as_nop
36404
36405      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36406printf "%s\n" "no" >&6; }
36407      tst_compi_fcntl_o_nonblock="no"
36408
36409fi
36410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36411  fi
36412  #
36413  if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36414    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36415printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36416    if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36417      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36418printf "%s\n" "yes" >&6; }
36419      tst_allow_fcntl_o_nonblock="yes"
36420    else
36421      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36422printf "%s\n" "no" >&6; }
36423      tst_allow_fcntl_o_nonblock="no"
36424    fi
36425  fi
36426  #
36427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36428printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36429  if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36430     test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36431    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36432printf "%s\n" "yes" >&6; }
36433
36434printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36435
36436    curl_cv_func_fcntl_o_nonblock="yes"
36437  else
36438    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36439printf "%s\n" "no" >&6; }
36440    curl_cv_func_fcntl_o_nonblock="no"
36441  fi
36442
36443  else
36444    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36445printf "%s\n" "no" >&6; }
36446    curl_cv_func_fcntl="no"
36447  fi
36448
36449
36450curl_includes_ws2tcpip="\
36451/* includes start */
36452#ifdef _WIN32
36453#  ifndef WIN32_LEAN_AND_MEAN
36454#    define WIN32_LEAN_AND_MEAN
36455#  endif
36456#  include <winsock2.h>
36457#  include <ws2tcpip.h>
36458#endif
36459/* includes end */"
36460
36461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
36462printf %s "checking whether build target is a native Windows one... " >&6; }
36463if test ${curl_cv_native_windows+y}
36464then :
36465  printf %s "(cached) " >&6
36466else $as_nop
36467
36468    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36469/* end confdefs.h.  */
36470
36471
36472
36473int main (void)
36474{
36475
36476#ifdef _WIN32
36477        int dummy=1;
36478#else
36479        Not a native Windows build target.
36480#endif
36481
36482 ;
36483 return 0;
36484}
36485
36486_ACEOF
36487if ac_fn_c_try_compile "$LINENO"
36488then :
36489
36490      curl_cv_native_windows="yes"
36491
36492else $as_nop
36493
36494      curl_cv_native_windows="no"
36495
36496fi
36497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36498
36499fi
36500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
36501printf "%s\n" "$curl_cv_native_windows" >&6; }
36502   if test "x$curl_cv_native_windows" = xyes; then
36503  DOING_NATIVE_WINDOWS_TRUE=
36504  DOING_NATIVE_WINDOWS_FALSE='#'
36505else
36506  DOING_NATIVE_WINDOWS_TRUE='#'
36507  DOING_NATIVE_WINDOWS_FALSE=
36508fi
36509
36510
36511
36512
36513curl_includes_netdb="\
36514/* includes start */
36515#ifdef HAVE_SYS_TYPES_H
36516#  include <sys/types.h>
36517#endif
36518#ifdef HAVE_NETDB_H
36519#  include <netdb.h>
36520#endif
36521/* includes end */"
36522  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36523"
36524if test "x$ac_cv_header_sys_types_h" = xyes
36525then :
36526  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36527
36528fi
36529ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36530"
36531if test "x$ac_cv_header_netdb_h" = xyes
36532then :
36533  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36534
36535fi
36536
36537
36538
36539        #
36540  tst_links_freeaddrinfo="unknown"
36541  tst_proto_freeaddrinfo="unknown"
36542  tst_compi_freeaddrinfo="unknown"
36543  tst_allow_freeaddrinfo="unknown"
36544  #
36545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36546printf %s "checking if freeaddrinfo can be linked... " >&6; }
36547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36548/* end confdefs.h.  */
36549
36550
36551      $curl_includes_ws2tcpip
36552      $curl_includes_sys_socket
36553      $curl_includes_netdb
36554
36555int main (void)
36556{
36557
36558      freeaddrinfo(0);
36559
36560 ;
36561 return 0;
36562}
36563
36564_ACEOF
36565if ac_fn_c_try_link "$LINENO"
36566then :
36567
36568    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36569printf "%s\n" "yes" >&6; }
36570    tst_links_freeaddrinfo="yes"
36571
36572else $as_nop
36573
36574    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36575printf "%s\n" "no" >&6; }
36576    tst_links_freeaddrinfo="no"
36577
36578fi
36579rm -f core conftest.err conftest.$ac_objext conftest.beam \
36580    conftest$ac_exeext conftest.$ac_ext
36581  #
36582  if test "$tst_links_freeaddrinfo" = "yes"; then
36583    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36584printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36585    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36586/* end confdefs.h.  */
36587
36588      $curl_includes_ws2tcpip
36589      $curl_includes_sys_socket
36590      $curl_includes_netdb
36591
36592_ACEOF
36593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36594  $EGREP "freeaddrinfo" >/dev/null 2>&1
36595then :
36596
36597      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36598printf "%s\n" "yes" >&6; }
36599      tst_proto_freeaddrinfo="yes"
36600
36601else $as_nop
36602
36603      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36604printf "%s\n" "no" >&6; }
36605      tst_proto_freeaddrinfo="no"
36606
36607fi
36608rm -rf conftest*
36609
36610  fi
36611  #
36612  if test "$tst_proto_freeaddrinfo" = "yes"; then
36613    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36614printf %s "checking if freeaddrinfo is compilable... " >&6; }
36615    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36616/* end confdefs.h.  */
36617
36618
36619        $curl_includes_ws2tcpip
36620        $curl_includes_sys_socket
36621        $curl_includes_netdb
36622
36623int main (void)
36624{
36625
36626        freeaddrinfo(0);
36627
36628 ;
36629 return 0;
36630}
36631
36632_ACEOF
36633if ac_fn_c_try_compile "$LINENO"
36634then :
36635
36636      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36637printf "%s\n" "yes" >&6; }
36638      tst_compi_freeaddrinfo="yes"
36639
36640else $as_nop
36641
36642      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36643printf "%s\n" "no" >&6; }
36644      tst_compi_freeaddrinfo="no"
36645
36646fi
36647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36648  fi
36649  #
36650  if test "$tst_compi_freeaddrinfo" = "yes"; then
36651    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
36652printf %s "checking if freeaddrinfo usage allowed... " >&6; }
36653    if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
36654      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36655printf "%s\n" "yes" >&6; }
36656      tst_allow_freeaddrinfo="yes"
36657    else
36658      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36659printf "%s\n" "no" >&6; }
36660      tst_allow_freeaddrinfo="no"
36661    fi
36662  fi
36663  #
36664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
36665printf %s "checking if freeaddrinfo might be used... " >&6; }
36666  if test "$tst_links_freeaddrinfo" = "yes" &&
36667     test "$tst_proto_freeaddrinfo" = "yes" &&
36668     test "$tst_compi_freeaddrinfo" = "yes" &&
36669     test "$tst_allow_freeaddrinfo" = "yes"; then
36670    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36671printf "%s\n" "yes" >&6; }
36672
36673printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
36674
36675    curl_cv_func_freeaddrinfo="yes"
36676  else
36677    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36678printf "%s\n" "no" >&6; }
36679    curl_cv_func_freeaddrinfo="no"
36680  fi
36681
36682
36683curl_includes_sys_xattr="\
36684/* includes start */
36685#ifdef HAVE_SYS_TYPES_H
36686#  include <sys/types.h>
36687#endif
36688#ifdef HAVE_SYS_XATTR_H
36689#  include <sys/xattr.h>
36690#endif
36691/* includes end */"
36692  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
36693"
36694if test "x$ac_cv_header_sys_types_h" = xyes
36695then :
36696  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36697
36698fi
36699ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
36700"
36701if test "x$ac_cv_header_sys_xattr_h" = xyes
36702then :
36703  printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
36704
36705fi
36706
36707
36708
36709    #
36710  tst_links_fsetxattr="unknown"
36711  tst_proto_fsetxattr="unknown"
36712  tst_compi_fsetxattr="unknown"
36713  tst_allow_fsetxattr="unknown"
36714  tst_nargs_fsetxattr="unknown"
36715  #
36716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
36717printf %s "checking if fsetxattr can be linked... " >&6; }
36718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36719/* end confdefs.h.  */
36720
36721
36722#define fsetxattr innocuous_fsetxattr
36723#ifdef __STDC__
36724# include <limits.h>
36725#else
36726# include <assert.h>
36727#endif
36728#undef fsetxattr
36729#ifdef __cplusplus
36730extern "C"
36731#endif
36732char fsetxattr ();
36733#if defined __stub_fsetxattr || defined __stub___fsetxattr
36734choke me
36735#endif
36736
36737int main (void)
36738{
36739return fsetxattr ();
36740 ;
36741 return 0;
36742}
36743
36744_ACEOF
36745if ac_fn_c_try_link "$LINENO"
36746then :
36747
36748    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36749printf "%s\n" "yes" >&6; }
36750    tst_links_fsetxattr="yes"
36751
36752else $as_nop
36753
36754    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36755printf "%s\n" "no" >&6; }
36756    tst_links_fsetxattr="no"
36757
36758fi
36759rm -f core conftest.err conftest.$ac_objext conftest.beam \
36760    conftest$ac_exeext conftest.$ac_ext
36761  #
36762  if test "$tst_links_fsetxattr" = "yes"; then
36763    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
36764printf %s "checking if fsetxattr is prototyped... " >&6; }
36765    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36766/* end confdefs.h.  */
36767
36768      $curl_includes_sys_xattr
36769
36770_ACEOF
36771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36772  $EGREP "fsetxattr" >/dev/null 2>&1
36773then :
36774
36775      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36776printf "%s\n" "yes" >&6; }
36777      tst_proto_fsetxattr="yes"
36778
36779else $as_nop
36780
36781      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36782printf "%s\n" "no" >&6; }
36783      tst_proto_fsetxattr="no"
36784
36785fi
36786rm -rf conftest*
36787
36788  fi
36789  #
36790  if test "$tst_proto_fsetxattr" = "yes"; then
36791    if test "$tst_nargs_fsetxattr" = "unknown"; then
36792      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
36793printf %s "checking if fsetxattr takes 5 args.... " >&6; }
36794      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36795/* end confdefs.h.  */
36796
36797
36798          $curl_includes_sys_xattr
36799
36800int main (void)
36801{
36802
36803          if(0 != fsetxattr(0, 0, 0, 0, 0))
36804            return 1;
36805
36806 ;
36807 return 0;
36808}
36809
36810_ACEOF
36811if ac_fn_c_try_compile "$LINENO"
36812then :
36813
36814        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36815printf "%s\n" "yes" >&6; }
36816        tst_compi_fsetxattr="yes"
36817        tst_nargs_fsetxattr="5"
36818
36819else $as_nop
36820
36821        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36822printf "%s\n" "no" >&6; }
36823        tst_compi_fsetxattr="no"
36824
36825fi
36826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36827    fi
36828    if test "$tst_nargs_fsetxattr" = "unknown"; then
36829      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
36830printf %s "checking if fsetxattr takes 6 args.... " >&6; }
36831      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36832/* end confdefs.h.  */
36833
36834
36835          $curl_includes_sys_xattr
36836
36837int main (void)
36838{
36839
36840          if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
36841            return 1;
36842
36843 ;
36844 return 0;
36845}
36846
36847_ACEOF
36848if ac_fn_c_try_compile "$LINENO"
36849then :
36850
36851        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36852printf "%s\n" "yes" >&6; }
36853        tst_compi_fsetxattr="yes"
36854        tst_nargs_fsetxattr="6"
36855
36856else $as_nop
36857
36858        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36859printf "%s\n" "no" >&6; }
36860        tst_compi_fsetxattr="no"
36861
36862fi
36863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36864    fi
36865    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
36866printf %s "checking if fsetxattr is compilable... " >&6; }
36867    if test "$tst_compi_fsetxattr" = "yes"; then
36868      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36869printf "%s\n" "yes" >&6; }
36870    else
36871      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36872printf "%s\n" "no" >&6; }
36873    fi
36874  fi
36875  #
36876  if test "$tst_compi_fsetxattr" = "yes"; then
36877    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
36878printf %s "checking if fsetxattr usage allowed... " >&6; }
36879    if test "x$curl_disallow_fsetxattr" != "xyes"; then
36880      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36881printf "%s\n" "yes" >&6; }
36882      tst_allow_fsetxattr="yes"
36883    else
36884      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36885printf "%s\n" "no" >&6; }
36886      tst_allow_fsetxattr="no"
36887    fi
36888  fi
36889  #
36890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
36891printf %s "checking if fsetxattr might be used... " >&6; }
36892  if test "$tst_links_fsetxattr" = "yes" &&
36893     test "$tst_proto_fsetxattr" = "yes" &&
36894     test "$tst_compi_fsetxattr" = "yes" &&
36895     test "$tst_allow_fsetxattr" = "yes"; then
36896    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36897printf "%s\n" "yes" >&6; }
36898
36899printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
36900
36901            #
36902    if test "$tst_nargs_fsetxattr" -eq "5"; then
36903
36904printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
36905
36906    elif test "$tst_nargs_fsetxattr" -eq "6"; then
36907
36908printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
36909
36910    fi
36911    #
36912    curl_cv_func_fsetxattr="yes"
36913  else
36914    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915printf "%s\n" "no" >&6; }
36916    curl_cv_func_fsetxattr="no"
36917  fi
36918
36919
36920    #
36921  tst_links_ftruncate="unknown"
36922  tst_proto_ftruncate="unknown"
36923  tst_compi_ftruncate="unknown"
36924  tst_allow_ftruncate="unknown"
36925  #
36926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
36927printf %s "checking if ftruncate can be linked... " >&6; }
36928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36929/* end confdefs.h.  */
36930
36931
36932#define ftruncate innocuous_ftruncate
36933#ifdef __STDC__
36934# include <limits.h>
36935#else
36936# include <assert.h>
36937#endif
36938#undef ftruncate
36939#ifdef __cplusplus
36940extern "C"
36941#endif
36942char ftruncate ();
36943#if defined __stub_ftruncate || defined __stub___ftruncate
36944choke me
36945#endif
36946
36947int main (void)
36948{
36949return ftruncate ();
36950 ;
36951 return 0;
36952}
36953
36954_ACEOF
36955if ac_fn_c_try_link "$LINENO"
36956then :
36957
36958    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36959printf "%s\n" "yes" >&6; }
36960    tst_links_ftruncate="yes"
36961
36962else $as_nop
36963
36964    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36965printf "%s\n" "no" >&6; }
36966    tst_links_ftruncate="no"
36967
36968fi
36969rm -f core conftest.err conftest.$ac_objext conftest.beam \
36970    conftest$ac_exeext conftest.$ac_ext
36971  #
36972  if test "$tst_links_ftruncate" = "yes"; then
36973    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
36974printf %s "checking if ftruncate is prototyped... " >&6; }
36975    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36976/* end confdefs.h.  */
36977
36978      $curl_includes_unistd
36979
36980_ACEOF
36981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36982  $EGREP "ftruncate" >/dev/null 2>&1
36983then :
36984
36985      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36986printf "%s\n" "yes" >&6; }
36987      tst_proto_ftruncate="yes"
36988
36989else $as_nop
36990
36991      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36992printf "%s\n" "no" >&6; }
36993      tst_proto_ftruncate="no"
36994
36995fi
36996rm -rf conftest*
36997
36998  fi
36999  #
37000  if test "$tst_proto_ftruncate" = "yes"; then
37001    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
37002printf %s "checking if ftruncate is compilable... " >&6; }
37003    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37004/* end confdefs.h.  */
37005
37006
37007        $curl_includes_unistd
37008
37009int main (void)
37010{
37011
37012        if(0 != ftruncate(0, 0))
37013          return 1;
37014
37015 ;
37016 return 0;
37017}
37018
37019_ACEOF
37020if ac_fn_c_try_compile "$LINENO"
37021then :
37022
37023      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024printf "%s\n" "yes" >&6; }
37025      tst_compi_ftruncate="yes"
37026
37027else $as_nop
37028
37029      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37030printf "%s\n" "no" >&6; }
37031      tst_compi_ftruncate="no"
37032
37033fi
37034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37035  fi
37036  #
37037  if test "$tst_compi_ftruncate" = "yes"; then
37038    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37039printf %s "checking if ftruncate usage allowed... " >&6; }
37040    if test "x$curl_disallow_ftruncate" != "xyes"; then
37041      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37042printf "%s\n" "yes" >&6; }
37043      tst_allow_ftruncate="yes"
37044    else
37045      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37046printf "%s\n" "no" >&6; }
37047      tst_allow_ftruncate="no"
37048    fi
37049  fi
37050  #
37051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37052printf %s "checking if ftruncate might be used... " >&6; }
37053  if test "$tst_links_ftruncate" = "yes" &&
37054     test "$tst_proto_ftruncate" = "yes" &&
37055     test "$tst_compi_ftruncate" = "yes" &&
37056     test "$tst_allow_ftruncate" = "yes"; then
37057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37058printf "%s\n" "yes" >&6; }
37059
37060printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37061
37062    curl_cv_func_ftruncate="yes"
37063  else
37064    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37065printf "%s\n" "no" >&6; }
37066    curl_cv_func_ftruncate="no"
37067  fi
37068
37069
37070curl_includes_stdlib="\
37071/* includes start */
37072#ifdef HAVE_SYS_TYPES_H
37073#  include <sys/types.h>
37074#endif
37075#include <stdlib.h>
37076/* includes end */"
37077  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37078"
37079if test "x$ac_cv_header_sys_types_h" = xyes
37080then :
37081  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37082
37083fi
37084
37085
37086
37087              #
37088  tst_links_getaddrinfo="unknown"
37089  tst_proto_getaddrinfo="unknown"
37090  tst_compi_getaddrinfo="unknown"
37091  tst_works_getaddrinfo="unknown"
37092  tst_allow_getaddrinfo="unknown"
37093  tst_tsafe_getaddrinfo="unknown"
37094  #
37095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37096printf %s "checking if getaddrinfo can be linked... " >&6; }
37097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37098/* end confdefs.h.  */
37099
37100
37101      $curl_includes_ws2tcpip
37102      $curl_includes_sys_socket
37103      $curl_includes_netdb
37104
37105int main (void)
37106{
37107
37108      if(0 != getaddrinfo(0, 0, 0, 0))
37109        return 1;
37110
37111 ;
37112 return 0;
37113}
37114
37115_ACEOF
37116if ac_fn_c_try_link "$LINENO"
37117then :
37118
37119    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37120printf "%s\n" "yes" >&6; }
37121    tst_links_getaddrinfo="yes"
37122
37123else $as_nop
37124
37125    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37126printf "%s\n" "no" >&6; }
37127    tst_links_getaddrinfo="no"
37128
37129fi
37130rm -f core conftest.err conftest.$ac_objext conftest.beam \
37131    conftest$ac_exeext conftest.$ac_ext
37132  #
37133  if test "$tst_links_getaddrinfo" = "yes"; then
37134    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37135printf %s "checking if getaddrinfo is prototyped... " >&6; }
37136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37137/* end confdefs.h.  */
37138
37139      $curl_includes_ws2tcpip
37140      $curl_includes_sys_socket
37141      $curl_includes_netdb
37142
37143_ACEOF
37144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37145  $EGREP "getaddrinfo" >/dev/null 2>&1
37146then :
37147
37148      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37149printf "%s\n" "yes" >&6; }
37150      tst_proto_getaddrinfo="yes"
37151
37152else $as_nop
37153
37154      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37155printf "%s\n" "no" >&6; }
37156      tst_proto_getaddrinfo="no"
37157
37158fi
37159rm -rf conftest*
37160
37161  fi
37162  #
37163  if test "$tst_proto_getaddrinfo" = "yes"; then
37164    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37165printf %s "checking if getaddrinfo is compilable... " >&6; }
37166    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37167/* end confdefs.h.  */
37168
37169
37170        $curl_includes_ws2tcpip
37171        $curl_includes_sys_socket
37172        $curl_includes_netdb
37173
37174int main (void)
37175{
37176
37177        if(0 != getaddrinfo(0, 0, 0, 0))
37178          return 1;
37179
37180 ;
37181 return 0;
37182}
37183
37184_ACEOF
37185if ac_fn_c_try_compile "$LINENO"
37186then :
37187
37188      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37189printf "%s\n" "yes" >&6; }
37190      tst_compi_getaddrinfo="yes"
37191
37192else $as_nop
37193
37194      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37195printf "%s\n" "no" >&6; }
37196      tst_compi_getaddrinfo="no"
37197
37198fi
37199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37200  fi
37201  #
37202    if test "x$cross_compiling" != "xyes" &&
37203    test "$tst_compi_getaddrinfo" = "yes"; then
37204    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37205printf %s "checking if getaddrinfo seems to work... " >&6; }
37206
37207   case $host_os in
37208     darwin*)
37209      if test "$cross_compiling" = yes
37210then :
37211  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37212printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37213as_fn_error $? "cannot run test program while cross compiling
37214See \`config.log' for more details" "$LINENO" 5; }
37215else $as_nop
37216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37217/* end confdefs.h.  */
37218
37219
37220        $curl_includes_ws2tcpip
37221        $curl_includes_stdlib
37222        $curl_includes_string
37223        $curl_includes_sys_socket
37224        $curl_includes_netdb
37225
37226int main (void)
37227{
37228
37229        struct addrinfo hints;
37230        struct addrinfo *ai = 0;
37231        int error;
37232
37233        #ifdef _WIN32
37234        WSADATA wsa;
37235        if(WSAStartup(MAKEWORD(2, 2), &wsa))
37236          exit(2);
37237        #endif
37238
37239        memset(&hints, 0, sizeof(hints));
37240        hints.ai_flags = AI_NUMERICHOST;
37241        hints.ai_family = AF_UNSPEC;
37242        hints.ai_socktype = SOCK_STREAM;
37243        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37244        if(error || !ai)
37245          exit(1); /* fail */
37246        else
37247          exit(0);
37248
37249 ;
37250 return 0;
37251}
37252
37253_ACEOF
37254if ac_fn_c_try_run "$LINENO"
37255then :
37256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37257printf "%s\n" "yes" >&6; }
37258      tst_works_getaddrinfo="yes"
37259
37260else $as_nop
37261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37262printf "%s\n" "no" >&6; }
37263      tst_works_getaddrinfo="no"
37264
37265fi
37266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37267  conftest.$ac_objext conftest.beam conftest.$ac_ext
37268fi
37269
37270     ;;
37271     *)
37272      oldcc=$CC
37273      old=$LD_LIBRARY_PATH
37274      CC="sh ./run-compiler"
37275      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37276      export LD_LIBRARY_PATH
37277      if test "$cross_compiling" = yes
37278then :
37279  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37280printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37281as_fn_error $? "cannot run test program while cross compiling
37282See \`config.log' for more details" "$LINENO" 5; }
37283else $as_nop
37284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37285/* end confdefs.h.  */
37286
37287
37288        $curl_includes_ws2tcpip
37289        $curl_includes_stdlib
37290        $curl_includes_string
37291        $curl_includes_sys_socket
37292        $curl_includes_netdb
37293
37294int main (void)
37295{
37296
37297        struct addrinfo hints;
37298        struct addrinfo *ai = 0;
37299        int error;
37300
37301        #ifdef _WIN32
37302        WSADATA wsa;
37303        if(WSAStartup(MAKEWORD(2, 2), &wsa))
37304          exit(2);
37305        #endif
37306
37307        memset(&hints, 0, sizeof(hints));
37308        hints.ai_flags = AI_NUMERICHOST;
37309        hints.ai_family = AF_UNSPEC;
37310        hints.ai_socktype = SOCK_STREAM;
37311        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37312        if(error || !ai)
37313          exit(1); /* fail */
37314        else
37315          exit(0);
37316
37317 ;
37318 return 0;
37319}
37320
37321_ACEOF
37322if ac_fn_c_try_run "$LINENO"
37323then :
37324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37325printf "%s\n" "yes" >&6; }
37326      tst_works_getaddrinfo="yes"
37327
37328else $as_nop
37329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37330printf "%s\n" "no" >&6; }
37331      tst_works_getaddrinfo="no"
37332
37333fi
37334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37335  conftest.$ac_objext conftest.beam conftest.$ac_ext
37336fi
37337
37338      LD_LIBRARY_PATH=$old # restore
37339      CC=$oldcc
37340     ;;
37341   esac
37342
37343  fi
37344  #
37345  if test "$tst_compi_getaddrinfo" = "yes" &&
37346    test "$tst_works_getaddrinfo" != "no"; then
37347    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37348printf %s "checking if getaddrinfo usage allowed... " >&6; }
37349    if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37350      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37351printf "%s\n" "yes" >&6; }
37352      tst_allow_getaddrinfo="yes"
37353    else
37354      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37355printf "%s\n" "no" >&6; }
37356      tst_allow_getaddrinfo="no"
37357    fi
37358  fi
37359  #
37360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37361printf %s "checking if getaddrinfo might be used... " >&6; }
37362  if test "$tst_links_getaddrinfo" = "yes" &&
37363     test "$tst_proto_getaddrinfo" = "yes" &&
37364     test "$tst_compi_getaddrinfo" = "yes" &&
37365     test "$tst_allow_getaddrinfo" = "yes" &&
37366     test "$tst_works_getaddrinfo" != "no"; then
37367    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37368printf "%s\n" "yes" >&6; }
37369
37370printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37371
37372    curl_cv_func_getaddrinfo="yes"
37373  else
37374    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37375printf "%s\n" "no" >&6; }
37376    curl_cv_func_getaddrinfo="no"
37377    curl_cv_func_getaddrinfo_threadsafe="no"
37378  fi
37379  #
37380  if test "$curl_cv_func_getaddrinfo" = "yes"; then
37381    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37382printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37383    case $host_os in
37384      aix[1234].* | aix5.[01].*)
37385                tst_tsafe_getaddrinfo="no"
37386        ;;
37387      aix*)
37388                tst_tsafe_getaddrinfo="yes"
37389        ;;
37390      darwin[12345].*)
37391                tst_tsafe_getaddrinfo="no"
37392        ;;
37393      darwin*)
37394                tst_tsafe_getaddrinfo="yes"
37395        ;;
37396      freebsd[1234].* | freebsd5.[1234]*)
37397                tst_tsafe_getaddrinfo="no"
37398        ;;
37399      freebsd*)
37400                tst_tsafe_getaddrinfo="yes"
37401        ;;
37402      hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37403                tst_tsafe_getaddrinfo="no"
37404        ;;
37405      hpux*)
37406                tst_tsafe_getaddrinfo="yes"
37407        ;;
37408      midnightbsd*)
37409                tst_tsafe_getaddrinfo="yes"
37410        ;;
37411      netbsd[123].*)
37412                tst_tsafe_getaddrinfo="no"
37413        ;;
37414      netbsd*)
37415                tst_tsafe_getaddrinfo="yes"
37416        ;;
37417      *bsd*)
37418                tst_tsafe_getaddrinfo="no"
37419        ;;
37420      solaris2*)
37421                tst_tsafe_getaddrinfo="yes"
37422        ;;
37423    esac
37424    if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37425       test "$curl_cv_native_windows" = "yes"; then
37426      tst_tsafe_getaddrinfo="yes"
37427    fi
37428    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37429
37430
37431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37432/* end confdefs.h.  */
37433
37434
37435        $curl_includes_sys_socket
37436        $curl_includes_netdb
37437
37438int main (void)
37439{
37440#ifdef h_errno
37441  return 0;
37442#else
37443  force compilation error
37444#endif
37445}
37446
37447
37448_ACEOF
37449if ac_fn_c_try_compile "$LINENO"
37450then :
37451
37452    tst_symbol_defined="yes"
37453
37454else $as_nop
37455
37456    tst_symbol_defined="no"
37457
37458fi
37459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37460  if test "$tst_symbol_defined" = "yes"; then
37461    curl_cv_have_def_h_errno=yes
37462
37463  else
37464    curl_cv_have_def_h_errno=no
37465
37466  fi
37467
37468      if test "$curl_cv_have_def_h_errno" = "yes"; then
37469        tst_h_errno_macro="yes"
37470      else
37471        tst_h_errno_macro="no"
37472      fi
37473      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37474/* end confdefs.h.  */
37475
37476
37477          $curl_includes_sys_socket
37478          $curl_includes_netdb
37479
37480int main (void)
37481{
37482
37483          h_errno = 2;
37484          if(0 != h_errno)
37485            return 1;
37486
37487 ;
37488 return 0;
37489}
37490
37491_ACEOF
37492if ac_fn_c_try_compile "$LINENO"
37493then :
37494
37495        tst_h_errno_modifiable_lvalue="yes"
37496
37497else $as_nop
37498
37499        tst_h_errno_modifiable_lvalue="no"
37500
37501fi
37502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37503      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37504/* end confdefs.h.  */
37505
37506
37507
37508int main (void)
37509{
37510
37511#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37512          return 0;
37513#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37514          return 0;
37515#else
37516          force compilation error
37517#endif
37518
37519 ;
37520 return 0;
37521}
37522
37523_ACEOF
37524if ac_fn_c_try_compile "$LINENO"
37525then :
37526
37527        tst_h_errno_sbs_issue_7="yes"
37528
37529else $as_nop
37530
37531        tst_h_errno_sbs_issue_7="no"
37532
37533fi
37534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37535      if test "$tst_h_errno_macro" = "no" &&
37536         test "$tst_h_errno_modifiable_lvalue" = "no" &&
37537         test "$tst_h_errno_sbs_issue_7" = "no"; then
37538        tst_tsafe_getaddrinfo="no"
37539      else
37540        tst_tsafe_getaddrinfo="yes"
37541      fi
37542    fi
37543    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37544printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37545    if test "$tst_tsafe_getaddrinfo" = "yes"; then
37546
37547printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37548
37549      curl_cv_func_getaddrinfo_threadsafe="yes"
37550    else
37551      curl_cv_func_getaddrinfo_threadsafe="no"
37552    fi
37553  fi
37554
37555
37556      #
37557  tst_links_gethostbyname="unknown"
37558  tst_proto_gethostbyname="unknown"
37559  tst_compi_gethostbyname="unknown"
37560  tst_allow_gethostbyname="unknown"
37561  #
37562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37563printf %s "checking if gethostbyname can be linked... " >&6; }
37564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37565/* end confdefs.h.  */
37566
37567
37568      $curl_includes_winsock2
37569      $curl_includes_bsdsocket
37570      $curl_includes_netdb
37571
37572int main (void)
37573{
37574
37575      if(0 != gethostbyname(0))
37576        return 1;
37577
37578 ;
37579 return 0;
37580}
37581
37582_ACEOF
37583if ac_fn_c_try_link "$LINENO"
37584then :
37585
37586    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37587printf "%s\n" "yes" >&6; }
37588    tst_links_gethostbyname="yes"
37589
37590else $as_nop
37591
37592    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37593printf "%s\n" "no" >&6; }
37594    tst_links_gethostbyname="no"
37595
37596fi
37597rm -f core conftest.err conftest.$ac_objext conftest.beam \
37598    conftest$ac_exeext conftest.$ac_ext
37599  #
37600  if test "$tst_links_gethostbyname" = "yes"; then
37601    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37602printf %s "checking if gethostbyname is prototyped... " >&6; }
37603    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37604/* end confdefs.h.  */
37605
37606      $curl_includes_winsock2
37607      $curl_includes_bsdsocket
37608      $curl_includes_netdb
37609
37610_ACEOF
37611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37612  $EGREP "gethostbyname" >/dev/null 2>&1
37613then :
37614
37615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37616printf "%s\n" "yes" >&6; }
37617      tst_proto_gethostbyname="yes"
37618
37619else $as_nop
37620
37621      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37622printf "%s\n" "no" >&6; }
37623      tst_proto_gethostbyname="no"
37624
37625fi
37626rm -rf conftest*
37627
37628  fi
37629  #
37630  if test "$tst_proto_gethostbyname" = "yes"; then
37631    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37632printf %s "checking if gethostbyname is compilable... " >&6; }
37633    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37634/* end confdefs.h.  */
37635
37636
37637        $curl_includes_winsock2
37638        $curl_includes_bsdsocket
37639        $curl_includes_netdb
37640
37641int main (void)
37642{
37643
37644        if(0 != gethostbyname(0))
37645          return 1;
37646
37647 ;
37648 return 0;
37649}
37650
37651_ACEOF
37652if ac_fn_c_try_compile "$LINENO"
37653then :
37654
37655      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37656printf "%s\n" "yes" >&6; }
37657      tst_compi_gethostbyname="yes"
37658
37659else $as_nop
37660
37661      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37662printf "%s\n" "no" >&6; }
37663      tst_compi_gethostbyname="no"
37664
37665fi
37666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37667  fi
37668  #
37669  if test "$tst_compi_gethostbyname" = "yes"; then
37670    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
37671printf %s "checking if gethostbyname usage allowed... " >&6; }
37672    if test "x$curl_disallow_gethostbyname" != "xyes"; then
37673      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37674printf "%s\n" "yes" >&6; }
37675      tst_allow_gethostbyname="yes"
37676    else
37677      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37678printf "%s\n" "no" >&6; }
37679      tst_allow_gethostbyname="no"
37680    fi
37681  fi
37682  #
37683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
37684printf %s "checking if gethostbyname might be used... " >&6; }
37685  if test "$tst_links_gethostbyname" = "yes" &&
37686     test "$tst_proto_gethostbyname" = "yes" &&
37687     test "$tst_compi_gethostbyname" = "yes" &&
37688     test "$tst_allow_gethostbyname" = "yes"; then
37689    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37690printf "%s\n" "yes" >&6; }
37691
37692printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
37693
37694    curl_cv_func_gethostbyname="yes"
37695  else
37696    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37697printf "%s\n" "no" >&6; }
37698    curl_cv_func_gethostbyname="no"
37699  fi
37700
37701
37702    #
37703  tst_links_gethostbyname_r="unknown"
37704  tst_proto_gethostbyname_r="unknown"
37705  tst_compi_gethostbyname_r="unknown"
37706  tst_allow_gethostbyname_r="unknown"
37707  tst_nargs_gethostbyname_r="unknown"
37708  #
37709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
37710printf %s "checking if gethostbyname_r can be linked... " >&6; }
37711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37712/* end confdefs.h.  */
37713
37714
37715#define gethostbyname_r innocuous_gethostbyname_r
37716#ifdef __STDC__
37717# include <limits.h>
37718#else
37719# include <assert.h>
37720#endif
37721#undef gethostbyname_r
37722#ifdef __cplusplus
37723extern "C"
37724#endif
37725char gethostbyname_r ();
37726#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
37727choke me
37728#endif
37729
37730int main (void)
37731{
37732return gethostbyname_r ();
37733 ;
37734 return 0;
37735}
37736
37737_ACEOF
37738if ac_fn_c_try_link "$LINENO"
37739then :
37740
37741    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37742printf "%s\n" "yes" >&6; }
37743    tst_links_gethostbyname_r="yes"
37744
37745else $as_nop
37746
37747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37748printf "%s\n" "no" >&6; }
37749    tst_links_gethostbyname_r="no"
37750
37751fi
37752rm -f core conftest.err conftest.$ac_objext conftest.beam \
37753    conftest$ac_exeext conftest.$ac_ext
37754  #
37755  if test "$tst_links_gethostbyname_r" = "yes"; then
37756    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
37757printf %s "checking if gethostbyname_r is prototyped... " >&6; }
37758    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37759/* end confdefs.h.  */
37760
37761      $curl_includes_netdb
37762
37763_ACEOF
37764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37765  $EGREP "gethostbyname_r" >/dev/null 2>&1
37766then :
37767
37768      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37769printf "%s\n" "yes" >&6; }
37770      tst_proto_gethostbyname_r="yes"
37771
37772else $as_nop
37773
37774      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37775printf "%s\n" "no" >&6; }
37776      tst_proto_gethostbyname_r="no"
37777
37778fi
37779rm -rf conftest*
37780
37781  fi
37782  #
37783  if test "$tst_proto_gethostbyname_r" = "yes"; then
37784    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37785      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
37786printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
37787      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37788/* end confdefs.h.  */
37789
37790
37791          $curl_includes_netdb
37792          $curl_includes_bsdsocket
37793
37794int main (void)
37795{
37796
37797          if(0 != gethostbyname_r(0, 0, 0))
37798            return 1;
37799
37800 ;
37801 return 0;
37802}
37803
37804_ACEOF
37805if ac_fn_c_try_compile "$LINENO"
37806then :
37807
37808        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37809printf "%s\n" "yes" >&6; }
37810        tst_compi_gethostbyname_r="yes"
37811        tst_nargs_gethostbyname_r="3"
37812
37813else $as_nop
37814
37815        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37816printf "%s\n" "no" >&6; }
37817        tst_compi_gethostbyname_r="no"
37818
37819fi
37820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37821    fi
37822    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37823      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
37824printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
37825      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37826/* end confdefs.h.  */
37827
37828
37829          $curl_includes_netdb
37830          $curl_includes_bsdsocket
37831
37832int main (void)
37833{
37834
37835          if(0 != gethostbyname_r(0, 0, 0, 0, 0))
37836            return 1;
37837
37838 ;
37839 return 0;
37840}
37841
37842_ACEOF
37843if ac_fn_c_try_compile "$LINENO"
37844then :
37845
37846        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37847printf "%s\n" "yes" >&6; }
37848        tst_compi_gethostbyname_r="yes"
37849        tst_nargs_gethostbyname_r="5"
37850
37851else $as_nop
37852
37853        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37854printf "%s\n" "no" >&6; }
37855        tst_compi_gethostbyname_r="no"
37856
37857fi
37858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37859    fi
37860    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37861      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
37862printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
37863      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37864/* end confdefs.h.  */
37865
37866
37867          $curl_includes_netdb
37868          $curl_includes_bsdsocket
37869
37870int main (void)
37871{
37872
37873          if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
37874            return 1;
37875
37876 ;
37877 return 0;
37878}
37879
37880_ACEOF
37881if ac_fn_c_try_compile "$LINENO"
37882then :
37883
37884        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37885printf "%s\n" "yes" >&6; }
37886        tst_compi_gethostbyname_r="yes"
37887        tst_nargs_gethostbyname_r="6"
37888
37889else $as_nop
37890
37891        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37892printf "%s\n" "no" >&6; }
37893        tst_compi_gethostbyname_r="no"
37894
37895fi
37896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37897    fi
37898    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
37899printf %s "checking if gethostbyname_r is compilable... " >&6; }
37900    if test "$tst_compi_gethostbyname_r" = "yes"; then
37901      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37902printf "%s\n" "yes" >&6; }
37903    else
37904      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37905printf "%s\n" "no" >&6; }
37906    fi
37907  fi
37908  #
37909  if test "$tst_compi_gethostbyname_r" = "yes"; then
37910    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
37911printf %s "checking if gethostbyname_r usage allowed... " >&6; }
37912    if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
37913      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37914printf "%s\n" "yes" >&6; }
37915      tst_allow_gethostbyname_r="yes"
37916    else
37917      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37918printf "%s\n" "no" >&6; }
37919      tst_allow_gethostbyname_r="no"
37920    fi
37921  fi
37922  #
37923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
37924printf %s "checking if gethostbyname_r might be used... " >&6; }
37925  if test "$tst_links_gethostbyname_r" = "yes" &&
37926     test "$tst_proto_gethostbyname_r" = "yes" &&
37927     test "$tst_compi_gethostbyname_r" = "yes" &&
37928     test "$tst_allow_gethostbyname_r" = "yes"; then
37929    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37930printf "%s\n" "yes" >&6; }
37931
37932printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
37933
37934            #
37935    if test "$tst_nargs_gethostbyname_r" -eq "3"; then
37936
37937printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
37938
37939    elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
37940
37941printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
37942
37943    elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
37944
37945printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
37946
37947    fi
37948    #
37949    curl_cv_func_gethostbyname_r="yes"
37950  else
37951    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37952printf "%s\n" "no" >&6; }
37953    curl_cv_func_gethostbyname_r="no"
37954  fi
37955
37956
37957curl_preprocess_callconv="\
37958/* preprocess start */
37959#ifdef _WIN32
37960#  define FUNCALLCONV __stdcall
37961#else
37962#  define FUNCALLCONV
37963#endif
37964/* preprocess end */"
37965
37966
37967          #
37968  tst_links_gethostname="unknown"
37969  tst_proto_gethostname="unknown"
37970  tst_compi_gethostname="unknown"
37971  tst_allow_gethostname="unknown"
37972  #
37973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
37974printf %s "checking if gethostname can be linked... " >&6; }
37975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37976/* end confdefs.h.  */
37977
37978
37979      $curl_includes_winsock2
37980      $curl_includes_unistd
37981      $curl_includes_bsdsocket
37982
37983int main (void)
37984{
37985
37986      if(0 != gethostname(0, 0))
37987        return 1;
37988
37989 ;
37990 return 0;
37991}
37992
37993_ACEOF
37994if ac_fn_c_try_link "$LINENO"
37995then :
37996
37997    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37998printf "%s\n" "yes" >&6; }
37999    tst_links_gethostname="yes"
38000
38001else $as_nop
38002
38003    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38004printf "%s\n" "no" >&6; }
38005    tst_links_gethostname="no"
38006
38007fi
38008rm -f core conftest.err conftest.$ac_objext conftest.beam \
38009    conftest$ac_exeext conftest.$ac_ext
38010  #
38011  if test "$tst_links_gethostname" = "yes"; then
38012    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
38013printf %s "checking if gethostname is prototyped... " >&6; }
38014    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38015/* end confdefs.h.  */
38016
38017      $curl_includes_winsock2
38018      $curl_includes_unistd
38019      $curl_includes_bsdsocket
38020
38021_ACEOF
38022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38023  $EGREP "gethostname" >/dev/null 2>&1
38024then :
38025
38026      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38027printf "%s\n" "yes" >&6; }
38028      tst_proto_gethostname="yes"
38029
38030else $as_nop
38031
38032      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38033printf "%s\n" "no" >&6; }
38034      tst_proto_gethostname="no"
38035
38036fi
38037rm -rf conftest*
38038
38039  fi
38040  #
38041  if test "$tst_proto_gethostname" = "yes"; then
38042    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38043printf %s "checking if gethostname is compilable... " >&6; }
38044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38045/* end confdefs.h.  */
38046
38047
38048        $curl_includes_winsock2
38049        $curl_includes_unistd
38050        $curl_includes_bsdsocket
38051
38052int main (void)
38053{
38054
38055        if(0 != gethostname(0, 0))
38056          return 1;
38057
38058 ;
38059 return 0;
38060}
38061
38062_ACEOF
38063if ac_fn_c_try_compile "$LINENO"
38064then :
38065
38066      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38067printf "%s\n" "yes" >&6; }
38068      tst_compi_gethostname="yes"
38069
38070else $as_nop
38071
38072      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38073printf "%s\n" "no" >&6; }
38074      tst_compi_gethostname="no"
38075
38076fi
38077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38078  fi
38079  #
38080  if test "$tst_compi_gethostname" = "yes"; then
38081    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38082printf %s "checking for gethostname arg 2 data type... " >&6; }
38083    tst_gethostname_type_arg2="unknown"
38084    for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38085      for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38086        if test "$tst_gethostname_type_arg2" = "unknown"; then
38087          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38088/* end confdefs.h.  */
38089
38090
38091              $curl_includes_winsock2
38092              $curl_includes_unistd
38093              $curl_includes_bsdsocket
38094              $curl_preprocess_callconv
38095              extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38096
38097int main (void)
38098{
38099
38100              if(0 != gethostname(0, 0))
38101                return 1;
38102
38103 ;
38104 return 0;
38105}
38106
38107_ACEOF
38108if ac_fn_c_try_compile "$LINENO"
38109then :
38110
38111            tst_gethostname_type_arg2="$tst_arg2"
38112
38113fi
38114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38115        fi
38116      done
38117    done
38118    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38119printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38120    if test "$tst_gethostname_type_arg2" != "unknown"; then
38121
38122printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38123
38124    fi
38125  fi
38126  #
38127  if test "$tst_compi_gethostname" = "yes"; then
38128    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38129printf %s "checking if gethostname usage allowed... " >&6; }
38130    if test "x$curl_disallow_gethostname" != "xyes"; then
38131      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38132printf "%s\n" "yes" >&6; }
38133      tst_allow_gethostname="yes"
38134    else
38135      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38136printf "%s\n" "no" >&6; }
38137      tst_allow_gethostname="no"
38138    fi
38139  fi
38140  #
38141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38142printf %s "checking if gethostname might be used... " >&6; }
38143  if test "$tst_links_gethostname" = "yes" &&
38144     test "$tst_proto_gethostname" = "yes" &&
38145     test "$tst_compi_gethostname" = "yes" &&
38146     test "$tst_allow_gethostname" = "yes"; then
38147    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38148printf "%s\n" "yes" >&6; }
38149
38150printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38151
38152    curl_cv_func_gethostname="yes"
38153  else
38154    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38155printf "%s\n" "no" >&6; }
38156    curl_cv_func_gethostname="no"
38157  fi
38158
38159
38160          #
38161  tst_links_getpeername="unknown"
38162  tst_proto_getpeername="unknown"
38163  tst_compi_getpeername="unknown"
38164  tst_allow_getpeername="unknown"
38165  #
38166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38167printf %s "checking if getpeername can be linked... " >&6; }
38168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38169/* end confdefs.h.  */
38170
38171
38172      $curl_includes_winsock2
38173      $curl_includes_bsdsocket
38174      $curl_includes_sys_socket
38175
38176int main (void)
38177{
38178
38179      if(0 != getpeername(0, (void *)0, (void *)0))
38180        return 1;
38181
38182 ;
38183 return 0;
38184}
38185
38186_ACEOF
38187if ac_fn_c_try_link "$LINENO"
38188then :
38189
38190    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38191printf "%s\n" "yes" >&6; }
38192    tst_links_getpeername="yes"
38193
38194else $as_nop
38195
38196    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38197printf "%s\n" "no" >&6; }
38198    tst_links_getpeername="no"
38199
38200fi
38201rm -f core conftest.err conftest.$ac_objext conftest.beam \
38202    conftest$ac_exeext conftest.$ac_ext
38203  #
38204  if test "$tst_links_getpeername" = "yes"; then
38205    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38206printf %s "checking if getpeername is prototyped... " >&6; }
38207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38208/* end confdefs.h.  */
38209
38210      $curl_includes_winsock2
38211      $curl_includes_bsdsocket
38212      $curl_includes_sys_socket
38213
38214_ACEOF
38215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38216  $EGREP "getpeername" >/dev/null 2>&1
38217then :
38218
38219      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38220printf "%s\n" "yes" >&6; }
38221      tst_proto_getpeername="yes"
38222
38223else $as_nop
38224
38225      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38226printf "%s\n" "no" >&6; }
38227      tst_proto_getpeername="no"
38228
38229fi
38230rm -rf conftest*
38231
38232  fi
38233  #
38234  if test "$tst_proto_getpeername" = "yes"; then
38235    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38236printf %s "checking if getpeername is compilable... " >&6; }
38237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38238/* end confdefs.h.  */
38239
38240
38241        $curl_includes_winsock2
38242        $curl_includes_bsdsocket
38243        $curl_includes_sys_socket
38244
38245int main (void)
38246{
38247
38248        if(0 != getpeername(0, (void *)0, (void *)0))
38249          return 1;
38250
38251 ;
38252 return 0;
38253}
38254
38255_ACEOF
38256if ac_fn_c_try_compile "$LINENO"
38257then :
38258
38259      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38260printf "%s\n" "yes" >&6; }
38261      tst_compi_getpeername="yes"
38262
38263else $as_nop
38264
38265      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38266printf "%s\n" "no" >&6; }
38267      tst_compi_getpeername="no"
38268
38269fi
38270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38271  fi
38272  #
38273  if test "$tst_compi_getpeername" = "yes"; then
38274    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38275printf %s "checking if getpeername usage allowed... " >&6; }
38276    if test "x$curl_disallow_getpeername" != "xyes"; then
38277      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38278printf "%s\n" "yes" >&6; }
38279      tst_allow_getpeername="yes"
38280    else
38281      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38282printf "%s\n" "no" >&6; }
38283      tst_allow_getpeername="no"
38284    fi
38285  fi
38286  #
38287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38288printf %s "checking if getpeername might be used... " >&6; }
38289  if test "$tst_links_getpeername" = "yes" &&
38290     test "$tst_proto_getpeername" = "yes" &&
38291     test "$tst_compi_getpeername" = "yes" &&
38292     test "$tst_allow_getpeername" = "yes"; then
38293    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38294printf "%s\n" "yes" >&6; }
38295
38296printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38297
38298    curl_cv_func_getpeername="yes"
38299  else
38300    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38301printf "%s\n" "no" >&6; }
38302    curl_cv_func_getpeername="no"
38303  fi
38304
38305
38306          #
38307  tst_links_getsockname="unknown"
38308  tst_proto_getsockname="unknown"
38309  tst_compi_getsockname="unknown"
38310  tst_allow_getsockname="unknown"
38311  #
38312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38313printf %s "checking if getsockname can be linked... " >&6; }
38314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38315/* end confdefs.h.  */
38316
38317
38318      $curl_includes_winsock2
38319      $curl_includes_bsdsocket
38320      $curl_includes_sys_socket
38321
38322int main (void)
38323{
38324
38325      if(0 != getsockname(0, (void *)0, (void *)0))
38326        return 1;
38327
38328 ;
38329 return 0;
38330}
38331
38332_ACEOF
38333if ac_fn_c_try_link "$LINENO"
38334then :
38335
38336    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38337printf "%s\n" "yes" >&6; }
38338    tst_links_getsockname="yes"
38339
38340else $as_nop
38341
38342    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38343printf "%s\n" "no" >&6; }
38344    tst_links_getsockname="no"
38345
38346fi
38347rm -f core conftest.err conftest.$ac_objext conftest.beam \
38348    conftest$ac_exeext conftest.$ac_ext
38349  #
38350  if test "$tst_links_getsockname" = "yes"; then
38351    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38352printf %s "checking if getsockname is prototyped... " >&6; }
38353    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38354/* end confdefs.h.  */
38355
38356      $curl_includes_winsock2
38357      $curl_includes_bsdsocket
38358      $curl_includes_sys_socket
38359
38360_ACEOF
38361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38362  $EGREP "getsockname" >/dev/null 2>&1
38363then :
38364
38365      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38366printf "%s\n" "yes" >&6; }
38367      tst_proto_getsockname="yes"
38368
38369else $as_nop
38370
38371      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38372printf "%s\n" "no" >&6; }
38373      tst_proto_getsockname="no"
38374
38375fi
38376rm -rf conftest*
38377
38378  fi
38379  #
38380  if test "$tst_proto_getsockname" = "yes"; then
38381    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38382printf %s "checking if getsockname is compilable... " >&6; }
38383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38384/* end confdefs.h.  */
38385
38386
38387        $curl_includes_winsock2
38388        $curl_includes_bsdsocket
38389        $curl_includes_sys_socket
38390
38391int main (void)
38392{
38393
38394        if(0 != getsockname(0, (void *)0, (void *)0))
38395          return 1;
38396
38397 ;
38398 return 0;
38399}
38400
38401_ACEOF
38402if ac_fn_c_try_compile "$LINENO"
38403then :
38404
38405      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38406printf "%s\n" "yes" >&6; }
38407      tst_compi_getsockname="yes"
38408
38409else $as_nop
38410
38411      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38412printf "%s\n" "no" >&6; }
38413      tst_compi_getsockname="no"
38414
38415fi
38416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38417  fi
38418  #
38419  if test "$tst_compi_getsockname" = "yes"; then
38420    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38421printf %s "checking if getsockname usage allowed... " >&6; }
38422    if test "x$curl_disallow_getsockname" != "xyes"; then
38423      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38424printf "%s\n" "yes" >&6; }
38425      tst_allow_getsockname="yes"
38426    else
38427      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38428printf "%s\n" "no" >&6; }
38429      tst_allow_getsockname="no"
38430    fi
38431  fi
38432  #
38433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38434printf %s "checking if getsockname might be used... " >&6; }
38435  if test "$tst_links_getsockname" = "yes" &&
38436     test "$tst_proto_getsockname" = "yes" &&
38437     test "$tst_compi_getsockname" = "yes" &&
38438     test "$tst_allow_getsockname" = "yes"; then
38439    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38440printf "%s\n" "yes" >&6; }
38441
38442printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38443
38444    curl_cv_func_getsockname="yes"
38445  else
38446    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38447printf "%s\n" "no" >&6; }
38448    curl_cv_func_getsockname="no"
38449  fi
38450
38451
38452curl_includes_netif="\
38453/* includes start */
38454#ifdef HAVE_NET_IF_H
38455#  include <net/if.h>
38456#endif
38457/* includes end */"
38458  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38459"
38460if test "x$ac_cv_header_net_if_h" = xyes
38461then :
38462  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38463
38464fi
38465
38466
38467
38468        #
38469  tst_links_if_nametoindex="unknown"
38470  tst_proto_if_nametoindex="unknown"
38471  tst_compi_if_nametoindex="unknown"
38472  tst_allow_if_nametoindex="unknown"
38473  #
38474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38475printf %s "checking if if_nametoindex can be linked... " >&6; }
38476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38477/* end confdefs.h.  */
38478
38479
38480      $curl_includes_winsock2
38481      $curl_includes_bsdsocket
38482      #include <net/if.h>
38483
38484int main (void)
38485{
38486
38487      if(0 != if_nametoindex(""))
38488        return 1;
38489
38490 ;
38491 return 0;
38492}
38493
38494_ACEOF
38495if ac_fn_c_try_link "$LINENO"
38496then :
38497
38498    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38499printf "%s\n" "yes" >&6; }
38500    tst_links_if_nametoindex="yes"
38501
38502else $as_nop
38503
38504    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38505printf "%s\n" "no" >&6; }
38506    tst_links_if_nametoindex="no"
38507
38508fi
38509rm -f core conftest.err conftest.$ac_objext conftest.beam \
38510    conftest$ac_exeext conftest.$ac_ext
38511  #
38512  if test "$tst_links_if_nametoindex" = "yes"; then
38513    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38514printf %s "checking if if_nametoindex is prototyped... " >&6; }
38515    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38516/* end confdefs.h.  */
38517
38518      $curl_includes_winsock2
38519      $curl_includes_netif
38520
38521_ACEOF
38522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38523  $EGREP "if_nametoindex" >/dev/null 2>&1
38524then :
38525
38526      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38527printf "%s\n" "yes" >&6; }
38528      tst_proto_if_nametoindex="yes"
38529
38530else $as_nop
38531
38532      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38533printf "%s\n" "no" >&6; }
38534      tst_proto_if_nametoindex="no"
38535
38536fi
38537rm -rf conftest*
38538
38539  fi
38540  #
38541  if test "$tst_proto_if_nametoindex" = "yes"; then
38542    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38543printf %s "checking if if_nametoindex is compilable... " >&6; }
38544    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38545/* end confdefs.h.  */
38546
38547
38548        $curl_includes_winsock2
38549        $curl_includes_netif
38550
38551int main (void)
38552{
38553
38554        if(0 != if_nametoindex(""))
38555          return 1;
38556
38557 ;
38558 return 0;
38559}
38560
38561_ACEOF
38562if ac_fn_c_try_compile "$LINENO"
38563then :
38564
38565      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38566printf "%s\n" "yes" >&6; }
38567      tst_compi_if_nametoindex="yes"
38568
38569else $as_nop
38570
38571      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38572printf "%s\n" "no" >&6; }
38573      tst_compi_if_nametoindex="no"
38574
38575fi
38576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38577  fi
38578  #
38579  if test "$tst_compi_if_nametoindex" = "yes"; then
38580    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38581printf %s "checking if if_nametoindex usage allowed... " >&6; }
38582    if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38583      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38584printf "%s\n" "yes" >&6; }
38585      tst_allow_if_nametoindex="yes"
38586    else
38587      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38588printf "%s\n" "no" >&6; }
38589      tst_allow_if_nametoindex="no"
38590    fi
38591  fi
38592  #
38593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38594printf %s "checking if if_nametoindex might be used... " >&6; }
38595  if test "$tst_links_if_nametoindex" = "yes" &&
38596     test "$tst_proto_if_nametoindex" = "yes" &&
38597     test "$tst_compi_if_nametoindex" = "yes" &&
38598     test "$tst_allow_if_nametoindex" = "yes"; then
38599    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38600printf "%s\n" "yes" >&6; }
38601
38602printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38603
38604    curl_cv_func_if_nametoindex="yes"
38605  else
38606    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38607printf "%s\n" "no" >&6; }
38608    curl_cv_func_if_nametoindex="no"
38609  fi
38610
38611
38612curl_includes_ifaddrs="\
38613/* includes start */
38614#ifdef HAVE_SYS_TYPES_H
38615#  include <sys/types.h>
38616#endif
38617#ifdef HAVE_SYS_SOCKET_H
38618#  include <sys/socket.h>
38619#endif
38620#ifdef HAVE_NETINET_IN_H
38621#  include <netinet/in.h>
38622#endif
38623#ifdef HAVE_IFADDRS_H
38624#  include <ifaddrs.h>
38625#endif
38626/* includes end */"
38627  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38628"
38629if test "x$ac_cv_header_sys_types_h" = xyes
38630then :
38631  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38632
38633fi
38634ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38635"
38636if test "x$ac_cv_header_sys_socket_h" = xyes
38637then :
38638  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38639
38640fi
38641ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38642"
38643if test "x$ac_cv_header_netinet_in_h" = xyes
38644then :
38645  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
38646
38647fi
38648ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
38649"
38650if test "x$ac_cv_header_ifaddrs_h" = xyes
38651then :
38652  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
38653
38654fi
38655
38656
38657
38658      #
38659  tst_links_getifaddrs="unknown"
38660  tst_proto_getifaddrs="unknown"
38661  tst_compi_getifaddrs="unknown"
38662  tst_works_getifaddrs="unknown"
38663  tst_allow_getifaddrs="unknown"
38664  #
38665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
38666printf %s "checking if getifaddrs can be linked... " >&6; }
38667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38668/* end confdefs.h.  */
38669
38670
38671#define getifaddrs innocuous_getifaddrs
38672#ifdef __STDC__
38673# include <limits.h>
38674#else
38675# include <assert.h>
38676#endif
38677#undef getifaddrs
38678#ifdef __cplusplus
38679extern "C"
38680#endif
38681char getifaddrs ();
38682#if defined __stub_getifaddrs || defined __stub___getifaddrs
38683choke me
38684#endif
38685
38686int main (void)
38687{
38688return getifaddrs ();
38689 ;
38690 return 0;
38691}
38692
38693_ACEOF
38694if ac_fn_c_try_link "$LINENO"
38695then :
38696
38697    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38698printf "%s\n" "yes" >&6; }
38699    tst_links_getifaddrs="yes"
38700
38701else $as_nop
38702
38703    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38704printf "%s\n" "no" >&6; }
38705    tst_links_getifaddrs="no"
38706
38707fi
38708rm -f core conftest.err conftest.$ac_objext conftest.beam \
38709    conftest$ac_exeext conftest.$ac_ext
38710  #
38711  if test "$tst_links_getifaddrs" = "yes"; then
38712    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
38713printf %s "checking if getifaddrs is prototyped... " >&6; }
38714    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38715/* end confdefs.h.  */
38716
38717      $curl_includes_ifaddrs
38718
38719_ACEOF
38720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38721  $EGREP "getifaddrs" >/dev/null 2>&1
38722then :
38723
38724      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38725printf "%s\n" "yes" >&6; }
38726      tst_proto_getifaddrs="yes"
38727
38728else $as_nop
38729
38730      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38731printf "%s\n" "no" >&6; }
38732      tst_proto_getifaddrs="no"
38733
38734fi
38735rm -rf conftest*
38736
38737  fi
38738  #
38739  if test "$tst_proto_getifaddrs" = "yes"; then
38740    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
38741printf %s "checking if getifaddrs is compilable... " >&6; }
38742    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38743/* end confdefs.h.  */
38744
38745
38746        $curl_includes_ifaddrs
38747
38748int main (void)
38749{
38750
38751        if(0 != getifaddrs(0))
38752          return 1;
38753
38754 ;
38755 return 0;
38756}
38757
38758_ACEOF
38759if ac_fn_c_try_compile "$LINENO"
38760then :
38761
38762      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38763printf "%s\n" "yes" >&6; }
38764      tst_compi_getifaddrs="yes"
38765
38766else $as_nop
38767
38768      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38769printf "%s\n" "no" >&6; }
38770      tst_compi_getifaddrs="no"
38771
38772fi
38773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38774  fi
38775  #
38776    if test "x$cross_compiling" != "xyes" &&
38777    test "$tst_compi_getifaddrs" = "yes"; then
38778    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
38779printf %s "checking if getifaddrs seems to work... " >&6; }
38780
38781   case $host_os in
38782     darwin*)
38783      if test "$cross_compiling" = yes
38784then :
38785  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38786printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38787as_fn_error $? "cannot run test program while cross compiling
38788See \`config.log' for more details" "$LINENO" 5; }
38789else $as_nop
38790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38791/* end confdefs.h.  */
38792
38793
38794        $curl_includes_stdlib
38795        $curl_includes_ifaddrs
38796
38797int main (void)
38798{
38799
38800        struct ifaddrs *ifa = 0;
38801        int error;
38802
38803        error = getifaddrs(&ifa);
38804        if(error || !ifa)
38805          exit(1); /* fail */
38806        else
38807          exit(0);
38808
38809 ;
38810 return 0;
38811}
38812
38813_ACEOF
38814if ac_fn_c_try_run "$LINENO"
38815then :
38816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38817printf "%s\n" "yes" >&6; }
38818      tst_works_getifaddrs="yes"
38819
38820else $as_nop
38821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38822printf "%s\n" "no" >&6; }
38823      tst_works_getifaddrs="no"
38824
38825fi
38826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38827  conftest.$ac_objext conftest.beam conftest.$ac_ext
38828fi
38829
38830     ;;
38831     *)
38832      oldcc=$CC
38833      old=$LD_LIBRARY_PATH
38834      CC="sh ./run-compiler"
38835      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38836      export LD_LIBRARY_PATH
38837      if test "$cross_compiling" = yes
38838then :
38839  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38840printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38841as_fn_error $? "cannot run test program while cross compiling
38842See \`config.log' for more details" "$LINENO" 5; }
38843else $as_nop
38844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38845/* end confdefs.h.  */
38846
38847
38848        $curl_includes_stdlib
38849        $curl_includes_ifaddrs
38850
38851int main (void)
38852{
38853
38854        struct ifaddrs *ifa = 0;
38855        int error;
38856
38857        error = getifaddrs(&ifa);
38858        if(error || !ifa)
38859          exit(1); /* fail */
38860        else
38861          exit(0);
38862
38863 ;
38864 return 0;
38865}
38866
38867_ACEOF
38868if ac_fn_c_try_run "$LINENO"
38869then :
38870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38871printf "%s\n" "yes" >&6; }
38872      tst_works_getifaddrs="yes"
38873
38874else $as_nop
38875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38876printf "%s\n" "no" >&6; }
38877      tst_works_getifaddrs="no"
38878
38879fi
38880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38881  conftest.$ac_objext conftest.beam conftest.$ac_ext
38882fi
38883
38884      LD_LIBRARY_PATH=$old # restore
38885      CC=$oldcc
38886     ;;
38887   esac
38888
38889  fi
38890  #
38891  if test "$tst_compi_getifaddrs" = "yes" &&
38892    test "$tst_works_getifaddrs" != "no"; then
38893    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
38894printf %s "checking if getifaddrs usage allowed... " >&6; }
38895    if test "x$curl_disallow_getifaddrs" != "xyes"; then
38896      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38897printf "%s\n" "yes" >&6; }
38898      tst_allow_getifaddrs="yes"
38899    else
38900      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38901printf "%s\n" "no" >&6; }
38902      tst_allow_getifaddrs="no"
38903    fi
38904  fi
38905  #
38906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
38907printf %s "checking if getifaddrs might be used... " >&6; }
38908  if test "$tst_links_getifaddrs" = "yes" &&
38909     test "$tst_proto_getifaddrs" = "yes" &&
38910     test "$tst_compi_getifaddrs" = "yes" &&
38911     test "$tst_allow_getifaddrs" = "yes" &&
38912     test "$tst_works_getifaddrs" != "no"; then
38913    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38914printf "%s\n" "yes" >&6; }
38915
38916printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
38917
38918    curl_cv_func_getifaddrs="yes"
38919  else
38920    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38921printf "%s\n" "no" >&6; }
38922    curl_cv_func_getifaddrs="no"
38923  fi
38924
38925
38926curl_includes_time="\
38927/* includes start */
38928#ifdef HAVE_SYS_TYPES_H
38929#  include <sys/types.h>
38930#endif
38931#ifdef HAVE_SYS_TIME_H
38932#  include <sys/time.h>
38933#endif
38934#include <time.h>
38935/* includes end */"
38936  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
38937"
38938if test "x$ac_cv_header_sys_types_h" = xyes
38939then :
38940  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38941
38942fi
38943ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
38944"
38945if test "x$ac_cv_header_sys_time_h" = xyes
38946then :
38947  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
38948
38949fi
38950
38951
38952
38953      #
38954  tst_links_gmtime_r="unknown"
38955  tst_proto_gmtime_r="unknown"
38956  tst_compi_gmtime_r="unknown"
38957  tst_works_gmtime_r="unknown"
38958  tst_allow_gmtime_r="unknown"
38959  #
38960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
38961printf %s "checking if gmtime_r can be linked... " >&6; }
38962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38963/* end confdefs.h.  */
38964
38965
38966#define gmtime_r innocuous_gmtime_r
38967#ifdef __STDC__
38968# include <limits.h>
38969#else
38970# include <assert.h>
38971#endif
38972#undef gmtime_r
38973#ifdef __cplusplus
38974extern "C"
38975#endif
38976char gmtime_r ();
38977#if defined __stub_gmtime_r || defined __stub___gmtime_r
38978choke me
38979#endif
38980
38981int main (void)
38982{
38983return gmtime_r ();
38984 ;
38985 return 0;
38986}
38987
38988_ACEOF
38989if ac_fn_c_try_link "$LINENO"
38990then :
38991
38992    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38993printf "%s\n" "yes" >&6; }
38994    tst_links_gmtime_r="yes"
38995
38996else $as_nop
38997
38998    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38999printf "%s\n" "no" >&6; }
39000    tst_links_gmtime_r="no"
39001
39002fi
39003rm -f core conftest.err conftest.$ac_objext conftest.beam \
39004    conftest$ac_exeext conftest.$ac_ext
39005  #
39006  if test "$tst_links_gmtime_r" = "yes"; then
39007    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
39008printf %s "checking if gmtime_r is prototyped... " >&6; }
39009    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39010/* end confdefs.h.  */
39011
39012      $curl_includes_time
39013
39014_ACEOF
39015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39016  $EGREP "gmtime_r" >/dev/null 2>&1
39017then :
39018
39019      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39020printf "%s\n" "yes" >&6; }
39021      tst_proto_gmtime_r="yes"
39022
39023else $as_nop
39024
39025      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39026printf "%s\n" "no" >&6; }
39027      tst_proto_gmtime_r="no"
39028
39029fi
39030rm -rf conftest*
39031
39032  fi
39033  #
39034  if test "$tst_proto_gmtime_r" = "yes"; then
39035    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39036printf %s "checking if gmtime_r is compilable... " >&6; }
39037    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39038/* end confdefs.h.  */
39039
39040
39041        $curl_includes_time
39042
39043int main (void)
39044{
39045
39046        if(0 != gmtime_r(0, 0))
39047          return 1;
39048
39049 ;
39050 return 0;
39051}
39052
39053_ACEOF
39054if ac_fn_c_try_compile "$LINENO"
39055then :
39056
39057      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39058printf "%s\n" "yes" >&6; }
39059      tst_compi_gmtime_r="yes"
39060
39061else $as_nop
39062
39063      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39064printf "%s\n" "no" >&6; }
39065      tst_compi_gmtime_r="no"
39066
39067fi
39068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39069  fi
39070  #
39071    if test "x$cross_compiling" != "xyes" &&
39072    test "$tst_compi_gmtime_r" = "yes"; then
39073    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39074printf %s "checking if gmtime_r seems to work... " >&6; }
39075
39076   case $host_os in
39077     darwin*)
39078      if test "$cross_compiling" = yes
39079then :
39080  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39081printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39082as_fn_error $? "cannot run test program while cross compiling
39083See \`config.log' for more details" "$LINENO" 5; }
39084else $as_nop
39085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39086/* end confdefs.h.  */
39087
39088
39089        $curl_includes_stdlib
39090        $curl_includes_time
39091
39092int main (void)
39093{
39094
39095        time_t local = 1170352587;
39096        struct tm *gmt = 0;
39097        struct tm result;
39098        gmt = gmtime_r(&local, &result);
39099        if(gmt)
39100          exit(0);
39101        else
39102          exit(1);
39103
39104 ;
39105 return 0;
39106}
39107
39108_ACEOF
39109if ac_fn_c_try_run "$LINENO"
39110then :
39111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39112printf "%s\n" "yes" >&6; }
39113      tst_works_gmtime_r="yes"
39114
39115else $as_nop
39116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39117printf "%s\n" "no" >&6; }
39118      tst_works_gmtime_r="no"
39119
39120fi
39121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39122  conftest.$ac_objext conftest.beam conftest.$ac_ext
39123fi
39124
39125     ;;
39126     *)
39127      oldcc=$CC
39128      old=$LD_LIBRARY_PATH
39129      CC="sh ./run-compiler"
39130      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39131      export LD_LIBRARY_PATH
39132      if test "$cross_compiling" = yes
39133then :
39134  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39135printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39136as_fn_error $? "cannot run test program while cross compiling
39137See \`config.log' for more details" "$LINENO" 5; }
39138else $as_nop
39139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39140/* end confdefs.h.  */
39141
39142
39143        $curl_includes_stdlib
39144        $curl_includes_time
39145
39146int main (void)
39147{
39148
39149        time_t local = 1170352587;
39150        struct tm *gmt = 0;
39151        struct tm result;
39152        gmt = gmtime_r(&local, &result);
39153        if(gmt)
39154          exit(0);
39155        else
39156          exit(1);
39157
39158 ;
39159 return 0;
39160}
39161
39162_ACEOF
39163if ac_fn_c_try_run "$LINENO"
39164then :
39165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39166printf "%s\n" "yes" >&6; }
39167      tst_works_gmtime_r="yes"
39168
39169else $as_nop
39170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39171printf "%s\n" "no" >&6; }
39172      tst_works_gmtime_r="no"
39173
39174fi
39175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39176  conftest.$ac_objext conftest.beam conftest.$ac_ext
39177fi
39178
39179      LD_LIBRARY_PATH=$old # restore
39180      CC=$oldcc
39181     ;;
39182   esac
39183
39184  fi
39185  #
39186  if test "$tst_compi_gmtime_r" = "yes" &&
39187    test "$tst_works_gmtime_r" != "no"; then
39188    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39189printf %s "checking if gmtime_r usage allowed... " >&6; }
39190    if test "x$curl_disallow_gmtime_r" != "xyes"; then
39191      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39192printf "%s\n" "yes" >&6; }
39193      tst_allow_gmtime_r="yes"
39194    else
39195      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39196printf "%s\n" "no" >&6; }
39197      tst_allow_gmtime_r="no"
39198    fi
39199  fi
39200  #
39201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39202printf %s "checking if gmtime_r might be used... " >&6; }
39203  if test "$tst_links_gmtime_r" = "yes" &&
39204     test "$tst_proto_gmtime_r" = "yes" &&
39205     test "$tst_compi_gmtime_r" = "yes" &&
39206     test "$tst_allow_gmtime_r" = "yes" &&
39207     test "$tst_works_gmtime_r" != "no"; then
39208    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39209printf "%s\n" "yes" >&6; }
39210
39211printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39212
39213    curl_cv_func_gmtime_r="yes"
39214  else
39215    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39216printf "%s\n" "no" >&6; }
39217    curl_cv_func_gmtime_r="no"
39218  fi
39219
39220
39221curl_includes_arpa_inet="\
39222/* includes start */
39223#ifdef HAVE_SYS_TYPES_H
39224#  include <sys/types.h>
39225#endif
39226#ifdef HAVE_SYS_SOCKET_H
39227#  include <sys/socket.h>
39228#endif
39229#ifdef HAVE_NETINET_IN_H
39230#  include <netinet/in.h>
39231#endif
39232#ifdef HAVE_ARPA_INET_H
39233#  include <arpa/inet.h>
39234#endif
39235#ifdef _WIN32
39236#include <winsock2.h>
39237#include <ws2tcpip.h>
39238#endif
39239/* includes end */"
39240  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39241"
39242if test "x$ac_cv_header_sys_types_h" = xyes
39243then :
39244  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39245
39246fi
39247ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39248"
39249if test "x$ac_cv_header_sys_socket_h" = xyes
39250then :
39251  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39252
39253fi
39254ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39255"
39256if test "x$ac_cv_header_netinet_in_h" = xyes
39257then :
39258  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39259
39260fi
39261ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39262"
39263if test "x$ac_cv_header_arpa_inet_h" = xyes
39264then :
39265  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39266
39267fi
39268
39269
39270
39271        #
39272  tst_links_inet_ntop="unknown"
39273  tst_proto_inet_ntop="unknown"
39274  tst_compi_inet_ntop="unknown"
39275  tst_works_inet_ntop="unknown"
39276  tst_allow_inet_ntop="unknown"
39277  #
39278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39279printf %s "checking if inet_ntop can be linked... " >&6; }
39280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39281/* end confdefs.h.  */
39282
39283
39284#define inet_ntop innocuous_inet_ntop
39285#ifdef __STDC__
39286# include <limits.h>
39287#else
39288# include <assert.h>
39289#endif
39290#undef inet_ntop
39291#ifdef __cplusplus
39292extern "C"
39293#endif
39294char inet_ntop ();
39295#if defined __stub_inet_ntop || defined __stub___inet_ntop
39296choke me
39297#endif
39298
39299int main (void)
39300{
39301return inet_ntop ();
39302 ;
39303 return 0;
39304}
39305
39306_ACEOF
39307if ac_fn_c_try_link "$LINENO"
39308then :
39309
39310    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39311printf "%s\n" "yes" >&6; }
39312    tst_links_inet_ntop="yes"
39313
39314else $as_nop
39315
39316    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39317printf "%s\n" "no" >&6; }
39318    tst_links_inet_ntop="no"
39319
39320fi
39321rm -f core conftest.err conftest.$ac_objext conftest.beam \
39322    conftest$ac_exeext conftest.$ac_ext
39323  #
39324  if test "$tst_links_inet_ntop" = "yes"; then
39325    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39326printf %s "checking if inet_ntop is prototyped... " >&6; }
39327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39328/* end confdefs.h.  */
39329
39330      $curl_includes_arpa_inet
39331
39332_ACEOF
39333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39334  $EGREP "inet_ntop" >/dev/null 2>&1
39335then :
39336
39337      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39338printf "%s\n" "yes" >&6; }
39339      tst_proto_inet_ntop="yes"
39340
39341else $as_nop
39342
39343      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39344printf "%s\n" "no" >&6; }
39345      tst_proto_inet_ntop="no"
39346
39347fi
39348rm -rf conftest*
39349
39350  fi
39351  #
39352  if test "$tst_proto_inet_ntop" = "yes"; then
39353    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39354printf %s "checking if inet_ntop is compilable... " >&6; }
39355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39356/* end confdefs.h.  */
39357
39358
39359        $curl_includes_arpa_inet
39360
39361int main (void)
39362{
39363
39364        if(0 != inet_ntop(0, 0, 0, 0))
39365          return 1;
39366
39367 ;
39368 return 0;
39369}
39370
39371_ACEOF
39372if ac_fn_c_try_compile "$LINENO"
39373then :
39374
39375      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39376printf "%s\n" "yes" >&6; }
39377      tst_compi_inet_ntop="yes"
39378
39379else $as_nop
39380
39381      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39382printf "%s\n" "no" >&6; }
39383      tst_compi_inet_ntop="no"
39384
39385fi
39386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39387  fi
39388  #
39389    if test "x$cross_compiling" != "xyes" &&
39390    test "$tst_compi_inet_ntop" = "yes"; then
39391    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39392printf %s "checking if inet_ntop seems to work... " >&6; }
39393
39394   case $host_os in
39395     darwin*)
39396      if test "$cross_compiling" = yes
39397then :
39398  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39399printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39400as_fn_error $? "cannot run test program while cross compiling
39401See \`config.log' for more details" "$LINENO" 5; }
39402else $as_nop
39403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39404/* end confdefs.h.  */
39405
39406
39407        $curl_includes_stdlib
39408        $curl_includes_arpa_inet
39409        $curl_includes_string
39410
39411int main (void)
39412{
39413
39414        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39415        char ipv4res[sizeof "255.255.255.255"];
39416        unsigned char ipv6a[26];
39417        unsigned char ipv4a[5];
39418        char *ipv6ptr = 0;
39419        char *ipv4ptr = 0;
39420        /* - */
39421        ipv4res[0] = '\0';
39422        ipv4a[0] = 0xc0;
39423        ipv4a[1] = 0xa8;
39424        ipv4a[2] = 0x64;
39425        ipv4a[3] = 0x01;
39426        ipv4a[4] = 0x01;
39427        /* - */
39428        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39429        if(!ipv4ptr)
39430          exit(1); /* fail */
39431        if(ipv4ptr != ipv4res)
39432          exit(1); /* fail */
39433        if(!ipv4ptr[0])
39434          exit(1); /* fail */
39435        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39436          exit(1); /* fail */
39437        /* - */
39438        ipv6res[0] = '\0';
39439        memset(ipv6a, 0, sizeof(ipv6a));
39440        ipv6a[0] = 0xfe;
39441        ipv6a[1] = 0x80;
39442        ipv6a[8] = 0x02;
39443        ipv6a[9] = 0x14;
39444        ipv6a[10] = 0x4f;
39445        ipv6a[11] = 0xff;
39446        ipv6a[12] = 0xfe;
39447        ipv6a[13] = 0x0b;
39448        ipv6a[14] = 0x76;
39449        ipv6a[15] = 0xc8;
39450        ipv6a[25] = 0x01;
39451        /* - */
39452        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39453        if(!ipv6ptr)
39454          exit(1); /* fail */
39455        if(ipv6ptr != ipv6res)
39456          exit(1); /* fail */
39457        if(!ipv6ptr[0])
39458          exit(1); /* fail */
39459        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39460          exit(1); /* fail */
39461        /* - */
39462        exit(0);
39463
39464 ;
39465 return 0;
39466}
39467
39468_ACEOF
39469if ac_fn_c_try_run "$LINENO"
39470then :
39471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39472printf "%s\n" "yes" >&6; }
39473      tst_works_inet_ntop="yes"
39474
39475else $as_nop
39476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39477printf "%s\n" "no" >&6; }
39478      tst_works_inet_ntop="no"
39479
39480fi
39481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39482  conftest.$ac_objext conftest.beam conftest.$ac_ext
39483fi
39484
39485     ;;
39486     *)
39487      oldcc=$CC
39488      old=$LD_LIBRARY_PATH
39489      CC="sh ./run-compiler"
39490      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39491      export LD_LIBRARY_PATH
39492      if test "$cross_compiling" = yes
39493then :
39494  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39495printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39496as_fn_error $? "cannot run test program while cross compiling
39497See \`config.log' for more details" "$LINENO" 5; }
39498else $as_nop
39499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39500/* end confdefs.h.  */
39501
39502
39503        $curl_includes_stdlib
39504        $curl_includes_arpa_inet
39505        $curl_includes_string
39506
39507int main (void)
39508{
39509
39510        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39511        char ipv4res[sizeof "255.255.255.255"];
39512        unsigned char ipv6a[26];
39513        unsigned char ipv4a[5];
39514        char *ipv6ptr = 0;
39515        char *ipv4ptr = 0;
39516        /* - */
39517        ipv4res[0] = '\0';
39518        ipv4a[0] = 0xc0;
39519        ipv4a[1] = 0xa8;
39520        ipv4a[2] = 0x64;
39521        ipv4a[3] = 0x01;
39522        ipv4a[4] = 0x01;
39523        /* - */
39524        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39525        if(!ipv4ptr)
39526          exit(1); /* fail */
39527        if(ipv4ptr != ipv4res)
39528          exit(1); /* fail */
39529        if(!ipv4ptr[0])
39530          exit(1); /* fail */
39531        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39532          exit(1); /* fail */
39533        /* - */
39534        ipv6res[0] = '\0';
39535        memset(ipv6a, 0, sizeof(ipv6a));
39536        ipv6a[0] = 0xfe;
39537        ipv6a[1] = 0x80;
39538        ipv6a[8] = 0x02;
39539        ipv6a[9] = 0x14;
39540        ipv6a[10] = 0x4f;
39541        ipv6a[11] = 0xff;
39542        ipv6a[12] = 0xfe;
39543        ipv6a[13] = 0x0b;
39544        ipv6a[14] = 0x76;
39545        ipv6a[15] = 0xc8;
39546        ipv6a[25] = 0x01;
39547        /* - */
39548        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39549        if(!ipv6ptr)
39550          exit(1); /* fail */
39551        if(ipv6ptr != ipv6res)
39552          exit(1); /* fail */
39553        if(!ipv6ptr[0])
39554          exit(1); /* fail */
39555        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39556          exit(1); /* fail */
39557        /* - */
39558        exit(0);
39559
39560 ;
39561 return 0;
39562}
39563
39564_ACEOF
39565if ac_fn_c_try_run "$LINENO"
39566then :
39567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39568printf "%s\n" "yes" >&6; }
39569      tst_works_inet_ntop="yes"
39570
39571else $as_nop
39572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39573printf "%s\n" "no" >&6; }
39574      tst_works_inet_ntop="no"
39575
39576fi
39577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39578  conftest.$ac_objext conftest.beam conftest.$ac_ext
39579fi
39580
39581      LD_LIBRARY_PATH=$old # restore
39582      CC=$oldcc
39583     ;;
39584   esac
39585
39586  fi
39587  #
39588  if test "$tst_compi_inet_ntop" = "yes" &&
39589    test "$tst_works_inet_ntop" != "no"; then
39590    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39591printf %s "checking if inet_ntop usage allowed... " >&6; }
39592    if test "x$curl_disallow_inet_ntop" != "xyes"; then
39593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39594printf "%s\n" "yes" >&6; }
39595      tst_allow_inet_ntop="yes"
39596    else
39597      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39598printf "%s\n" "no" >&6; }
39599      tst_allow_inet_ntop="no"
39600    fi
39601  fi
39602  #
39603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39604printf %s "checking if inet_ntop might be used... " >&6; }
39605  if test "$tst_links_inet_ntop" = "yes" &&
39606     test "$tst_proto_inet_ntop" = "yes" &&
39607     test "$tst_compi_inet_ntop" = "yes" &&
39608     test "$tst_allow_inet_ntop" = "yes" &&
39609     test "$tst_works_inet_ntop" != "no"; then
39610    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39611printf "%s\n" "yes" >&6; }
39612
39613printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39614
39615    curl_cv_func_inet_ntop="yes"
39616  else
39617    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39618printf "%s\n" "no" >&6; }
39619    curl_cv_func_inet_ntop="no"
39620  fi
39621
39622
39623        #
39624  tst_links_inet_pton="unknown"
39625  tst_proto_inet_pton="unknown"
39626  tst_compi_inet_pton="unknown"
39627  tst_works_inet_pton="unknown"
39628  tst_allow_inet_pton="unknown"
39629  #
39630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39631printf %s "checking if inet_pton can be linked... " >&6; }
39632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39633/* end confdefs.h.  */
39634
39635
39636#define inet_pton innocuous_inet_pton
39637#ifdef __STDC__
39638# include <limits.h>
39639#else
39640# include <assert.h>
39641#endif
39642#undef inet_pton
39643#ifdef __cplusplus
39644extern "C"
39645#endif
39646char inet_pton ();
39647#if defined __stub_inet_pton || defined __stub___inet_pton
39648choke me
39649#endif
39650
39651int main (void)
39652{
39653return inet_pton ();
39654 ;
39655 return 0;
39656}
39657
39658_ACEOF
39659if ac_fn_c_try_link "$LINENO"
39660then :
39661
39662    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39663printf "%s\n" "yes" >&6; }
39664    tst_links_inet_pton="yes"
39665
39666else $as_nop
39667
39668    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39669printf "%s\n" "no" >&6; }
39670    tst_links_inet_pton="no"
39671
39672fi
39673rm -f core conftest.err conftest.$ac_objext conftest.beam \
39674    conftest$ac_exeext conftest.$ac_ext
39675  #
39676  if test "$tst_links_inet_pton" = "yes"; then
39677    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
39678printf %s "checking if inet_pton is prototyped... " >&6; }
39679    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39680/* end confdefs.h.  */
39681
39682      $curl_includes_arpa_inet
39683
39684_ACEOF
39685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39686  $EGREP "inet_pton" >/dev/null 2>&1
39687then :
39688
39689      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39690printf "%s\n" "yes" >&6; }
39691      tst_proto_inet_pton="yes"
39692
39693else $as_nop
39694
39695      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39696printf "%s\n" "no" >&6; }
39697      tst_proto_inet_pton="no"
39698
39699fi
39700rm -rf conftest*
39701
39702  fi
39703  #
39704  if test "$tst_proto_inet_pton" = "yes"; then
39705    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
39706printf %s "checking if inet_pton is compilable... " >&6; }
39707    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39708/* end confdefs.h.  */
39709
39710
39711        $curl_includes_arpa_inet
39712
39713int main (void)
39714{
39715
39716        if(0 != inet_pton(0, 0, 0))
39717          return 1;
39718
39719 ;
39720 return 0;
39721}
39722
39723_ACEOF
39724if ac_fn_c_try_compile "$LINENO"
39725then :
39726
39727      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39728printf "%s\n" "yes" >&6; }
39729      tst_compi_inet_pton="yes"
39730
39731else $as_nop
39732
39733      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39734printf "%s\n" "no" >&6; }
39735      tst_compi_inet_pton="no"
39736
39737fi
39738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39739  fi
39740  #
39741    if test "x$cross_compiling" != "xyes" &&
39742    test "$tst_compi_inet_pton" = "yes"; then
39743    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
39744printf %s "checking if inet_pton seems to work... " >&6; }
39745
39746   case $host_os in
39747     darwin*)
39748      if test "$cross_compiling" = yes
39749then :
39750  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39751printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39752as_fn_error $? "cannot run test program while cross compiling
39753See \`config.log' for more details" "$LINENO" 5; }
39754else $as_nop
39755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39756/* end confdefs.h.  */
39757
39758
39759        $curl_includes_stdlib
39760        $curl_includes_arpa_inet
39761        $curl_includes_string
39762
39763int main (void)
39764{
39765
39766        unsigned char ipv6a[16+1];
39767        unsigned char ipv4a[4+1];
39768        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39769        const char *ipv4src = "192.168.100.1";
39770        /* - */
39771        memset(ipv4a, 1, sizeof(ipv4a));
39772        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39773          exit(1); /* fail */
39774        /* - */
39775        if( (ipv4a[0] != 0xc0) ||
39776            (ipv4a[1] != 0xa8) ||
39777            (ipv4a[2] != 0x64) ||
39778            (ipv4a[3] != 0x01) ||
39779            (ipv4a[4] != 0x01) )
39780          exit(1); /* fail */
39781        /* - */
39782        memset(ipv6a, 1, sizeof(ipv6a));
39783        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39784          exit(1); /* fail */
39785        /* - */
39786        if( (ipv6a[0]  != 0xfe) ||
39787            (ipv6a[1]  != 0x80) ||
39788            (ipv6a[8]  != 0x02) ||
39789            (ipv6a[9]  != 0x14) ||
39790            (ipv6a[10] != 0x4f) ||
39791            (ipv6a[11] != 0xff) ||
39792            (ipv6a[12] != 0xfe) ||
39793            (ipv6a[13] != 0x0b) ||
39794            (ipv6a[14] != 0x76) ||
39795            (ipv6a[15] != 0xc8) ||
39796            (ipv6a[16] != 0x01) )
39797          exit(1); /* fail */
39798        /* - */
39799        if( (ipv6a[2]  != 0x0) ||
39800            (ipv6a[3]  != 0x0) ||
39801            (ipv6a[4]  != 0x0) ||
39802            (ipv6a[5]  != 0x0) ||
39803            (ipv6a[6]  != 0x0) ||
39804            (ipv6a[7]  != 0x0) )
39805          exit(1); /* fail */
39806        /* - */
39807        exit(0);
39808
39809 ;
39810 return 0;
39811}
39812
39813_ACEOF
39814if ac_fn_c_try_run "$LINENO"
39815then :
39816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39817printf "%s\n" "yes" >&6; }
39818      tst_works_inet_pton="yes"
39819
39820else $as_nop
39821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39822printf "%s\n" "no" >&6; }
39823      tst_works_inet_pton="no"
39824
39825fi
39826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39827  conftest.$ac_objext conftest.beam conftest.$ac_ext
39828fi
39829
39830     ;;
39831     *)
39832      oldcc=$CC
39833      old=$LD_LIBRARY_PATH
39834      CC="sh ./run-compiler"
39835      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39836      export LD_LIBRARY_PATH
39837      if test "$cross_compiling" = yes
39838then :
39839  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39840printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39841as_fn_error $? "cannot run test program while cross compiling
39842See \`config.log' for more details" "$LINENO" 5; }
39843else $as_nop
39844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39845/* end confdefs.h.  */
39846
39847
39848        $curl_includes_stdlib
39849        $curl_includes_arpa_inet
39850        $curl_includes_string
39851
39852int main (void)
39853{
39854
39855        unsigned char ipv6a[16+1];
39856        unsigned char ipv4a[4+1];
39857        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39858        const char *ipv4src = "192.168.100.1";
39859        /* - */
39860        memset(ipv4a, 1, sizeof(ipv4a));
39861        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39862          exit(1); /* fail */
39863        /* - */
39864        if( (ipv4a[0] != 0xc0) ||
39865            (ipv4a[1] != 0xa8) ||
39866            (ipv4a[2] != 0x64) ||
39867            (ipv4a[3] != 0x01) ||
39868            (ipv4a[4] != 0x01) )
39869          exit(1); /* fail */
39870        /* - */
39871        memset(ipv6a, 1, sizeof(ipv6a));
39872        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39873          exit(1); /* fail */
39874        /* - */
39875        if( (ipv6a[0]  != 0xfe) ||
39876            (ipv6a[1]  != 0x80) ||
39877            (ipv6a[8]  != 0x02) ||
39878            (ipv6a[9]  != 0x14) ||
39879            (ipv6a[10] != 0x4f) ||
39880            (ipv6a[11] != 0xff) ||
39881            (ipv6a[12] != 0xfe) ||
39882            (ipv6a[13] != 0x0b) ||
39883            (ipv6a[14] != 0x76) ||
39884            (ipv6a[15] != 0xc8) ||
39885            (ipv6a[16] != 0x01) )
39886          exit(1); /* fail */
39887        /* - */
39888        if( (ipv6a[2]  != 0x0) ||
39889            (ipv6a[3]  != 0x0) ||
39890            (ipv6a[4]  != 0x0) ||
39891            (ipv6a[5]  != 0x0) ||
39892            (ipv6a[6]  != 0x0) ||
39893            (ipv6a[7]  != 0x0) )
39894          exit(1); /* fail */
39895        /* - */
39896        exit(0);
39897
39898 ;
39899 return 0;
39900}
39901
39902_ACEOF
39903if ac_fn_c_try_run "$LINENO"
39904then :
39905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39906printf "%s\n" "yes" >&6; }
39907      tst_works_inet_pton="yes"
39908
39909else $as_nop
39910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39911printf "%s\n" "no" >&6; }
39912      tst_works_inet_pton="no"
39913
39914fi
39915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39916  conftest.$ac_objext conftest.beam conftest.$ac_ext
39917fi
39918
39919      LD_LIBRARY_PATH=$old # restore
39920      CC=$oldcc
39921     ;;
39922   esac
39923
39924  fi
39925  #
39926  if test "$tst_compi_inet_pton" = "yes" &&
39927    test "$tst_works_inet_pton" != "no"; then
39928    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
39929printf %s "checking if inet_pton usage allowed... " >&6; }
39930    if test "x$curl_disallow_inet_pton" != "xyes"; then
39931      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39932printf "%s\n" "yes" >&6; }
39933      tst_allow_inet_pton="yes"
39934    else
39935      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39936printf "%s\n" "no" >&6; }
39937      tst_allow_inet_pton="no"
39938    fi
39939  fi
39940  #
39941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
39942printf %s "checking if inet_pton might be used... " >&6; }
39943  if test "$tst_links_inet_pton" = "yes" &&
39944     test "$tst_proto_inet_pton" = "yes" &&
39945     test "$tst_compi_inet_pton" = "yes" &&
39946     test "$tst_allow_inet_pton" = "yes" &&
39947     test "$tst_works_inet_pton" != "no"; then
39948    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39949printf "%s\n" "yes" >&6; }
39950
39951printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
39952
39953    curl_cv_func_inet_pton="yes"
39954  else
39955    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39956printf "%s\n" "no" >&6; }
39957    curl_cv_func_inet_pton="no"
39958  fi
39959
39960
39961curl_includes_stropts="\
39962/* includes start */
39963#ifdef HAVE_SYS_TYPES_H
39964#  include <sys/types.h>
39965#endif
39966#ifdef HAVE_UNISTD_H
39967#  include <unistd.h>
39968#endif
39969#ifdef HAVE_SYS_SOCKET_H
39970#  include <sys/socket.h>
39971#endif
39972#ifdef HAVE_SYS_IOCTL_H
39973#  include <sys/ioctl.h>
39974#endif
39975#ifdef HAVE_STROPTS_H
39976#  include <stropts.h>
39977#endif
39978/* includes end */"
39979  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts
39980"
39981if test "x$ac_cv_header_sys_types_h" = xyes
39982then :
39983  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39984
39985fi
39986ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts
39987"
39988if test "x$ac_cv_header_unistd_h" = xyes
39989then :
39990  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
39991
39992fi
39993ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_stropts
39994"
39995if test "x$ac_cv_header_sys_socket_h" = xyes
39996then :
39997  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39998
39999fi
40000ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts
40001"
40002if test "x$ac_cv_header_sys_ioctl_h" = xyes
40003then :
40004  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
40005
40006fi
40007ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts
40008"
40009if test "x$ac_cv_header_stropts_h" = xyes
40010then :
40011  printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
40012
40013fi
40014
40015
40016
40017    #
40018  tst_links_ioctl="unknown"
40019  tst_proto_ioctl="unknown"
40020  tst_compi_ioctl="unknown"
40021  tst_allow_ioctl="unknown"
40022  #
40023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
40024printf %s "checking if ioctl can be linked... " >&6; }
40025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40026/* end confdefs.h.  */
40027
40028
40029#define ioctl innocuous_ioctl
40030#ifdef __STDC__
40031# include <limits.h>
40032#else
40033# include <assert.h>
40034#endif
40035#undef ioctl
40036#ifdef __cplusplus
40037extern "C"
40038#endif
40039char ioctl ();
40040#if defined __stub_ioctl || defined __stub___ioctl
40041choke me
40042#endif
40043
40044int main (void)
40045{
40046return ioctl ();
40047 ;
40048 return 0;
40049}
40050
40051_ACEOF
40052if ac_fn_c_try_link "$LINENO"
40053then :
40054
40055    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40056printf "%s\n" "yes" >&6; }
40057    tst_links_ioctl="yes"
40058
40059else $as_nop
40060
40061    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40062printf "%s\n" "no" >&6; }
40063    tst_links_ioctl="no"
40064
40065fi
40066rm -f core conftest.err conftest.$ac_objext conftest.beam \
40067    conftest$ac_exeext conftest.$ac_ext
40068  #
40069  if test "$tst_links_ioctl" = "yes"; then
40070    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
40071printf %s "checking if ioctl is prototyped... " >&6; }
40072    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40073/* end confdefs.h.  */
40074
40075      $curl_includes_stropts
40076
40077_ACEOF
40078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40079  $EGREP "ioctl" >/dev/null 2>&1
40080then :
40081
40082      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40083printf "%s\n" "yes" >&6; }
40084      tst_proto_ioctl="yes"
40085
40086else $as_nop
40087
40088      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40089printf "%s\n" "no" >&6; }
40090      tst_proto_ioctl="no"
40091
40092fi
40093rm -rf conftest*
40094
40095  fi
40096  #
40097  if test "$tst_proto_ioctl" = "yes"; then
40098    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
40099printf %s "checking if ioctl is compilable... " >&6; }
40100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40101/* end confdefs.h.  */
40102
40103
40104        $curl_includes_stropts
40105
40106int main (void)
40107{
40108
40109        if(0 != ioctl(0, 0, 0))
40110          return 1;
40111
40112 ;
40113 return 0;
40114}
40115
40116_ACEOF
40117if ac_fn_c_try_compile "$LINENO"
40118then :
40119
40120      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40121printf "%s\n" "yes" >&6; }
40122      tst_compi_ioctl="yes"
40123
40124else $as_nop
40125
40126      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40127printf "%s\n" "no" >&6; }
40128      tst_compi_ioctl="no"
40129
40130fi
40131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40132  fi
40133  #
40134  if test "$tst_compi_ioctl" = "yes"; then
40135    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
40136printf %s "checking if ioctl usage allowed... " >&6; }
40137    if test "x$curl_disallow_ioctl" != "xyes"; then
40138      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40139printf "%s\n" "yes" >&6; }
40140      tst_allow_ioctl="yes"
40141    else
40142      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40143printf "%s\n" "no" >&6; }
40144      tst_allow_ioctl="no"
40145    fi
40146  fi
40147  #
40148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
40149printf %s "checking if ioctl might be used... " >&6; }
40150  if test "$tst_links_ioctl" = "yes" &&
40151     test "$tst_proto_ioctl" = "yes" &&
40152     test "$tst_compi_ioctl" = "yes" &&
40153     test "$tst_allow_ioctl" = "yes"; then
40154    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40155printf "%s\n" "yes" >&6; }
40156
40157printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
40158
40159    curl_cv_func_ioctl="yes"
40160
40161  #
40162  tst_compi_ioctl_fionbio="unknown"
40163  tst_allow_ioctl_fionbio="unknown"
40164  #
40165  if test "$curl_cv_func_ioctl" = "yes"; then
40166    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
40167printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
40168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40169/* end confdefs.h.  */
40170
40171
40172        $curl_includes_stropts
40173
40174int main (void)
40175{
40176
40177        int flags = 0;
40178        if(0 != ioctl(0, FIONBIO, &flags))
40179          return 1;
40180
40181 ;
40182 return 0;
40183}
40184
40185_ACEOF
40186if ac_fn_c_try_compile "$LINENO"
40187then :
40188
40189      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40190printf "%s\n" "yes" >&6; }
40191      tst_compi_ioctl_fionbio="yes"
40192
40193else $as_nop
40194
40195      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40196printf "%s\n" "no" >&6; }
40197      tst_compi_ioctl_fionbio="no"
40198
40199fi
40200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40201  fi
40202  #
40203  if test "$tst_compi_ioctl_fionbio" = "yes"; then
40204    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
40205printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
40206    if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
40207      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40208printf "%s\n" "yes" >&6; }
40209      tst_allow_ioctl_fionbio="yes"
40210    else
40211      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40212printf "%s\n" "no" >&6; }
40213      tst_allow_ioctl_fionbio="no"
40214    fi
40215  fi
40216  #
40217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
40218printf %s "checking if ioctl FIONBIO might be used... " >&6; }
40219  if test "$tst_compi_ioctl_fionbio" = "yes" &&
40220     test "$tst_allow_ioctl_fionbio" = "yes"; then
40221    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40222printf "%s\n" "yes" >&6; }
40223
40224printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
40225
40226    curl_cv_func_ioctl_fionbio="yes"
40227  else
40228    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40229printf "%s\n" "no" >&6; }
40230    curl_cv_func_ioctl_fionbio="no"
40231  fi
40232
40233
40234  #
40235  tst_compi_ioctl_siocgifaddr="unknown"
40236  tst_allow_ioctl_siocgifaddr="unknown"
40237  #
40238  if test "$curl_cv_func_ioctl" = "yes"; then
40239    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
40240printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
40241    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40242/* end confdefs.h.  */
40243
40244
40245        $curl_includes_stropts
40246        #include <net/if.h>
40247
40248int main (void)
40249{
40250
40251        struct ifreq ifr;
40252        if(0 != ioctl(0, SIOCGIFADDR, &ifr))
40253          return 1;
40254
40255 ;
40256 return 0;
40257}
40258
40259_ACEOF
40260if ac_fn_c_try_compile "$LINENO"
40261then :
40262
40263      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40264printf "%s\n" "yes" >&6; }
40265      tst_compi_ioctl_siocgifaddr="yes"
40266
40267else $as_nop
40268
40269      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40270printf "%s\n" "no" >&6; }
40271      tst_compi_ioctl_siocgifaddr="no"
40272
40273fi
40274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40275  fi
40276  #
40277  if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
40278    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
40279printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
40280    if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
40281      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40282printf "%s\n" "yes" >&6; }
40283      tst_allow_ioctl_siocgifaddr="yes"
40284    else
40285      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40286printf "%s\n" "no" >&6; }
40287      tst_allow_ioctl_siocgifaddr="no"
40288    fi
40289  fi
40290  #
40291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
40292printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
40293  if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
40294     test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
40295    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40296printf "%s\n" "yes" >&6; }
40297
40298printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
40299
40300    curl_cv_func_ioctl_siocgifaddr="yes"
40301  else
40302    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40303printf "%s\n" "no" >&6; }
40304    curl_cv_func_ioctl_siocgifaddr="no"
40305  fi
40306
40307  else
40308    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40309printf "%s\n" "no" >&6; }
40310    curl_cv_func_ioctl="no"
40311  fi
40312
40313
40314    #
40315  tst_links_ioctlsocket="unknown"
40316  tst_proto_ioctlsocket="unknown"
40317  tst_compi_ioctlsocket="unknown"
40318  tst_allow_ioctlsocket="unknown"
40319  #
40320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
40321printf %s "checking if ioctlsocket can be linked... " >&6; }
40322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40323/* end confdefs.h.  */
40324
40325
40326      $curl_includes_winsock2
40327
40328int main (void)
40329{
40330
40331      if(0 != ioctlsocket(0, 0, 0))
40332        return 1;
40333
40334 ;
40335 return 0;
40336}
40337
40338_ACEOF
40339if ac_fn_c_try_link "$LINENO"
40340then :
40341
40342    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40343printf "%s\n" "yes" >&6; }
40344    tst_links_ioctlsocket="yes"
40345
40346else $as_nop
40347
40348    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40349printf "%s\n" "no" >&6; }
40350    tst_links_ioctlsocket="no"
40351
40352fi
40353rm -f core conftest.err conftest.$ac_objext conftest.beam \
40354    conftest$ac_exeext conftest.$ac_ext
40355  #
40356  if test "$tst_links_ioctlsocket" = "yes"; then
40357    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
40358printf %s "checking if ioctlsocket is prototyped... " >&6; }
40359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40360/* end confdefs.h.  */
40361
40362      $curl_includes_winsock2
40363
40364_ACEOF
40365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40366  $EGREP "ioctlsocket" >/dev/null 2>&1
40367then :
40368
40369      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40370printf "%s\n" "yes" >&6; }
40371      tst_proto_ioctlsocket="yes"
40372
40373else $as_nop
40374
40375      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40376printf "%s\n" "no" >&6; }
40377      tst_proto_ioctlsocket="no"
40378
40379fi
40380rm -rf conftest*
40381
40382  fi
40383  #
40384  if test "$tst_proto_ioctlsocket" = "yes"; then
40385    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
40386printf %s "checking if ioctlsocket is compilable... " >&6; }
40387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40388/* end confdefs.h.  */
40389
40390
40391        $curl_includes_winsock2
40392
40393int main (void)
40394{
40395
40396        if(0 != ioctlsocket(0, 0, 0))
40397          return 1;
40398
40399 ;
40400 return 0;
40401}
40402
40403_ACEOF
40404if ac_fn_c_try_compile "$LINENO"
40405then :
40406
40407      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40408printf "%s\n" "yes" >&6; }
40409      tst_compi_ioctlsocket="yes"
40410
40411else $as_nop
40412
40413      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40414printf "%s\n" "no" >&6; }
40415      tst_compi_ioctlsocket="no"
40416
40417fi
40418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40419  fi
40420  #
40421  if test "$tst_compi_ioctlsocket" = "yes"; then
40422    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40423printf %s "checking if ioctlsocket usage allowed... " >&6; }
40424    if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40425      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40426printf "%s\n" "yes" >&6; }
40427      tst_allow_ioctlsocket="yes"
40428    else
40429      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40430printf "%s\n" "no" >&6; }
40431      tst_allow_ioctlsocket="no"
40432    fi
40433  fi
40434  #
40435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40436printf %s "checking if ioctlsocket might be used... " >&6; }
40437  if test "$tst_links_ioctlsocket" = "yes" &&
40438     test "$tst_proto_ioctlsocket" = "yes" &&
40439     test "$tst_compi_ioctlsocket" = "yes" &&
40440     test "$tst_allow_ioctlsocket" = "yes"; then
40441    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40442printf "%s\n" "yes" >&6; }
40443
40444printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40445
40446    curl_cv_func_ioctlsocket="yes"
40447
40448  #
40449  tst_compi_ioctlsocket_fionbio="unknown"
40450  tst_allow_ioctlsocket_fionbio="unknown"
40451  #
40452  if test "$curl_cv_func_ioctlsocket" = "yes"; then
40453    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40454printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40456/* end confdefs.h.  */
40457
40458
40459        $curl_includes_winsock2
40460
40461int main (void)
40462{
40463
40464        int flags = 0;
40465        if(0 != ioctlsocket(0, FIONBIO, &flags))
40466          return 1;
40467
40468 ;
40469 return 0;
40470}
40471
40472_ACEOF
40473if ac_fn_c_try_compile "$LINENO"
40474then :
40475
40476      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40477printf "%s\n" "yes" >&6; }
40478      tst_compi_ioctlsocket_fionbio="yes"
40479
40480else $as_nop
40481
40482      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40483printf "%s\n" "no" >&6; }
40484      tst_compi_ioctlsocket_fionbio="no"
40485
40486fi
40487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40488  fi
40489  #
40490  if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40491    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40492printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40493    if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40494      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40495printf "%s\n" "yes" >&6; }
40496      tst_allow_ioctlsocket_fionbio="yes"
40497    else
40498      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40499printf "%s\n" "no" >&6; }
40500      tst_allow_ioctlsocket_fionbio="no"
40501    fi
40502  fi
40503  #
40504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40505printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40506  if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40507     test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40508    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40509printf "%s\n" "yes" >&6; }
40510
40511printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40512
40513    curl_cv_func_ioctlsocket_fionbio="yes"
40514  else
40515    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40516printf "%s\n" "no" >&6; }
40517    curl_cv_func_ioctlsocket_fionbio="no"
40518  fi
40519
40520  else
40521    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40522printf "%s\n" "no" >&6; }
40523    curl_cv_func_ioctlsocket="no"
40524  fi
40525
40526
40527    #
40528  tst_links_ioctlsocket_camel="unknown"
40529  tst_proto_ioctlsocket_camel="unknown"
40530  tst_compi_ioctlsocket_camel="unknown"
40531  tst_allow_ioctlsocket_camel="unknown"
40532  #
40533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40534printf %s "checking if IoctlSocket can be linked... " >&6; }
40535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40536/* end confdefs.h.  */
40537
40538
40539      $curl_includes_bsdsocket
40540
40541int main (void)
40542{
40543
40544      IoctlSocket(0, 0, 0);
40545
40546 ;
40547 return 0;
40548}
40549
40550_ACEOF
40551if ac_fn_c_try_link "$LINENO"
40552then :
40553
40554    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40555printf "%s\n" "yes" >&6; }
40556    tst_links_ioctlsocket_camel="yes"
40557
40558else $as_nop
40559
40560    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40561printf "%s\n" "no" >&6; }
40562    tst_links_ioctlsocket_camel="no"
40563
40564fi
40565rm -f core conftest.err conftest.$ac_objext conftest.beam \
40566    conftest$ac_exeext conftest.$ac_ext
40567  #
40568  if test "$tst_links_ioctlsocket_camel" = "yes"; then
40569    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40570printf %s "checking if IoctlSocket is prototyped... " >&6; }
40571    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40572/* end confdefs.h.  */
40573
40574      $curl_includes_bsdsocket
40575
40576_ACEOF
40577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40578  $EGREP "IoctlSocket" >/dev/null 2>&1
40579then :
40580
40581      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40582printf "%s\n" "yes" >&6; }
40583      tst_proto_ioctlsocket_camel="yes"
40584
40585else $as_nop
40586
40587      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40588printf "%s\n" "no" >&6; }
40589      tst_proto_ioctlsocket_camel="no"
40590
40591fi
40592rm -rf conftest*
40593
40594  fi
40595  #
40596  if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40597    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40598printf %s "checking if IoctlSocket is compilable... " >&6; }
40599    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40600/* end confdefs.h.  */
40601
40602
40603        $curl_includes_bsdsocket
40604
40605int main (void)
40606{
40607
40608        if(0 != IoctlSocket(0, 0, 0))
40609          return 1;
40610
40611 ;
40612 return 0;
40613}
40614
40615_ACEOF
40616if ac_fn_c_try_compile "$LINENO"
40617then :
40618
40619      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40620printf "%s\n" "yes" >&6; }
40621      tst_compi_ioctlsocket_camel="yes"
40622
40623else $as_nop
40624
40625      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40626printf "%s\n" "no" >&6; }
40627      tst_compi_ioctlsocket_camel="no"
40628
40629fi
40630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40631  fi
40632  #
40633  if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40634    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40635printf %s "checking if IoctlSocket usage allowed... " >&6; }
40636    if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40637      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40638printf "%s\n" "yes" >&6; }
40639      tst_allow_ioctlsocket_camel="yes"
40640    else
40641      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40642printf "%s\n" "no" >&6; }
40643      tst_allow_ioctlsocket_camel="no"
40644    fi
40645  fi
40646  #
40647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40648printf %s "checking if IoctlSocket might be used... " >&6; }
40649  if test "$tst_links_ioctlsocket_camel" = "yes" &&
40650     test "$tst_proto_ioctlsocket_camel" = "yes" &&
40651     test "$tst_compi_ioctlsocket_camel" = "yes" &&
40652     test "$tst_allow_ioctlsocket_camel" = "yes"; then
40653    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40654printf "%s\n" "yes" >&6; }
40655
40656printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40657
40658    curl_cv_func_ioctlsocket_camel="yes"
40659
40660    #
40661  tst_compi_ioctlsocket_camel_fionbio="unknown"
40662  tst_allow_ioctlsocket_camel_fionbio="unknown"
40663  #
40664  if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40665    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40666printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40667    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40668/* end confdefs.h.  */
40669
40670
40671        $curl_includes_bsdsocket
40672
40673int main (void)
40674{
40675
40676        long flags = 0;
40677        if(0 != IoctlSocket(0, FIONBIO, &flags))
40678          return 1;
40679
40680 ;
40681 return 0;
40682}
40683
40684_ACEOF
40685if ac_fn_c_try_compile "$LINENO"
40686then :
40687
40688      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40689printf "%s\n" "yes" >&6; }
40690      tst_compi_ioctlsocket_camel_fionbio="yes"
40691
40692else $as_nop
40693
40694      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40695printf "%s\n" "no" >&6; }
40696      tst_compi_ioctlsocket_camel_fionbio="no"
40697
40698fi
40699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40700  fi
40701  #
40702  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40703    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40704printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40705    if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40706      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40707printf "%s\n" "yes" >&6; }
40708      tst_allow_ioctlsocket_camel_fionbio="yes"
40709    else
40710      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40711printf "%s\n" "no" >&6; }
40712      tst_allow_ioctlsocket_camel_fionbio="no"
40713    fi
40714  fi
40715  #
40716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40717printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40718  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40719     test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40720    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40721printf "%s\n" "yes" >&6; }
40722
40723printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40724
40725    curl_cv_func_ioctlsocket_camel_fionbio="yes"
40726  else
40727    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40728printf "%s\n" "no" >&6; }
40729    curl_cv_func_ioctlsocket_camel_fionbio="no"
40730  fi
40731
40732  else
40733    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40734printf "%s\n" "no" >&6; }
40735    curl_cv_func_ioctlsocket_camel="no"
40736  fi
40737
40738
40739    #
40740  tst_links_memrchr="unknown"
40741  tst_macro_memrchr="unknown"
40742  tst_proto_memrchr="unknown"
40743  tst_compi_memrchr="unknown"
40744  tst_allow_memrchr="unknown"
40745  #
40746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40747printf %s "checking if memrchr can be linked... " >&6; }
40748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40749/* end confdefs.h.  */
40750
40751
40752#define memrchr innocuous_memrchr
40753#ifdef __STDC__
40754# include <limits.h>
40755#else
40756# include <assert.h>
40757#endif
40758#undef memrchr
40759#ifdef __cplusplus
40760extern "C"
40761#endif
40762char memrchr ();
40763#if defined __stub_memrchr || defined __stub___memrchr
40764choke me
40765#endif
40766
40767int main (void)
40768{
40769return memrchr ();
40770 ;
40771 return 0;
40772}
40773
40774_ACEOF
40775if ac_fn_c_try_link "$LINENO"
40776then :
40777
40778    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40779printf "%s\n" "yes" >&6; }
40780    tst_links_memrchr="yes"
40781
40782else $as_nop
40783
40784    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40785printf "%s\n" "no" >&6; }
40786    tst_links_memrchr="no"
40787
40788fi
40789rm -f core conftest.err conftest.$ac_objext conftest.beam \
40790    conftest$ac_exeext conftest.$ac_ext
40791  #
40792  if test "$tst_links_memrchr" = "no"; then
40793    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40794printf %s "checking if memrchr seems a macro... " >&6; }
40795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40796/* end confdefs.h.  */
40797
40798
40799        $curl_includes_string
40800
40801int main (void)
40802{
40803
40804        if(0 != memrchr(0, 0, 0))
40805          return 1;
40806
40807 ;
40808 return 0;
40809}
40810
40811_ACEOF
40812if ac_fn_c_try_link "$LINENO"
40813then :
40814
40815      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40816printf "%s\n" "yes" >&6; }
40817      tst_macro_memrchr="yes"
40818
40819else $as_nop
40820
40821      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40822printf "%s\n" "no" >&6; }
40823      tst_macro_memrchr="no"
40824
40825fi
40826rm -f core conftest.err conftest.$ac_objext conftest.beam \
40827    conftest$ac_exeext conftest.$ac_ext
40828  fi
40829  #
40830  if test "$tst_links_memrchr" = "yes"; then
40831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
40832printf %s "checking if memrchr is prototyped... " >&6; }
40833    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40834/* end confdefs.h.  */
40835
40836      $curl_includes_string
40837
40838_ACEOF
40839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40840  $EGREP "memrchr" >/dev/null 2>&1
40841then :
40842
40843      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40844printf "%s\n" "yes" >&6; }
40845      tst_proto_memrchr="yes"
40846
40847else $as_nop
40848
40849      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40850printf "%s\n" "no" >&6; }
40851      tst_proto_memrchr="no"
40852
40853fi
40854rm -rf conftest*
40855
40856  fi
40857  #
40858  if test "$tst_proto_memrchr" = "yes" ||
40859     test "$tst_macro_memrchr" = "yes"; then
40860    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
40861printf %s "checking if memrchr is compilable... " >&6; }
40862    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40863/* end confdefs.h.  */
40864
40865
40866        $curl_includes_string
40867
40868int main (void)
40869{
40870
40871        if(0 != memrchr(0, 0, 0))
40872          return 1;
40873
40874 ;
40875 return 0;
40876}
40877
40878_ACEOF
40879if ac_fn_c_try_compile "$LINENO"
40880then :
40881
40882      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40883printf "%s\n" "yes" >&6; }
40884      tst_compi_memrchr="yes"
40885
40886else $as_nop
40887
40888      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40889printf "%s\n" "no" >&6; }
40890      tst_compi_memrchr="no"
40891
40892fi
40893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40894  fi
40895  #
40896  if test "$tst_compi_memrchr" = "yes"; then
40897    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
40898printf %s "checking if memrchr usage allowed... " >&6; }
40899    if test "x$curl_disallow_memrchr" != "xyes"; then
40900      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40901printf "%s\n" "yes" >&6; }
40902      tst_allow_memrchr="yes"
40903    else
40904      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40905printf "%s\n" "no" >&6; }
40906      tst_allow_memrchr="no"
40907    fi
40908  fi
40909  #
40910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
40911printf %s "checking if memrchr might be used... " >&6; }
40912  if (test "$tst_proto_memrchr" = "yes" ||
40913      test "$tst_macro_memrchr" = "yes") &&
40914     test "$tst_compi_memrchr" = "yes" &&
40915     test "$tst_allow_memrchr" = "yes"; then
40916    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40917printf "%s\n" "yes" >&6; }
40918
40919printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
40920
40921    curl_cv_func_memrchr="yes"
40922  else
40923    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40924printf "%s\n" "no" >&6; }
40925    curl_cv_func_memrchr="no"
40926  fi
40927
40928
40929curl_includes_poll="\
40930/* includes start */
40931#ifdef HAVE_SYS_TYPES_H
40932#  include <sys/types.h>
40933#endif
40934#ifdef HAVE_POLL_H
40935#  include <poll.h>
40936#endif
40937#ifdef HAVE_SYS_POLL_H
40938#  include <sys/poll.h>
40939#endif
40940/* includes end */"
40941  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
40942"
40943if test "x$ac_cv_header_sys_types_h" = xyes
40944then :
40945  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
40946
40947fi
40948ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
40949"
40950if test "x$ac_cv_header_poll_h" = xyes
40951then :
40952  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
40953
40954fi
40955ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
40956"
40957if test "x$ac_cv_header_sys_poll_h" = xyes
40958then :
40959  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
40960
40961fi
40962
40963
40964
40965      #
40966  tst_links_poll="unknown"
40967  tst_proto_poll="unknown"
40968  tst_compi_poll="unknown"
40969  tst_works_poll="unknown"
40970  tst_allow_poll="unknown"
40971  #
40972  case $host_os in
40973    darwin*|interix*)
40974                                          curl_disallow_poll="yes"
40975      tst_compi_poll="no"
40976      ;;
40977  esac
40978  #
40979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
40980printf %s "checking if poll can be linked... " >&6; }
40981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40982/* end confdefs.h.  */
40983
40984
40985      $curl_includes_poll
40986
40987int main (void)
40988{
40989
40990      if(0 != poll(0, 0, 0))
40991        return 1;
40992
40993 ;
40994 return 0;
40995}
40996
40997_ACEOF
40998if ac_fn_c_try_link "$LINENO"
40999then :
41000
41001    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41002printf "%s\n" "yes" >&6; }
41003    tst_links_poll="yes"
41004
41005else $as_nop
41006
41007    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41008printf "%s\n" "no" >&6; }
41009    tst_links_poll="no"
41010
41011fi
41012rm -f core conftest.err conftest.$ac_objext conftest.beam \
41013    conftest$ac_exeext conftest.$ac_ext
41014  #
41015  if test "$tst_links_poll" = "yes"; then
41016    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
41017printf %s "checking if poll is prototyped... " >&6; }
41018    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41019/* end confdefs.h.  */
41020
41021      $curl_includes_poll
41022
41023_ACEOF
41024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41025  $EGREP "poll" >/dev/null 2>&1
41026then :
41027
41028      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41029printf "%s\n" "yes" >&6; }
41030      tst_proto_poll="yes"
41031
41032else $as_nop
41033
41034      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41035printf "%s\n" "no" >&6; }
41036      tst_proto_poll="no"
41037
41038fi
41039rm -rf conftest*
41040
41041  fi
41042  #
41043  if test "$tst_proto_poll" = "yes"; then
41044    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
41045printf %s "checking if poll is compilable... " >&6; }
41046    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41047/* end confdefs.h.  */
41048
41049
41050        $curl_includes_poll
41051
41052int main (void)
41053{
41054
41055        if(0 != poll(0, 0, 0))
41056          return 1;
41057
41058 ;
41059 return 0;
41060}
41061
41062_ACEOF
41063if ac_fn_c_try_compile "$LINENO"
41064then :
41065
41066      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41067printf "%s\n" "yes" >&6; }
41068      tst_compi_poll="yes"
41069
41070else $as_nop
41071
41072      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41073printf "%s\n" "no" >&6; }
41074      tst_compi_poll="no"
41075
41076fi
41077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41078  fi
41079  #
41080    if test "x$cross_compiling" != "xyes" &&
41081    test "$tst_compi_poll" = "yes"; then
41082    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
41083printf %s "checking if poll seems to work... " >&6; }
41084
41085   case $host_os in
41086     darwin*)
41087      if test "$cross_compiling" = yes
41088then :
41089  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41090printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41091as_fn_error $? "cannot run test program while cross compiling
41092See \`config.log' for more details" "$LINENO" 5; }
41093else $as_nop
41094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41095/* end confdefs.h.  */
41096
41097
41098        $curl_includes_stdlib
41099        $curl_includes_poll
41100        $curl_includes_time
41101
41102int main (void)
41103{
41104
41105        /* detect the original poll() breakage */
41106        if(0 != poll(0, 0, 10))
41107          exit(1); /* fail */
41108        else {
41109          /* detect the 10.12 poll() breakage */
41110          struct timeval before, after;
41111          int rc;
41112          size_t us;
41113
41114          gettimeofday(&before, NULL);
41115          rc = poll(NULL, 0, 500);
41116          gettimeofday(&after, NULL);
41117
41118          us = (after.tv_sec - before.tv_sec) * 1000000 +
41119            (after.tv_usec - before.tv_usec);
41120
41121          if(us < 400000)
41122            exit(1);
41123        }
41124
41125 ;
41126 return 0;
41127}
41128
41129_ACEOF
41130if ac_fn_c_try_run "$LINENO"
41131then :
41132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41133printf "%s\n" "yes" >&6; }
41134      tst_works_poll="yes"
41135
41136else $as_nop
41137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41138printf "%s\n" "no" >&6; }
41139      tst_works_poll="no"
41140
41141fi
41142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41143  conftest.$ac_objext conftest.beam conftest.$ac_ext
41144fi
41145
41146     ;;
41147     *)
41148      oldcc=$CC
41149      old=$LD_LIBRARY_PATH
41150      CC="sh ./run-compiler"
41151      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
41152      export LD_LIBRARY_PATH
41153      if test "$cross_compiling" = yes
41154then :
41155  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41156printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41157as_fn_error $? "cannot run test program while cross compiling
41158See \`config.log' for more details" "$LINENO" 5; }
41159else $as_nop
41160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41161/* end confdefs.h.  */
41162
41163
41164        $curl_includes_stdlib
41165        $curl_includes_poll
41166        $curl_includes_time
41167
41168int main (void)
41169{
41170
41171        /* detect the original poll() breakage */
41172        if(0 != poll(0, 0, 10))
41173          exit(1); /* fail */
41174        else {
41175          /* detect the 10.12 poll() breakage */
41176          struct timeval before, after;
41177          int rc;
41178          size_t us;
41179
41180          gettimeofday(&before, NULL);
41181          rc = poll(NULL, 0, 500);
41182          gettimeofday(&after, NULL);
41183
41184          us = (after.tv_sec - before.tv_sec) * 1000000 +
41185            (after.tv_usec - before.tv_usec);
41186
41187          if(us < 400000)
41188            exit(1);
41189        }
41190
41191 ;
41192 return 0;
41193}
41194
41195_ACEOF
41196if ac_fn_c_try_run "$LINENO"
41197then :
41198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41199printf "%s\n" "yes" >&6; }
41200      tst_works_poll="yes"
41201
41202else $as_nop
41203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41204printf "%s\n" "no" >&6; }
41205      tst_works_poll="no"
41206
41207fi
41208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41209  conftest.$ac_objext conftest.beam conftest.$ac_ext
41210fi
41211
41212      LD_LIBRARY_PATH=$old # restore
41213      CC=$oldcc
41214     ;;
41215   esac
41216
41217  fi
41218  #
41219  if test "$tst_compi_poll" = "yes" &&
41220    test "$tst_works_poll" != "no"; then
41221    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
41222printf %s "checking if poll usage allowed... " >&6; }
41223    if test "x$curl_disallow_poll" != "xyes"; then
41224      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41225printf "%s\n" "yes" >&6; }
41226      tst_allow_poll="yes"
41227    else
41228      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41229printf "%s\n" "no" >&6; }
41230      tst_allow_poll="no"
41231    fi
41232  fi
41233  #
41234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
41235printf %s "checking if poll might be used... " >&6; }
41236  if test "$tst_links_poll" = "yes" &&
41237     test "$tst_proto_poll" = "yes" &&
41238     test "$tst_compi_poll" = "yes" &&
41239     test "$tst_allow_poll" = "yes" &&
41240     test "$tst_works_poll" != "no"; then
41241    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41242printf "%s\n" "yes" >&6; }
41243
41244printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
41245
41246    curl_cv_func_poll="yes"
41247  else
41248    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41249printf "%s\n" "no" >&6; }
41250    curl_cv_func_poll="no"
41251  fi
41252
41253
41254curl_includes_signal="\
41255/* includes start */
41256#ifdef HAVE_SYS_TYPES_H
41257#  include <sys/types.h>
41258#endif
41259#include <signal.h>
41260/* includes end */"
41261  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
41262"
41263if test "x$ac_cv_header_sys_types_h" = xyes
41264then :
41265  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41266
41267fi
41268
41269
41270
41271    #
41272  tst_links_sigaction="unknown"
41273  tst_proto_sigaction="unknown"
41274  tst_compi_sigaction="unknown"
41275  tst_allow_sigaction="unknown"
41276  #
41277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
41278printf %s "checking if sigaction can be linked... " >&6; }
41279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41280/* end confdefs.h.  */
41281
41282
41283#define sigaction innocuous_sigaction
41284#ifdef __STDC__
41285# include <limits.h>
41286#else
41287# include <assert.h>
41288#endif
41289#undef sigaction
41290#ifdef __cplusplus
41291extern "C"
41292#endif
41293char sigaction ();
41294#if defined __stub_sigaction || defined __stub___sigaction
41295choke me
41296#endif
41297
41298int main (void)
41299{
41300return sigaction ();
41301 ;
41302 return 0;
41303}
41304
41305_ACEOF
41306if ac_fn_c_try_link "$LINENO"
41307then :
41308
41309    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41310printf "%s\n" "yes" >&6; }
41311    tst_links_sigaction="yes"
41312
41313else $as_nop
41314
41315    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41316printf "%s\n" "no" >&6; }
41317    tst_links_sigaction="no"
41318
41319fi
41320rm -f core conftest.err conftest.$ac_objext conftest.beam \
41321    conftest$ac_exeext conftest.$ac_ext
41322  #
41323  if test "$tst_links_sigaction" = "yes"; then
41324    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
41325printf %s "checking if sigaction is prototyped... " >&6; }
41326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41327/* end confdefs.h.  */
41328
41329      $curl_includes_signal
41330
41331_ACEOF
41332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41333  $EGREP "sigaction" >/dev/null 2>&1
41334then :
41335
41336      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41337printf "%s\n" "yes" >&6; }
41338      tst_proto_sigaction="yes"
41339
41340else $as_nop
41341
41342      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41343printf "%s\n" "no" >&6; }
41344      tst_proto_sigaction="no"
41345
41346fi
41347rm -rf conftest*
41348
41349  fi
41350  #
41351  if test "$tst_proto_sigaction" = "yes"; then
41352    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
41353printf %s "checking if sigaction is compilable... " >&6; }
41354    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41355/* end confdefs.h.  */
41356
41357
41358        $curl_includes_signal
41359
41360int main (void)
41361{
41362
41363        if(0 != sigaction(0, 0, 0))
41364          return 1;
41365
41366 ;
41367 return 0;
41368}
41369
41370_ACEOF
41371if ac_fn_c_try_compile "$LINENO"
41372then :
41373
41374      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41375printf "%s\n" "yes" >&6; }
41376      tst_compi_sigaction="yes"
41377
41378else $as_nop
41379
41380      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41381printf "%s\n" "no" >&6; }
41382      tst_compi_sigaction="no"
41383
41384fi
41385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41386  fi
41387  #
41388  if test "$tst_compi_sigaction" = "yes"; then
41389    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
41390printf %s "checking if sigaction usage allowed... " >&6; }
41391    if test "x$curl_disallow_sigaction" != "xyes"; then
41392      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41393printf "%s\n" "yes" >&6; }
41394      tst_allow_sigaction="yes"
41395    else
41396      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41397printf "%s\n" "no" >&6; }
41398      tst_allow_sigaction="no"
41399    fi
41400  fi
41401  #
41402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
41403printf %s "checking if sigaction might be used... " >&6; }
41404  if test "$tst_links_sigaction" = "yes" &&
41405     test "$tst_proto_sigaction" = "yes" &&
41406     test "$tst_compi_sigaction" = "yes" &&
41407     test "$tst_allow_sigaction" = "yes"; then
41408    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41409printf "%s\n" "yes" >&6; }
41410
41411printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
41412
41413    curl_cv_func_sigaction="yes"
41414  else
41415    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41416printf "%s\n" "no" >&6; }
41417    curl_cv_func_sigaction="no"
41418  fi
41419
41420
41421    #
41422  tst_links_siginterrupt="unknown"
41423  tst_proto_siginterrupt="unknown"
41424  tst_compi_siginterrupt="unknown"
41425  tst_allow_siginterrupt="unknown"
41426  #
41427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41428printf %s "checking if siginterrupt can be linked... " >&6; }
41429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41430/* end confdefs.h.  */
41431
41432
41433#define siginterrupt innocuous_siginterrupt
41434#ifdef __STDC__
41435# include <limits.h>
41436#else
41437# include <assert.h>
41438#endif
41439#undef siginterrupt
41440#ifdef __cplusplus
41441extern "C"
41442#endif
41443char siginterrupt ();
41444#if defined __stub_siginterrupt || defined __stub___siginterrupt
41445choke me
41446#endif
41447
41448int main (void)
41449{
41450return siginterrupt ();
41451 ;
41452 return 0;
41453}
41454
41455_ACEOF
41456if ac_fn_c_try_link "$LINENO"
41457then :
41458
41459    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41460printf "%s\n" "yes" >&6; }
41461    tst_links_siginterrupt="yes"
41462
41463else $as_nop
41464
41465    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41466printf "%s\n" "no" >&6; }
41467    tst_links_siginterrupt="no"
41468
41469fi
41470rm -f core conftest.err conftest.$ac_objext conftest.beam \
41471    conftest$ac_exeext conftest.$ac_ext
41472  #
41473  if test "$tst_links_siginterrupt" = "yes"; then
41474    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41475printf %s "checking if siginterrupt is prototyped... " >&6; }
41476    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41477/* end confdefs.h.  */
41478
41479      $curl_includes_signal
41480
41481_ACEOF
41482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41483  $EGREP "siginterrupt" >/dev/null 2>&1
41484then :
41485
41486      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41487printf "%s\n" "yes" >&6; }
41488      tst_proto_siginterrupt="yes"
41489
41490else $as_nop
41491
41492      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41493printf "%s\n" "no" >&6; }
41494      tst_proto_siginterrupt="no"
41495
41496fi
41497rm -rf conftest*
41498
41499  fi
41500  #
41501  if test "$tst_proto_siginterrupt" = "yes"; then
41502    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41503printf %s "checking if siginterrupt is compilable... " >&6; }
41504    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41505/* end confdefs.h.  */
41506
41507
41508        $curl_includes_signal
41509
41510int main (void)
41511{
41512
41513        if(0 != siginterrupt(0, 0))
41514          return 1;
41515
41516 ;
41517 return 0;
41518}
41519
41520_ACEOF
41521if ac_fn_c_try_compile "$LINENO"
41522then :
41523
41524      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41525printf "%s\n" "yes" >&6; }
41526      tst_compi_siginterrupt="yes"
41527
41528else $as_nop
41529
41530      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41531printf "%s\n" "no" >&6; }
41532      tst_compi_siginterrupt="no"
41533
41534fi
41535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41536  fi
41537  #
41538  if test "$tst_compi_siginterrupt" = "yes"; then
41539    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41540printf %s "checking if siginterrupt usage allowed... " >&6; }
41541    if test "x$curl_disallow_siginterrupt" != "xyes"; then
41542      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41543printf "%s\n" "yes" >&6; }
41544      tst_allow_siginterrupt="yes"
41545    else
41546      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41547printf "%s\n" "no" >&6; }
41548      tst_allow_siginterrupt="no"
41549    fi
41550  fi
41551  #
41552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41553printf %s "checking if siginterrupt might be used... " >&6; }
41554  if test "$tst_links_siginterrupt" = "yes" &&
41555     test "$tst_proto_siginterrupt" = "yes" &&
41556     test "$tst_compi_siginterrupt" = "yes" &&
41557     test "$tst_allow_siginterrupt" = "yes"; then
41558    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41559printf "%s\n" "yes" >&6; }
41560
41561printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41562
41563    curl_cv_func_siginterrupt="yes"
41564  else
41565    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41566printf "%s\n" "no" >&6; }
41567    curl_cv_func_siginterrupt="no"
41568  fi
41569
41570
41571    #
41572  tst_links_signal="unknown"
41573  tst_proto_signal="unknown"
41574  tst_compi_signal="unknown"
41575  tst_allow_signal="unknown"
41576  #
41577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41578printf %s "checking if signal can be linked... " >&6; }
41579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41580/* end confdefs.h.  */
41581
41582
41583#define signal innocuous_signal
41584#ifdef __STDC__
41585# include <limits.h>
41586#else
41587# include <assert.h>
41588#endif
41589#undef signal
41590#ifdef __cplusplus
41591extern "C"
41592#endif
41593char signal ();
41594#if defined __stub_signal || defined __stub___signal
41595choke me
41596#endif
41597
41598int main (void)
41599{
41600return signal ();
41601 ;
41602 return 0;
41603}
41604
41605_ACEOF
41606if ac_fn_c_try_link "$LINENO"
41607then :
41608
41609    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41610printf "%s\n" "yes" >&6; }
41611    tst_links_signal="yes"
41612
41613else $as_nop
41614
41615    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41616printf "%s\n" "no" >&6; }
41617    tst_links_signal="no"
41618
41619fi
41620rm -f core conftest.err conftest.$ac_objext conftest.beam \
41621    conftest$ac_exeext conftest.$ac_ext
41622  #
41623  if test "$tst_links_signal" = "yes"; then
41624    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41625printf %s "checking if signal is prototyped... " >&6; }
41626    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41627/* end confdefs.h.  */
41628
41629      $curl_includes_signal
41630
41631_ACEOF
41632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41633  $EGREP "signal" >/dev/null 2>&1
41634then :
41635
41636      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41637printf "%s\n" "yes" >&6; }
41638      tst_proto_signal="yes"
41639
41640else $as_nop
41641
41642      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41643printf "%s\n" "no" >&6; }
41644      tst_proto_signal="no"
41645
41646fi
41647rm -rf conftest*
41648
41649  fi
41650  #
41651  if test "$tst_proto_signal" = "yes"; then
41652    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41653printf %s "checking if signal is compilable... " >&6; }
41654    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41655/* end confdefs.h.  */
41656
41657
41658        $curl_includes_signal
41659
41660int main (void)
41661{
41662
41663        if(0 != signal(0, 0))
41664          return 1;
41665
41666 ;
41667 return 0;
41668}
41669
41670_ACEOF
41671if ac_fn_c_try_compile "$LINENO"
41672then :
41673
41674      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41675printf "%s\n" "yes" >&6; }
41676      tst_compi_signal="yes"
41677
41678else $as_nop
41679
41680      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41681printf "%s\n" "no" >&6; }
41682      tst_compi_signal="no"
41683
41684fi
41685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41686  fi
41687  #
41688  if test "$tst_compi_signal" = "yes"; then
41689    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41690printf %s "checking if signal usage allowed... " >&6; }
41691    if test "x$curl_disallow_signal" != "xyes"; then
41692      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41693printf "%s\n" "yes" >&6; }
41694      tst_allow_signal="yes"
41695    else
41696      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41697printf "%s\n" "no" >&6; }
41698      tst_allow_signal="no"
41699    fi
41700  fi
41701  #
41702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
41703printf %s "checking if signal might be used... " >&6; }
41704  if test "$tst_links_signal" = "yes" &&
41705     test "$tst_proto_signal" = "yes" &&
41706     test "$tst_compi_signal" = "yes" &&
41707     test "$tst_allow_signal" = "yes"; then
41708    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41709printf "%s\n" "yes" >&6; }
41710
41711printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
41712
41713    curl_cv_func_signal="yes"
41714  else
41715    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41716printf "%s\n" "no" >&6; }
41717    curl_cv_func_signal="no"
41718  fi
41719
41720
41721curl_includes_setjmp="\
41722/* includes start */
41723#ifdef HAVE_SYS_TYPES_H
41724#  include <sys/types.h>
41725#endif
41726#include <setjmp.h>
41727/* includes end */"
41728  ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
41729"
41730if test "x$ac_cv_header_sys_types_h" = xyes
41731then :
41732  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41733
41734fi
41735
41736
41737
41738    #
41739  tst_links_sigsetjmp="unknown"
41740  tst_macro_sigsetjmp="unknown"
41741  tst_proto_sigsetjmp="unknown"
41742  tst_compi_sigsetjmp="unknown"
41743  tst_allow_sigsetjmp="unknown"
41744  #
41745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
41746printf %s "checking if sigsetjmp can be linked... " >&6; }
41747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41748/* end confdefs.h.  */
41749
41750
41751#define sigsetjmp innocuous_sigsetjmp
41752#ifdef __STDC__
41753# include <limits.h>
41754#else
41755# include <assert.h>
41756#endif
41757#undef sigsetjmp
41758#ifdef __cplusplus
41759extern "C"
41760#endif
41761char sigsetjmp ();
41762#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
41763choke me
41764#endif
41765
41766int main (void)
41767{
41768return sigsetjmp ();
41769 ;
41770 return 0;
41771}
41772
41773_ACEOF
41774if ac_fn_c_try_link "$LINENO"
41775then :
41776
41777    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41778printf "%s\n" "yes" >&6; }
41779    tst_links_sigsetjmp="yes"
41780
41781else $as_nop
41782
41783    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41784printf "%s\n" "no" >&6; }
41785    tst_links_sigsetjmp="no"
41786
41787fi
41788rm -f core conftest.err conftest.$ac_objext conftest.beam \
41789    conftest$ac_exeext conftest.$ac_ext
41790  #
41791  if test "$tst_links_sigsetjmp" = "no"; then
41792    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
41793printf %s "checking if sigsetjmp seems a macro... " >&6; }
41794    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41795/* end confdefs.h.  */
41796
41797
41798        $curl_includes_setjmp
41799
41800int main (void)
41801{
41802
41803        sigjmp_buf env;
41804        if(0 != sigsetjmp(env, 0))
41805          return 1;
41806
41807 ;
41808 return 0;
41809}
41810
41811_ACEOF
41812if ac_fn_c_try_link "$LINENO"
41813then :
41814
41815      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41816printf "%s\n" "yes" >&6; }
41817      tst_macro_sigsetjmp="yes"
41818
41819else $as_nop
41820
41821      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41822printf "%s\n" "no" >&6; }
41823      tst_macro_sigsetjmp="no"
41824
41825fi
41826rm -f core conftest.err conftest.$ac_objext conftest.beam \
41827    conftest$ac_exeext conftest.$ac_ext
41828  fi
41829  #
41830  if test "$tst_links_sigsetjmp" = "yes"; then
41831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
41832printf %s "checking if sigsetjmp is prototyped... " >&6; }
41833    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41834/* end confdefs.h.  */
41835
41836      $curl_includes_setjmp
41837
41838_ACEOF
41839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41840  $EGREP "sigsetjmp" >/dev/null 2>&1
41841then :
41842
41843      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41844printf "%s\n" "yes" >&6; }
41845      tst_proto_sigsetjmp="yes"
41846
41847else $as_nop
41848
41849      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41850printf "%s\n" "no" >&6; }
41851      tst_proto_sigsetjmp="no"
41852
41853fi
41854rm -rf conftest*
41855
41856  fi
41857  #
41858  if test "$tst_proto_sigsetjmp" = "yes" ||
41859     test "$tst_macro_sigsetjmp" = "yes"; then
41860    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
41861printf %s "checking if sigsetjmp is compilable... " >&6; }
41862    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41863/* end confdefs.h.  */
41864
41865
41866        $curl_includes_setjmp
41867
41868int main (void)
41869{
41870
41871        sigjmp_buf env;
41872        if(0 != sigsetjmp(env, 0))
41873          return 1;
41874
41875 ;
41876 return 0;
41877}
41878
41879_ACEOF
41880if ac_fn_c_try_compile "$LINENO"
41881then :
41882
41883      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41884printf "%s\n" "yes" >&6; }
41885      tst_compi_sigsetjmp="yes"
41886
41887else $as_nop
41888
41889      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41890printf "%s\n" "no" >&6; }
41891      tst_compi_sigsetjmp="no"
41892
41893fi
41894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41895  fi
41896  #
41897  if test "$tst_compi_sigsetjmp" = "yes"; then
41898    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
41899printf %s "checking if sigsetjmp usage allowed... " >&6; }
41900    if test "x$curl_disallow_sigsetjmp" != "xyes"; then
41901      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41902printf "%s\n" "yes" >&6; }
41903      tst_allow_sigsetjmp="yes"
41904    else
41905      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41906printf "%s\n" "no" >&6; }
41907      tst_allow_sigsetjmp="no"
41908    fi
41909  fi
41910  #
41911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
41912printf %s "checking if sigsetjmp might be used... " >&6; }
41913  if (test "$tst_proto_sigsetjmp" = "yes" ||
41914      test "$tst_macro_sigsetjmp" = "yes") &&
41915     test "$tst_compi_sigsetjmp" = "yes" &&
41916     test "$tst_allow_sigsetjmp" = "yes"; then
41917    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41918printf "%s\n" "yes" >&6; }
41919
41920printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
41921
41922    curl_cv_func_sigsetjmp="yes"
41923  else
41924    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41925printf "%s\n" "no" >&6; }
41926    curl_cv_func_sigsetjmp="no"
41927  fi
41928
41929
41930        #
41931  tst_links_socket="unknown"
41932  tst_proto_socket="unknown"
41933  tst_compi_socket="unknown"
41934  tst_allow_socket="unknown"
41935  #
41936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
41937printf %s "checking if socket can be linked... " >&6; }
41938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41939/* end confdefs.h.  */
41940
41941
41942      $curl_includes_winsock2
41943      $curl_includes_bsdsocket
41944      $curl_includes_sys_socket
41945      $curl_includes_socket
41946
41947int main (void)
41948{
41949
41950      if(0 != socket(0, 0, 0))
41951        return 1;
41952
41953 ;
41954 return 0;
41955}
41956
41957_ACEOF
41958if ac_fn_c_try_link "$LINENO"
41959then :
41960
41961    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41962printf "%s\n" "yes" >&6; }
41963    tst_links_socket="yes"
41964
41965else $as_nop
41966
41967    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41968printf "%s\n" "no" >&6; }
41969    tst_links_socket="no"
41970
41971fi
41972rm -f core conftest.err conftest.$ac_objext conftest.beam \
41973    conftest$ac_exeext conftest.$ac_ext
41974  #
41975  if test "$tst_links_socket" = "yes"; then
41976    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
41977printf %s "checking if socket is prototyped... " >&6; }
41978    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41979/* end confdefs.h.  */
41980
41981      $curl_includes_winsock2
41982      $curl_includes_bsdsocket
41983      $curl_includes_sys_socket
41984      $curl_includes_socket
41985
41986_ACEOF
41987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41988  $EGREP "socket" >/dev/null 2>&1
41989then :
41990
41991      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41992printf "%s\n" "yes" >&6; }
41993      tst_proto_socket="yes"
41994
41995else $as_nop
41996
41997      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41998printf "%s\n" "no" >&6; }
41999      tst_proto_socket="no"
42000
42001fi
42002rm -rf conftest*
42003
42004  fi
42005  #
42006  if test "$tst_proto_socket" = "yes"; then
42007    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
42008printf %s "checking if socket is compilable... " >&6; }
42009    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42010/* end confdefs.h.  */
42011
42012
42013        $curl_includes_winsock2
42014        $curl_includes_bsdsocket
42015        $curl_includes_sys_socket
42016        $curl_includes_socket
42017
42018int main (void)
42019{
42020
42021        if(0 != socket(0, 0, 0))
42022          return 1;
42023
42024 ;
42025 return 0;
42026}
42027
42028_ACEOF
42029if ac_fn_c_try_compile "$LINENO"
42030then :
42031
42032      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42033printf "%s\n" "yes" >&6; }
42034      tst_compi_socket="yes"
42035
42036else $as_nop
42037
42038      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42039printf "%s\n" "no" >&6; }
42040      tst_compi_socket="no"
42041
42042fi
42043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42044  fi
42045  #
42046  if test "$tst_compi_socket" = "yes"; then
42047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
42048printf %s "checking if socket usage allowed... " >&6; }
42049    if test "x$curl_disallow_socket" != "xyes"; then
42050      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42051printf "%s\n" "yes" >&6; }
42052      tst_allow_socket="yes"
42053    else
42054      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42055printf "%s\n" "no" >&6; }
42056      tst_allow_socket="no"
42057    fi
42058  fi
42059  #
42060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
42061printf %s "checking if socket might be used... " >&6; }
42062  if test "$tst_links_socket" = "yes" &&
42063     test "$tst_proto_socket" = "yes" &&
42064     test "$tst_compi_socket" = "yes" &&
42065     test "$tst_allow_socket" = "yes"; then
42066    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42067printf "%s\n" "yes" >&6; }
42068
42069printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
42070
42071    curl_cv_func_socket="yes"
42072  else
42073    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42074printf "%s\n" "no" >&6; }
42075    curl_cv_func_socket="no"
42076  fi
42077
42078
42079      #
42080  tst_links_socketpair="unknown"
42081  tst_proto_socketpair="unknown"
42082  tst_compi_socketpair="unknown"
42083  tst_allow_socketpair="unknown"
42084  #
42085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
42086printf %s "checking if socketpair can be linked... " >&6; }
42087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42088/* end confdefs.h.  */
42089
42090
42091#define socketpair innocuous_socketpair
42092#ifdef __STDC__
42093# include <limits.h>
42094#else
42095# include <assert.h>
42096#endif
42097#undef socketpair
42098#ifdef __cplusplus
42099extern "C"
42100#endif
42101char socketpair ();
42102#if defined __stub_socketpair || defined __stub___socketpair
42103choke me
42104#endif
42105
42106int main (void)
42107{
42108return socketpair ();
42109 ;
42110 return 0;
42111}
42112
42113_ACEOF
42114if ac_fn_c_try_link "$LINENO"
42115then :
42116
42117    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42118printf "%s\n" "yes" >&6; }
42119    tst_links_socketpair="yes"
42120
42121else $as_nop
42122
42123    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42124printf "%s\n" "no" >&6; }
42125    tst_links_socketpair="no"
42126
42127fi
42128rm -f core conftest.err conftest.$ac_objext conftest.beam \
42129    conftest$ac_exeext conftest.$ac_ext
42130  #
42131  if test "$tst_links_socketpair" = "yes"; then
42132    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
42133printf %s "checking if socketpair is prototyped... " >&6; }
42134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42135/* end confdefs.h.  */
42136
42137      $curl_includes_sys_socket
42138      $curl_includes_socket
42139
42140_ACEOF
42141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42142  $EGREP "socketpair" >/dev/null 2>&1
42143then :
42144
42145      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42146printf "%s\n" "yes" >&6; }
42147      tst_proto_socketpair="yes"
42148
42149else $as_nop
42150
42151      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42152printf "%s\n" "no" >&6; }
42153      tst_proto_socketpair="no"
42154
42155fi
42156rm -rf conftest*
42157
42158  fi
42159  #
42160  if test "$tst_proto_socketpair" = "yes"; then
42161    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
42162printf %s "checking if socketpair is compilable... " >&6; }
42163    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42164/* end confdefs.h.  */
42165
42166
42167        $curl_includes_sys_socket
42168        $curl_includes_socket
42169
42170int main (void)
42171{
42172
42173        int sv[2];
42174        if(0 != socketpair(0, 0, 0, sv))
42175          return 1;
42176
42177 ;
42178 return 0;
42179}
42180
42181_ACEOF
42182if ac_fn_c_try_compile "$LINENO"
42183then :
42184
42185      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42186printf "%s\n" "yes" >&6; }
42187      tst_compi_socketpair="yes"
42188
42189else $as_nop
42190
42191      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42192printf "%s\n" "no" >&6; }
42193      tst_compi_socketpair="no"
42194
42195fi
42196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42197  fi
42198  #
42199  if test "$tst_compi_socketpair" = "yes"; then
42200    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
42201printf %s "checking if socketpair usage allowed... " >&6; }
42202    if test "x$curl_disallow_socketpair" != "xyes"; then
42203      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42204printf "%s\n" "yes" >&6; }
42205      tst_allow_socketpair="yes"
42206    else
42207      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42208printf "%s\n" "no" >&6; }
42209      tst_allow_socketpair="no"
42210    fi
42211  fi
42212  #
42213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
42214printf %s "checking if socketpair might be used... " >&6; }
42215  if test "$tst_links_socketpair" = "yes" &&
42216     test "$tst_proto_socketpair" = "yes" &&
42217     test "$tst_compi_socketpair" = "yes" &&
42218     test "$tst_allow_socketpair" = "yes"; then
42219    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42220printf "%s\n" "yes" >&6; }
42221
42222printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
42223
42224    curl_cv_func_socketpair="yes"
42225  else
42226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42227printf "%s\n" "no" >&6; }
42228    curl_cv_func_socketpair="no"
42229  fi
42230
42231
42232    #
42233  tst_links_strcasecmp="unknown"
42234  tst_proto_strcasecmp="unknown"
42235  tst_compi_strcasecmp="unknown"
42236  tst_allow_strcasecmp="unknown"
42237  #
42238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
42239printf %s "checking if strcasecmp can be linked... " >&6; }
42240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42241/* end confdefs.h.  */
42242
42243
42244#define strcasecmp innocuous_strcasecmp
42245#ifdef __STDC__
42246# include <limits.h>
42247#else
42248# include <assert.h>
42249#endif
42250#undef strcasecmp
42251#ifdef __cplusplus
42252extern "C"
42253#endif
42254char strcasecmp ();
42255#if defined __stub_strcasecmp || defined __stub___strcasecmp
42256choke me
42257#endif
42258
42259int main (void)
42260{
42261return strcasecmp ();
42262 ;
42263 return 0;
42264}
42265
42266_ACEOF
42267if ac_fn_c_try_link "$LINENO"
42268then :
42269
42270    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42271printf "%s\n" "yes" >&6; }
42272    tst_links_strcasecmp="yes"
42273
42274else $as_nop
42275
42276    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42277printf "%s\n" "no" >&6; }
42278    tst_links_strcasecmp="no"
42279
42280fi
42281rm -f core conftest.err conftest.$ac_objext conftest.beam \
42282    conftest$ac_exeext conftest.$ac_ext
42283  #
42284  if test "$tst_links_strcasecmp" = "yes"; then
42285    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
42286printf %s "checking if strcasecmp is prototyped... " >&6; }
42287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42288/* end confdefs.h.  */
42289
42290      $curl_includes_string
42291
42292_ACEOF
42293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42294  $EGREP "strcasecmp" >/dev/null 2>&1
42295then :
42296
42297      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42298printf "%s\n" "yes" >&6; }
42299      tst_proto_strcasecmp="yes"
42300
42301else $as_nop
42302
42303      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42304printf "%s\n" "no" >&6; }
42305      tst_proto_strcasecmp="no"
42306
42307fi
42308rm -rf conftest*
42309
42310  fi
42311  #
42312  if test "$tst_proto_strcasecmp" = "yes"; then
42313    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
42314printf %s "checking if strcasecmp is compilable... " >&6; }
42315    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42316/* end confdefs.h.  */
42317
42318
42319        $curl_includes_string
42320
42321int main (void)
42322{
42323
42324        if(0 != strcasecmp(0, 0))
42325          return 1;
42326
42327 ;
42328 return 0;
42329}
42330
42331_ACEOF
42332if ac_fn_c_try_compile "$LINENO"
42333then :
42334
42335      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42336printf "%s\n" "yes" >&6; }
42337      tst_compi_strcasecmp="yes"
42338
42339else $as_nop
42340
42341      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42342printf "%s\n" "no" >&6; }
42343      tst_compi_strcasecmp="no"
42344
42345fi
42346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42347  fi
42348  #
42349  if test "$tst_compi_strcasecmp" = "yes"; then
42350    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
42351printf %s "checking if strcasecmp usage allowed... " >&6; }
42352    if test "x$curl_disallow_strcasecmp" != "xyes"; then
42353      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42354printf "%s\n" "yes" >&6; }
42355      tst_allow_strcasecmp="yes"
42356    else
42357      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42358printf "%s\n" "no" >&6; }
42359      tst_allow_strcasecmp="no"
42360    fi
42361  fi
42362  #
42363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
42364printf %s "checking if strcasecmp might be used... " >&6; }
42365  if test "$tst_links_strcasecmp" = "yes" &&
42366     test "$tst_proto_strcasecmp" = "yes" &&
42367     test "$tst_compi_strcasecmp" = "yes" &&
42368     test "$tst_allow_strcasecmp" = "yes"; then
42369    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42370printf "%s\n" "yes" >&6; }
42371
42372printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
42373
42374    curl_cv_func_strcasecmp="yes"
42375  else
42376    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42377printf "%s\n" "no" >&6; }
42378    curl_cv_func_strcasecmp="no"
42379  fi
42380
42381
42382    #
42383  tst_links_strcmpi="unknown"
42384  tst_proto_strcmpi="unknown"
42385  tst_compi_strcmpi="unknown"
42386  tst_allow_strcmpi="unknown"
42387  #
42388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
42389printf %s "checking if strcmpi can be linked... " >&6; }
42390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42391/* end confdefs.h.  */
42392
42393
42394#define strcmpi innocuous_strcmpi
42395#ifdef __STDC__
42396# include <limits.h>
42397#else
42398# include <assert.h>
42399#endif
42400#undef strcmpi
42401#ifdef __cplusplus
42402extern "C"
42403#endif
42404char strcmpi ();
42405#if defined __stub_strcmpi || defined __stub___strcmpi
42406choke me
42407#endif
42408
42409int main (void)
42410{
42411return strcmpi ();
42412 ;
42413 return 0;
42414}
42415
42416_ACEOF
42417if ac_fn_c_try_link "$LINENO"
42418then :
42419
42420    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42421printf "%s\n" "yes" >&6; }
42422    tst_links_strcmpi="yes"
42423
42424else $as_nop
42425
42426    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42427printf "%s\n" "no" >&6; }
42428    tst_links_strcmpi="no"
42429
42430fi
42431rm -f core conftest.err conftest.$ac_objext conftest.beam \
42432    conftest$ac_exeext conftest.$ac_ext
42433  #
42434  if test "$tst_links_strcmpi" = "yes"; then
42435    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42436printf %s "checking if strcmpi is prototyped... " >&6; }
42437    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42438/* end confdefs.h.  */
42439
42440      $curl_includes_string
42441
42442_ACEOF
42443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42444  $EGREP "strcmpi" >/dev/null 2>&1
42445then :
42446
42447      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42448printf "%s\n" "yes" >&6; }
42449      tst_proto_strcmpi="yes"
42450
42451else $as_nop
42452
42453      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42454printf "%s\n" "no" >&6; }
42455      tst_proto_strcmpi="no"
42456
42457fi
42458rm -rf conftest*
42459
42460  fi
42461  #
42462  if test "$tst_proto_strcmpi" = "yes"; then
42463    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42464printf %s "checking if strcmpi is compilable... " >&6; }
42465    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42466/* end confdefs.h.  */
42467
42468
42469        $curl_includes_string
42470
42471int main (void)
42472{
42473
42474        if(0 != strcmpi(0, 0))
42475          return 1;
42476
42477 ;
42478 return 0;
42479}
42480
42481_ACEOF
42482if ac_fn_c_try_compile "$LINENO"
42483then :
42484
42485      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42486printf "%s\n" "yes" >&6; }
42487      tst_compi_strcmpi="yes"
42488
42489else $as_nop
42490
42491      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42492printf "%s\n" "no" >&6; }
42493      tst_compi_strcmpi="no"
42494
42495fi
42496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42497  fi
42498  #
42499  if test "$tst_compi_strcmpi" = "yes"; then
42500    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42501printf %s "checking if strcmpi usage allowed... " >&6; }
42502    if test "x$curl_disallow_strcmpi" != "xyes"; then
42503      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42504printf "%s\n" "yes" >&6; }
42505      tst_allow_strcmpi="yes"
42506    else
42507      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42508printf "%s\n" "no" >&6; }
42509      tst_allow_strcmpi="no"
42510    fi
42511  fi
42512  #
42513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42514printf %s "checking if strcmpi might be used... " >&6; }
42515  if test "$tst_links_strcmpi" = "yes" &&
42516     test "$tst_proto_strcmpi" = "yes" &&
42517     test "$tst_compi_strcmpi" = "yes" &&
42518     test "$tst_allow_strcmpi" = "yes"; then
42519    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42520printf "%s\n" "yes" >&6; }
42521
42522printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42523
42524    curl_cv_func_strcmpi="yes"
42525  else
42526    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42527printf "%s\n" "no" >&6; }
42528    curl_cv_func_strcmpi="no"
42529  fi
42530
42531
42532    #
42533  tst_links_strdup="unknown"
42534  tst_proto_strdup="unknown"
42535  tst_compi_strdup="unknown"
42536  tst_allow_strdup="unknown"
42537  #
42538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42539printf %s "checking if strdup can be linked... " >&6; }
42540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42541/* end confdefs.h.  */
42542
42543
42544#define strdup innocuous_strdup
42545#ifdef __STDC__
42546# include <limits.h>
42547#else
42548# include <assert.h>
42549#endif
42550#undef strdup
42551#ifdef __cplusplus
42552extern "C"
42553#endif
42554char strdup ();
42555#if defined __stub_strdup || defined __stub___strdup
42556choke me
42557#endif
42558
42559int main (void)
42560{
42561return strdup ();
42562 ;
42563 return 0;
42564}
42565
42566_ACEOF
42567if ac_fn_c_try_link "$LINENO"
42568then :
42569
42570    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42571printf "%s\n" "yes" >&6; }
42572    tst_links_strdup="yes"
42573
42574else $as_nop
42575
42576    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42577printf "%s\n" "no" >&6; }
42578    tst_links_strdup="no"
42579
42580fi
42581rm -f core conftest.err conftest.$ac_objext conftest.beam \
42582    conftest$ac_exeext conftest.$ac_ext
42583  #
42584  if test "$tst_links_strdup" = "yes"; then
42585    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42586printf %s "checking if strdup is prototyped... " >&6; }
42587    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42588/* end confdefs.h.  */
42589
42590      $curl_includes_string
42591
42592_ACEOF
42593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42594  $EGREP "strdup" >/dev/null 2>&1
42595then :
42596
42597      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42598printf "%s\n" "yes" >&6; }
42599      tst_proto_strdup="yes"
42600
42601else $as_nop
42602
42603      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42604printf "%s\n" "no" >&6; }
42605      tst_proto_strdup="no"
42606
42607fi
42608rm -rf conftest*
42609
42610  fi
42611  #
42612  if test "$tst_proto_strdup" = "yes"; then
42613    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42614printf %s "checking if strdup is compilable... " >&6; }
42615    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42616/* end confdefs.h.  */
42617
42618
42619        $curl_includes_string
42620
42621int main (void)
42622{
42623
42624        if(0 != strdup(0))
42625          return 1;
42626
42627 ;
42628 return 0;
42629}
42630
42631_ACEOF
42632if ac_fn_c_try_compile "$LINENO"
42633then :
42634
42635      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42636printf "%s\n" "yes" >&6; }
42637      tst_compi_strdup="yes"
42638
42639else $as_nop
42640
42641      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42642printf "%s\n" "no" >&6; }
42643      tst_compi_strdup="no"
42644
42645fi
42646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42647  fi
42648  #
42649  if test "$tst_compi_strdup" = "yes"; then
42650    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42651printf %s "checking if strdup usage allowed... " >&6; }
42652    if test "x$curl_disallow_strdup" != "xyes"; then
42653      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42654printf "%s\n" "yes" >&6; }
42655      tst_allow_strdup="yes"
42656    else
42657      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42658printf "%s\n" "no" >&6; }
42659      tst_allow_strdup="no"
42660    fi
42661  fi
42662  #
42663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42664printf %s "checking if strdup might be used... " >&6; }
42665  if test "$tst_links_strdup" = "yes" &&
42666     test "$tst_proto_strdup" = "yes" &&
42667     test "$tst_compi_strdup" = "yes" &&
42668     test "$tst_allow_strdup" = "yes"; then
42669    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42670printf "%s\n" "yes" >&6; }
42671
42672printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42673
42674    curl_cv_func_strdup="yes"
42675  else
42676    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42677printf "%s\n" "no" >&6; }
42678    curl_cv_func_strdup="no"
42679  fi
42680
42681
42682      #
42683  tst_links_strerror_r="unknown"
42684  tst_proto_strerror_r="unknown"
42685  tst_compi_strerror_r="unknown"
42686  tst_glibc_strerror_r="unknown"
42687  tst_posix_strerror_r="unknown"
42688  tst_allow_strerror_r="unknown"
42689  tst_works_glibc_strerror_r="unknown"
42690  tst_works_posix_strerror_r="unknown"
42691  tst_glibc_strerror_r_type_arg3="unknown"
42692  tst_posix_strerror_r_type_arg3="unknown"
42693  #
42694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
42695printf %s "checking if strerror_r can be linked... " >&6; }
42696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42697/* end confdefs.h.  */
42698
42699
42700#define strerror_r innocuous_strerror_r
42701#ifdef __STDC__
42702# include <limits.h>
42703#else
42704# include <assert.h>
42705#endif
42706#undef strerror_r
42707#ifdef __cplusplus
42708extern "C"
42709#endif
42710char strerror_r ();
42711#if defined __stub_strerror_r || defined __stub___strerror_r
42712choke me
42713#endif
42714
42715int main (void)
42716{
42717return strerror_r ();
42718 ;
42719 return 0;
42720}
42721
42722_ACEOF
42723if ac_fn_c_try_link "$LINENO"
42724then :
42725
42726    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42727printf "%s\n" "yes" >&6; }
42728    tst_links_strerror_r="yes"
42729
42730else $as_nop
42731
42732    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42733printf "%s\n" "no" >&6; }
42734    tst_links_strerror_r="no"
42735
42736fi
42737rm -f core conftest.err conftest.$ac_objext conftest.beam \
42738    conftest$ac_exeext conftest.$ac_ext
42739  #
42740  if test "$tst_links_strerror_r" = "yes"; then
42741    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
42742printf %s "checking if strerror_r is prototyped... " >&6; }
42743    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42744/* end confdefs.h.  */
42745
42746      $curl_includes_string
42747
42748_ACEOF
42749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42750  $EGREP "strerror_r" >/dev/null 2>&1
42751then :
42752
42753      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42754printf "%s\n" "yes" >&6; }
42755      tst_proto_strerror_r="yes"
42756
42757else $as_nop
42758
42759      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42760printf "%s\n" "no" >&6; }
42761      tst_proto_strerror_r="no"
42762
42763fi
42764rm -rf conftest*
42765
42766  fi
42767  #
42768  if test "$tst_proto_strerror_r" = "yes"; then
42769    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
42770printf %s "checking if strerror_r is compilable... " >&6; }
42771    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42772/* end confdefs.h.  */
42773
42774
42775        $curl_includes_string
42776
42777int main (void)
42778{
42779
42780        if(0 != strerror_r(0, 0, 0))
42781          return 1;
42782
42783 ;
42784 return 0;
42785}
42786
42787_ACEOF
42788if ac_fn_c_try_compile "$LINENO"
42789then :
42790
42791      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42792printf "%s\n" "yes" >&6; }
42793      tst_compi_strerror_r="yes"
42794
42795else $as_nop
42796
42797      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42798printf "%s\n" "no" >&6; }
42799      tst_compi_strerror_r="no"
42800
42801fi
42802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42803  fi
42804  #
42805  if test "$tst_compi_strerror_r" = "yes"; then
42806    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
42807printf %s "checking if strerror_r is glibc like... " >&6; }
42808    tst_glibc_strerror_r_type_arg3="unknown"
42809    for arg3 in 'size_t' 'int' 'unsigned int'; do
42810      if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
42811        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42812/* end confdefs.h.  */
42813
42814
42815            $curl_includes_string
42816            char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
42817
42818int main (void)
42819{
42820
42821            if(0 != strerror_r(0, 0, 0))
42822              return 1;
42823
42824 ;
42825 return 0;
42826}
42827
42828_ACEOF
42829if ac_fn_c_try_compile "$LINENO"
42830then :
42831
42832          tst_glibc_strerror_r_type_arg3="$arg3"
42833
42834fi
42835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42836      fi
42837    done
42838    case "$tst_glibc_strerror_r_type_arg3" in
42839      unknown)
42840        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42841printf "%s\n" "no" >&6; }
42842        tst_glibc_strerror_r="no"
42843        ;;
42844      *)
42845        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42846printf "%s\n" "yes" >&6; }
42847        tst_glibc_strerror_r="yes"
42848        ;;
42849    esac
42850  fi
42851  #
42852    if test "x$cross_compiling" != "xyes" &&
42853    test "$tst_glibc_strerror_r" = "yes"; then
42854    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42855printf %s "checking if strerror_r seems to work... " >&6; }
42856
42857   case $host_os in
42858     darwin*)
42859      if test "$cross_compiling" = yes
42860then :
42861  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42862printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42863as_fn_error $? "cannot run test program while cross compiling
42864See \`config.log' for more details" "$LINENO" 5; }
42865else $as_nop
42866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42867/* end confdefs.h.  */
42868
42869
42870        $curl_includes_stdlib
42871        $curl_includes_string
42872#       include <errno.h>
42873
42874int main (void)
42875{
42876
42877        char buffer[1024];
42878        char *string = 0;
42879        buffer[0] = '\0';
42880        string = strerror_r(EACCES, buffer, sizeof(buffer));
42881        if(!string)
42882          exit(1); /* fail */
42883        if(!string[0])
42884          exit(1); /* fail */
42885        else
42886          exit(0);
42887
42888 ;
42889 return 0;
42890}
42891
42892_ACEOF
42893if ac_fn_c_try_run "$LINENO"
42894then :
42895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42896printf "%s\n" "yes" >&6; }
42897      tst_works_glibc_strerror_r="yes"
42898
42899else $as_nop
42900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42901printf "%s\n" "no" >&6; }
42902      tst_works_glibc_strerror_r="no"
42903
42904fi
42905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42906  conftest.$ac_objext conftest.beam conftest.$ac_ext
42907fi
42908
42909     ;;
42910     *)
42911      oldcc=$CC
42912      old=$LD_LIBRARY_PATH
42913      CC="sh ./run-compiler"
42914      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42915      export LD_LIBRARY_PATH
42916      if test "$cross_compiling" = yes
42917then :
42918  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42919printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42920as_fn_error $? "cannot run test program while cross compiling
42921See \`config.log' for more details" "$LINENO" 5; }
42922else $as_nop
42923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42924/* end confdefs.h.  */
42925
42926
42927        $curl_includes_stdlib
42928        $curl_includes_string
42929#       include <errno.h>
42930
42931int main (void)
42932{
42933
42934        char buffer[1024];
42935        char *string = 0;
42936        buffer[0] = '\0';
42937        string = strerror_r(EACCES, buffer, sizeof(buffer));
42938        if(!string)
42939          exit(1); /* fail */
42940        if(!string[0])
42941          exit(1); /* fail */
42942        else
42943          exit(0);
42944
42945 ;
42946 return 0;
42947}
42948
42949_ACEOF
42950if ac_fn_c_try_run "$LINENO"
42951then :
42952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42953printf "%s\n" "yes" >&6; }
42954      tst_works_glibc_strerror_r="yes"
42955
42956else $as_nop
42957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42958printf "%s\n" "no" >&6; }
42959      tst_works_glibc_strerror_r="no"
42960
42961fi
42962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42963  conftest.$ac_objext conftest.beam conftest.$ac_ext
42964fi
42965
42966      LD_LIBRARY_PATH=$old # restore
42967      CC=$oldcc
42968     ;;
42969   esac
42970
42971  fi
42972  #
42973  if test "$tst_compi_strerror_r" = "yes" &&
42974    test "$tst_works_glibc_strerror_r" != "yes"; then
42975    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
42976printf %s "checking if strerror_r is POSIX like... " >&6; }
42977    tst_posix_strerror_r_type_arg3="unknown"
42978    for arg3 in 'size_t' 'int' 'unsigned int'; do
42979      if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
42980        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42981/* end confdefs.h.  */
42982
42983
42984            $curl_includes_string
42985            int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
42986
42987int main (void)
42988{
42989
42990            if(0 != strerror_r(0, 0, 0))
42991              return 1;
42992
42993 ;
42994 return 0;
42995}
42996
42997_ACEOF
42998if ac_fn_c_try_compile "$LINENO"
42999then :
43000
43001          tst_posix_strerror_r_type_arg3="$arg3"
43002
43003fi
43004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43005      fi
43006    done
43007    case "$tst_posix_strerror_r_type_arg3" in
43008      unknown)
43009        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43010printf "%s\n" "no" >&6; }
43011        tst_posix_strerror_r="no"
43012        ;;
43013      *)
43014        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43015printf "%s\n" "yes" >&6; }
43016        tst_posix_strerror_r="yes"
43017        ;;
43018    esac
43019  fi
43020  #
43021    if test "x$cross_compiling" != "xyes" &&
43022    test "$tst_posix_strerror_r" = "yes"; then
43023    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
43024printf %s "checking if strerror_r seems to work... " >&6; }
43025
43026   case $host_os in
43027     darwin*)
43028      if test "$cross_compiling" = yes
43029then :
43030  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43031printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43032as_fn_error $? "cannot run test program while cross compiling
43033See \`config.log' for more details" "$LINENO" 5; }
43034else $as_nop
43035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43036/* end confdefs.h.  */
43037
43038
43039        $curl_includes_stdlib
43040        $curl_includes_string
43041#       include <errno.h>
43042
43043int main (void)
43044{
43045
43046        char buffer[1024];
43047        int error = 1;
43048        buffer[0] = '\0';
43049        error = strerror_r(EACCES, buffer, sizeof(buffer));
43050        if(error)
43051          exit(1); /* fail */
43052        if(buffer[0] == '\0')
43053          exit(1); /* fail */
43054        else
43055          exit(0);
43056
43057 ;
43058 return 0;
43059}
43060
43061_ACEOF
43062if ac_fn_c_try_run "$LINENO"
43063then :
43064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43065printf "%s\n" "yes" >&6; }
43066      tst_works_posix_strerror_r="yes"
43067
43068else $as_nop
43069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43070printf "%s\n" "no" >&6; }
43071      tst_works_posix_strerror_r="no"
43072
43073fi
43074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43075  conftest.$ac_objext conftest.beam conftest.$ac_ext
43076fi
43077
43078     ;;
43079     *)
43080      oldcc=$CC
43081      old=$LD_LIBRARY_PATH
43082      CC="sh ./run-compiler"
43083      LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
43084      export LD_LIBRARY_PATH
43085      if test "$cross_compiling" = yes
43086then :
43087  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43088printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43089as_fn_error $? "cannot run test program while cross compiling
43090See \`config.log' for more details" "$LINENO" 5; }
43091else $as_nop
43092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43093/* end confdefs.h.  */
43094
43095
43096        $curl_includes_stdlib
43097        $curl_includes_string
43098#       include <errno.h>
43099
43100int main (void)
43101{
43102
43103        char buffer[1024];
43104        int error = 1;
43105        buffer[0] = '\0';
43106        error = strerror_r(EACCES, buffer, sizeof(buffer));
43107        if(error)
43108          exit(1); /* fail */
43109        if(buffer[0] == '\0')
43110          exit(1); /* fail */
43111        else
43112          exit(0);
43113
43114 ;
43115 return 0;
43116}
43117
43118_ACEOF
43119if ac_fn_c_try_run "$LINENO"
43120then :
43121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43122printf "%s\n" "yes" >&6; }
43123      tst_works_posix_strerror_r="yes"
43124
43125else $as_nop
43126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43127printf "%s\n" "no" >&6; }
43128      tst_works_posix_strerror_r="no"
43129
43130fi
43131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43132  conftest.$ac_objext conftest.beam conftest.$ac_ext
43133fi
43134
43135      LD_LIBRARY_PATH=$old # restore
43136      CC=$oldcc
43137     ;;
43138   esac
43139
43140  fi
43141  #
43142  if test "$tst_works_glibc_strerror_r" = "yes"; then
43143    tst_posix_strerror_r="no"
43144  fi
43145  if test "$tst_works_posix_strerror_r" = "yes"; then
43146    tst_glibc_strerror_r="no"
43147  fi
43148  if test "$tst_glibc_strerror_r" = "yes" &&
43149    test "$tst_works_glibc_strerror_r" != "no" &&
43150    test "$tst_posix_strerror_r" != "yes"; then
43151    tst_allow_strerror_r="check"
43152  fi
43153  if test "$tst_posix_strerror_r" = "yes" &&
43154    test "$tst_works_posix_strerror_r" != "no" &&
43155    test "$tst_glibc_strerror_r" != "yes"; then
43156    tst_allow_strerror_r="check"
43157  fi
43158  if test "$tst_allow_strerror_r" = "check"; then
43159    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
43160printf %s "checking if strerror_r usage allowed... " >&6; }
43161    if test "x$curl_disallow_strerror_r" != "xyes"; then
43162      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43163printf "%s\n" "yes" >&6; }
43164      tst_allow_strerror_r="yes"
43165    else
43166      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43167printf "%s\n" "no" >&6; }
43168      tst_allow_strerror_r="no"
43169    fi
43170  fi
43171  #
43172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
43173printf %s "checking if strerror_r might be used... " >&6; }
43174  if test "$tst_links_strerror_r" = "yes" &&
43175     test "$tst_proto_strerror_r" = "yes" &&
43176     test "$tst_compi_strerror_r" = "yes" &&
43177     test "$tst_allow_strerror_r" = "yes"; then
43178    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43179printf "%s\n" "yes" >&6; }
43180    if test "$tst_glibc_strerror_r" = "yes"; then
43181
43182printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43183
43184
43185printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
43186
43187    fi
43188    if test "$tst_posix_strerror_r" = "yes"; then
43189
43190printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43191
43192
43193printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
43194
43195    fi
43196    curl_cv_func_strerror_r="yes"
43197  else
43198    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43199printf "%s\n" "no" >&6; }
43200    curl_cv_func_strerror_r="no"
43201  fi
43202  #
43203  if test "$tst_compi_strerror_r" = "yes" &&
43204     test "$tst_allow_strerror_r" = "unknown"; then
43205    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
43206printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
43207  fi
43208  #
43209
43210
43211    #
43212  tst_links_stricmp="unknown"
43213  tst_proto_stricmp="unknown"
43214  tst_compi_stricmp="unknown"
43215  tst_allow_stricmp="unknown"
43216  #
43217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
43218printf %s "checking if stricmp can be linked... " >&6; }
43219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43220/* end confdefs.h.  */
43221
43222
43223#define stricmp innocuous_stricmp
43224#ifdef __STDC__
43225# include <limits.h>
43226#else
43227# include <assert.h>
43228#endif
43229#undef stricmp
43230#ifdef __cplusplus
43231extern "C"
43232#endif
43233char stricmp ();
43234#if defined __stub_stricmp || defined __stub___stricmp
43235choke me
43236#endif
43237
43238int main (void)
43239{
43240return stricmp ();
43241 ;
43242 return 0;
43243}
43244
43245_ACEOF
43246if ac_fn_c_try_link "$LINENO"
43247then :
43248
43249    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43250printf "%s\n" "yes" >&6; }
43251    tst_links_stricmp="yes"
43252
43253else $as_nop
43254
43255    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43256printf "%s\n" "no" >&6; }
43257    tst_links_stricmp="no"
43258
43259fi
43260rm -f core conftest.err conftest.$ac_objext conftest.beam \
43261    conftest$ac_exeext conftest.$ac_ext
43262  #
43263  if test "$tst_links_stricmp" = "yes"; then
43264    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
43265printf %s "checking if stricmp is prototyped... " >&6; }
43266    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43267/* end confdefs.h.  */
43268
43269      $curl_includes_string
43270
43271_ACEOF
43272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43273  $EGREP "stricmp" >/dev/null 2>&1
43274then :
43275
43276      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43277printf "%s\n" "yes" >&6; }
43278      tst_proto_stricmp="yes"
43279
43280else $as_nop
43281
43282      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43283printf "%s\n" "no" >&6; }
43284      tst_proto_stricmp="no"
43285
43286fi
43287rm -rf conftest*
43288
43289  fi
43290  #
43291  if test "$tst_proto_stricmp" = "yes"; then
43292    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
43293printf %s "checking if stricmp is compilable... " >&6; }
43294    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43295/* end confdefs.h.  */
43296
43297
43298        $curl_includes_string
43299
43300int main (void)
43301{
43302
43303        if(0 != stricmp(0, 0))
43304          return 1;
43305
43306 ;
43307 return 0;
43308}
43309
43310_ACEOF
43311if ac_fn_c_try_compile "$LINENO"
43312then :
43313
43314      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43315printf "%s\n" "yes" >&6; }
43316      tst_compi_stricmp="yes"
43317
43318else $as_nop
43319
43320      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43321printf "%s\n" "no" >&6; }
43322      tst_compi_stricmp="no"
43323
43324fi
43325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43326  fi
43327  #
43328  if test "$tst_compi_stricmp" = "yes"; then
43329    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
43330printf %s "checking if stricmp usage allowed... " >&6; }
43331    if test "x$curl_disallow_stricmp" != "xyes"; then
43332      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43333printf "%s\n" "yes" >&6; }
43334      tst_allow_stricmp="yes"
43335    else
43336      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43337printf "%s\n" "no" >&6; }
43338      tst_allow_stricmp="no"
43339    fi
43340  fi
43341  #
43342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
43343printf %s "checking if stricmp might be used... " >&6; }
43344  if test "$tst_links_stricmp" = "yes" &&
43345     test "$tst_proto_stricmp" = "yes" &&
43346     test "$tst_compi_stricmp" = "yes" &&
43347     test "$tst_allow_stricmp" = "yes"; then
43348    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43349printf "%s\n" "yes" >&6; }
43350
43351printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
43352
43353    curl_cv_func_stricmp="yes"
43354  else
43355    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43356printf "%s\n" "no" >&6; }
43357    curl_cv_func_stricmp="no"
43358  fi
43359
43360
43361    #
43362  tst_links_strtok_r="unknown"
43363  tst_proto_strtok_r="unknown"
43364  tst_compi_strtok_r="unknown"
43365  tst_allow_strtok_r="unknown"
43366  #
43367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
43368printf %s "checking if strtok_r can be linked... " >&6; }
43369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43370/* end confdefs.h.  */
43371
43372
43373#define strtok_r innocuous_strtok_r
43374#ifdef __STDC__
43375# include <limits.h>
43376#else
43377# include <assert.h>
43378#endif
43379#undef strtok_r
43380#ifdef __cplusplus
43381extern "C"
43382#endif
43383char strtok_r ();
43384#if defined __stub_strtok_r || defined __stub___strtok_r
43385choke me
43386#endif
43387
43388int main (void)
43389{
43390return strtok_r ();
43391 ;
43392 return 0;
43393}
43394
43395_ACEOF
43396if ac_fn_c_try_link "$LINENO"
43397then :
43398
43399    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43400printf "%s\n" "yes" >&6; }
43401    tst_links_strtok_r="yes"
43402
43403else $as_nop
43404
43405    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43406printf "%s\n" "no" >&6; }
43407    tst_links_strtok_r="no"
43408
43409fi
43410rm -f core conftest.err conftest.$ac_objext conftest.beam \
43411    conftest$ac_exeext conftest.$ac_ext
43412  #
43413  if test "$tst_links_strtok_r" = "yes"; then
43414    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
43415printf %s "checking if strtok_r is prototyped... " >&6; }
43416    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43417/* end confdefs.h.  */
43418
43419      $curl_includes_string
43420
43421_ACEOF
43422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43423  $EGREP "strtok_r" >/dev/null 2>&1
43424then :
43425
43426      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43427printf "%s\n" "yes" >&6; }
43428      tst_proto_strtok_r="yes"
43429
43430else $as_nop
43431
43432      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43433printf "%s\n" "no" >&6; }
43434      tst_proto_strtok_r="no"
43435
43436fi
43437rm -rf conftest*
43438
43439  fi
43440  #
43441  if test "$tst_proto_strtok_r" = "yes"; then
43442    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
43443printf %s "checking if strtok_r is compilable... " >&6; }
43444    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43445/* end confdefs.h.  */
43446
43447
43448        $curl_includes_string
43449
43450int main (void)
43451{
43452
43453        if(0 != strtok_r(0, 0, 0))
43454          return 1;
43455
43456 ;
43457 return 0;
43458}
43459
43460_ACEOF
43461if ac_fn_c_try_compile "$LINENO"
43462then :
43463
43464      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43465printf "%s\n" "yes" >&6; }
43466      tst_compi_strtok_r="yes"
43467
43468else $as_nop
43469
43470      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43471printf "%s\n" "no" >&6; }
43472      tst_compi_strtok_r="no"
43473
43474fi
43475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43476  fi
43477  #
43478  if test "$tst_compi_strtok_r" = "yes"; then
43479    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
43480printf %s "checking if strtok_r usage allowed... " >&6; }
43481    if test "x$curl_disallow_strtok_r" != "xyes"; then
43482      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43483printf "%s\n" "yes" >&6; }
43484      tst_allow_strtok_r="yes"
43485    else
43486      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43487printf "%s\n" "no" >&6; }
43488      tst_allow_strtok_r="no"
43489    fi
43490  fi
43491  #
43492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
43493printf %s "checking if strtok_r might be used... " >&6; }
43494  if test "$tst_links_strtok_r" = "yes" &&
43495     test "$tst_proto_strtok_r" = "yes" &&
43496     test "$tst_compi_strtok_r" = "yes" &&
43497     test "$tst_allow_strtok_r" = "yes"; then
43498    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43499printf "%s\n" "yes" >&6; }
43500
43501printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
43502
43503    curl_cv_func_strtok_r="yes"
43504  else
43505    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43506printf "%s\n" "no" >&6; }
43507    curl_cv_func_strtok_r="no"
43508  fi
43509
43510
43511    #
43512  tst_links_strtoll="unknown"
43513  tst_proto_strtoll="unknown"
43514  tst_compi_strtoll="unknown"
43515  tst_allow_strtoll="unknown"
43516  #
43517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
43518printf %s "checking if strtoll can be linked... " >&6; }
43519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43520/* end confdefs.h.  */
43521
43522
43523#define strtoll innocuous_strtoll
43524#ifdef __STDC__
43525# include <limits.h>
43526#else
43527# include <assert.h>
43528#endif
43529#undef strtoll
43530#ifdef __cplusplus
43531extern "C"
43532#endif
43533char strtoll ();
43534#if defined __stub_strtoll || defined __stub___strtoll
43535choke me
43536#endif
43537
43538int main (void)
43539{
43540return strtoll ();
43541 ;
43542 return 0;
43543}
43544
43545_ACEOF
43546if ac_fn_c_try_link "$LINENO"
43547then :
43548
43549    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43550printf "%s\n" "yes" >&6; }
43551    tst_links_strtoll="yes"
43552
43553else $as_nop
43554
43555    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43556printf "%s\n" "no" >&6; }
43557    tst_links_strtoll="no"
43558
43559fi
43560rm -f core conftest.err conftest.$ac_objext conftest.beam \
43561    conftest$ac_exeext conftest.$ac_ext
43562  #
43563  if test "$tst_links_strtoll" = "yes"; then
43564    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
43565printf %s "checking if strtoll is prototyped... " >&6; }
43566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43567/* end confdefs.h.  */
43568
43569      $curl_includes_stdlib
43570
43571_ACEOF
43572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43573  $EGREP "strtoll" >/dev/null 2>&1
43574then :
43575
43576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43577printf "%s\n" "yes" >&6; }
43578      tst_proto_strtoll="yes"
43579
43580else $as_nop
43581
43582      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43583printf "%s\n" "no" >&6; }
43584      tst_proto_strtoll="no"
43585
43586fi
43587rm -rf conftest*
43588
43589  fi
43590  #
43591  if test "$tst_proto_strtoll" = "yes"; then
43592    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43593printf %s "checking if strtoll is compilable... " >&6; }
43594    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43595/* end confdefs.h.  */
43596
43597
43598        $curl_includes_stdlib
43599
43600int main (void)
43601{
43602
43603        if(0 != strtoll(0, 0, 0))
43604          return 1;
43605
43606 ;
43607 return 0;
43608}
43609
43610_ACEOF
43611if ac_fn_c_try_compile "$LINENO"
43612then :
43613
43614      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43615printf "%s\n" "yes" >&6; }
43616      tst_compi_strtoll="yes"
43617
43618else $as_nop
43619
43620      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43621printf "%s\n" "no" >&6; }
43622      tst_compi_strtoll="no"
43623
43624fi
43625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43626  fi
43627  #
43628  if test "$tst_compi_strtoll" = "yes"; then
43629    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43630printf %s "checking if strtoll usage allowed... " >&6; }
43631    if test "x$curl_disallow_strtoll" != "xyes"; then
43632      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43633printf "%s\n" "yes" >&6; }
43634      tst_allow_strtoll="yes"
43635    else
43636      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43637printf "%s\n" "no" >&6; }
43638      tst_allow_strtoll="no"
43639    fi
43640  fi
43641  #
43642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43643printf %s "checking if strtoll might be used... " >&6; }
43644  if test "$tst_links_strtoll" = "yes" &&
43645     test "$tst_proto_strtoll" = "yes" &&
43646     test "$tst_compi_strtoll" = "yes" &&
43647     test "$tst_allow_strtoll" = "yes"; then
43648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43649printf "%s\n" "yes" >&6; }
43650
43651printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
43652
43653    curl_cv_func_strtoll="yes"
43654  else
43655    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43656printf "%s\n" "no" >&6; }
43657    curl_cv_func_strtoll="no"
43658  fi
43659
43660
43661case $host in
43662  *msdosdjgpp)
43663     ac_cv_func_pipe=no
43664     skipcheck_pipe=yes
43665     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43666printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43667    ;;
43668esac
43669
43670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
43671printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
43672if test ${ac_cv_c_undeclared_builtin_options+y}
43673then :
43674  printf %s "(cached) " >&6
43675else $as_nop
43676  ac_save_CFLAGS=$CFLAGS
43677   ac_cv_c_undeclared_builtin_options='cannot detect'
43678   for ac_arg in '' -fno-builtin; do
43679     CFLAGS="$ac_save_CFLAGS $ac_arg"
43680     # This test program should *not* compile successfully.
43681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43682/* end confdefs.h.  */
43683
43684int main (void)
43685{
43686(void) strchr;
43687 ;
43688 return 0;
43689}
43690_ACEOF
43691if ac_fn_c_try_compile "$LINENO"
43692then :
43693
43694else $as_nop
43695  # This test program should compile successfully.
43696        # No library function is consistently available on
43697        # freestanding implementations, so test against a dummy
43698        # declaration.  Include always-available headers on the
43699        # off chance that they somehow elicit warnings.
43700        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43701/* end confdefs.h.  */
43702#include <float.h>
43703#include <limits.h>
43704#include <stdarg.h>
43705#include <stddef.h>
43706extern void ac_decl (int, char *);
43707
43708int main (void)
43709{
43710(void) ac_decl (0, (char *) 0);
43711  (void) ac_decl;
43712
43713 ;
43714 return 0;
43715}
43716_ACEOF
43717if ac_fn_c_try_compile "$LINENO"
43718then :
43719  if test x"$ac_arg" = x
43720then :
43721  ac_cv_c_undeclared_builtin_options='none needed'
43722else $as_nop
43723  ac_cv_c_undeclared_builtin_options=$ac_arg
43724fi
43725          break
43726fi
43727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43728fi
43729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43730    done
43731    CFLAGS=$ac_save_CFLAGS
43732
43733fi
43734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
43735printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
43736  case $ac_cv_c_undeclared_builtin_options in #(
43737  'cannot detect') :
43738    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43739printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43740as_fn_error $? "cannot make $CC report undeclared builtins
43741See \`config.log' for more details" "$LINENO" 5; } ;; #(
43742  'none needed') :
43743    ac_c_undeclared_builtin_options='' ;; #(
43744  *) :
43745    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
43746esac
43747
43748ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43749          #include <sys/types.h>
43750" "$ac_c_undeclared_builtin_options" "CFLAGS"
43751if test "x$ac_cv_have_decl_getpwuid_r" = xyes
43752then :
43753  ac_have_decl=1
43754else $as_nop
43755  ac_have_decl=0
43756fi
43757printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
43758if test $ac_have_decl = 1
43759then :
43760
43761else $as_nop
43762
43763printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43764
43765fi
43766
43767
43768
43769  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
43770do :
43771  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
43772ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43773if eval test \"x\$"$as_ac_var"\" = x"yes"
43774then :
43775  cat >>confdefs.h <<_ACEOF
43776#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
43777_ACEOF
43778
43779
43780else $as_nop
43781
43782  func="$ac_func"
43783  eval skipcheck=\$skipcheck_$func
43784  if test "x$skipcheck" != "xyes"; then
43785    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43786printf %s "checking deeper for $func... " >&6; }
43787    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43788/* end confdefs.h.  */
43789
43790
43791
43792int main (void)
43793{
43794
43795        $func ();
43796
43797 ;
43798 return 0;
43799}
43800
43801_ACEOF
43802if ac_fn_c_try_link "$LINENO"
43803then :
43804
43805      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43806printf "%s\n" "yes" >&6; }
43807      eval "ac_cv_func_$func=yes"
43808
43809cat >>confdefs.h <<_ACEOF
43810#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43811_ACEOF
43812
43813
43814else $as_nop
43815
43816      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43817printf "%s\n" "but still no" >&6; }
43818
43819fi
43820rm -f core conftest.err conftest.$ac_objext conftest.beam \
43821    conftest$ac_exeext conftest.$ac_ext
43822  fi
43823
43824fi
43825
43826done
43827
43828ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "#include <stdio.h>
43829" "$ac_c_undeclared_builtin_options" "CFLAGS"
43830if test "x$ac_cv_have_decl_fseeko" = xyes
43831then :
43832
43833printf "%s\n" "#define HAVE_DECL_FSEEKO 1" >>confdefs.h
43834
43835fi
43836
43837
43838        #
43839  tst_method="unknown"
43840
43841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43842printf %s "checking how to set a socket into non-blocking mode... " >&6; }
43843  if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43844    tst_method="fcntl O_NONBLOCK"
43845  elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43846    tst_method="ioctl FIONBIO"
43847  elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43848    tst_method="ioctlsocket FIONBIO"
43849  elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43850    tst_method="IoctlSocket FIONBIO"
43851  elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43852    tst_method="setsockopt SO_NONBLOCK"
43853  fi
43854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43855printf "%s\n" "$tst_method" >&6; }
43856  if test "$tst_method" = "unknown"; then
43857    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43858printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43859  fi
43860
43861
43862
43863# Extract the first word of "perl", so it can be a program name with args.
43864set dummy perl; ac_word=$2
43865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43866printf %s "checking for $ac_word... " >&6; }
43867if test ${ac_cv_path_PERL+y}
43868then :
43869  printf %s "(cached) " >&6
43870else $as_nop
43871  case $PERL in
43872  [\\/]* | ?:[\\/]*)
43873  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43874  ;;
43875  *)
43876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43877as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43878for as_dir in $as_dummy
43879do
43880  IFS=$as_save_IFS
43881  case $as_dir in #(((
43882    '') as_dir=./ ;;
43883    */) ;;
43884    *) as_dir=$as_dir/ ;;
43885  esac
43886    for ac_exec_ext in '' $ac_executable_extensions; do
43887  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43888    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
43889    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43890    break 2
43891  fi
43892done
43893  done
43894IFS=$as_save_IFS
43895
43896  ;;
43897esac
43898fi
43899PERL=$ac_cv_path_PERL
43900if test -n "$PERL"; then
43901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43902printf "%s\n" "$PERL" >&6; }
43903else
43904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43905printf "%s\n" "no" >&6; }
43906fi
43907
43908
43909
43910
43911for ac_prog in gnroff nroff
43912do
43913  # Extract the first word of "$ac_prog", so it can be a program name with args.
43914set dummy $ac_prog; ac_word=$2
43915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43916printf %s "checking for $ac_word... " >&6; }
43917if test ${ac_cv_path_NROFF+y}
43918then :
43919  printf %s "(cached) " >&6
43920else $as_nop
43921  case $NROFF in
43922  [\\/]* | ?:[\\/]*)
43923  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43924  ;;
43925  *)
43926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43927as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43928for as_dir in $as_dummy
43929do
43930  IFS=$as_save_IFS
43931  case $as_dir in #(((
43932    '') as_dir=./ ;;
43933    */) ;;
43934    *) as_dir=$as_dir/ ;;
43935  esac
43936    for ac_exec_ext in '' $ac_executable_extensions; do
43937  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43938    ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
43939    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43940    break 2
43941  fi
43942done
43943  done
43944IFS=$as_save_IFS
43945
43946  ;;
43947esac
43948fi
43949NROFF=$ac_cv_path_NROFF
43950if test -n "$NROFF"; then
43951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43952printf "%s\n" "$NROFF" >&6; }
43953else
43954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43955printf "%s\n" "no" >&6; }
43956fi
43957
43958
43959  test -n "$NROFF" && break
43960done
43961
43962
43963
43964if test -n "$NROFF"; then
43965
43966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
43967printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
43968  MANOPT="-man"
43969  mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43970  if test -z "$mancheck"; then
43971    MANOPT="-mandoc"
43972   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43973    if test -z "$mancheck"; then
43974      MANOPT=""
43975      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
43976printf "%s\n" "failed" >&6; }
43977      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
43978printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
43979    else
43980      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43981printf "%s\n" "$MANOPT" >&6; }
43982    fi
43983  else
43984    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43985printf "%s\n" "$MANOPT" >&6; }
43986  fi
43987
43988fi
43989
43990if test -z "$MANOPT"
43991then
43992      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
43993printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
43994  USE_MANUAL="no";
43995fi
43996
43997
43998if test "$USE_MANUAL" = "1"; then
43999
44000printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
44001
44002  curl_manual_msg="enabled"
44003fi
44004
44005 if test x"$USE_MANUAL" = x1; then
44006  USE_MANUAL_TRUE=
44007  USE_MANUAL_FALSE='#'
44008else
44009  USE_MANUAL_TRUE='#'
44010  USE_MANUAL_FALSE=
44011fi
44012
44013
44014
44015  #
44016  if test "$want_ares" = "yes"; then
44017        clean_CPPFLAGS="$CPPFLAGS"
44018    clean_LDFLAGS="$LDFLAGS"
44019    clean_LIBS="$LIBS"
44020    configure_runpath=`pwd`
44021    if test -n "$want_ares_path"; then
44022            ARES_PCDIR="$want_ares_path/lib/pkgconfig"
44023
44024    if test -n "$PKG_CONFIG"; then
44025      PKGCONFIG="$PKG_CONFIG"
44026    else
44027      if test -n "$ac_tool_prefix"; then
44028  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44029set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44031printf %s "checking for $ac_word... " >&6; }
44032if test ${ac_cv_path_PKGCONFIG+y}
44033then :
44034  printf %s "(cached) " >&6
44035else $as_nop
44036  case $PKGCONFIG in
44037  [\\/]* | ?:[\\/]*)
44038  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44039  ;;
44040  *)
44041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44042as_dummy="$PATH:/usr/bin:/usr/local/bin"
44043for as_dir in $as_dummy
44044do
44045  IFS=$as_save_IFS
44046  case $as_dir in #(((
44047    '') as_dir=./ ;;
44048    */) ;;
44049    *) as_dir=$as_dir/ ;;
44050  esac
44051    for ac_exec_ext in '' $ac_executable_extensions; do
44052  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44053    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44054    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44055    break 2
44056  fi
44057done
44058  done
44059IFS=$as_save_IFS
44060
44061  ;;
44062esac
44063fi
44064PKGCONFIG=$ac_cv_path_PKGCONFIG
44065if test -n "$PKGCONFIG"; then
44066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44067printf "%s\n" "$PKGCONFIG" >&6; }
44068else
44069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44070printf "%s\n" "no" >&6; }
44071fi
44072
44073
44074fi
44075if test -z "$ac_cv_path_PKGCONFIG"; then
44076  ac_pt_PKGCONFIG=$PKGCONFIG
44077  # Extract the first word of "pkg-config", so it can be a program name with args.
44078set dummy pkg-config; ac_word=$2
44079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44080printf %s "checking for $ac_word... " >&6; }
44081if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44082then :
44083  printf %s "(cached) " >&6
44084else $as_nop
44085  case $ac_pt_PKGCONFIG in
44086  [\\/]* | ?:[\\/]*)
44087  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44088  ;;
44089  *)
44090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44091as_dummy="$PATH:/usr/bin:/usr/local/bin"
44092for as_dir in $as_dummy
44093do
44094  IFS=$as_save_IFS
44095  case $as_dir in #(((
44096    '') as_dir=./ ;;
44097    */) ;;
44098    *) as_dir=$as_dir/ ;;
44099  esac
44100    for ac_exec_ext in '' $ac_executable_extensions; do
44101  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44102    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44103    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44104    break 2
44105  fi
44106done
44107  done
44108IFS=$as_save_IFS
44109
44110  ;;
44111esac
44112fi
44113ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44114if test -n "$ac_pt_PKGCONFIG"; then
44115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44116printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44117else
44118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44119printf "%s\n" "no" >&6; }
44120fi
44121
44122  if test "x$ac_pt_PKGCONFIG" = x; then
44123    PKGCONFIG="no"
44124  else
44125    case $cross_compiling:$ac_tool_warned in
44126yes:)
44127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44128printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44129ac_tool_warned=yes ;;
44130esac
44131    PKGCONFIG=$ac_pt_PKGCONFIG
44132  fi
44133else
44134  PKGCONFIG="$ac_cv_path_PKGCONFIG"
44135fi
44136
44137    fi
44138
44139    if test "x$PKGCONFIG" != "xno"; then
44140      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44141printf %s "checking for libcares options with pkg-config... " >&6; }
44142            itexists=`
44143    if test -n "$ARES_PCDIR"; then
44144      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44145      export PKG_CONFIG_LIBDIR
44146    fi
44147         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44148
44149      if test -z "$itexists"; then
44150                        PKGCONFIG="no"
44151        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44152printf "%s\n" "no" >&6; }
44153      else
44154        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44155printf "%s\n" "found" >&6; }
44156      fi
44157    fi
44158
44159      if test "$PKGCONFIG" != "no" ; then
44160        ares_LIBS=`
44161    if test -n "$ARES_PCDIR"; then
44162      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44163      export PKG_CONFIG_LIBDIR
44164    fi
44165
44166          $PKGCONFIG --libs-only-l libcares`
44167        ares_LDFLAGS=`
44168    if test -n "$ARES_PCDIR"; then
44169      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44170      export PKG_CONFIG_LIBDIR
44171    fi
44172
44173          $PKGCONFIG --libs-only-L libcares`
44174        ares_CPPFLAGS=`
44175    if test -n "$ARES_PCDIR"; then
44176      PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44177      export PKG_CONFIG_LIBDIR
44178    fi
44179
44180          $PKGCONFIG --cflags-only-I libcares`
44181        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
44182printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
44183        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
44184printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44185        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44186printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44187      else
44188                ares_CPPFLAGS="-I$want_ares_path/include"
44189        ares_LDFLAGS="-L$want_ares_path/lib"
44190        ares_LIBS="-lcares"
44191      fi
44192    else
44193
44194    if test -n "$PKG_CONFIG"; then
44195      PKGCONFIG="$PKG_CONFIG"
44196    else
44197      if test -n "$ac_tool_prefix"; then
44198  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44199set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44201printf %s "checking for $ac_word... " >&6; }
44202if test ${ac_cv_path_PKGCONFIG+y}
44203then :
44204  printf %s "(cached) " >&6
44205else $as_nop
44206  case $PKGCONFIG in
44207  [\\/]* | ?:[\\/]*)
44208  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44209  ;;
44210  *)
44211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44212as_dummy="$PATH:/usr/bin:/usr/local/bin"
44213for as_dir in $as_dummy
44214do
44215  IFS=$as_save_IFS
44216  case $as_dir in #(((
44217    '') as_dir=./ ;;
44218    */) ;;
44219    *) as_dir=$as_dir/ ;;
44220  esac
44221    for ac_exec_ext in '' $ac_executable_extensions; do
44222  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44223    ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44224    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44225    break 2
44226  fi
44227done
44228  done
44229IFS=$as_save_IFS
44230
44231  ;;
44232esac
44233fi
44234PKGCONFIG=$ac_cv_path_PKGCONFIG
44235if test -n "$PKGCONFIG"; then
44236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44237printf "%s\n" "$PKGCONFIG" >&6; }
44238else
44239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44240printf "%s\n" "no" >&6; }
44241fi
44242
44243
44244fi
44245if test -z "$ac_cv_path_PKGCONFIG"; then
44246  ac_pt_PKGCONFIG=$PKGCONFIG
44247  # Extract the first word of "pkg-config", so it can be a program name with args.
44248set dummy pkg-config; ac_word=$2
44249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44250printf %s "checking for $ac_word... " >&6; }
44251if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44252then :
44253  printf %s "(cached) " >&6
44254else $as_nop
44255  case $ac_pt_PKGCONFIG in
44256  [\\/]* | ?:[\\/]*)
44257  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44258  ;;
44259  *)
44260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44261as_dummy="$PATH:/usr/bin:/usr/local/bin"
44262for as_dir in $as_dummy
44263do
44264  IFS=$as_save_IFS
44265  case $as_dir in #(((
44266    '') as_dir=./ ;;
44267    */) ;;
44268    *) as_dir=$as_dir/ ;;
44269  esac
44270    for ac_exec_ext in '' $ac_executable_extensions; do
44271  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44272    ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44273    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44274    break 2
44275  fi
44276done
44277  done
44278IFS=$as_save_IFS
44279
44280  ;;
44281esac
44282fi
44283ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44284if test -n "$ac_pt_PKGCONFIG"; then
44285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44286printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44287else
44288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44289printf "%s\n" "no" >&6; }
44290fi
44291
44292  if test "x$ac_pt_PKGCONFIG" = x; then
44293    PKGCONFIG="no"
44294  else
44295    case $cross_compiling:$ac_tool_warned in
44296yes:)
44297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44298printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44299ac_tool_warned=yes ;;
44300esac
44301    PKGCONFIG=$ac_pt_PKGCONFIG
44302  fi
44303else
44304  PKGCONFIG="$ac_cv_path_PKGCONFIG"
44305fi
44306
44307    fi
44308
44309    if test "x$PKGCONFIG" != "xno"; then
44310      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44311printf %s "checking for libcares options with pkg-config... " >&6; }
44312            itexists=`
44313    if test -n ""; then
44314      PKG_CONFIG_LIBDIR=""
44315      export PKG_CONFIG_LIBDIR
44316    fi
44317         $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44318
44319      if test -z "$itexists"; then
44320                        PKGCONFIG="no"
44321        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44322printf "%s\n" "no" >&6; }
44323      else
44324        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44325printf "%s\n" "found" >&6; }
44326      fi
44327    fi
44328
44329      if test "$PKGCONFIG" != "no" ; then
44330        ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
44331        ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
44332        ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
44333        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
44334printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
44335        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
44336printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44337        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44338printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44339      else
44340        ares_CPPFLAGS=""
44341        ares_LDFLAGS=""
44342        ares_LIBS="-lcares"
44343      fi
44344    fi
44345    #
44346    CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
44347    LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
44348    LIBS="$ares_LIBS $clean_LIBS"
44349    #
44350
44351        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
44352printf %s "checking that c-ares is good and recent enough... " >&6; }
44353    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44354/* end confdefs.h.  */
44355
44356
44357#include <ares.h>
44358        /* set of dummy functions in case c-ares was built with debug */
44359        void curl_dofree() { }
44360        void curl_sclose() { }
44361        void curl_domalloc() { }
44362        void curl_docalloc() { }
44363        void curl_socket() { }
44364
44365int main (void)
44366{
44367
44368        ares_channel channel;
44369        ares_cancel(channel); /* added in 1.2.0 */
44370        ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
44371        ares_dup(&channel, channel); /* added in 1.6.0 */
44372
44373 ;
44374 return 0;
44375}
44376
44377_ACEOF
44378if ac_fn_c_try_link "$LINENO"
44379then :
44380
44381      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44382printf "%s\n" "yes" >&6; }
44383
44384else $as_nop
44385
44386      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44387printf "%s\n" "no" >&6; }
44388      as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
44389            CPPFLAGS="$clean_CPPFLAGS"
44390      LDFLAGS="$clean_LDFLAGS"
44391      LIBS="$clean_LIBS"
44392      # prevent usage
44393      want_ares="no"
44394
44395fi
44396rm -f core conftest.err conftest.$ac_objext conftest.beam \
44397    conftest$ac_exeext conftest.$ac_ext
44398
44399    if test "$want_ares" = "yes"; then
44400
44401printf "%s\n" "#define USE_ARES 1" >>confdefs.h
44402
44403      USE_ARES=1
44404
44405      curl_res_msg="c-ares"
44406    fi
44407  fi
44408
44409
44410if test "x$curl_cv_native_windows" != "xyes" &&
44411   test "x$enable_shared" = "xyes"; then
44412  build_libhostname=yes
44413else
44414  build_libhostname=no
44415fi
44416 if test x$build_libhostname = xyes; then
44417  BUILD_LIBHOSTNAME_TRUE=
44418  BUILD_LIBHOSTNAME_FALSE='#'
44419else
44420  BUILD_LIBHOSTNAME_TRUE='#'
44421  BUILD_LIBHOSTNAME_FALSE=
44422fi
44423
44424
44425if test "x$want_ares" != xyes; then
44426
44427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
44428printf %s "checking whether to enable the threaded resolver... " >&6; }
44429  OPT_THRES="default"
44430  # Check whether --enable-threaded_resolver was given.
44431if test ${enable_threaded_resolver+y}
44432then :
44433  enableval=$enable_threaded_resolver; OPT_THRES=$enableval
44434fi
44435
44436  case "$OPT_THRES" in
44437    no)
44438            want_thres="no"
44439      ;;
44440    *)
44441            want_thres="yes"
44442      ;;
44443  esac
44444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
44445printf "%s\n" "$want_thres" >&6; }
44446
44447fi
44448
44449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
44450printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
44451# Check whether --enable-pthreads was given.
44452if test ${enable_pthreads+y}
44453then :
44454  enableval=$enable_pthreads;  case "$enableval" in
44455  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44456printf "%s\n" "no" >&6; }
44457       want_pthreads=no
44458       ;;
44459  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44460printf "%s\n" "yes" >&6; }
44461       want_pthreads=yes
44462       ;;
44463  esac
44464else $as_nop
44465
44466       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44467printf "%s\n" "auto" >&6; }
44468       want_pthreads=auto
44469
44470
44471fi
44472
44473
44474if test "$want_pthreads" != "no"; then
44475  if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
44476    as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
44477  fi
44478  if test "$dontwant_rt" != "no"; then
44479        if test "$want_pthreads" = "yes"; then
44480      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
44481printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
44482    fi
44483    want_pthreads=no
44484  fi
44485fi
44486
44487if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
44488  want_pthreads=no
44489fi
44490
44491if test "$want_pthreads" != "no"; then
44492  ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44493if test "x$ac_cv_header_pthread_h" = xyes
44494then :
44495
44496printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
44497
44498      save_CFLAGS="$CFLAGS"
44499                                    save_LIBS="$LIBS"
44500
44501      LIBS=
44502            ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44503if test "x$ac_cv_func_pthread_create" = xyes
44504then :
44505  USE_THREADS_POSIX=1
44506fi
44507
44508      LIBS="$save_LIBS"
44509
44510            case $host in
44511      *-hp-hpux*)
44512                  USE_THREADS_POSIX=""
44513         ;;
44514      *)
44515         ;;
44516      esac
44517
44518            if test "$USE_THREADS_POSIX" != "1"
44519      then
44520        # assign PTHREAD for pkg-config use
44521        PTHREAD=" -pthread"
44522
44523        case $host in
44524        *-ibm-aix*)
44525                      COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
44526           if test x"$COMPILER_VERSION" = "x"; then
44527             CFLAGS="$CFLAGS -pthread"
44528           else
44529             CFLAGS="$CFLAGS -qthreaded"
44530           fi
44531           ;;
44532        powerpc-*amigaos*)
44533                      PTHREAD=" -lpthread"
44534           ;;
44535        *)
44536           CFLAGS="$CFLAGS -pthread"
44537           ;;
44538        esac
44539        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44540printf %s "checking for pthread_create in -lpthread... " >&6; }
44541if test ${ac_cv_lib_pthread_pthread_create+y}
44542then :
44543  printf %s "(cached) " >&6
44544else $as_nop
44545  ac_check_lib_save_LIBS=$LIBS
44546LIBS="-lpthread  $LIBS"
44547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44548/* end confdefs.h.  */
44549
44550
44551#ifdef __cplusplus
44552extern "C"
44553#endif
44554char pthread_create ();
44555int main (void)
44556{
44557return pthread_create ();
44558 ;
44559 return 0;
44560}
44561_ACEOF
44562if ac_fn_c_try_link "$LINENO"
44563then :
44564  ac_cv_lib_pthread_pthread_create=yes
44565else $as_nop
44566  ac_cv_lib_pthread_pthread_create=no
44567fi
44568rm -f core conftest.err conftest.$ac_objext conftest.beam \
44569    conftest$ac_exeext conftest.$ac_ext
44570LIBS=$ac_check_lib_save_LIBS
44571fi
44572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44573printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
44574if test "x$ac_cv_lib_pthread_pthread_create" = xyes
44575then :
44576  USE_THREADS_POSIX=1
44577else $as_nop
44578   CFLAGS="$save_CFLAGS"
44579fi
44580
44581      fi
44582
44583      if test "x$USE_THREADS_POSIX" = "x1"
44584      then
44585
44586printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
44587
44588        curl_res_msg="POSIX threaded"
44589      fi
44590
44591fi
44592
44593fi
44594
44595if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44596  if test "$want_pthreads" = "yes"; then
44597    as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44598  fi
44599    if test "$curl_cv_native_windows" = "yes"; then
44600    USE_THREADS_WIN32=1
44601
44602printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
44603
44604    curl_res_msg="Win32 threaded"
44605  else
44606    as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44607  fi
44608fi
44609
44610
44611      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44612printf %s "checking convert -I options to -isystem... " >&6; }
44613  if test "$compiler_id" = "GNU_C" ||
44614    test "$compiler_id" = "CLANG"; then
44615    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44616printf "%s\n" "yes" >&6; }
44617    tmp_has_include="no"
44618    tmp_chg_FLAGS="$CFLAGS"
44619    for word1 in $tmp_chg_FLAGS; do
44620      case "$word1" in
44621        -I*)
44622          tmp_has_include="yes"
44623          ;;
44624      esac
44625    done
44626    if test "$tmp_has_include" = "yes"; then
44627      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44628      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44629      CFLAGS="$tmp_chg_FLAGS"
44630      squeeze CFLAGS
44631    fi
44632    tmp_has_include="no"
44633    tmp_chg_FLAGS="$CPPFLAGS"
44634    for word1 in $tmp_chg_FLAGS; do
44635      case "$word1" in
44636        -I*)
44637          tmp_has_include="yes"
44638          ;;
44639      esac
44640    done
44641    if test "$tmp_has_include" = "yes"; then
44642      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44643      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44644      CPPFLAGS="$tmp_chg_FLAGS"
44645      squeeze CPPFLAGS
44646    fi
44647  else
44648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44649printf "%s\n" "no" >&6; }
44650  fi
44651
44652
44653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44654printf %s "checking whether to enable verbose strings... " >&6; }
44655# Check whether --enable-verbose was given.
44656if test ${enable_verbose+y}
44657then :
44658  enableval=$enable_verbose;  case "$enableval" in
44659  no)
44660       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44661printf "%s\n" "no" >&6; }
44662
44663printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44664
44665       curl_verbose_msg="no"
44666       ;;
44667  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44668printf "%s\n" "yes" >&6; }
44669       ;;
44670  esac
44671else $as_nop
44672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44673printf "%s\n" "yes" >&6; }
44674
44675fi
44676
44677
44678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44679printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44680# Check whether --enable-sspi was given.
44681if test ${enable_sspi+y}
44682then :
44683  enableval=$enable_sspi;  case "$enableval" in
44684  yes)
44685       if test "$curl_cv_native_windows" = "yes"; then
44686         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44687printf "%s\n" "yes" >&6; }
44688
44689printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44690
44691         USE_WINDOWS_SSPI=1
44692
44693         curl_sspi_msg="enabled"
44694       else
44695         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44696printf "%s\n" "no" >&6; }
44697         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44698printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44699       fi
44700       ;;
44701  *)
44702       if test "x$SCHANNEL_ENABLED" = "x1"; then
44703         # --with-schannel implies --enable-sspi
44704         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44705printf "%s\n" "yes" >&6; }
44706       else
44707         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44708printf "%s\n" "no" >&6; }
44709       fi
44710       ;;
44711  esac
44712else $as_nop
44713  if test "x$SCHANNEL_ENABLED" = "x1"; then
44714         # --with-schannel implies --enable-sspi
44715         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44716printf "%s\n" "yes" >&6; }
44717       else
44718         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44719printf "%s\n" "no" >&6; }
44720       fi
44721
44722fi
44723
44724
44725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable basic authentication method" >&5
44726printf %s "checking whether to enable basic authentication method... " >&6; }
44727# Check whether --enable-basic-auth was given.
44728if test ${enable_basic_auth+y}
44729then :
44730  enableval=$enable_basic_auth;  case "$enableval" in
44731  no)
44732       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44733printf "%s\n" "no" >&6; }
44734
44735printf "%s\n" "#define CURL_DISABLE_BASIC_AUTH 1" >>confdefs.h
44736
44737       CURL_DISABLE_BASIC_AUTH=1
44738       ;;
44739  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44740printf "%s\n" "yes" >&6; }
44741       ;;
44742  esac
44743else $as_nop
44744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44745printf "%s\n" "yes" >&6; }
44746
44747fi
44748
44749
44750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable bearer authentication method" >&5
44751printf %s "checking whether to enable bearer authentication method... " >&6; }
44752# Check whether --enable-bearer-auth was given.
44753if test ${enable_bearer_auth+y}
44754then :
44755  enableval=$enable_bearer_auth;  case "$enableval" in
44756  no)
44757       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44758printf "%s\n" "no" >&6; }
44759
44760printf "%s\n" "#define CURL_DISABLE_BEARER_AUTH 1" >>confdefs.h
44761
44762       CURL_DISABLE_BEARER_AUTH=1
44763       ;;
44764  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44765printf "%s\n" "yes" >&6; }
44766       ;;
44767  esac
44768else $as_nop
44769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44770printf "%s\n" "yes" >&6; }
44771
44772fi
44773
44774
44775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable digest authentication method" >&5
44776printf %s "checking whether to enable digest authentication method... " >&6; }
44777# Check whether --enable-digest-auth was given.
44778if test ${enable_digest_auth+y}
44779then :
44780  enableval=$enable_digest_auth;  case "$enableval" in
44781  no)
44782       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44783printf "%s\n" "no" >&6; }
44784
44785printf "%s\n" "#define CURL_DISABLE_DIGEST_AUTH 1" >>confdefs.h
44786
44787       CURL_DISABLE_DIGEST_AUTH=1
44788       ;;
44789  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44790printf "%s\n" "yes" >&6; }
44791       ;;
44792  esac
44793else $as_nop
44794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44795printf "%s\n" "yes" >&6; }
44796
44797fi
44798
44799
44800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable kerberos authentication method" >&5
44801printf %s "checking whether to enable kerberos authentication method... " >&6; }
44802# Check whether --enable-kerberos-auth was given.
44803if test ${enable_kerberos_auth+y}
44804then :
44805  enableval=$enable_kerberos_auth;  case "$enableval" in
44806  no)
44807       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44808printf "%s\n" "no" >&6; }
44809
44810printf "%s\n" "#define CURL_DISABLE_KERBEROS_AUTH 1" >>confdefs.h
44811
44812       CURL_DISABLE_KERBEROS_AUTH=1
44813       ;;
44814  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44815printf "%s\n" "yes" >&6; }
44816       ;;
44817  esac
44818else $as_nop
44819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44820printf "%s\n" "yes" >&6; }
44821
44822fi
44823
44824
44825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable negotiate authentication method" >&5
44826printf %s "checking whether to enable negotiate authentication method... " >&6; }
44827# Check whether --enable-negotiate-auth was given.
44828if test ${enable_negotiate_auth+y}
44829then :
44830  enableval=$enable_negotiate_auth;  case "$enableval" in
44831  no)
44832       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44833printf "%s\n" "no" >&6; }
44834
44835printf "%s\n" "#define CURL_DISABLE_NEGOTIATE_AUTH 1" >>confdefs.h
44836
44837       CURL_DISABLE_NEGOTIATE_AUTH=1
44838       ;;
44839  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44840printf "%s\n" "yes" >&6; }
44841       ;;
44842  esac
44843else $as_nop
44844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44845printf "%s\n" "yes" >&6; }
44846
44847fi
44848
44849
44850
44851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable aws sig methods" >&5
44852printf %s "checking whether to enable aws sig methods... " >&6; }
44853# Check whether --enable-aws was given.
44854if test ${enable_aws+y}
44855then :
44856  enableval=$enable_aws;  case "$enableval" in
44857  no)
44858       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44859printf "%s\n" "no" >&6; }
44860
44861printf "%s\n" "#define CURL_DISABLE_AWS 1" >>confdefs.h
44862
44863       CURL_DISABLE_AWS=1
44864       ;;
44865  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44866printf "%s\n" "yes" >&6; }
44867       ;;
44868  esac
44869else $as_nop
44870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44871printf "%s\n" "yes" >&6; }
44872
44873fi
44874
44875
44876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
44877printf %s "checking whether to support NTLM... " >&6; }
44878# Check whether --enable-ntlm was given.
44879if test ${enable_ntlm+y}
44880then :
44881  enableval=$enable_ntlm;  case "$enableval" in
44882  no)
44883       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44884printf "%s\n" "no" >&6; }
44885
44886printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
44887
44888       CURL_DISABLE_NTLM=1
44889       ;;
44890  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44891printf "%s\n" "yes" >&6; }
44892       ;;
44893  esac
44894else $as_nop
44895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44896printf "%s\n" "yes" >&6; }
44897
44898fi
44899
44900
44901
44902    OPT_NTLM_WB="default"
44903  # Check whether --enable-ntlm-wb was given.
44904if test ${enable_ntlm_wb+y}
44905then :
44906  enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44907fi
44908
44909  want_ntlm_wb_file="/usr/bin/ntlm_auth"
44910  case "$OPT_NTLM_WB" in
44911    no)
44912            want_ntlm_wb="no"
44913      ;;
44914    default)
44915            want_ntlm_wb="yes"
44916      ;;
44917    *)
44918            want_ntlm_wb="yes"
44919      if test -n "$enableval" && test "$enableval" != "yes"; then
44920        want_ntlm_wb_file="$enableval"
44921      fi
44922      ;;
44923  esac
44924
44925
44926
44927      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44928printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44929  if test "$curl_cv_native_windows" = "yes" ||
44930    test "x$SSL_ENABLED" = "x"; then
44931    want_ntlm_wb_file=""
44932    want_ntlm_wb="no"
44933  elif test "x$ac_cv_func_fork" != "xyes"; then
44934        want_ntlm_wb="no"
44935  fi
44936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44937printf "%s\n" "$want_ntlm_wb" >&6; }
44938  if test "$want_ntlm_wb" = "yes"; then
44939
44940printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
44941
44942
44943printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
44944
44945    NTLM_WB_ENABLED=1
44946  fi
44947
44948
44949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44950printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
44951# Check whether --enable-tls-srp was given.
44952if test ${enable_tls_srp+y}
44953then :
44954  enableval=$enable_tls_srp;  case "$enableval" in
44955  no)
44956       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44957printf "%s\n" "no" >&6; }
44958       want_tls_srp=no
44959       ;;
44960  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44961printf "%s\n" "yes" >&6; }
44962       want_tls_srp=yes
44963       ;;
44964  esac
44965else $as_nop
44966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44967printf "%s\n" "yes" >&6; }
44968       want_tls_srp=yes
44969
44970fi
44971
44972
44973if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
44974
44975printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
44976
44977   USE_TLS_SRP=1
44978   curl_tls_srp_msg="enabled"
44979fi
44980
44981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
44982printf %s "checking whether to enable Unix domain sockets... " >&6; }
44983# Check whether --enable-unix-sockets was given.
44984if test ${enable_unix_sockets+y}
44985then :
44986  enableval=$enable_unix_sockets;  case "$enableval" in
44987  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44988printf "%s\n" "no" >&6; }
44989       want_unix_sockets=no
44990       ;;
44991  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44992printf "%s\n" "yes" >&6; }
44993       want_unix_sockets=yes
44994       ;;
44995  esac
44996else $as_nop
44997
44998       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44999printf "%s\n" "auto" >&6; }
45000       want_unix_sockets=auto
45001
45002
45003fi
45004
45005if test "x$want_unix_sockets" != "xno"; then
45006  if test "x$curl_cv_native_windows" = "xyes"; then
45007    USE_UNIX_SOCKETS=1
45008
45009printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45010
45011    curl_unix_sockets_msg="enabled"
45012  else
45013    ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
45014      #include <sys/un.h>
45015
45016"
45017if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
45018then :
45019
45020
45021printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45022
45023      USE_UNIX_SOCKETS=1
45024
45025      curl_unix_sockets_msg="enabled"
45026
45027else $as_nop
45028
45029      if test "x$want_unix_sockets" = "xyes"; then
45030        as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
45031      fi
45032
45033fi
45034
45035  fi
45036fi
45037
45038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
45039printf %s "checking whether to support cookies... " >&6; }
45040# Check whether --enable-cookies was given.
45041if test ${enable_cookies+y}
45042then :
45043  enableval=$enable_cookies;  case "$enableval" in
45044  no)
45045       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45046printf "%s\n" "no" >&6; }
45047
45048printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
45049
45050       ;;
45051  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45052printf "%s\n" "yes" >&6; }
45053       ;;
45054  esac
45055else $as_nop
45056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45057printf "%s\n" "yes" >&6; }
45058
45059fi
45060
45061
45062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
45063printf %s "checking whether to support socketpair... " >&6; }
45064# Check whether --enable-socketpair was given.
45065if test ${enable_socketpair+y}
45066then :
45067  enableval=$enable_socketpair;  case "$enableval" in
45068  no)
45069       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45070printf "%s\n" "no" >&6; }
45071
45072printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
45073
45074       ;;
45075  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45076printf "%s\n" "yes" >&6; }
45077       ;;
45078  esac
45079else $as_nop
45080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45081printf "%s\n" "yes" >&6; }
45082
45083fi
45084
45085
45086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
45087printf %s "checking whether to support HTTP authentication... " >&6; }
45088# Check whether --enable-http-auth was given.
45089if test ${enable_http_auth+y}
45090then :
45091  enableval=$enable_http_auth;  case "$enableval" in
45092  no)
45093       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45094printf "%s\n" "no" >&6; }
45095
45096printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
45097
45098       ;;
45099  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45100printf "%s\n" "yes" >&6; }
45101       ;;
45102  esac
45103else $as_nop
45104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45105printf "%s\n" "yes" >&6; }
45106
45107fi
45108
45109
45110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
45111printf %s "checking whether to support DoH... " >&6; }
45112# Check whether --enable-doh was given.
45113if test ${enable_doh+y}
45114then :
45115  enableval=$enable_doh;  case "$enableval" in
45116  no)
45117       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45118printf "%s\n" "no" >&6; }
45119
45120printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
45121
45122       ;;
45123  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45124printf "%s\n" "yes" >&6; }
45125       ;;
45126  esac
45127else $as_nop
45128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45129printf "%s\n" "yes" >&6; }
45130
45131fi
45132
45133
45134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
45135printf %s "checking whether to support the MIME API... " >&6; }
45136# Check whether --enable-mime was given.
45137if test ${enable_mime+y}
45138then :
45139  enableval=$enable_mime;  case "$enableval" in
45140  no)
45141       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45142printf "%s\n" "no" >&6; }
45143
45144printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
45145
45146       ;;
45147  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45148printf "%s\n" "yes" >&6; }
45149       ;;
45150  esac
45151else $as_nop
45152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45153printf "%s\n" "yes" >&6; }
45154
45155fi
45156
45157
45158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support binding connections locally" >&5
45159printf %s "checking whether to support binding connections locally... " >&6; }
45160# Check whether --enable-bindlocal was given.
45161if test ${enable_bindlocal+y}
45162then :
45163  enableval=$enable_bindlocal;  case "$enableval" in
45164  no)
45165       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45166printf "%s\n" "no" >&6; }
45167
45168printf "%s\n" "#define CURL_DISABLE_BINDLOCAL 1" >>confdefs.h
45169
45170       ;;
45171  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45172printf "%s\n" "yes" >&6; }
45173       ;;
45174  esac
45175else $as_nop
45176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45177printf "%s\n" "yes" >&6; }
45178
45179fi
45180
45181
45182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the form API" >&5
45183printf %s "checking whether to support the form API... " >&6; }
45184# Check whether --enable-form-api was given.
45185if test ${enable_form_api+y}
45186then :
45187  enableval=$enable_form_api;  case "$enableval" in
45188  no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45189printf "%s\n" "no" >&6; }
45190
45191printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
45192
45193       ;;
45194  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45195printf "%s\n" "yes" >&6; }
45196       test "$enable_mime" = no &&
45197         as_fn_error $? "MIME support needs to be enabled in order to enable form API support" "$LINENO" 5
45198       ;;
45199  esac
45200else $as_nop
45201
45202  if test "$enable_mime" = no; then
45203    enable_form_api=no
45204    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45205printf "%s\n" "no" >&6; }
45206
45207printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
45208
45209  else
45210    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45211printf "%s\n" "yes" >&6; }
45212  fi
45213
45214fi
45215
45216
45217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
45218printf %s "checking whether to support date parsing... " >&6; }
45219# Check whether --enable-dateparse was given.
45220if test ${enable_dateparse+y}
45221then :
45222  enableval=$enable_dateparse;  case "$enableval" in
45223  no)
45224       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45225printf "%s\n" "no" >&6; }
45226
45227printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
45228
45229       ;;
45230  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45231printf "%s\n" "yes" >&6; }
45232       ;;
45233  esac
45234else $as_nop
45235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45236printf "%s\n" "yes" >&6; }
45237
45238fi
45239
45240
45241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
45242printf %s "checking whether to support netrc parsing... " >&6; }
45243# Check whether --enable-netrc was given.
45244if test ${enable_netrc+y}
45245then :
45246  enableval=$enable_netrc;  case "$enableval" in
45247  no)
45248       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45249printf "%s\n" "no" >&6; }
45250
45251printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
45252
45253       ;;
45254  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45255printf "%s\n" "yes" >&6; }
45256       ;;
45257  esac
45258else $as_nop
45259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45260printf "%s\n" "yes" >&6; }
45261
45262fi
45263
45264
45265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
45266printf %s "checking whether to support progress-meter... " >&6; }
45267# Check whether --enable-progress-meter was given.
45268if test ${enable_progress_meter+y}
45269then :
45270  enableval=$enable_progress_meter;  case "$enableval" in
45271  no)
45272       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45273printf "%s\n" "no" >&6; }
45274
45275printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
45276
45277       ;;
45278  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45279printf "%s\n" "yes" >&6; }
45280       ;;
45281  esac
45282else $as_nop
45283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45284printf "%s\n" "yes" >&6; }
45285
45286fi
45287
45288
45289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
45290printf %s "checking whether to support DNS shuffling... " >&6; }
45291# Check whether --enable-dnsshuffle was given.
45292if test ${enable_dnsshuffle+y}
45293then :
45294  enableval=$enable_dnsshuffle;  case "$enableval" in
45295  no)
45296       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45297printf "%s\n" "no" >&6; }
45298
45299printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
45300
45301       ;;
45302  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45303printf "%s\n" "yes" >&6; }
45304       ;;
45305  esac
45306else $as_nop
45307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45308printf "%s\n" "yes" >&6; }
45309
45310fi
45311
45312
45313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
45314printf %s "checking whether to support curl_easy_option*... " >&6; }
45315# Check whether --enable-get-easy-options was given.
45316if test ${enable_get_easy_options+y}
45317then :
45318  enableval=$enable_get_easy_options;  case "$enableval" in
45319  no)
45320       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45321printf "%s\n" "no" >&6; }
45322
45323printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
45324
45325       ;;
45326  *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45327printf "%s\n" "yes" >&6; }
45328       ;;
45329  esac
45330else $as_nop
45331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45332printf "%s\n" "yes" >&6; }
45333
45334fi
45335
45336
45337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
45338printf %s "checking whether to support alt-svc... " >&6; }
45339# Check whether --enable-alt-svc was given.
45340if test ${enable_alt_svc+y}
45341then :
45342  enableval=$enable_alt_svc;  case "$enableval" in
45343  no)
45344       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45345printf "%s\n" "no" >&6; }
45346
45347printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
45348
45349       curl_altsvc_msg="no";
45350       enable_altsvc="no"
45351       ;;
45352  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45353printf "%s\n" "yes" >&6; }
45354       ;;
45355  esac
45356else $as_nop
45357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45358printf "%s\n" "yes" >&6; }
45359
45360fi
45361
45362
45363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
45364printf %s "checking whether to support headers-api... " >&6; }
45365# Check whether --enable-headers-api was given.
45366if test ${enable_headers_api+y}
45367then :
45368  enableval=$enable_headers_api;  case "$enableval" in
45369  no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45370printf "%s\n" "no" >&6; }
45371       curl_headers_msg="no      (--enable-headers-api)"
45372
45373printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
45374
45375       ;;
45376  *)
45377       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45378printf "%s\n" "yes" >&6; }
45379       ;;
45380  esac
45381else $as_nop
45382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45383printf "%s\n" "yes" >&6; }
45384
45385fi
45386
45387
45388if test -n "$SSL_ENABLED"; then
45389        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
45390printf %s "checking whether to support HSTS... " >&6; }
45391  # Check whether --enable-hsts was given.
45392if test ${enable_hsts+y}
45393then :
45394  enableval=$enable_hsts;  case "$enableval" in
45395    no)
45396       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45397printf "%s\n" "no" >&6; }
45398       hsts="no"
45399       ;;
45400    *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45401printf "%s\n" "yes" >&6; }
45402       ;;
45403    esac
45404else $as_nop
45405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
45406printf "%s\n" "$hsts" >&6; }
45407
45408fi
45409
45410else
45411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
45412printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
45413  hsts="no"
45414fi
45415
45416if test "x$hsts" != "xyes"; then
45417  curl_hsts_msg="no      (--enable-hsts)";
45418
45419printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
45420
45421fi
45422
45423if test "x$want_ech" != "xno"; then
45424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
45425printf %s "checking whether ECH support is available... " >&6; }
45426
45427    ECH_ENABLED=0
45428  ECH_SUPPORT=''
45429
45430      if test "x$OPENSSL_ENABLED" = "x1"; then
45431
45432  for ac_func in SSL_get_ech_status
45433do :
45434  ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
45435if test "x$ac_cv_func_SSL_get_ech_status" = xyes
45436then :
45437  printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
45438 ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
45439      ECH_ENABLED=1
45440fi
45441
45442done
45443
45444    fi
45445
45446    if test "x$ECH_ENABLED" = "x1"; then
45447
45448printf "%s\n" "#define USE_ECH 1" >>confdefs.h
45449
45450    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
45451printf "%s\n" "$ECH_SUPPORT" >&6; }
45452    experimental="$experimental ECH"
45453  else
45454    as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
45455  fi
45456fi
45457
45458if test "x$OPENSSL_ENABLED" = "x1"; then
45459  ac_fn_c_check_func "$LINENO" "SSL_set0_wbio" "ac_cv_func_SSL_set0_wbio"
45460if test "x$ac_cv_func_SSL_set0_wbio" = xyes
45461then :
45462  printf "%s\n" "#define HAVE_SSL_SET0_WBIO 1" >>confdefs.h
45463
45464fi
45465
45466fi
45467
45468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5
45469printf %s "checking whether to support WebSockets... " >&6; }
45470# Check whether --enable-websockets was given.
45471if test ${enable_websockets+y}
45472then :
45473  enableval=$enable_websockets;  case "$enableval" in
45474  no)
45475     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45476printf "%s\n" "no" >&6; }
45477     ;;
45478  *)
45479     if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45480         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45481printf "%s\n" "yes" >&6; }
45482         curl_ws_msg="enabled"
45483
45484printf "%s\n" "#define USE_WEBSOCKETS 1" >>confdefs.h
45485
45486         SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
45487         if test "x$SSL_ENABLED" = "x1"; then
45488           SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
45489         fi
45490         experimental="$experimental Websockets"
45491     else
45492                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45493printf "%s\n" "no" >&6; }
45494         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&5
45495printf "%s\n" "$as_me: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&2;}
45496     fi
45497     ;;
45498  esac
45499else $as_nop
45500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45501printf "%s\n" "no" >&6; }
45502
45503fi
45504
45505
45506
45507
45508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
45509printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
45510  CFLAG_CURL_SYMBOL_HIDING=""
45511  doing_symbol_hiding="no"
45512  if test "$want_symbol_hiding" = "yes" &&
45513    test "$supports_symbol_hiding" = "yes"; then
45514    doing_symbol_hiding="yes"
45515    CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
45516
45517printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
45518
45519    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45520printf "%s\n" "yes" >&6; }
45521  else
45522    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45523printf "%s\n" "no" >&6; }
45524  fi
45525   if test x$doing_symbol_hiding = xyes; then
45526  DOING_CURL_SYMBOL_HIDING_TRUE=
45527  DOING_CURL_SYMBOL_HIDING_FALSE='#'
45528else
45529  DOING_CURL_SYMBOL_HIDING_TRUE='#'
45530  DOING_CURL_SYMBOL_HIDING_FALSE=
45531fi
45532
45533
45534
45535
45536LIBCURL_LIBS="$LIBS$PTHREAD"
45537
45538
45539
45540
45541
45542BLANK_AT_MAKETIME=
45543
45544
45545 if test x$cross_compiling = xyes; then
45546  CROSSCOMPILING_TRUE=
45547  CROSSCOMPILING_FALSE='#'
45548else
45549  CROSSCOMPILING_TRUE='#'
45550  CROSSCOMPILING_FALSE=
45551fi
45552
45553
45554ENABLE_SHARED="$enable_shared"
45555
45556
45557ENABLE_STATIC="$enable_static"
45558
45559
45560if test "x$enable_shared" = "xno"; then
45561  LIBCURL_NO_SHARED=$LIBCURL_LIBS
45562else
45563  LIBCURL_NO_SHARED=
45564fi
45565
45566
45567rm $compilersh
45568
45569
45570if test "x$OPENSSL_ENABLED" = "x1"; then
45571  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45572elif test -n "$SSL_ENABLED"; then
45573  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45574fi
45575if test "x$IPV6_ENABLED" = "x1"; then
45576  SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
45577fi
45578if test "x$USE_UNIX_SOCKETS" = "x1"; then
45579  SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
45580fi
45581if test "x$HAVE_LIBZ" = "x1"; then
45582  SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
45583fi
45584if test "x$HAVE_BROTLI" = "x1"; then
45585  SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
45586fi
45587if test "x$HAVE_ZSTD" = "x1"; then
45588  SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
45589fi
45590if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
45591                            -o "x$USE_THREADS_WIN32" = "x1"; then
45592  SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
45593fi
45594if test "x$IDN_ENABLED" = "x1"; then
45595  SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
45596fi
45597if test "x$USE_WINDOWS_SSPI" = "x1"; then
45598  SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
45599fi
45600
45601if test "x$HAVE_GSSAPI" = "x1"; then
45602  SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
45603fi
45604
45605if test "x$curl_psl_msg" = "xenabled"; then
45606  SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
45607fi
45608
45609if test "x$curl_gsasl_msg" = "xenabled"; then
45610  SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
45611fi
45612
45613if test "x$enable_altsvc" = "xyes"; then
45614  SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
45615fi
45616if test "x$hsts" = "xyes"; then
45617  SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
45618fi
45619
45620if test "x$CURL_DISABLE_NEGOTIATE_AUTH" != "x1" -a \
45621    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45622  SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
45623fi
45624
45625if test "x$CURL_DISABLE_KERBEROS_AUTH" != "x1" -a \
45626    \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45627  SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
45628fi
45629
45630use_curl_ntlm_core=no
45631
45632if test "x$CURL_DISABLE_NTLM" != "x1"; then
45633  if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
45634      -o "x$GNUTLS_ENABLED" = "x1" \
45635      -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45636      -o "x$USE_WIN32_CRYPTO" = "x1" \
45637      -o "x$WOLFSSL_NTLM" = "x1"; then
45638    use_curl_ntlm_core=yes
45639  fi
45640
45641  if test "x$use_curl_ntlm_core" = "xyes" \
45642      -o "x$USE_WINDOWS_SSPI" = "x1"; then
45643    SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
45644
45645    if test "x$CURL_DISABLE_HTTP" != "x1" -a \
45646        "x$NTLM_WB_ENABLED" = "x1"; then
45647      SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
45648    fi
45649  fi
45650fi
45651
45652if test "x$USE_TLS_SRP" = "x1"; then
45653  SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
45654fi
45655
45656if test "x$USE_NGHTTP2" = "x1"; then
45657  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
45658fi
45659
45660if test "x$USE_NGTCP2_H3" = "x1" -o "x$USE_QUICHE" = "x1" \
45661    -o "x$USE_OPENSSL_H3" = "x1" -o "x$USE_MSH3" = "x1"; then
45662  if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
45663    as_fn_error $? "MultiSSL cannot be enabled with HTTP/3 and vice versa" "$LINENO" 5
45664  fi
45665  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
45666fi
45667
45668if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
45669  SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
45670fi
45671
45672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this build supports HTTPS-proxy" >&5
45673printf %s "checking if this build supports HTTPS-proxy... " >&6; }
45674if test "x$CURL_DISABLE_HTTP" != "x1"; then
45675  if test "x$https_proxy" != "xno"; then
45676    if test "x$OPENSSL_ENABLED" = "x1" \
45677        -o "x$GNUTLS_ENABLED" = "x1" \
45678        -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45679        -o "x$RUSTLS_ENABLED" = "x1" \
45680        -o "x$BEARSSL_ENABLED" = "x1" \
45681        -o "x$SCHANNEL_ENABLED" = "x1" \
45682        -o "x$GNUTLS_ENABLED" = "x1" \
45683        -o "x$MBEDTLS_ENABLED" = "x1"; then
45684      SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45685      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45686printf "%s\n" "yes" >&6; }
45687    elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$WOLFSSL_FULL_BIO" = "x1"; then
45688      SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45689      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45690printf "%s\n" "yes" >&6; }
45691    else
45692      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45693printf "%s\n" "no" >&6; }
45694    fi
45695  else
45696    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45697printf "%s\n" "no" >&6; }
45698  fi
45699else
45700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45701printf "%s\n" "no" >&6; }
45702fi
45703
45704if test "x$ECH_ENABLED" = "x1"; then
45705  SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
45706fi
45707
45708if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45709  if test ${ac_cv_sizeof_off_t} -gt 4 -o \
45710     "$curl_win32_file_api" = "win32_large_files"; then
45711    SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
45712  fi
45713fi
45714
45715if test "$tst_atomic" = "yes"; then
45716  SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45717elif test "x$USE_THREADS_POSIX" = "x1" -a \
45718     "x$ac_cv_header_pthread_h" = "xyes"; then
45719  SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45720else
45721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45722/* end confdefs.h.  */
45723
45724
45725      #include <windows.h>
45726
45727int main (void)
45728{
45729
45730      #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
45731      #error
45732      #endif
45733
45734 ;
45735 return 0;
45736}
45737
45738_ACEOF
45739if ac_fn_c_try_compile "$LINENO"
45740then :
45741
45742     SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45743
45744fi
45745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45746fi
45747
45748SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
45749
45750
45751if test "x$CURL_DISABLE_HTTP" != "x1"; then
45752  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP IPFS IPNS"
45753  if test "x$SSL_ENABLED" = "x1"; then
45754    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
45755  fi
45756fi
45757if test "x$CURL_DISABLE_FTP" != "x1"; then
45758  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
45759  if test "x$SSL_ENABLED" = "x1"; then
45760    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
45761  fi
45762fi
45763if test "x$CURL_DISABLE_FILE" != "x1"; then
45764  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
45765fi
45766if test "x$CURL_DISABLE_TELNET" != "x1"; then
45767  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
45768fi
45769if test "x$CURL_DISABLE_LDAP" != "x1"; then
45770  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
45771  if test "x$CURL_DISABLE_LDAPS" != "x1"; then
45772    if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
45773      (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
45774      SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
45775    fi
45776  fi
45777fi
45778if test "x$CURL_DISABLE_DICT" != "x1"; then
45779  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
45780fi
45781if test "x$CURL_DISABLE_TFTP" != "x1"; then
45782  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
45783fi
45784if test "x$CURL_DISABLE_GOPHER" != "x1"; then
45785  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
45786  if test "x$SSL_ENABLED" = "x1"; then
45787    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
45788  fi
45789fi
45790if test "x$CURL_DISABLE_MQTT" != "x1"; then
45791  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
45792fi
45793if test "x$CURL_DISABLE_POP3" != "x1"; then
45794  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
45795  if test "x$SSL_ENABLED" = "x1"; then
45796    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
45797  fi
45798fi
45799if test "x$CURL_DISABLE_IMAP" != "x1"; then
45800  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
45801  if test "x$SSL_ENABLED" = "x1"; then
45802    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
45803  fi
45804fi
45805if test "x$CURL_DISABLE_SMB" != "x1" \
45806    -a "x$use_curl_ntlm_core" = "xyes"; then
45807  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
45808  if test "x$SSL_ENABLED" = "x1"; then
45809    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
45810  fi
45811fi
45812if test "x$CURL_DISABLE_SMTP" != "x1"; then
45813  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
45814  if test "x$SSL_ENABLED" = "x1"; then
45815    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
45816  fi
45817fi
45818if test "x$USE_LIBSSH2" = "x1"; then
45819  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45820  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45821fi
45822if test "x$USE_LIBSSH" = "x1"; then
45823  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45824  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45825fi
45826if test "x$USE_WOLFSSH" = "x1"; then
45827  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45828fi
45829if test "x$CURL_DISABLE_RTSP" != "x1"; then
45830  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
45831fi
45832if test "x$USE_LIBRTMP" = "x1"; then
45833  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
45834fi
45835
45836SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
45837
45838
45839
45840
45841squeeze CFLAGS
45842squeeze CPPFLAGS
45843squeeze DEFS
45844squeeze LDFLAGS
45845squeeze LIBS
45846
45847squeeze LIBCURL_LIBS
45848squeeze CURL_NETWORK_LIBS
45849squeeze CURL_NETWORK_AND_TIME_LIBS
45850
45851squeeze SUPPORT_FEATURES
45852squeeze SUPPORT_PROTOCOLS
45853
45854
45855
45856  xc_bad_var_libs=no
45857  for xc_word in $LIBS; do
45858    case "$xc_word" in
45859      -l* | --library=*)
45860        :
45861        ;;
45862      *)
45863        xc_bad_var_libs=yes
45864        ;;
45865    esac
45866  done
45867  if test $xc_bad_var_libs = yes; then
45868    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
45869printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
45870    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
45871printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
45872  fi
45873
45874
45875  xc_bad_var_ldflags=no
45876  for xc_word in $LDFLAGS; do
45877    case "$xc_word" in
45878      -D*)
45879        xc_bad_var_ldflags=yes
45880        ;;
45881      -U*)
45882        xc_bad_var_ldflags=yes
45883        ;;
45884      -I*)
45885        xc_bad_var_ldflags=yes
45886        ;;
45887      -l* | --library=*)
45888        xc_bad_var_ldflags=yes
45889        ;;
45890    esac
45891  done
45892  if test $xc_bad_var_ldflags = yes; then
45893    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
45894printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
45895    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
45896    for xc_word in $LDFLAGS; do
45897      case "$xc_word" in
45898        -D*)
45899          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45900printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45901          ;;
45902        -U*)
45903          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45904printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45905          ;;
45906        -I*)
45907          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45908printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45909          ;;
45910        -l* | --library=*)
45911          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45912printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45913          ;;
45914      esac
45915    done
45916  fi
45917
45918
45919  xc_bad_var_cppflags=no
45920  for xc_word in $CPPFLAGS; do
45921    case "$xc_word" in
45922      -rpath*)
45923        xc_bad_var_cppflags=yes
45924        ;;
45925      -L* | --library-path=*)
45926        xc_bad_var_cppflags=yes
45927        ;;
45928      -l* | --library=*)
45929        xc_bad_var_cppflags=yes
45930        ;;
45931    esac
45932  done
45933  if test $xc_bad_var_cppflags = yes; then
45934    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
45935printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45936    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45937    for xc_word in $CPPFLAGS; do
45938      case "$xc_word" in
45939        -rpath*)
45940          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45941printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45942          ;;
45943        -L* | --library-path=*)
45944          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45945printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45946          ;;
45947        -l* | --library=*)
45948          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45949printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45950          ;;
45951      esac
45952    done
45953  fi
45954
45955
45956  xc_bad_var_cflags=no
45957  for xc_word in $CFLAGS; do
45958    case "$xc_word" in
45959      -D*)
45960        xc_bad_var_cflags=yes
45961        ;;
45962      -U*)
45963        xc_bad_var_cflags=yes
45964        ;;
45965      -I*)
45966        xc_bad_var_cflags=yes
45967        ;;
45968      -rpath*)
45969        xc_bad_var_cflags=yes
45970        ;;
45971      -L* | --library-path=*)
45972        xc_bad_var_cflags=yes
45973        ;;
45974      -l* | --library=*)
45975        xc_bad_var_cflags=yes
45976        ;;
45977    esac
45978  done
45979  if test $xc_bad_var_cflags = yes; then
45980    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
45981printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
45982    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
45983    for xc_word in $CFLAGS; do
45984      case "$xc_word" in
45985        -D*)
45986          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45987printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45988          ;;
45989        -U*)
45990          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45991printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45992          ;;
45993        -I*)
45994          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45995printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45996          ;;
45997        -rpath*)
45998          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45999printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
46000          ;;
46001        -L* | --library-path=*)
46002          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
46003printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
46004          ;;
46005        -l* | --library=*)
46006          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46007printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46008          ;;
46009      esac
46010    done
46011  fi
46012
46013  if test $xc_bad_var_libs = yes ||
46014     test $xc_bad_var_cflags = yes ||
46015     test $xc_bad_var_ldflags = yes ||
46016     test $xc_bad_var_cppflags = yes; then
46017     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
46018printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
46019  fi
46020
46021
46022SSL_BACKENDS=${ssl_backends}
46023
46024
46025if test "x$want_curldebug_assumed" = "xyes" &&
46026  test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
46027  ac_configure_args="$ac_configure_args --enable-curldebug"
46028fi
46029
46030ac_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 lib/libcurl.plist 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"
46031
46032cat >confcache <<\_ACEOF
46033# This file is a shell script that caches the results of configure
46034# tests run on this system so they can be shared between configure
46035# scripts and configure runs, see configure's option --config-cache.
46036# It is not useful on other systems.  If it contains results you don't
46037# want to keep, you may remove or edit it.
46038#
46039# config.status only pays attention to the cache file if you give it
46040# the --recheck option to rerun configure.
46041#
46042# `ac_cv_env_foo' variables (set or unset) will be overridden when
46043# loading this file, other *unset* `ac_cv_foo' will be assigned the
46044# following values.
46045
46046_ACEOF
46047
46048# The following way of writing the cache mishandles newlines in values,
46049# but we know of no workaround that is simple, portable, and efficient.
46050# So, we kill variables containing newlines.
46051# Ultrix sh set writes to stderr and can't be redirected directly,
46052# and sets the high bit in the cache file unless we assign to the vars.
46053(
46054  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46055    eval ac_val=\$$ac_var
46056    case $ac_val in #(
46057    *${as_nl}*)
46058      case $ac_var in #(
46059      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
46060printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46061      esac
46062      case $ac_var in #(
46063      _ | IFS | as_nl) ;; #(
46064      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46065      *) { eval $ac_var=; unset $ac_var;} ;;
46066      esac ;;
46067    esac
46068  done
46069
46070  (set) 2>&1 |
46071    case $as_nl`(ac_space=' '; set) 2>&1` in #(
46072    *${as_nl}ac_space=\ *)
46073      # `set' does not quote correctly, so add quotes: double-quote
46074      # substitution turns \\\\ into \\, and sed turns \\ into \.
46075      sed -n \
46076	"s/'/'\\\\''/g;
46077	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46078      ;; #(
46079    *)
46080      # `set' quotes correctly as required by POSIX, so do not add quotes.
46081      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46082      ;;
46083    esac |
46084    sort
46085) |
46086  sed '
46087     /^ac_cv_env_/b end
46088     t clear
46089     :clear
46090     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
46091     t end
46092     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46093     :end' >>confcache
46094if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46095  if test -w "$cache_file"; then
46096    if test "x$cache_file" != "x/dev/null"; then
46097      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
46098printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
46099      if test ! -f "$cache_file" || test -h "$cache_file"; then
46100	cat confcache >"$cache_file"
46101      else
46102        case $cache_file in #(
46103        */* | ?:*)
46104	  mv -f confcache "$cache_file"$$ &&
46105	  mv -f "$cache_file"$$ "$cache_file" ;; #(
46106        *)
46107	  mv -f confcache "$cache_file" ;;
46108	esac
46109      fi
46110    fi
46111  else
46112    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
46113printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
46114  fi
46115fi
46116rm -f confcache
46117
46118test "x$prefix" = xNONE && prefix=$ac_default_prefix
46119# Let make expand exec_prefix.
46120test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46121
46122DEFS=-DHAVE_CONFIG_H
46123
46124ac_libobjs=
46125ac_ltlibobjs=
46126U=
46127for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46128  # 1. Remove the extension, and $U if already installed.
46129  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46130  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
46131  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
46132  #    will be set to the directory where LIBOBJS objects are built.
46133  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46134  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
46135done
46136LIBOBJS=$ac_libobjs
46137
46138LTLIBOBJS=$ac_ltlibobjs
46139
46140
46141if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46142  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
46143Usually this means the macro was only invoked conditionally." "$LINENO" 5
46144fi
46145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
46146printf %s "checking that generated files are newer than configure... " >&6; }
46147   if test -n "$am_sleep_pid"; then
46148     # Hide warnings about reused PIDs.
46149     wait $am_sleep_pid 2>/dev/null
46150   fi
46151   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
46152printf "%s\n" "done" >&6; }
46153if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46154  as_fn_error $? "conditional \"AMDEP\" was never defined.
46155Usually this means the macro was only invoked conditionally." "$LINENO" 5
46156fi
46157if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46158  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
46159Usually this means the macro was only invoked conditionally." "$LINENO" 5
46160fi
46161 if test -n "$EXEEXT"; then
46162  am__EXEEXT_TRUE=
46163  am__EXEEXT_FALSE='#'
46164else
46165  am__EXEEXT_TRUE='#'
46166  am__EXEEXT_FALSE=
46167fi
46168
46169if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
46170  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
46171Usually this means the macro was only invoked conditionally." "$LINENO" 5
46172fi
46173if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
46174  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
46175Usually this means the macro was only invoked conditionally." "$LINENO" 5
46176fi
46177if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
46178  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
46179Usually this means the macro was only invoked conditionally." "$LINENO" 5
46180fi
46181if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
46182  as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
46183Usually this means the macro was only invoked conditionally." "$LINENO" 5
46184fi
46185if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
46186  as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
46187Usually this means the macro was only invoked conditionally." "$LINENO" 5
46188fi
46189if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46190  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46191Usually this means the macro was only invoked conditionally." "$LINENO" 5
46192fi
46193if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
46194  as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
46195Usually this means the macro was only invoked conditionally." "$LINENO" 5
46196fi
46197if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
46198  as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
46199Usually this means the macro was only invoked conditionally." "$LINENO" 5
46200fi
46201if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
46202  as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
46203Usually this means the macro was only invoked conditionally." "$LINENO" 5
46204fi
46205if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46206  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46207Usually this means the macro was only invoked conditionally." "$LINENO" 5
46208fi
46209if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
46210  as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
46211Usually this means the macro was only invoked conditionally." "$LINENO" 5
46212fi
46213if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
46214  as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
46215Usually this means the macro was only invoked conditionally." "$LINENO" 5
46216fi
46217if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
46218  as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
46219Usually this means the macro was only invoked conditionally." "$LINENO" 5
46220fi
46221if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
46222  as_fn_error $? "conditional \"USE_GSASL\" was never defined.
46223Usually this means the macro was only invoked conditionally." "$LINENO" 5
46224fi
46225if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
46226  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
46227Usually this means the macro was only invoked conditionally." "$LINENO" 5
46228fi
46229if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46230  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46231Usually this means the macro was only invoked conditionally." "$LINENO" 5
46232fi
46233if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
46234  as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
46235Usually this means the macro was only invoked conditionally." "$LINENO" 5
46236fi
46237if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
46238  as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
46239Usually this means the macro was only invoked conditionally." "$LINENO" 5
46240fi
46241if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
46242  as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
46243Usually this means the macro was only invoked conditionally." "$LINENO" 5
46244fi
46245if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
46246  as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
46247Usually this means the macro was only invoked conditionally." "$LINENO" 5
46248fi
46249
46250: "${CONFIG_STATUS=./config.status}"
46251ac_write_fail=0
46252ac_clean_files_save=$ac_clean_files
46253ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
46255printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
46256as_write_fail=0
46257cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
46258#! $SHELL
46259# Generated by $as_me.
46260# Run this file to recreate the current configuration.
46261# Compiler output produced by configure, useful for debugging
46262# configure, is in config.log if it exists.
46263
46264debug=false
46265ac_cs_recheck=false
46266ac_cs_silent=false
46267
46268SHELL=\${CONFIG_SHELL-$SHELL}
46269export SHELL
46270_ASEOF
46271cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
46272## -------------------- ##
46273## M4sh Initialization. ##
46274## -------------------- ##
46275
46276# Be more Bourne compatible
46277DUALCASE=1; export DUALCASE # for MKS sh
46278as_nop=:
46279if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
46280then :
46281  emulate sh
46282  NULLCMD=:
46283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46284  # is contrary to our usage.  Disable this feature.
46285  alias -g '${1+"$@"}'='"$@"'
46286  setopt NO_GLOB_SUBST
46287else $as_nop
46288  case `(set -o) 2>/dev/null` in #(
46289  *posix*) :
46290    set -o posix ;; #(
46291  *) :
46292     ;;
46293esac
46294fi
46295
46296
46297
46298# Reset variables that may have inherited troublesome values from
46299# the environment.
46300
46301# IFS needs to be set, to space, tab, and newline, in precisely that order.
46302# (If _AS_PATH_WALK were called with IFS unset, it would have the
46303# side effect of setting IFS to empty, thus disabling word splitting.)
46304# Quoting is to prevent editors from complaining about space-tab.
46305as_nl='
46306'
46307export as_nl
46308IFS=" ""	$as_nl"
46309
46310PS1='$ '
46311PS2='> '
46312PS4='+ '
46313
46314# Ensure predictable behavior from utilities with locale-dependent output.
46315LC_ALL=C
46316export LC_ALL
46317LANGUAGE=C
46318export LANGUAGE
46319
46320# We cannot yet rely on "unset" to work, but we need these variables
46321# to be unset--not just set to an empty or harmless value--now, to
46322# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
46323# also avoids known problems related to "unset" and subshell syntax
46324# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
46325for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
46326do eval test \${$as_var+y} \
46327  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
46328done
46329
46330# Ensure that fds 0, 1, and 2 are open.
46331if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
46332if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
46333if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
46334
46335
46336
46337# Find who we are.  Look in the path if we contain no directory separator.
46338as_myself=
46339case $0 in #((
46340  *[\\/]* ) as_myself=$0 ;;
46341  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46342for as_dir in $PATH
46343do
46344  IFS=$as_save_IFS
46345  case $as_dir in #(((
46346    '') as_dir=./ ;;
46347    */) ;;
46348    *) as_dir=$as_dir/ ;;
46349  esac
46350    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
46351  done
46352IFS=$as_save_IFS
46353
46354     ;;
46355esac
46356# We did not find ourselves, most probably we were run as `sh COMMAND'
46357# in which case we are not to be found in the path.
46358if test "x$as_myself" = x; then
46359  as_myself=$0
46360fi
46361if test ! -f "$as_myself"; then
46362  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46363  exit 1
46364fi
46365
46366
46367
46368# as_fn_error STATUS ERROR [LINENO LOG_FD]
46369# ----------------------------------------
46370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
46371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
46372# script with STATUS, using 1 if that was 0.
46373as_fn_error ()
46374{
46375  as_status=$1; test $as_status -eq 0 && as_status=1
46376  if test "$4"; then
46377    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
46378    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
46379  fi
46380  printf "%s\n" "$as_me: error: $2" >&2
46381  as_fn_exit $as_status
46382} # as_fn_error
46383
46384
46385
46386# as_fn_set_status STATUS
46387# -----------------------
46388# Set $? to STATUS, without forking.
46389as_fn_set_status ()
46390{
46391  return $1
46392} # as_fn_set_status
46393
46394# as_fn_exit STATUS
46395# -----------------
46396# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
46397as_fn_exit ()
46398{
46399  set +e
46400  as_fn_set_status $1
46401  exit $1
46402} # as_fn_exit
46403
46404# as_fn_unset VAR
46405# ---------------
46406# Portably unset VAR.
46407as_fn_unset ()
46408{
46409  { eval $1=; unset $1;}
46410}
46411as_unset=as_fn_unset
46412
46413# as_fn_append VAR VALUE
46414# ----------------------
46415# Append the text in VALUE to the end of the definition contained in VAR. Take
46416# advantage of any shell optimizations that allow amortized linear growth over
46417# repeated appends, instead of the typical quadratic growth present in naive
46418# implementations.
46419if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
46420then :
46421  eval 'as_fn_append ()
46422  {
46423    eval $1+=\$2
46424  }'
46425else $as_nop
46426  as_fn_append ()
46427  {
46428    eval $1=\$$1\$2
46429  }
46430fi # as_fn_append
46431
46432# as_fn_arith ARG...
46433# ------------------
46434# Perform arithmetic evaluation on the ARGs, and store the result in the
46435# global $as_val. Take advantage of shells that can avoid forks. The arguments
46436# must be portable across $(()) and expr.
46437if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
46438then :
46439  eval 'as_fn_arith ()
46440  {
46441    as_val=$(( $* ))
46442  }'
46443else $as_nop
46444  as_fn_arith ()
46445  {
46446    as_val=`expr "$@" || test $? -eq 1`
46447  }
46448fi # as_fn_arith
46449
46450
46451if expr a : '\(a\)' >/dev/null 2>&1 &&
46452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
46453  as_expr=expr
46454else
46455  as_expr=false
46456fi
46457
46458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46459  as_basename=basename
46460else
46461  as_basename=false
46462fi
46463
46464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46465  as_dirname=dirname
46466else
46467  as_dirname=false
46468fi
46469
46470as_me=`$as_basename -- "$0" ||
46471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46472	 X"$0" : 'X\(//\)$' \| \
46473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46474printf "%s\n" X/"$0" |
46475    sed '/^.*\/\([^/][^/]*\)\/*$/{
46476	    s//\1/
46477	    q
46478	  }
46479	  /^X\/\(\/\/\)$/{
46480	    s//\1/
46481	    q
46482	  }
46483	  /^X\/\(\/\).*/{
46484	    s//\1/
46485	    q
46486	  }
46487	  s/.*/./; q'`
46488
46489# Avoid depending upon Character Ranges.
46490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46493as_cr_digits='0123456789'
46494as_cr_alnum=$as_cr_Letters$as_cr_digits
46495
46496
46497# Determine whether it's possible to make 'echo' print without a newline.
46498# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
46499# for compatibility with existing Makefiles.
46500ECHO_C= ECHO_N= ECHO_T=
46501case `echo -n x` in #(((((
46502-n*)
46503  case `echo 'xy\c'` in
46504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
46505  xy)  ECHO_C='\c';;
46506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
46507       ECHO_T='	';;
46508  esac;;
46509*)
46510  ECHO_N='-n';;
46511esac
46512
46513# For backward compatibility with old third-party macros, we provide
46514# the shell variables $as_echo and $as_echo_n.  New code should use
46515# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
46516as_echo='printf %s\n'
46517as_echo_n='printf %s'
46518
46519rm -f conf$$ conf$$.exe conf$$.file
46520if test -d conf$$.dir; then
46521  rm -f conf$$.dir/conf$$.file
46522else
46523  rm -f conf$$.dir
46524  mkdir conf$$.dir 2>/dev/null
46525fi
46526if (echo >conf$$.file) 2>/dev/null; then
46527  if ln -s conf$$.file conf$$ 2>/dev/null; then
46528    as_ln_s='ln -s'
46529    # ... but there are two gotchas:
46530    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46531    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46532    # In both cases, we have to default to `cp -pR'.
46533    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46534      as_ln_s='cp -pR'
46535  elif ln conf$$.file conf$$ 2>/dev/null; then
46536    as_ln_s=ln
46537  else
46538    as_ln_s='cp -pR'
46539  fi
46540else
46541  as_ln_s='cp -pR'
46542fi
46543rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46544rmdir conf$$.dir 2>/dev/null
46545
46546
46547# as_fn_mkdir_p
46548# -------------
46549# Create "$as_dir" as a directory, including parents if necessary.
46550as_fn_mkdir_p ()
46551{
46552
46553  case $as_dir in #(
46554  -*) as_dir=./$as_dir;;
46555  esac
46556  test -d "$as_dir" || eval $as_mkdir_p || {
46557    as_dirs=
46558    while :; do
46559      case $as_dir in #(
46560      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
46561      *) as_qdir=$as_dir;;
46562      esac
46563      as_dirs="'$as_qdir' $as_dirs"
46564      as_dir=`$as_dirname -- "$as_dir" ||
46565$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46566	 X"$as_dir" : 'X\(//\)[^/]' \| \
46567	 X"$as_dir" : 'X\(//\)$' \| \
46568	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46569printf "%s\n" X"$as_dir" |
46570    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46571	    s//\1/
46572	    q
46573	  }
46574	  /^X\(\/\/\)[^/].*/{
46575	    s//\1/
46576	    q
46577	  }
46578	  /^X\(\/\/\)$/{
46579	    s//\1/
46580	    q
46581	  }
46582	  /^X\(\/\).*/{
46583	    s//\1/
46584	    q
46585	  }
46586	  s/.*/./; q'`
46587      test -d "$as_dir" && break
46588    done
46589    test -z "$as_dirs" || eval "mkdir $as_dirs"
46590  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
46591
46592
46593} # as_fn_mkdir_p
46594if mkdir -p . 2>/dev/null; then
46595  as_mkdir_p='mkdir -p "$as_dir"'
46596else
46597  test -d ./-p && rmdir ./-p
46598  as_mkdir_p=false
46599fi
46600
46601
46602# as_fn_executable_p FILE
46603# -----------------------
46604# Test if FILE is an executable regular file.
46605as_fn_executable_p ()
46606{
46607  test -f "$1" && test -x "$1"
46608} # as_fn_executable_p
46609as_test_x='test -x'
46610as_executable_p=as_fn_executable_p
46611
46612# Sed expression to map a string onto a valid CPP name.
46613as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46614
46615# Sed expression to map a string onto a valid variable name.
46616as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46617
46618
46619exec 6>&1
46620## ----------------------------------- ##
46621## Main body of $CONFIG_STATUS script. ##
46622## ----------------------------------- ##
46623_ASEOF
46624test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
46625
46626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46627# Save the log message, to keep $0 and so on meaningful, and to
46628# report actual input values of CONFIG_FILES etc. instead of their
46629# values after options handling.
46630ac_log="
46631This file was extended by curl $as_me -, which was
46632generated by GNU Autoconf 2.71.  Invocation command line was
46633
46634  CONFIG_FILES    = $CONFIG_FILES
46635  CONFIG_HEADERS  = $CONFIG_HEADERS
46636  CONFIG_LINKS    = $CONFIG_LINKS
46637  CONFIG_COMMANDS = $CONFIG_COMMANDS
46638  $ $0 $@
46639
46640on `(hostname || uname -n) 2>/dev/null | sed 1q`
46641"
46642
46643_ACEOF
46644
46645case $ac_config_files in *"
46646"*) set x $ac_config_files; shift; ac_config_files=$*;;
46647esac
46648
46649case $ac_config_headers in *"
46650"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46651esac
46652
46653
46654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46655# Files that config.status was made for.
46656config_files="$ac_config_files"
46657config_headers="$ac_config_headers"
46658config_commands="$ac_config_commands"
46659
46660_ACEOF
46661
46662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46663ac_cs_usage="\
46664\`$as_me' instantiates files and other configuration actions
46665from templates according to the current configuration.  Unless the files
46666and actions are specified as TAGs, all are instantiated by default.
46667
46668Usage: $0 [OPTION]... [TAG]...
46669
46670  -h, --help       print this help, then exit
46671  -V, --version    print version number and configuration settings, then exit
46672      --config     print configuration, then exit
46673  -q, --quiet, --silent
46674                   do not print progress messages
46675  -d, --debug      don't remove temporary files
46676      --recheck    update $as_me by reconfiguring in the same conditions
46677      --file=FILE[:TEMPLATE]
46678                   instantiate the configuration file FILE
46679      --header=FILE[:TEMPLATE]
46680                   instantiate the configuration header FILE
46681
46682Configuration files:
46683$config_files
46684
46685Configuration headers:
46686$config_headers
46687
46688Configuration commands:
46689$config_commands
46690
46691Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
46692
46693_ACEOF
46694ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
46695ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
46696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46697ac_cs_config='$ac_cs_config_escaped'
46698ac_cs_version="\\
46699curl config.status -
46700configured by $0, generated by GNU Autoconf 2.71,
46701  with options \\"\$ac_cs_config\\"
46702
46703Copyright (C) 2021 Free Software Foundation, Inc.
46704This config.status script is free software; the Free Software Foundation
46705gives unlimited permission to copy, distribute and modify it."
46706
46707ac_pwd='$ac_pwd'
46708srcdir='$srcdir'
46709INSTALL='$INSTALL'
46710MKDIR_P='$MKDIR_P'
46711AWK='$AWK'
46712test -n "\$AWK" || AWK=awk
46713_ACEOF
46714
46715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46716# The default lists apply if the user does not specify any file.
46717ac_need_defaults=:
46718while test $# != 0
46719do
46720  case $1 in
46721  --*=?*)
46722    ac_option=`expr "X$1" : 'X\([^=]*\)='`
46723    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46724    ac_shift=:
46725    ;;
46726  --*=)
46727    ac_option=`expr "X$1" : 'X\([^=]*\)='`
46728    ac_optarg=
46729    ac_shift=:
46730    ;;
46731  *)
46732    ac_option=$1
46733    ac_optarg=$2
46734    ac_shift=shift
46735    ;;
46736  esac
46737
46738  case $ac_option in
46739  # Handling of the options.
46740  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46741    ac_cs_recheck=: ;;
46742  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46743    printf "%s\n" "$ac_cs_version"; exit ;;
46744  --config | --confi | --conf | --con | --co | --c )
46745    printf "%s\n" "$ac_cs_config"; exit ;;
46746  --debug | --debu | --deb | --de | --d | -d )
46747    debug=: ;;
46748  --file | --fil | --fi | --f )
46749    $ac_shift
46750    case $ac_optarg in
46751    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46752    '') as_fn_error $? "missing file argument" ;;
46753    esac
46754    as_fn_append CONFIG_FILES " '$ac_optarg'"
46755    ac_need_defaults=false;;
46756  --header | --heade | --head | --hea )
46757    $ac_shift
46758    case $ac_optarg in
46759    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46760    esac
46761    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
46762    ac_need_defaults=false;;
46763  --he | --h)
46764    # Conflict between --help and --header
46765    as_fn_error $? "ambiguous option: \`$1'
46766Try \`$0 --help' for more information.";;
46767  --help | --hel | -h )
46768    printf "%s\n" "$ac_cs_usage"; exit ;;
46769  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46770  | -silent | --silent | --silen | --sile | --sil | --si | --s)
46771    ac_cs_silent=: ;;
46772
46773  # This is an error.
46774  -*) as_fn_error $? "unrecognized option: \`$1'
46775Try \`$0 --help' for more information." ;;
46776
46777  *) as_fn_append ac_config_targets " $1"
46778     ac_need_defaults=false ;;
46779
46780  esac
46781  shift
46782done
46783
46784ac_configure_extra_args=
46785
46786if $ac_cs_silent; then
46787  exec 6>/dev/null
46788  ac_configure_extra_args="$ac_configure_extra_args --silent"
46789fi
46790
46791_ACEOF
46792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46793if \$ac_cs_recheck; then
46794  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46795  shift
46796  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
46797  CONFIG_SHELL='$SHELL'
46798  export CONFIG_SHELL
46799  exec "\$@"
46800fi
46801
46802_ACEOF
46803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46804exec 5>>config.log
46805{
46806  echo
46807  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46808## Running $as_me. ##
46809_ASBOX
46810  printf "%s\n" "$ac_log"
46811} >&5
46812
46813_ACEOF
46814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46815#
46816# INIT-COMMANDS
46817#
46818AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
46819
46820
46821# The HP-UX ksh and POSIX shell print the target directory to stdout
46822# if CDPATH is set.
46823(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46824
46825sed_quote_subst='$sed_quote_subst'
46826double_quote_subst='$double_quote_subst'
46827delay_variable_subst='$delay_variable_subst'
46828macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
46829macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
46830AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
46831DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46832OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46833enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
46834enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
46835pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
46836enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
46837shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
46838SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
46839ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
46840PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
46841host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
46842host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
46843host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
46844build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
46845build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
46846build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
46847SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
46848Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46849GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46850EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46851FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46852LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46853NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46854LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46855max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46856ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46857exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46858lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46859lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46860lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46861lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46862lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46863reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46864reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46865FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
46866deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46867file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46868file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46869want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46870sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46871AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46872lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
46873AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46874archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46875STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46876RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46877old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46878old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46879old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46880lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46881CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46882CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46883compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46884GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46885lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46886lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46887lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
46888lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46889lt_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"`'
46890lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
46891nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46892lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46893lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
46894objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46895MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46896lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46897lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46898lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46899lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46900lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46901need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46902MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46903DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46904NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46905LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46906OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46907OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46908libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46909shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46910extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46911archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46912enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46913export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46914whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46915compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46916old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46917old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46918archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46919archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46920module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46921module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46922with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46923allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46924no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46925hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46926hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46927hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46928hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46929hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46930hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46931hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46932inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46933link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46934always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46935export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46936exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46937include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46938prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46939postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46940file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46941variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46942need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46943need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46944version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46945runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46946shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46947shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46948libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46949library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46950soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46951install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46952postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46953postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46954finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46955finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46956hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46957sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46958configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46959configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46960hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46961enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46962enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46963enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46964old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46965striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46966LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
46967reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
46968reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
46969old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46970compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
46971GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
46972lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
46973lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
46974lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
46975lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
46976lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
46977archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
46978enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
46979export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46980whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46981compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
46982old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
46983old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
46984archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46985archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46986module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
46987module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46988with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
46989allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46990no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46991hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46992hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
46993hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
46994hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
46995hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
46996hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
46997hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
46998inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
46999link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
47000always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
47001export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
47002exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
47003include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
47004prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
47005postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
47006file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
47007hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
47008
47009LTCC='$LTCC'
47010LTCFLAGS='$LTCFLAGS'
47011compiler='$compiler_DEFAULT'
47012
47013# A function that is used when there is no print builtin or printf.
47014func_fallback_echo ()
47015{
47016  eval 'cat <<_LTECHO_EOF
47017\$1
47018_LTECHO_EOF'
47019}
47020
47021# Quote evaled strings.
47022for var in AS \
47023DLLTOOL \
47024OBJDUMP \
47025SHELL \
47026ECHO \
47027PATH_SEPARATOR \
47028SED \
47029GREP \
47030EGREP \
47031FGREP \
47032LD \
47033NM \
47034LN_S \
47035lt_SP2NL \
47036lt_NL2SP \
47037reload_flag \
47038FILECMD \
47039deplibs_check_method \
47040file_magic_cmd \
47041file_magic_glob \
47042want_nocaseglob \
47043sharedlib_from_linklib_cmd \
47044AR \
47045archiver_list_spec \
47046STRIP \
47047RANLIB \
47048CC \
47049CFLAGS \
47050compiler \
47051lt_cv_sys_global_symbol_pipe \
47052lt_cv_sys_global_symbol_to_cdecl \
47053lt_cv_sys_global_symbol_to_import \
47054lt_cv_sys_global_symbol_to_c_name_address \
47055lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47056lt_cv_nm_interface \
47057nm_file_list_spec \
47058lt_cv_truncate_bin \
47059lt_prog_compiler_no_builtin_flag \
47060lt_prog_compiler_pic \
47061lt_prog_compiler_wl \
47062lt_prog_compiler_static \
47063lt_cv_prog_compiler_c_o \
47064need_locks \
47065MANIFEST_TOOL \
47066DSYMUTIL \
47067NMEDIT \
47068LIPO \
47069OTOOL \
47070OTOOL64 \
47071shrext_cmds \
47072export_dynamic_flag_spec \
47073whole_archive_flag_spec \
47074compiler_needs_object \
47075with_gnu_ld \
47076allow_undefined_flag \
47077no_undefined_flag \
47078hardcode_libdir_flag_spec \
47079hardcode_libdir_separator \
47080exclude_expsyms \
47081include_expsyms \
47082file_list_spec \
47083variables_saved_for_relink \
47084libname_spec \
47085library_names_spec \
47086soname_spec \
47087install_override_mode \
47088finish_eval \
47089old_striplib \
47090striplib \
47091LD_RC \
47092reload_flag_RC \
47093compiler_RC \
47094lt_prog_compiler_no_builtin_flag_RC \
47095lt_prog_compiler_pic_RC \
47096lt_prog_compiler_wl_RC \
47097lt_prog_compiler_static_RC \
47098lt_cv_prog_compiler_c_o_RC \
47099export_dynamic_flag_spec_RC \
47100whole_archive_flag_spec_RC \
47101compiler_needs_object_RC \
47102with_gnu_ld_RC \
47103allow_undefined_flag_RC \
47104no_undefined_flag_RC \
47105hardcode_libdir_flag_spec_RC \
47106hardcode_libdir_separator_RC \
47107exclude_expsyms_RC \
47108include_expsyms_RC \
47109file_list_spec_RC; do
47110    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47111    *[\\\\\\\`\\"\\\$]*)
47112      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47113      ;;
47114    *)
47115      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47116      ;;
47117    esac
47118done
47119
47120# Double-quote double-evaled strings.
47121for var in reload_cmds \
47122old_postinstall_cmds \
47123old_postuninstall_cmds \
47124old_archive_cmds \
47125extract_expsyms_cmds \
47126old_archive_from_new_cmds \
47127old_archive_from_expsyms_cmds \
47128archive_cmds \
47129archive_expsym_cmds \
47130module_cmds \
47131module_expsym_cmds \
47132export_symbols_cmds \
47133prelink_cmds \
47134postlink_cmds \
47135postinstall_cmds \
47136postuninstall_cmds \
47137finish_cmds \
47138sys_lib_search_path_spec \
47139configure_time_dlsearch_path \
47140configure_time_lt_sys_library_path \
47141reload_cmds_RC \
47142old_archive_cmds_RC \
47143old_archive_from_new_cmds_RC \
47144old_archive_from_expsyms_cmds_RC \
47145archive_cmds_RC \
47146archive_expsym_cmds_RC \
47147module_cmds_RC \
47148module_expsym_cmds_RC \
47149export_symbols_cmds_RC \
47150prelink_cmds_RC \
47151postlink_cmds_RC; do
47152    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47153    *[\\\\\\\`\\"\\\$]*)
47154      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47155      ;;
47156    *)
47157      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47158      ;;
47159    esac
47160done
47161
47162ac_aux_dir='$ac_aux_dir'
47163
47164# See if we are running on zsh, and set the options that allow our
47165# commands through without removal of \ escapes INIT.
47166if test -n "\${ZSH_VERSION+set}"; then
47167   setopt NO_GLOB_SUBST
47168fi
47169
47170
47171    PACKAGE='$PACKAGE'
47172    VERSION='$VERSION'
47173    RM='$RM'
47174    ofile='$ofile'
47175
47176
47177
47178
47179
47180
47181_ACEOF
47182
47183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47184
47185# Handling of arguments.
47186for ac_config_target in $ac_config_targets
47187do
47188  case $ac_config_target in
47189    "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
47190    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47191    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47192    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47193    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
47194    "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
47195    "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
47196    "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
47197    "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
47198    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
47199    "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
47200    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
47201    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
47202    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
47203    "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
47204    "lib/libcurl.plist") CONFIG_FILES="$CONFIG_FILES lib/libcurl.plist" ;;
47205    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
47206    "tests/config") CONFIG_FILES="$CONFIG_FILES tests/config" ;;
47207    "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
47208    "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
47209    "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
47210    "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
47211    "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
47212    "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
47213    "tests/http/config.ini") CONFIG_FILES="$CONFIG_FILES tests/http/config.ini" ;;
47214    "tests/http/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/Makefile" ;;
47215    "tests/http/clients/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/clients/Makefile" ;;
47216    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
47217    "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
47218    "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
47219    "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
47220
47221  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
47222  esac
47223done
47224
47225
47226# If the user did not use the arguments to specify the items to instantiate,
47227# then the envvar interface is used.  Set only those that are not.
47228# We use the long form for the default assignment because of an extremely
47229# bizarre bug on SunOS 4.1.3.
47230if $ac_need_defaults; then
47231  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
47232  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
47233  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
47234fi
47235
47236# Have a temporary directory for convenience.  Make it in the build tree
47237# simply because there is no reason against having it here, and in addition,
47238# creating and moving files from /tmp can sometimes cause problems.
47239# Hook for its removal unless debugging.
47240# Note that there is a small window in which the directory will not be cleaned:
47241# after its creation but before its name has been assigned to `$tmp'.
47242$debug ||
47243{
47244  tmp= ac_tmp=
47245  trap 'exit_status=$?
47246  : "${ac_tmp:=$tmp}"
47247  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
47248' 0
47249  trap 'as_fn_exit 1' 1 2 13 15
47250}
47251# Create a (secure) tmp directory for tmp files.
47252
47253{
47254  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47255  test -d "$tmp"
47256}  ||
47257{
47258  tmp=./conf$$-$RANDOM
47259  (umask 077 && mkdir "$tmp")
47260} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
47261ac_tmp=$tmp
47262
47263# Set up the scripts for CONFIG_FILES section.
47264# No need to generate them if there are no CONFIG_FILES.
47265# This happens for instance with `./config.status config.h'.
47266if test -n "$CONFIG_FILES"; then
47267
47268
47269ac_cr=`echo X | tr X '\015'`
47270# On cygwin, bash can eat \r inside `` if the user requested igncr.
47271# But we know of no other shell where ac_cr would be empty at this
47272# point, so we can use a bashism as a fallback.
47273if test "x$ac_cr" = x; then
47274  eval ac_cr=\$\'\\r\'
47275fi
47276ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47277if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47278  ac_cs_awk_cr='\\r'
47279else
47280  ac_cs_awk_cr=$ac_cr
47281fi
47282
47283echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
47284_ACEOF
47285
47286
47287{
47288  echo "cat >conf$$subs.awk <<_ACEOF" &&
47289  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47290  echo "_ACEOF"
47291} >conf$$subs.sh ||
47292  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47293ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
47294ac_delim='%!_!# '
47295for ac_last_try in false false false false false :; do
47296  . ./conf$$subs.sh ||
47297    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47298
47299  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47300  if test $ac_delim_n = $ac_delim_num; then
47301    break
47302  elif $ac_last_try; then
47303    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47304  else
47305    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47306  fi
47307done
47308rm -f conf$$subs.sh
47309
47310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47311cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47312_ACEOF
47313sed -n '
47314h
47315s/^/S["/; s/!.*/"]=/
47316p
47317g
47318s/^[^!]*!//
47319:repl
47320t repl
47321s/'"$ac_delim"'$//
47322t delim
47323:nl
47324h
47325s/\(.\{148\}\)..*/\1/
47326t more1
47327s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47328p
47329n
47330b repl
47331:more1
47332s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47333p
47334g
47335s/.\{148\}//
47336t nl
47337:delim
47338h
47339s/\(.\{148\}\)..*/\1/
47340t more2
47341s/["\\]/\\&/g; s/^/"/; s/$/"/
47342p
47343b
47344:more2
47345s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47346p
47347g
47348s/.\{148\}//
47349t delim
47350' <conf$$subs.awk | sed '
47351/^[^""]/{
47352  N
47353  s/\n//
47354}
47355' >>$CONFIG_STATUS || ac_write_fail=1
47356rm -f conf$$subs.awk
47357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47358_ACAWK
47359cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47360  for (key in S) S_is_set[key] = 1
47361  FS = ""
47362
47363}
47364{
47365  line = $ 0
47366  nfields = split(line, field, "@")
47367  substed = 0
47368  len = length(field[1])
47369  for (i = 2; i < nfields; i++) {
47370    key = field[i]
47371    keylen = length(key)
47372    if (S_is_set[key]) {
47373      value = S[key]
47374      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47375      len += length(value) + length(field[++i])
47376      substed = 1
47377    } else
47378      len += 1 + keylen
47379  }
47380
47381  print line
47382}
47383
47384_ACAWK
47385_ACEOF
47386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47387if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47388  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47389else
47390  cat
47391fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
47392  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
47393_ACEOF
47394
47395# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
47396# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
47397# trailing colons and then remove the whole line if VPATH becomes empty
47398# (actually we leave an empty line to preserve line numbers).
47399if test "x$srcdir" = x.; then
47400  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
47401h
47402s///
47403s/^/:/
47404s/[	 ]*$/:/
47405s/:\$(srcdir):/:/g
47406s/:\${srcdir}:/:/g
47407s/:@srcdir@:/:/g
47408s/^:*//
47409s/:*$//
47410x
47411s/\(=[	 ]*\).*/\1/
47412G
47413s/\n//
47414s/^[^=]*=[	 ]*$//
47415}'
47416fi
47417
47418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47419fi # test -n "$CONFIG_FILES"
47420
47421# Set up the scripts for CONFIG_HEADERS section.
47422# No need to generate them if there are no CONFIG_HEADERS.
47423# This happens for instance with `./config.status Makefile'.
47424if test -n "$CONFIG_HEADERS"; then
47425cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47426BEGIN {
47427_ACEOF
47428
47429# Transform confdefs.h into an awk script `defines.awk', embedded as
47430# here-document in config.status, that substitutes the proper values into
47431# config.h.in to produce config.h.
47432
47433# Create a delimiter string that does not exist in confdefs.h, to ease
47434# handling of long lines.
47435ac_delim='%!_!# '
47436for ac_last_try in false false :; do
47437  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
47438  if test -z "$ac_tt"; then
47439    break
47440  elif $ac_last_try; then
47441    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47442  else
47443    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47444  fi
47445done
47446
47447# For the awk script, D is an array of macro values keyed by name,
47448# likewise P contains macro parameters if any.  Preserve backslash
47449# newline sequences.
47450
47451ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47452sed -n '
47453s/.\{148\}/&'"$ac_delim"'/g
47454t rset
47455:rset
47456s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
47457t def
47458d
47459:def
47460s/\\$//
47461t bsnl
47462s/["\\]/\\&/g
47463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
47464D["\1"]=" \3"/p
47465s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
47466d
47467:bsnl
47468s/["\\]/\\&/g
47469s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
47470D["\1"]=" \3\\\\\\n"\\/p
47471t cont
47472s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47473t cont
47474d
47475:cont
47476n
47477s/.\{148\}/&'"$ac_delim"'/g
47478t clear
47479:clear
47480s/\\$//
47481t bsnlc
47482s/["\\]/\\&/g; s/^/"/; s/$/"/p
47483d
47484:bsnlc
47485s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47486b cont
47487' <confdefs.h | sed '
47488s/'"$ac_delim"'/"\\\
47489"/g' >>$CONFIG_STATUS || ac_write_fail=1
47490
47491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47492  for (key in D) D_is_set[key] = 1
47493  FS = ""
47494}
47495/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47496  line = \$ 0
47497  split(line, arg, " ")
47498  if (arg[1] == "#") {
47499    defundef = arg[2]
47500    mac1 = arg[3]
47501  } else {
47502    defundef = substr(arg[1], 2)
47503    mac1 = arg[2]
47504  }
47505  split(mac1, mac2, "(") #)
47506  macro = mac2[1]
47507  prefix = substr(line, 1, index(line, defundef) - 1)
47508  if (D_is_set[macro]) {
47509    # Preserve the white space surrounding the "#".
47510    print prefix "define", macro P[macro] D[macro]
47511    next
47512  } else {
47513    # Replace #undef with comments.  This is necessary, for example,
47514    # in the case of _POSIX_SOURCE, which is predefined and required
47515    # on some systems where configure will not decide to define it.
47516    if (defundef == "undef") {
47517      print "/*", prefix defundef, macro, "*/"
47518      next
47519    }
47520  }
47521}
47522{ print }
47523_ACAWK
47524_ACEOF
47525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47526  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47527fi # test -n "$CONFIG_HEADERS"
47528
47529
47530eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
47531shift
47532for ac_tag
47533do
47534  case $ac_tag in
47535  :[FHLC]) ac_mode=$ac_tag; continue;;
47536  esac
47537  case $ac_mode$ac_tag in
47538  :[FHL]*:*);;
47539  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
47540  :[FH]-) ac_tag=-:-;;
47541  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47542  esac
47543  ac_save_IFS=$IFS
47544  IFS=:
47545  set x $ac_tag
47546  IFS=$ac_save_IFS
47547  shift
47548  ac_file=$1
47549  shift
47550
47551  case $ac_mode in
47552  :L) ac_source=$1;;
47553  :[FH])
47554    ac_file_inputs=
47555    for ac_f
47556    do
47557      case $ac_f in
47558      -) ac_f="$ac_tmp/stdin";;
47559      *) # Look for the file first in the build tree, then in the source tree
47560	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
47561	 # because $ac_f cannot contain `:'.
47562	 test -f "$ac_f" ||
47563	   case $ac_f in
47564	   [\\/$]*) false;;
47565	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47566	   esac ||
47567	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
47568      esac
47569      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47570      as_fn_append ac_file_inputs " '$ac_f'"
47571    done
47572
47573    # Let's still pretend it is `configure' which instantiates (i.e., don't
47574    # use $as_me), people would be surprised to read:
47575    #    /* config.h.  Generated by config.status.  */
47576    configure_input='Generated from '`
47577	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47578	`' by configure.'
47579    if test x"$ac_file" != x-; then
47580      configure_input="$ac_file.  $configure_input"
47581      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
47582printf "%s\n" "$as_me: creating $ac_file" >&6;}
47583    fi
47584    # Neutralize special characters interpreted by sed in replacement strings.
47585    case $configure_input in #(
47586    *\&* | *\|* | *\\* )
47587       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
47588       sed 's/[\\\\&|]/\\\\&/g'`;; #(
47589    *) ac_sed_conf_input=$configure_input;;
47590    esac
47591
47592    case $ac_tag in
47593    *:-:* | *:-) cat >"$ac_tmp/stdin" \
47594      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
47595    esac
47596    ;;
47597  esac
47598
47599  ac_dir=`$as_dirname -- "$ac_file" ||
47600$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47601	 X"$ac_file" : 'X\(//\)[^/]' \| \
47602	 X"$ac_file" : 'X\(//\)$' \| \
47603	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47604printf "%s\n" X"$ac_file" |
47605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47606	    s//\1/
47607	    q
47608	  }
47609	  /^X\(\/\/\)[^/].*/{
47610	    s//\1/
47611	    q
47612	  }
47613	  /^X\(\/\/\)$/{
47614	    s//\1/
47615	    q
47616	  }
47617	  /^X\(\/\).*/{
47618	    s//\1/
47619	    q
47620	  }
47621	  s/.*/./; q'`
47622  as_dir="$ac_dir"; as_fn_mkdir_p
47623  ac_builddir=.
47624
47625case "$ac_dir" in
47626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47627*)
47628  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
47629  # A ".." for each directory in $ac_dir_suffix.
47630  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47631  case $ac_top_builddir_sub in
47632  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47633  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47634  esac ;;
47635esac
47636ac_abs_top_builddir=$ac_pwd
47637ac_abs_builddir=$ac_pwd$ac_dir_suffix
47638# for backward compatibility:
47639ac_top_builddir=$ac_top_build_prefix
47640
47641case $srcdir in
47642  .)  # We are building in place.
47643    ac_srcdir=.
47644    ac_top_srcdir=$ac_top_builddir_sub
47645    ac_abs_top_srcdir=$ac_pwd ;;
47646  [\\/]* | ?:[\\/]* )  # Absolute name.
47647    ac_srcdir=$srcdir$ac_dir_suffix;
47648    ac_top_srcdir=$srcdir
47649    ac_abs_top_srcdir=$srcdir ;;
47650  *) # Relative name.
47651    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47652    ac_top_srcdir=$ac_top_build_prefix$srcdir
47653    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47654esac
47655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47656
47657
47658  case $ac_mode in
47659  :F)
47660  #
47661  # CONFIG_FILE
47662  #
47663
47664  case $INSTALL in
47665  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47666  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47667  esac
47668  ac_MKDIR_P=$MKDIR_P
47669  case $MKDIR_P in
47670  [\\/$]* | ?:[\\/]* ) ;;
47671  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47672  esac
47673_ACEOF
47674
47675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47676# If the template does not know about datarootdir, expand it.
47677# FIXME: This hack should be removed a few years after 2.60.
47678ac_datarootdir_hack=; ac_datarootdir_seen=
47679ac_sed_dataroot='
47680/datarootdir/ {
47681  p
47682  q
47683}
47684/@datadir@/p
47685/@docdir@/p
47686/@infodir@/p
47687/@localedir@/p
47688/@mandir@/p'
47689case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47690*datarootdir*) ac_datarootdir_seen=yes;;
47691*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47693printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47694_ACEOF
47695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47696  ac_datarootdir_hack='
47697  s&@datadir@&$datadir&g
47698  s&@docdir@&$docdir&g
47699  s&@infodir@&$infodir&g
47700  s&@localedir@&$localedir&g
47701  s&@mandir@&$mandir&g
47702  s&\\\${datarootdir}&$datarootdir&g' ;;
47703esac
47704_ACEOF
47705
47706# Neutralize VPATH when `$srcdir' = `.'.
47707# Shell code in configure.ac might set extrasub.
47708# FIXME: do we really want to maintain this feature?
47709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47710ac_sed_extra="$ac_vpsub
47711$extrasub
47712_ACEOF
47713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47714:t
47715/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47716s|@configure_input@|$ac_sed_conf_input|;t t
47717s&@top_builddir@&$ac_top_builddir_sub&;t t
47718s&@top_build_prefix@&$ac_top_build_prefix&;t t
47719s&@srcdir@&$ac_srcdir&;t t
47720s&@abs_srcdir@&$ac_abs_srcdir&;t t
47721s&@top_srcdir@&$ac_top_srcdir&;t t
47722s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47723s&@builddir@&$ac_builddir&;t t
47724s&@abs_builddir@&$ac_abs_builddir&;t t
47725s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47726s&@INSTALL@&$ac_INSTALL&;t t
47727s&@MKDIR_P@&$ac_MKDIR_P&;t t
47728$ac_datarootdir_hack
47729"
47730eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
47731  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47732
47733test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47734  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
47735  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
47736      "$ac_tmp/out"`; test -z "$ac_out"; } &&
47737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47738which seems to be undefined.  Please make sure it is defined" >&5
47739printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47740which seems to be undefined.  Please make sure it is defined" >&2;}
47741
47742  rm -f "$ac_tmp/stdin"
47743  case $ac_file in
47744  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
47745  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47746  esac \
47747  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47748 ;;
47749  :H)
47750  #
47751  # CONFIG_HEADER
47752  #
47753  if test x"$ac_file" != x-; then
47754    {
47755      printf "%s\n" "/* $configure_input  */" >&1 \
47756      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
47757    } >"$ac_tmp/config.h" \
47758      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47759    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
47760      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47761printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
47762    else
47763      rm -f "$ac_file"
47764      mv "$ac_tmp/config.h" "$ac_file" \
47765	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
47766    fi
47767  else
47768    printf "%s\n" "/* $configure_input  */" >&1 \
47769      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
47770      || as_fn_error $? "could not create -" "$LINENO" 5
47771  fi
47772# Compute "$ac_file"'s index in $config_headers.
47773_am_arg="$ac_file"
47774_am_stamp_count=1
47775for _am_header in $config_headers :; do
47776  case $_am_header in
47777    $_am_arg | $_am_arg:* )
47778      break ;;
47779    * )
47780      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47781  esac
47782done
47783echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47784$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47785	 X"$_am_arg" : 'X\(//\)[^/]' \| \
47786	 X"$_am_arg" : 'X\(//\)$' \| \
47787	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47788printf "%s\n" X"$_am_arg" |
47789    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47790	    s//\1/
47791	    q
47792	  }
47793	  /^X\(\/\/\)[^/].*/{
47794	    s//\1/
47795	    q
47796	  }
47797	  /^X\(\/\/\)$/{
47798	    s//\1/
47799	    q
47800	  }
47801	  /^X\(\/\).*/{
47802	    s//\1/
47803	    q
47804	  }
47805	  s/.*/./; q'`/stamp-h$_am_stamp_count
47806 ;;
47807
47808  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47809printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
47810 ;;
47811  esac
47812
47813
47814  case $ac_file$ac_mode in
47815    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47816  # Older Autoconf quotes --file arguments for eval, but not when files
47817  # are listed without --file.  Let's play safe and only enable the eval
47818  # if we detect the quoting.
47819  # TODO: see whether this extra hack can be removed once we start
47820  # requiring Autoconf 2.70 or later.
47821  case $CONFIG_FILES in #(
47822  *\'*) :
47823    eval set x "$CONFIG_FILES" ;; #(
47824  *) :
47825    set x $CONFIG_FILES ;; #(
47826  *) :
47827     ;;
47828esac
47829  shift
47830  # Used to flag and report bootstrapping failures.
47831  am_rc=0
47832  for am_mf
47833  do
47834    # Strip MF so we end up with the name of the file.
47835    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
47836    # Check whether this is an Automake generated Makefile which includes
47837    # dependency-tracking related rules and includes.
47838    # Grep'ing the whole file directly is not great: AIX grep has a line
47839    # limit of 2048, but all sed's we know have understand at least 4000.
47840    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
47841      || continue
47842    am_dirpart=`$as_dirname -- "$am_mf" ||
47843$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47844	 X"$am_mf" : 'X\(//\)[^/]' \| \
47845	 X"$am_mf" : 'X\(//\)$' \| \
47846	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47847printf "%s\n" X"$am_mf" |
47848    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47849	    s//\1/
47850	    q
47851	  }
47852	  /^X\(\/\/\)[^/].*/{
47853	    s//\1/
47854	    q
47855	  }
47856	  /^X\(\/\/\)$/{
47857	    s//\1/
47858	    q
47859	  }
47860	  /^X\(\/\).*/{
47861	    s//\1/
47862	    q
47863	  }
47864	  s/.*/./; q'`
47865    am_filepart=`$as_basename -- "$am_mf" ||
47866$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
47867	 X"$am_mf" : 'X\(//\)$' \| \
47868	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47869printf "%s\n" X/"$am_mf" |
47870    sed '/^.*\/\([^/][^/]*\)\/*$/{
47871	    s//\1/
47872	    q
47873	  }
47874	  /^X\/\(\/\/\)$/{
47875	    s//\1/
47876	    q
47877	  }
47878	  /^X\/\(\/\).*/{
47879	    s//\1/
47880	    q
47881	  }
47882	  s/.*/./; q'`
47883    { echo "$as_me:$LINENO: cd "$am_dirpart" \
47884      && sed -e '/# am--include-marker/d' "$am_filepart" \
47885        | $MAKE -f - am--depfiles" >&5
47886   (cd "$am_dirpart" \
47887      && sed -e '/# am--include-marker/d' "$am_filepart" \
47888        | $MAKE -f - am--depfiles) >&5 2>&5
47889   ac_status=$?
47890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47891   (exit $ac_status); } || am_rc=$?
47892  done
47893  if test $am_rc -ne 0; then
47894    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47895printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
47896as_fn_error $? "Something went wrong bootstrapping makefile fragments
47897    for automatic dependency tracking.  If GNU make was not used, consider
47898    re-running the configure script with MAKE=\"gmake\" (or whatever is
47899    necessary).  You can also try re-running configure with the
47900    '--disable-dependency-tracking' option to at least be able to build
47901    the package (albeit without support for automatic dependency tracking).
47902See \`config.log' for more details" "$LINENO" 5; }
47903  fi
47904  { am_dirpart=; unset am_dirpart;}
47905  { am_filepart=; unset am_filepart;}
47906  { am_mf=; unset am_mf;}
47907  { am_rc=; unset am_rc;}
47908  rm -f conftest-deps.mk
47909}
47910 ;;
47911    "libtool":C)
47912
47913    # See if we are running on zsh, and set the options that allow our
47914    # commands through without removal of \ escapes.
47915    if test -n "${ZSH_VERSION+set}"; then
47916      setopt NO_GLOB_SUBST
47917    fi
47918
47919    cfgfile=${ofile}T
47920    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47921    $RM "$cfgfile"
47922
47923    cat <<_LT_EOF >> "$cfgfile"
47924#! $SHELL
47925# Generated automatically by $as_me ($PACKAGE) $VERSION
47926# NOTE: Changes made to this file will be lost: look at ltmain.sh.
47927
47928# Provide generalized library-building support services.
47929# Written by Gordon Matzigkeit, 1996
47930
47931# Copyright (C) 2014 Free Software Foundation, Inc.
47932# This is free software; see the source for copying conditions.  There is NO
47933# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
47934
47935# GNU Libtool is free software; you can redistribute it and/or modify
47936# it under the terms of the GNU General Public License as published by
47937# the Free Software Foundation; either version 2 of of the License, or
47938# (at your option) any later version.
47939#
47940# As a special exception to the GNU General Public License, if you
47941# distribute this file as part of a program or library that is built
47942# using GNU Libtool, you may include this file under the  same
47943# distribution terms that you use for the rest of that program.
47944#
47945# GNU Libtool is distributed in the hope that it will be useful, but
47946# WITHOUT ANY WARRANTY; without even the implied warranty of
47947# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47948# GNU General Public License for more details.
47949#
47950# You should have received a copy of the GNU General Public License
47951# along with this program.  If not, see <http://www.gnu.org/licenses/>.
47952
47953
47954# The names of the tagged configurations supported by this script.
47955available_tags='RC '
47956
47957# Configured defaults for sys_lib_dlsearch_path munging.
47958: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
47959
47960# ### BEGIN LIBTOOL CONFIG
47961
47962# Which release of libtool.m4 was used?
47963macro_version=$macro_version
47964macro_revision=$macro_revision
47965
47966# Assembler program.
47967AS=$lt_AS
47968
47969# DLL creation program.
47970DLLTOOL=$lt_DLLTOOL
47971
47972# Object dumper program.
47973OBJDUMP=$lt_OBJDUMP
47974
47975# Whether or not to build shared libraries.
47976build_libtool_libs=$enable_shared
47977
47978# Whether or not to build static libraries.
47979build_old_libs=$enable_static
47980
47981# What type of objects to build.
47982pic_mode=$pic_mode
47983
47984# Whether or not to optimize for fast installation.
47985fast_install=$enable_fast_install
47986
47987# Shared archive member basename,for filename based shared library versioning on AIX.
47988shared_archive_member_spec=$shared_archive_member_spec
47989
47990# Shell to use when invoking shell scripts.
47991SHELL=$lt_SHELL
47992
47993# An echo program that protects backslashes.
47994ECHO=$lt_ECHO
47995
47996# The PATH separator for the build system.
47997PATH_SEPARATOR=$lt_PATH_SEPARATOR
47998
47999# The host system.
48000host_alias=$host_alias
48001host=$host
48002host_os=$host_os
48003
48004# The build system.
48005build_alias=$build_alias
48006build=$build
48007build_os=$build_os
48008
48009# A sed program that does not truncate output.
48010SED=$lt_SED
48011
48012# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48013Xsed="\$SED -e 1s/^X//"
48014
48015# A grep program that handles long lines.
48016GREP=$lt_GREP
48017
48018# An ERE matcher.
48019EGREP=$lt_EGREP
48020
48021# A literal string matcher.
48022FGREP=$lt_FGREP
48023
48024# A BSD- or MS-compatible name lister.
48025NM=$lt_NM
48026
48027# Whether we need soft or hard links.
48028LN_S=$lt_LN_S
48029
48030# What is the maximum length of a command?
48031max_cmd_len=$max_cmd_len
48032
48033# Object file suffix (normally "o").
48034objext=$ac_objext
48035
48036# Executable file suffix (normally "").
48037exeext=$exeext
48038
48039# whether the shell understands "unset".
48040lt_unset=$lt_unset
48041
48042# turn spaces into newlines.
48043SP2NL=$lt_lt_SP2NL
48044
48045# turn newlines into spaces.
48046NL2SP=$lt_lt_NL2SP
48047
48048# convert \$build file names to \$host format.
48049to_host_file_cmd=$lt_cv_to_host_file_cmd
48050
48051# convert \$build files to toolchain format.
48052to_tool_file_cmd=$lt_cv_to_tool_file_cmd
48053
48054# A file(cmd) program that detects file types.
48055FILECMD=$lt_FILECMD
48056
48057# Method to check whether dependent libraries are shared objects.
48058deplibs_check_method=$lt_deplibs_check_method
48059
48060# Command to use when deplibs_check_method = "file_magic".
48061file_magic_cmd=$lt_file_magic_cmd
48062
48063# How to find potential files when deplibs_check_method = "file_magic".
48064file_magic_glob=$lt_file_magic_glob
48065
48066# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
48067want_nocaseglob=$lt_want_nocaseglob
48068
48069# Command to associate shared and link libraries.
48070sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
48071
48072# The archiver.
48073AR=$lt_AR
48074
48075# Flags to create an archive (by configure).
48076lt_ar_flags=$lt_ar_flags
48077
48078# Flags to create an archive.
48079AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
48080
48081# How to feed a file listing to the archiver.
48082archiver_list_spec=$lt_archiver_list_spec
48083
48084# A symbol stripping program.
48085STRIP=$lt_STRIP
48086
48087# Commands used to install an old-style archive.
48088RANLIB=$lt_RANLIB
48089old_postinstall_cmds=$lt_old_postinstall_cmds
48090old_postuninstall_cmds=$lt_old_postuninstall_cmds
48091
48092# Whether to use a lock for old archive extraction.
48093lock_old_archive_extraction=$lock_old_archive_extraction
48094
48095# A C compiler.
48096LTCC=$lt_CC
48097
48098# LTCC compiler flags.
48099LTCFLAGS=$lt_CFLAGS
48100
48101# Take the output of nm and produce a listing of raw symbols and C names.
48102global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48103
48104# Transform the output of nm in a proper C declaration.
48105global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48106
48107# Transform the output of nm into a list of symbols to manually relocate.
48108global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
48109
48110# Transform the output of nm in a C name address pair.
48111global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48112
48113# Transform the output of nm in a C name address pair when lib prefix is needed.
48114global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
48115
48116# The name lister interface.
48117nm_interface=$lt_lt_cv_nm_interface
48118
48119# Specify filename containing input files for \$NM.
48120nm_file_list_spec=$lt_nm_file_list_spec
48121
48122# The root where to search for dependent libraries,and where our libraries should be installed.
48123lt_sysroot=$lt_sysroot
48124
48125# Command to truncate a binary pipe.
48126lt_truncate_bin=$lt_lt_cv_truncate_bin
48127
48128# The name of the directory that contains temporary libtool files.
48129objdir=$objdir
48130
48131# Used to examine libraries when file_magic_cmd begins with "file".
48132MAGIC_CMD=$MAGIC_CMD
48133
48134# Must we lock files when doing compilation?
48135need_locks=$lt_need_locks
48136
48137# Manifest tool.
48138MANIFEST_TOOL=$lt_MANIFEST_TOOL
48139
48140# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
48141DSYMUTIL=$lt_DSYMUTIL
48142
48143# Tool to change global to local symbols on Mac OS X.
48144NMEDIT=$lt_NMEDIT
48145
48146# Tool to manipulate fat objects and archives on Mac OS X.
48147LIPO=$lt_LIPO
48148
48149# ldd/readelf like tool for Mach-O binaries on Mac OS X.
48150OTOOL=$lt_OTOOL
48151
48152# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
48153OTOOL64=$lt_OTOOL64
48154
48155# Old archive suffix (normally "a").
48156libext=$libext
48157
48158# Shared library suffix (normally ".so").
48159shrext_cmds=$lt_shrext_cmds
48160
48161# The commands to extract the exported symbol list from a shared archive.
48162extract_expsyms_cmds=$lt_extract_expsyms_cmds
48163
48164# Variables whose values should be saved in libtool wrapper scripts and
48165# restored at link time.
48166variables_saved_for_relink=$lt_variables_saved_for_relink
48167
48168# Do we need the "lib" prefix for modules?
48169need_lib_prefix=$need_lib_prefix
48170
48171# Do we need a version for libraries?
48172need_version=$need_version
48173
48174# Library versioning type.
48175version_type=$version_type
48176
48177# Shared library runtime path variable.
48178runpath_var=$runpath_var
48179
48180# Shared library path variable.
48181shlibpath_var=$shlibpath_var
48182
48183# Is shlibpath searched before the hard-coded library search path?
48184shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48185
48186# Format of library name prefix.
48187libname_spec=$lt_libname_spec
48188
48189# List of archive names.  First name is the real one, the rest are links.
48190# The last name is the one that the linker finds with -lNAME
48191library_names_spec=$lt_library_names_spec
48192
48193# The coded name of the library, if different from the real name.
48194soname_spec=$lt_soname_spec
48195
48196# Permission mode override for installation of shared libraries.
48197install_override_mode=$lt_install_override_mode
48198
48199# Command to use after installation of a shared archive.
48200postinstall_cmds=$lt_postinstall_cmds
48201
48202# Command to use after uninstallation of a shared archive.
48203postuninstall_cmds=$lt_postuninstall_cmds
48204
48205# Commands used to finish a libtool library installation in a directory.
48206finish_cmds=$lt_finish_cmds
48207
48208# As "finish_cmds", except a single script fragment to be evaled but
48209# not shown.
48210finish_eval=$lt_finish_eval
48211
48212# Whether we should hardcode library paths into libraries.
48213hardcode_into_libs=$hardcode_into_libs
48214
48215# Compile-time system search path for libraries.
48216sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48217
48218# Detected run-time system search path for libraries.
48219sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
48220
48221# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
48222configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
48223
48224# Whether dlopen is supported.
48225dlopen_support=$enable_dlopen
48226
48227# Whether dlopen of programs is supported.
48228dlopen_self=$enable_dlopen_self
48229
48230# Whether dlopen of statically linked programs is supported.
48231dlopen_self_static=$enable_dlopen_self_static
48232
48233# Commands to strip libraries.
48234old_striplib=$lt_old_striplib
48235striplib=$lt_striplib
48236
48237
48238# The linker used to build libraries.
48239LD=$lt_LD
48240
48241# How to create reloadable object files.
48242reload_flag=$lt_reload_flag
48243reload_cmds=$lt_reload_cmds
48244
48245# Commands used to build an old-style archive.
48246old_archive_cmds=$lt_old_archive_cmds
48247
48248# A language specific compiler.
48249CC=$lt_compiler
48250
48251# Is the compiler the GNU compiler?
48252with_gcc=$GCC
48253
48254# Compiler flag to turn off builtin functions.
48255no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
48256
48257# Additional compiler flags for building library objects.
48258pic_flag=$lt_lt_prog_compiler_pic
48259
48260# How to pass a linker flag through the compiler.
48261wl=$lt_lt_prog_compiler_wl
48262
48263# Compiler flag to prevent dynamic linking.
48264link_static_flag=$lt_lt_prog_compiler_static
48265
48266# Does compiler simultaneously support -c and -o options?
48267compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48268
48269# Whether or not to add -lc for building shared libraries.
48270build_libtool_need_lc=$archive_cmds_need_lc
48271
48272# Whether or not to disallow shared libs when runtime libs are static.
48273allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48274
48275# Compiler flag to allow reflexive dlopens.
48276export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48277
48278# Compiler flag to generate shared objects directly from archives.
48279whole_archive_flag_spec=$lt_whole_archive_flag_spec
48280
48281# Whether the compiler copes with passing no objects directly.
48282compiler_needs_object=$lt_compiler_needs_object
48283
48284# Create an old-style archive from a shared archive.
48285old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48286
48287# Create a temporary old-style archive to link instead of a shared archive.
48288old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48289
48290# Commands used to build a shared archive.
48291archive_cmds=$lt_archive_cmds
48292archive_expsym_cmds=$lt_archive_expsym_cmds
48293
48294# Commands used to build a loadable module if different from building
48295# a shared archive.
48296module_cmds=$lt_module_cmds
48297module_expsym_cmds=$lt_module_expsym_cmds
48298
48299# Whether we are building with GNU ld or not.
48300with_gnu_ld=$lt_with_gnu_ld
48301
48302# Flag that allows shared libraries with undefined symbols to be built.
48303allow_undefined_flag=$lt_allow_undefined_flag
48304
48305# Flag that enforces no undefined symbols.
48306no_undefined_flag=$lt_no_undefined_flag
48307
48308# Flag to hardcode \$libdir into a binary during linking.
48309# This must work even if \$libdir does not exist
48310hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48311
48312# Whether we need a single "-rpath" flag with a separated argument.
48313hardcode_libdir_separator=$lt_hardcode_libdir_separator
48314
48315# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48316# DIR into the resulting binary.
48317hardcode_direct=$hardcode_direct
48318
48319# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48320# DIR into the resulting binary and the resulting library dependency is
48321# "absolute",i.e impossible to change by setting \$shlibpath_var if the
48322# library is relocated.
48323hardcode_direct_absolute=$hardcode_direct_absolute
48324
48325# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48326# into the resulting binary.
48327hardcode_minus_L=$hardcode_minus_L
48328
48329# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48330# into the resulting binary.
48331hardcode_shlibpath_var=$hardcode_shlibpath_var
48332
48333# Set to "yes" if building a shared library automatically hardcodes DIR
48334# into the library and all subsequent libraries and executables linked
48335# against it.
48336hardcode_automatic=$hardcode_automatic
48337
48338# Set to yes if linker adds runtime paths of dependent libraries
48339# to runtime path list.
48340inherit_rpath=$inherit_rpath
48341
48342# Whether libtool must link a program against all its dependency libraries.
48343link_all_deplibs=$link_all_deplibs
48344
48345# Set to "yes" if exported symbols are required.
48346always_export_symbols=$always_export_symbols
48347
48348# The commands to list exported symbols.
48349export_symbols_cmds=$lt_export_symbols_cmds
48350
48351# Symbols that should not be listed in the preloaded symbols.
48352exclude_expsyms=$lt_exclude_expsyms
48353
48354# Symbols that must always be exported.
48355include_expsyms=$lt_include_expsyms
48356
48357# Commands necessary for linking programs (against libraries) with templates.
48358prelink_cmds=$lt_prelink_cmds
48359
48360# Commands necessary for finishing linking programs.
48361postlink_cmds=$lt_postlink_cmds
48362
48363# Specify filename containing input files.
48364file_list_spec=$lt_file_list_spec
48365
48366# How to hardcode a shared library path into an executable.
48367hardcode_action=$hardcode_action
48368
48369# ### END LIBTOOL CONFIG
48370
48371_LT_EOF
48372
48373    cat <<'_LT_EOF' >> "$cfgfile"
48374
48375# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
48376
48377# func_munge_path_list VARIABLE PATH
48378# -----------------------------------
48379# VARIABLE is name of variable containing _space_ separated list of
48380# directories to be munged by the contents of PATH, which is string
48381# having a format:
48382# "DIR[:DIR]:"
48383#       string "DIR[ DIR]" will be prepended to VARIABLE
48384# ":DIR[:DIR]"
48385#       string "DIR[ DIR]" will be appended to VARIABLE
48386# "DIRP[:DIRP]::[DIRA:]DIRA"
48387#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
48388#       "DIRA[ DIRA]" will be appended to VARIABLE
48389# "DIR[:DIR]"
48390#       VARIABLE will be replaced by "DIR[ DIR]"
48391func_munge_path_list ()
48392{
48393    case x$2 in
48394    x)
48395        ;;
48396    *:)
48397        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
48398        ;;
48399    x:*)
48400        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
48401        ;;
48402    *::*)
48403        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
48404        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
48405        ;;
48406    *)
48407        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
48408        ;;
48409    esac
48410}
48411
48412
48413# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
48414func_cc_basename ()
48415{
48416    for cc_temp in $*""; do
48417      case $cc_temp in
48418        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48419        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48420        \-*) ;;
48421        *) break;;
48422      esac
48423    done
48424    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
48425}
48426
48427
48428# ### END FUNCTIONS SHARED WITH CONFIGURE
48429
48430_LT_EOF
48431
48432  case $host_os in
48433  aix3*)
48434    cat <<\_LT_EOF >> "$cfgfile"
48435# AIX sometimes has problems with the GCC collect2 program.  For some
48436# reason, if we set the COLLECT_NAMES environment variable, the problems
48437# vanish in a puff of smoke.
48438if test set != "${COLLECT_NAMES+set}"; then
48439  COLLECT_NAMES=
48440  export COLLECT_NAMES
48441fi
48442_LT_EOF
48443    ;;
48444  esac
48445
48446
48447
48448ltmain=$ac_aux_dir/ltmain.sh
48449
48450
48451  # We use sed instead of cat because bash on DJGPP gets confused if
48452  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
48453  # text mode, it properly converts lines to CR/LF.  This bash problem
48454  # is reportedly fixed, but why not run on old versions too?
48455  $SED '$q' "$ltmain" >> "$cfgfile" \
48456     || (rm -f "$cfgfile"; exit 1)
48457
48458   mv -f "$cfgfile" "$ofile" ||
48459    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48460  chmod +x "$ofile"
48461
48462
48463    cat <<_LT_EOF >> "$ofile"
48464
48465# ### BEGIN LIBTOOL TAG CONFIG: RC
48466
48467# The linker used to build libraries.
48468LD=$lt_LD_RC
48469
48470# How to create reloadable object files.
48471reload_flag=$lt_reload_flag_RC
48472reload_cmds=$lt_reload_cmds_RC
48473
48474# Commands used to build an old-style archive.
48475old_archive_cmds=$lt_old_archive_cmds_RC
48476
48477# A language specific compiler.
48478CC=$lt_compiler_RC
48479
48480# Is the compiler the GNU compiler?
48481with_gcc=$GCC_RC
48482
48483# Compiler flag to turn off builtin functions.
48484no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
48485
48486# Additional compiler flags for building library objects.
48487pic_flag=$lt_lt_prog_compiler_pic_RC
48488
48489# How to pass a linker flag through the compiler.
48490wl=$lt_lt_prog_compiler_wl_RC
48491
48492# Compiler flag to prevent dynamic linking.
48493link_static_flag=$lt_lt_prog_compiler_static_RC
48494
48495# Does compiler simultaneously support -c and -o options?
48496compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
48497
48498# Whether or not to add -lc for building shared libraries.
48499build_libtool_need_lc=$archive_cmds_need_lc_RC
48500
48501# Whether or not to disallow shared libs when runtime libs are static.
48502allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
48503
48504# Compiler flag to allow reflexive dlopens.
48505export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
48506
48507# Compiler flag to generate shared objects directly from archives.
48508whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
48509
48510# Whether the compiler copes with passing no objects directly.
48511compiler_needs_object=$lt_compiler_needs_object_RC
48512
48513# Create an old-style archive from a shared archive.
48514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
48515
48516# Create a temporary old-style archive to link instead of a shared archive.
48517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
48518
48519# Commands used to build a shared archive.
48520archive_cmds=$lt_archive_cmds_RC
48521archive_expsym_cmds=$lt_archive_expsym_cmds_RC
48522
48523# Commands used to build a loadable module if different from building
48524# a shared archive.
48525module_cmds=$lt_module_cmds_RC
48526module_expsym_cmds=$lt_module_expsym_cmds_RC
48527
48528# Whether we are building with GNU ld or not.
48529with_gnu_ld=$lt_with_gnu_ld_RC
48530
48531# Flag that allows shared libraries with undefined symbols to be built.
48532allow_undefined_flag=$lt_allow_undefined_flag_RC
48533
48534# Flag that enforces no undefined symbols.
48535no_undefined_flag=$lt_no_undefined_flag_RC
48536
48537# Flag to hardcode \$libdir into a binary during linking.
48538# This must work even if \$libdir does not exist
48539hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
48540
48541# Whether we need a single "-rpath" flag with a separated argument.
48542hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
48543
48544# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48545# DIR into the resulting binary.
48546hardcode_direct=$hardcode_direct_RC
48547
48548# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48549# DIR into the resulting binary and the resulting library dependency is
48550# "absolute",i.e impossible to change by setting \$shlibpath_var if the
48551# library is relocated.
48552hardcode_direct_absolute=$hardcode_direct_absolute_RC
48553
48554# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48555# into the resulting binary.
48556hardcode_minus_L=$hardcode_minus_L_RC
48557
48558# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48559# into the resulting binary.
48560hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
48561
48562# Set to "yes" if building a shared library automatically hardcodes DIR
48563# into the library and all subsequent libraries and executables linked
48564# against it.
48565hardcode_automatic=$hardcode_automatic_RC
48566
48567# Set to yes if linker adds runtime paths of dependent libraries
48568# to runtime path list.
48569inherit_rpath=$inherit_rpath_RC
48570
48571# Whether libtool must link a program against all its dependency libraries.
48572link_all_deplibs=$link_all_deplibs_RC
48573
48574# Set to "yes" if exported symbols are required.
48575always_export_symbols=$always_export_symbols_RC
48576
48577# The commands to list exported symbols.
48578export_symbols_cmds=$lt_export_symbols_cmds_RC
48579
48580# Symbols that should not be listed in the preloaded symbols.
48581exclude_expsyms=$lt_exclude_expsyms_RC
48582
48583# Symbols that must always be exported.
48584include_expsyms=$lt_include_expsyms_RC
48585
48586# Commands necessary for linking programs (against libraries) with templates.
48587prelink_cmds=$lt_prelink_cmds_RC
48588
48589# Commands necessary for finishing linking programs.
48590postlink_cmds=$lt_postlink_cmds_RC
48591
48592# Specify filename containing input files.
48593file_list_spec=$lt_file_list_spec_RC
48594
48595# How to hardcode a shared library path into an executable.
48596hardcode_action=$hardcode_action_RC
48597
48598# ### END LIBTOOL TAG CONFIG: RC
48599_LT_EOF
48600
48601 ;;
48602
48603  esac
48604done # for ac_tag
48605
48606
48607as_fn_exit 0
48608_ACEOF
48609ac_clean_files=$ac_clean_files_save
48610
48611test $ac_write_fail = 0 ||
48612  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48613
48614
48615# configure is writing to config.log, and then calls config.status.
48616# config.status does its own redirection, appending to config.log.
48617# Unfortunately, on DOS this fails, as config.log is still kept open
48618# by configure, so config.status won't be able to write to it; its
48619# output is simply discarded.  So we exec the FD to /dev/null,
48620# effectively closing config.log, so it can be properly (re)opened and
48621# appended to by config.status.  When coming back to configure, we
48622# need to make the FD available again.
48623if test "$no_create" != yes; then
48624  ac_cs_success=:
48625  ac_config_status_args=
48626  test "$silent" = yes &&
48627    ac_config_status_args="$ac_config_status_args --quiet"
48628  exec 5>/dev/null
48629  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48630  exec 5>>config.log
48631  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48632  # would make configure fail if this is the last instruction.
48633  $ac_cs_success || as_fn_exit 1
48634fi
48635if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48637printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48638fi
48639
48640
48641
48642    tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
48643  if test -z "$tmp_cpp"; then
48644    tmp_cpp='cpp'
48645  fi
48646  cat >./tests/configurehelp.pm <<_EOF
48647# This is a generated file.  Do not edit.
48648
48649package configurehelp;
48650
48651use strict;
48652use warnings;
48653use Exporter;
48654
48655use vars qw(
48656    @ISA
48657    @EXPORT_OK
48658    \$Cpreprocessor
48659    );
48660
48661@ISA = qw(Exporter);
48662
48663@EXPORT_OK = qw(
48664    \$Cpreprocessor
48665    );
48666
48667\$Cpreprocessor = '$tmp_cpp';
48668
486691;
48670_EOF
48671
48672
48673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
48674
48675  Host setup:       ${host}
48676  Install prefix:   ${prefix}
48677  Compiler:         ${CC}
48678   CFLAGS:          ${CFLAGS}
48679   CPPFLAGS:        ${CPPFLAGS}
48680   LDFLAGS:         ${LDFLAGS}
48681   LIBS:            ${LIBS}
48682
48683  curl version:     ${CURLVERSION}
48684  SSL:              ${curl_ssl_msg}
48685  SSH:              ${curl_ssh_msg}
48686  zlib:             ${curl_zlib_msg}
48687  brotli:           ${curl_brotli_msg}
48688  zstd:             ${curl_zstd_msg}
48689  GSS-API:          ${curl_gss_msg}
48690  GSASL:            ${curl_gsasl_msg}
48691  TLS-SRP:          ${curl_tls_srp_msg}
48692  resolver:         ${curl_res_msg}
48693  IPv6:             ${curl_ipv6_msg}
48694  Unix sockets:     ${curl_unix_sockets_msg}
48695  IDN:              ${curl_idn_msg}
48696  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48697  Built-in manual:  ${curl_manual_msg}
48698  --libcurl option: ${curl_libcurl_msg}
48699  Verbose errors:   ${curl_verbose_msg}
48700  Code coverage:    ${curl_coverage_msg}
48701  SSPI:             ${curl_sspi_msg}
48702  ca cert bundle:   ${ca}${ca_warning}
48703  ca cert path:     ${capath}${capath_warning}
48704  ca fallback:      ${with_ca_fallback}
48705  LDAP:             ${curl_ldap_msg}
48706  LDAPS:            ${curl_ldaps_msg}
48707  RTSP:             ${curl_rtsp_msg}
48708  RTMP:             ${curl_rtmp_msg}
48709  PSL:              ${curl_psl_msg}
48710  Alt-svc:          ${curl_altsvc_msg}
48711  Headers API:      ${curl_headers_msg}
48712  HSTS:             ${curl_hsts_msg}
48713  HTTP1:            ${curl_h1_msg}
48714  HTTP2:            ${curl_h2_msg}
48715  HTTP3:            ${curl_h3_msg}
48716  ECH:              ${curl_ech_msg}
48717  WebSockets:       ${curl_ws_msg}
48718  Protocols:        ${SUPPORT_PROTOCOLS}
48719  Features:         ${SUPPORT_FEATURES}
48720" >&5
48721printf "%s\n" "$as_me: Configured to build curl/libcurl:
48722
48723  Host setup:       ${host}
48724  Install prefix:   ${prefix}
48725  Compiler:         ${CC}
48726   CFLAGS:          ${CFLAGS}
48727   CPPFLAGS:        ${CPPFLAGS}
48728   LDFLAGS:         ${LDFLAGS}
48729   LIBS:            ${LIBS}
48730
48731  curl version:     ${CURLVERSION}
48732  SSL:              ${curl_ssl_msg}
48733  SSH:              ${curl_ssh_msg}
48734  zlib:             ${curl_zlib_msg}
48735  brotli:           ${curl_brotli_msg}
48736  zstd:             ${curl_zstd_msg}
48737  GSS-API:          ${curl_gss_msg}
48738  GSASL:            ${curl_gsasl_msg}
48739  TLS-SRP:          ${curl_tls_srp_msg}
48740  resolver:         ${curl_res_msg}
48741  IPv6:             ${curl_ipv6_msg}
48742  Unix sockets:     ${curl_unix_sockets_msg}
48743  IDN:              ${curl_idn_msg}
48744  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48745  Built-in manual:  ${curl_manual_msg}
48746  --libcurl option: ${curl_libcurl_msg}
48747  Verbose errors:   ${curl_verbose_msg}
48748  Code coverage:    ${curl_coverage_msg}
48749  SSPI:             ${curl_sspi_msg}
48750  ca cert bundle:   ${ca}${ca_warning}
48751  ca cert path:     ${capath}${capath_warning}
48752  ca fallback:      ${with_ca_fallback}
48753  LDAP:             ${curl_ldap_msg}
48754  LDAPS:            ${curl_ldaps_msg}
48755  RTSP:             ${curl_rtsp_msg}
48756  RTMP:             ${curl_rtmp_msg}
48757  PSL:              ${curl_psl_msg}
48758  Alt-svc:          ${curl_altsvc_msg}
48759  Headers API:      ${curl_headers_msg}
48760  HSTS:             ${curl_hsts_msg}
48761  HTTP1:            ${curl_h1_msg}
48762  HTTP2:            ${curl_h2_msg}
48763  HTTP3:            ${curl_h3_msg}
48764  ECH:              ${curl_ech_msg}
48765  WebSockets:       ${curl_ws_msg}
48766  Protocols:        ${SUPPORT_PROTOCOLS}
48767  Features:         ${SUPPORT_FEATURES}
48768" >&6;}
48769if test -n "$experimental"; then
48770 cat >&2 << _EOF
48771  WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
48772_EOF
48773fi
48774
48775